/* modal.css */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(14px) saturate(0.8);
  -webkit-backdrop-filter: blur(14px) saturate(0.8);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  font-family: 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.modal {
  position: relative;
  background: #0d0d0f;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  padding: 36px 32px 28px;
  width: 440px;
  max-width: calc(100vw - 32px);
  text-align: left;
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 2px 6px rgba(0, 0, 0, 0.4),
    0 40px 90px -10px rgba(0, 0, 0, 0.85);
  animation: modalIn 0.45s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(14px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-title {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-bottom: 30px;
  color: #f4f4f2;
}

.modal-title.alert {
  color: #ff7a70;
  font-size: 18px;
  letter-spacing: -0.01em;
  line-height: 1.35;
  margin-bottom: 12px;
}

.modal-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.66);
  margin-bottom: 30px;
}

.modal-buttons {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.btn {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid transparent;
  border-radius: 10px;
  height: 48px;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 500;
  letter-spacing: -0.005em;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, color 0.18s ease;
}

.btn:active { transform: scale(0.988); }

.btn:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.7);
  outline-offset: 2px;
}

.btn-primary {
  background: #ececea;
  color: #0b0b0c;
  font-weight: 600;
}

.btn-primary:hover { background: #ffffff; }

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.86);
  border-color: rgba(255, 255, 255, 0.14);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.24);
  color: #fff;
}

@media (max-width: 480px) {
  .modal { padding: 30px 22px 22px; }
  .modal-title { font-size: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .modal { animation: none; }
  .btn { transition: none; }
}
