.pont-secure-overlay {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, .48);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  animation: pontSecureFadeIn .18s ease-out both;
}

.pont-secure-dialog {
  position: relative;
  width: min(560px, calc(100vw - 28px));
  max-height: min(82vh, 760px);
  overflow: auto;
  border: 1px solid rgba(177, 22, 22, .16);
  border-radius: 18px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 34px 90px rgba(15, 23, 42, .28);
  color: #17223a;
  padding: 28px;
}

.pont-secure-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 999px;
  background: #f4f6fb;
  color: #17223a;
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.pont-secure-title {
  margin: 0 44px 12px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 4vw, 38px);
  line-height: 1.03;
  color: #111827;
}

.pont-secure-text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: #334155;
}

.pont-secure-form {
  display: grid;
  gap: 14px;
}

.pont-secure-form label {
  display: grid;
  gap: 7px;
  color: #526079;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pont-secure-form input,
.pont-secure-form textarea,
.pont-secure-form select {
  width: 100%;
  min-height: 46px;
  border: 1px solid #d8dfec;
  border-radius: 12px;
  background: #fff;
  color: #17223a;
  font: 700 15px/1.35 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  padding: 11px 13px;
  outline: none;
  box-sizing: border-box;
}

.pont-secure-form textarea {
  min-height: 96px;
  resize: vertical;
}

.pont-secure-form input:focus,
.pont-secure-form textarea:focus,
.pont-secure-form select:focus {
  border-color: #be1a1a;
  box-shadow: 0 0 0 4px rgba(190, 26, 26, .12);
}

.pont-secure-message {
  min-height: 20px;
  margin: 0;
  color: #9f1239;
  font-weight: 800;
}

.pont-secure-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}

.pont-secure-btn {
  min-height: 44px;
  border: 1px solid rgba(177, 22, 22, .18);
  border-radius: 999px;
  padding: 11px 18px;
  font: 900 14px/1.1 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
}

.pont-secure-btn-primary {
  background: #c91519;
  color: #fff;
  box-shadow: 0 14px 28px rgba(201, 21, 25, .2);
}

.pont-secure-btn-secondary {
  background: #fff;
  color: #9f1239;
}

.pont-secure-client-ready {
  gap: 16px;
}

.pont-secure-client-key {
  margin: 0;
  border: 1px dashed rgba(177, 22, 22, .35);
  border-radius: 14px;
  background: #fff7f7;
  color: #8f1111;
  font-size: 18px;
  font-weight: 950;
  padding: 14px 16px;
}

#pontRougePrivateKeyBtn,
#pontRougeSendClientBtn {
  background: #f8fbff;
  color: #19385f;
}

#pontRougeSendClientBtn {
  background: #dff2ff;
}

@keyframes pontSecureFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 700px) {
  .pont-secure-overlay {
    align-items: flex-start;
    padding: 12px;
    overflow: auto;
  }

  .pont-secure-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 22px 16px 18px;
    border-radius: 14px;
  }

  .pont-secure-title {
    margin-right: 38px;
    font-size: 26px;
  }

  .pont-secure-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .pont-secure-btn {
    width: 100%;
  }
}
