/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  animation: fadeIn 0.15s var(--ease-out);
}

.modal-overlay.hidden {
  display: none !important;
}

.modal-card {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.04) inset;
  animation: modalEnter 0.25s var(--ease-out);
}

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

.modal-header {
  padding: 22px 26px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}

.modal-header h2 {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.modal-body {
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.modal-footer {
  padding: 18px 26px 22px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.modal-footer .row {
  display: flex;
  gap: 8px;
}
