/* Checkout nativo da LP de vendas e da página de compra direta (/comprar/),
   visual portado do checkout dos ingressos (modelo validado no Problemas no
   Paraíso e evoluído aqui). Vive em checkout/ por ser compartilhado.
   Tudo com prefixo nc- e variáveis próprias (--nc-*) pra não colidir com o
   CSS do import do Framer nem com as classes pnp- da LP. */

.nc-overlay {
  position: fixed;
  inset: 0;
  /* Acima do modal de pedido da LP (2147483000). */
  z-index: 2147483200;
  background: rgba(8, 7, 9, .62);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;

  --nc-fire: #28AD59;
  --nc-fire-bright: #58C978;
  --nc-fire-deep: #117A39;
  --nc-green-bright: #3BA75C;
  --nc-green: #218744;
  --nc-green-deep: #0C5C2A;
  --nc-green-glow: rgba(12, 92, 42, .46);
  --nc-border: rgba(255, 255, 255, .08);
  --nc-border-strong: rgba(255, 255, 255, .14);
  --nc-surface-2: #1C1A20;
  --nc-text: #F4EFEA;
  --nc-text-muted: rgba(244, 239, 234, .62);
  --nc-text-faint: rgba(244, 239, 234, .40);
  --nc-font: "Inter Display", "Inter", system-ui, sans-serif;

  font-family: var(--nc-font);
  color: var(--nc-text);
}
.nc-overlay[hidden] { display: none; }
body.nc-open { overflow: hidden; }

.nc-card {
  background: rgba(24, 22, 27, .92);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  backdrop-filter: blur(28px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, .20);
  border-radius: 22px;
  padding: 38px 34px;
  max-width: 440px;
  width: 100%;
  position: relative;
  margin: auto;
  box-shadow: 0 30px 70px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.nc-close {
  position: absolute;
  top: 14px;
  right: 18px;
  background: none;
  border: none;
  color: var(--nc-text-muted);
  font-size: 28px;
  cursor: pointer;
  line-height: 1;
}
.nc-header { text-align: center; margin-bottom: 18px; }
.nc-eyebrow {
  display: block;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--nc-fire-bright);
  margin-bottom: 10px;
}
.nc-title { font-size: 1.4rem; font-weight: 800; line-height: 1.12; margin: 0; color: var(--nc-text); }

.nc-step[hidden], .nc-view[hidden] { display: none !important; }

/* ===== Resumo do pedido ===== */
.nc-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 16px;
  margin-bottom: 20px;
  background: var(--nc-surface-2);
  border: 1px solid var(--nc-border);
  border-radius: 14px;
}
.nc-summary[hidden] { display: none !important; }
.nc-summary-capa { flex: 0 0 auto; width: 44px; height: 66px; object-fit: cover; border-radius: 6px; border: 1px solid var(--nc-border-strong); }
.nc-summary-capa[hidden] { display: none; }
.nc-summary-capa-icone { width: 44px; height: 44px; object-fit: contain; border: none; border-radius: 0; }
.nc-summary-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nc-summary-name { font-weight: 700; font-size: .98rem; }
.nc-summary-sub { font-size: .8rem; color: var(--nc-text-muted); }
/* Linha do cupom aplicado: dourado é vantagem editorial, nunca ação (regra
   do styles.css da LP de ingressos). */
.nc-summary-cupom { font-size: .78rem; font-weight: 700; color: #E8B80E; margin-top: 2px; }
.nc-summary-cupom[hidden] { display: none !important; }
/* Preço em linha própria, largura toda: a frase padrão (parcelado + à
   vista + desconto) não cabe na coluna da direita no celular. */
.nc-summary-value { font-weight: 800; color: var(--nc-fire-bright); flex-basis: 100%; display: flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; }
.nc-summary-parcelado { white-space: nowrap; }
.nc-summary-avista { font-size: .78rem; font-weight: 600; color: var(--nc-text-muted); line-height: 1.35; }

/* ===== Recibo (02/09/2026): itens, total por método, selos ===== */
.nc-recibo { display: block; padding: 0; overflow: hidden; }
.nc-rec-linha { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--nc-border); }
.nc-rec-linha .nc-summary-capa { width: 36px; height: 54px; }
.nc-rec-linha .nc-summary-capa-icone { width: 36px; height: 36px; }
.nc-rec-linha .nc-summary-name { font-size: .92rem; }
.nc-rec-bump .nc-summary-name { font-weight: 600; }
.nc-rec-preco { flex: 0 0 auto; font-weight: 600; font-size: .9rem; color: var(--nc-text-muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.nc-rec-principal .nc-rec-preco { color: var(--nc-text); }
.nc-rec-total { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 11px 14px; background: rgba(255, 255, 255, .03); }
.nc-rec-total-l { font-size: .74rem; color: var(--nc-text-muted); line-height: 1.3; }
.nc-rec-total-l b { display: block; font-size: .8rem; font-weight: 700; color: var(--nc-text); }
.nc-recibo .nc-summary-value { flex-basis: auto; align-items: flex-end; text-align: right; font-size: 1.05rem; }
.nc-recibo .nc-summary-avista { font-weight: 500; }
.nc-rec-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 9px 14px 11px; border-top: 1px solid var(--nc-border); }
.nc-rec-chip { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--nc-text-muted); border: 1px solid var(--nc-border-strong); border-radius: 999px; padding: 3px 8px; }
.nc-rec-chip-verde { color: var(--nc-fire-bright); border-color: rgba(88, 201, 120, .4); }
@media (max-width: 420px) {
  .nc-rec-total { flex-direction: column; align-items: flex-start; }
  .nc-recibo .nc-summary-value { align-items: flex-start; text-align: left; }
}

