/* ──────────────────────────────────────────
   MODAL — LIGHT THEME
────────────────────────────────────────── */
.modal {
  background-color: rgba(30, 27, 75, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  position: fixed;
  left: 0;
  top: 0;
  margin: 0;
  padding: 0;
  border: none;
  width: 100%;
  height: 100%;
  z-index: 20;
  overflow: auto;
  animation: fadeBg 200ms ease;
}

@keyframes fadeBg {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal-prompt {
  box-sizing: border-box;
  text-align: center;
  background: rgba(255, 255, 255, 0.96);
  border-radius: var(--radius-lg);
  padding: 2.2rem 1.6rem;
  width: 90%;
  margin: 8rem auto;
  position: relative;
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--shadow-panel);
  animation: scaleIn 220ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-prompt h1 {
  color: var(--text-primary);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: var(--font-size-4);
  margin: 0 0 0.5rem 0;
}

.modal-prompt p {
  margin: 1.2rem auto;
  white-space: pre-wrap;
  font-size: var(--font-size-1);
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-prompt button {
  display: block;
  margin: 1.3rem auto;
}

.modal-prompt .btn-alt {
  border-color: var(--border-glass);
  background: rgba(124, 58, 237, 0.05);
}

.modal-prompt .modal-prompt-error {
  margin: 1rem auto;
  color: var(--color-error-text);
  background: var(--color-error-box);
  border: 1px solid rgba(220, 38, 38, 0.18);
  padding: 0.6rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-0);
  text-align: center;
}

#modal-loader {
  width: 1rem;
  height: 1rem;
  position: absolute;
  left: calc(50% - 0.5rem);
  bottom: 1rem;
}

@media (min-width: 480px) {
  .modal-prompt { width: 80%; max-width: 35rem; }
}

@media (hover: hover) {
  .modal-prompt .btn-alt:hover {
    background: rgba(124, 58, 237, 0.09);
    border-color: rgba(124, 58, 237, 0.28);
  }
}

@media (hover: none) {}