/* --------------------------------------------------------------------------
   Modais Premium (--radius-xl: 16px)
   -------------------------------------------------------------------------- */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
  background: rgba(24, 51, 45, 0.48);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.modal-backdrop.open {
  display: flex;
  opacity: 1;
}

.modal-card {
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: var(--space-5);
  background: var(--color-surface);
  border: 1px solid var(--color-border-card);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  box-shadow: var(--shadow-modal);
  animation: pj-modal-up 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes pj-modal-up {
  from {
    transform: translateY(20px);
    opacity: 0.8;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--color-border-card);
}

.modal-header h3 {
  margin: 0;
  font-size: var(--text-section-title);
  font-weight: 700;
  color: var(--color-text-heading);
}

.modal-header .btn-close {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 1.1rem;
  line-height: 1;
  transition: all 0.15s ease;
}

.modal-header .btn-close:hover {
  color: var(--color-text-main);
  background: var(--color-surface-hover);
}