/* ===== Formulários ===== */
.nc-form { display: flex; flex-direction: column; gap: 16px; }
.nc-group { display: flex; flex-direction: column; gap: 6px; flex: 1; }
.nc-group label { font-size: .8rem; font-weight: 600; color: var(--nc-text-muted); }
.nc-group input,
.nc-group select {
  background: rgba(255, 255, 255, .05);
  border: 1px solid var(--nc-border-strong);
  border-radius: 10px;
  padding: 9px 14px;
  font-family: var(--nc-font);
  font-size: .98rem;
  color: var(--nc-text);
  outline: none;
}
.nc-group input:focus,
.nc-group select:focus { border-color: var(--nc-fire); }
/* Dropdown aberto usa o widget nativo do sistema: sem cor explícita nas
   options, tema claro do SO = texto branco em fundo branco. */
.nc-group select option { background: #1a1614; color: var(--nc-text); }
.nc-tel-row { display: flex; gap: 8px; }
.nc-tel-row input { flex: 1; min-width: 0; }
.nc-tel-pais {
  flex: 0 0 auto;
  max-width: 118px;
  background: rgba(255, 255, 255, .05)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F4EFEA' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round' opacity='.65'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E")
    right 9px center / 13px no-repeat;
  border: 1px solid var(--nc-border-strong);
  border-radius: 10px;
  padding: 9px 28px 9px 10px;
  font-family: var(--nc-font);
  font-size: .98rem;
  color: var(--nc-text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: border-color .18s ease;
}
.nc-tel-pais:hover { border-color: rgba(255, 255, 255, .28); }
.nc-tel-pais:focus { border-color: var(--nc-fire); }
.nc-tel-pais option { color: #1a1a1a; }
.nc-privacy { text-align: center; font-size: .76rem; color: var(--nc-text-faint); margin: 0; }
.nc-erro {
  background: rgba(220, 38, 38, .12);
  border: 1px solid rgba(220, 38, 38, .4);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: .88rem;
  color: #fca5a5;
}
.nc-erro[hidden] { display: none !important; }

/* ===== Botões ===== */
.nc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--nc-font);
  font-weight: 700;
  font-size: .88rem;
  letter-spacing: .01em;
  padding: 13px 26px;
  border-radius: 40px;
  min-height: 44px; /* piso de área tocável */
  border: none;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  position: relative;
  text-decoration: none;
}
.nc-btn-fire {
  background: linear-gradient(135deg, var(--nc-green-bright), var(--nc-green) 55%, var(--nc-green-deep));
  color: #fff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
  box-shadow: 0 8px 24px -6px var(--nc-green-glow), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.nc-btn-fire:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4BBE6D, #2C9A50 55%, var(--nc-fire-deep));
  box-shadow: 0 14px 32px -8px var(--nc-green-glow), inset 0 1px 0 rgba(255, 255, 255, .3);
}
.nc-btn-fire:disabled { opacity: .7; cursor: default; transform: none; }
.nc-btn-ghost {
  background: transparent;
  color: var(--nc-text);
  border: 1px solid var(--nc-border-strong);
}
.nc-btn-ghost:hover { border-color: var(--nc-fire); color: var(--nc-fire-bright); }
.nc-submit { width: 100%; margin-top: 6px; }
/* Voltar como botão de verdade, com contorno (Guilherme, 02/09): como texto
   apagado ninguém achava a volta do passo 3. */
.nc-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 10px;
  padding: 11px 22px;
  background: transparent;
  border: 1px solid var(--nc-border-strong);
  border-radius: 40px;
  color: var(--nc-text);
  font-family: var(--nc-font);
  font-weight: 700;
  font-size: .86rem;
  cursor: pointer;
  text-align: center;
  transition: border-color .15s, color .15s;
}
.nc-back:hover { border-color: var(--nc-fire); color: var(--nc-fire-bright); }

