/* ==================== MODALS ==================== */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 120;
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(7px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #0d0d11;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 20px;
  padding: 26px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.75);
  max-height: 92vh;
  overflow-y: auto;
  animation: fadeSlideIn 0.2s ease;
}

.modal-lg {
  max-width: 580px;
}

.modal-crimson {
  border-color: rgba(230, 0, 18, 0.45);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  border: none;
  color: var(--text-soft);
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.modal-close:hover {
  background: var(--primary);
  color: #fff;
}

.modal-title {
  font-family: 'Anton', sans-serif;
  font-size: 1.75rem;
  text-transform: uppercase;
  line-height: 1.08;
  margin-top: 8px;
}

.modal-brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.modal-logo {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

/* Form */
.form-stack {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-soft);
}

.field input {
  background: #060609;
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease;
}

.field input:focus {
  border-color: var(--primary);
}

.form-error {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.14);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 0.82rem;
  font-weight: 600;
}

/* Checkout PIX */
.modal-price {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.8rem;
  font-weight: 900;
  color: var(--emerald);
  margin: 6px 0 8px;
}

.delivery-options {
  display: grid;
  gap: 10px;
  margin: 16px 0;
}

.radio-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.radio-card:has(input:checked) {
  border-color: var(--primary);
  background: var(--primary-soft);
}

.radio-card input {
  margin-top: 4px;
  accent-color: var(--primary);
}

.radio-card strong {
  display: block;
  font-size: 0.88rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.pix-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.badge-pending {
  font-size: 0.76rem;
  font-weight: 800;
  color: #fde68a;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
}

.pix-box {
  display: grid;
  grid-template-columns: 185px 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.pix-qr-img {
  width: 185px;
  height: 185px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
}

.pix-copy-wrap {
  display: grid;
  gap: 8px;
}

.pix-copy-wrap textarea {
  width: 100%;
  background: #060609;
  color: #fff;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 8px 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.74rem;
  resize: none;
}

.approved-box {
  margin-top: 16px;
  background: rgba(34, 197, 94, 0.14);
  border: 1px solid rgba(34, 197, 94, 0.38);
  border-radius: 14px;
  padding: 16px;
  color: #bbf7d0;
}

.approved-box h4 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

/* VIP Benefits & Rules Lists */
.vip-list {
  list-style: none;
  display: grid;
  gap: 8px;
  margin-top: 16px;
  max-height: 320px;
  overflow-y: auto;
}

.vip-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-soft);
}

.vip-check {
  color: var(--primary);
  font-weight: 900;
}

/* News Detail Modal */
.modal-news-cover {
  width: calc(100% + 52px);
  margin: -26px -26px 18px;
  height: 210px;
  object-fit: cover;
  display: block;
}

.news-modal-body {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--text-soft);
  white-space: pre-line;
  line-height: 1.65;
}

@media (max-width: 600px) {
  .pix-box {
    grid-template-columns: 1fr;
  }
  .pix-qr-img {
    margin: 0 auto;
  }
}
