/* ==============================================================
   shared-modals.css - Modal overlay, dialog, and modal form styles
   ============================================================== */
/* ===== MODALS ===== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 16px;
  backdrop-filter: blur(4px);
}
.modal-overlay.open { display: flex; }

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow);
  animation: modalIn 0.2s ease;
}
.modal.modal-sm { max-width: 420px; }
.modal.modal-lg { max-width: 760px; }

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: 22px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
  transition: all var(--transition);
}
.modal-close:hover { background: var(--bg-3); color: var(--text); }

.modal-body { padding: 20px 24px 24px; }

.modal-text    { color: var(--text); margin-bottom: 8px; }
.modal-subtext { font-size: 13px; color: var(--text-2); line-height: 1.5; margin-bottom: 20px; }