/* ===== Formas de pagamento ===== */
.nc-pay-method {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 4px 0 14px;
}
.nc-pay-opt {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--nc-border-strong);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.nc-pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.nc-pay-opt-full { grid-column: 1 / -1; }
/* `.nc-group` é flex, e display:flex vence o atributo hidden do navegador: o
   grupo do CPF ficava na tela mesmo escondido pelo JS no cartão
   internacional (visto no sandbox em 02/09/2026). */
.nc-group[hidden] { display: none; }
.nc-pay-name { font-weight: 700; color: var(--nc-text); }
.nc-pay-name .nc-pix-logo { width: 1em; height: 1em; vertical-align: -0.12em; margin-right: 2px; }
.nc-pay-desc { font-size: .8rem; color: var(--nc-text-muted); }
.nc-pay-valor { margin-top: 4px; font-weight: 800; color: var(--nc-fire-bright); font-size: 1.05rem; }
.nc-pay-valor[hidden] { display: none !important; }
.nc-pay-opt-active {
  border-color: var(--nc-fire);
  background: rgba(40, 173, 89, .08);
}
#nc-cpf-group { margin: 0 0 14px; }

/* ===== PIX / boleto / sucesso ===== */
.nc-view { text-align: center; }
.nc-instru { color: var(--nc-text-muted); font-size: .92rem; margin: 4px 0 16px; }
.nc-pix-qr {
  width: 220px;
  height: 220px;
  background: #fff;
  padding: 10px;
  border-radius: 14px;
  display: block;
  margin: 0 auto 16px;
}
.nc-copy { width: 100%; margin-bottom: 14px; }
.nc-pix-status {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  color: var(--nc-fire-bright);
  margin-bottom: 6px;
}
.nc-spinner {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(40, 173, 89, .3);
  border-top-color: var(--nc-fire);
  animation: nc-spin .8s linear infinite;
}
@keyframes nc-spin { to { transform: rotate(360deg); } }
.nc-valor-final { color: var(--nc-text); font-weight: 700; margin: 0 0 10px; }
#nc-pix-recheck[hidden], #nc-boleto-copy[hidden] { display: none !important; }
.nc-sucesso-icone {
  width: 64px;
  height: 64px;
  margin: 6px auto 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--nc-green-bright), var(--nc-green-deep));
  box-shadow: 0 10px 30px -8px var(--nc-green-glow);
}
#nc-step-sucesso .nc-title { margin-bottom: 10px; }

/* ===== Mobile ===== */
@media (max-width: 560px) {
  .nc-overlay { padding: 12px; }
  .nc-card { padding: 28px 20px; }
  .nc-pay-method { grid-template-columns: 1fr 1fr; }
}

/* Nota do plano mensal no passo de pagamento: a diferença entre cartão
   (renova sozinho) e PIX/boleto (30 dias avulsos) precisa ser dita na hora
   da escolha, não só no e-mail depois. */
.nc-nota {
  margin: -4px 0 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--nc-text-muted);
  font-size: 12.5px;
  line-height: 1.45;
}
.nc-nota[hidden] { display: none !important; }

/* ===== Order bumps dentro do checkout (página de compra direta) ===== */
.nc-bumps { margin: 0 0 6px; }
.nc-bumps[hidden] { display: none !important; }
.nc-bumps-head { display: flex; justify-content: center; margin-bottom: 10px; }
.nc-bumps-titulo { font-weight: 800; font-size: .95rem; }
.nc-bumps-opcional { font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--nc-text-faint); }
.nc-bumps-lista { display: flex; flex-direction: column; gap: 8px; }
.nc-bump {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--nc-border-strong);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.nc-bump input { position: absolute; opacity: 0; pointer-events: none; }
.nc-bump-check { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--nc-border-strong); position: relative; }
.nc-bump-ativo { border-color: var(--nc-fire); background: rgba(40, 173, 89, .08); }
.nc-bump-ativo .nc-bump-check { background: var(--nc-fire); border-color: var(--nc-fire); }
.nc-bump-ativo .nc-bump-check::after { content: ''; position: absolute; left: 5px; top: 1.5px; width: 5px; height: 10px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg); }
.nc-bump-capa { flex: 0 0 auto; width: 40px; height: 60px; object-fit: cover; border-radius: 5px; border: 1px solid var(--nc-border); }
.nc-bump-info { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.nc-bump-nome { font-weight: 700; font-size: .9rem; line-height: 1.2; }
.nc-bump-desc { font-size: .76rem; color: var(--nc-text-muted); line-height: 1.35; }
.nc-bump-preco { flex: 0 0 auto; font-weight: 800; font-size: .92rem; color: var(--nc-fire-bright); }
/* Resumo no celular: com a capa ao lado, o valor desce para a própria linha
   em vez de espremer o nome do produto em três linhas. */
@media (max-width: 440px) {
  .nc-summary { flex-wrap: wrap; }
  .nc-summary-value { flex-basis: 100%; text-align: right; }
}
