/* ============ MODAL ============ */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  z-index: 1000; display: flex; align-items: center; justify-content: center;
  animation: fadeIn 0.2s;
}
.modal-box {
  background: white; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.3);
  max-width: 600px; width: 95vw; max-height: 90vh; overflow-y: auto;
  animation: slideUp 0.3s;
}
.modal-header {
  background: linear-gradient(135deg, var(--blue-dark), var(--blue-mid));
  color: white; padding: 16px 20px; border-radius: var(--radius) var(--radius) 0 0;
  display: flex; align-items: center; justify-content: space-between;
  font-family: 'Rajdhani', sans-serif; font-size: 18px; font-weight: 700;
}
.modal-body { padding: 24px; }
.modal-footer { padding: 16px 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: flex-end; gap: 10px; }
.modal-close { background: none; border: none; color: white; font-size: 20px; cursor: pointer; padding: 4px; border-radius: 4px; }
.modal-close:hover { background: rgba(255,255,255,0.2); }

/* ── Responsive modal ─────────────────────────────────────── */
@media (max-width: 768px) {
  .modal-box { width: 100vw !important; max-width: 100vw !important; max-height: 95vh !important; border-radius: 16px 16px 0 0 !important; margin-top: auto; }
  .modal-overlay { align-items: flex-end !important; }
}

@media (max-width: 600px) {
  #modal-overlay > div { width: 96vw !important; max-width: 96vw !important; margin: 8px 4px !important; border-radius: 16px !important; }
}
