/* ============================================================
   components/modals.css
   ============================================================ */

.plx-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.8);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: var(--plx-z-modal);
  display: none;
  align-items: center;
  justify-content: center;
}

.plx-modal-backdrop.plx-open {
  display: flex;
}

.plx-modal {
  background: var(--plx-bg-card);
  border-radius: var(--plx-radius-lg);
  border: 1px solid var(--plx-border-strong);
  box-shadow: var(--plx-shadow-strong);
  width: min(520px, 92%);
  max-height: 90vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: plx-modal-in 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.plx-modal-header, .plx-modal-footer {
  padding: var(--plx-space-4);
  border-bottom: 1px solid var(--plx-border-subtle);
}

.plx-modal-footer {
  border-top: 1px solid var(--plx-border-subtle);
  border-bottom: none;
  display: flex;
  justify-content: flex-end;
  gap: var(--plx-space-2);
}

.plx-modal-body {
  padding: var(--plx-space-4);
  overflow-y: auto;
}

@keyframes plx-modal-in {
  from { opacity: 0; transform: scale(0.95) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}