/* ══════════════════════════════════════════════════════════════════════════════
   Pix manual do checkout de evento (migration 078) — tela /pagamento/pix/{id}.

   A tela tem três estados e o CSS acompanha: aguardando o Pix (contagem viva, que
   fica vermelha e pulsa perto do fim), em análise (verde-oliva, calmo — a vaga já
   está garantida), e o desfecho. A contagem é o elemento mais pesado da página de
   propósito: é a informação que muda a decisão de quem está lendo.
   ══════════════════════════════════════════════════════════════════════════════ */

.pix-wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; }

.pix-card { background: #fff; border-radius: 22px; box-shadow: 0 4px 24px rgba(0,0,0,0.08); overflow: hidden; }

.pix-head { background: linear-gradient(135deg, #ddb1f7 0%, #ff6e1f 100%); padding: 22px 24px 20px; color: #fff; }
.pix-badge { display: inline-block; background: rgba(255,255,255,0.22); border-radius: 9999px; padding: 5px 13px; font-size: 11px; font-weight: 700; letter-spacing: 0.04em; }
.pix-titulo { font-family: 'Zodiak', serif; font-size: 22px; font-weight: 700; margin: 10px 0 2px; color: #fff; }
.pix-valor { font-family: 'Zodiak', serif; font-size: 32px; font-weight: 700; color: #fff; }

/* ── Contagem das 12h ── */
.pix-contagem { text-align: center; padding: 18px 24px; background: #f6f2e3; border-bottom: 1px solid rgba(0,0,0,0.05); }
.pix-contagem-lbl { font-size: 11.5px; color: #8499b7; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
.pix-contagem-relogio { font-family: 'Zodiak', serif; font-size: 40px; font-weight: 700; color: #2b2318; line-height: 1.1; margin: 4px 0 6px; font-variant-numeric: tabular-nums; }
.pix-contagem-sub { font-size: 12px; color: #6b5f50; max-width: 340px; margin: 0 auto; line-height: 1.45; }
.pix-contagem.urgente { background: #fff3ec; }
.pix-contagem.urgente .pix-contagem-relogio { color: #e8473f; animation: pix-pulsa 1.6s ease-in-out infinite; }

/* A VM de dev não tem GPU: animar só `opacity` (composited) em UM elemento pequeno, e desligar
   inteiro em prefers-reduced-motion. Ver a lição do fundo animado do .app-shell. */
@keyframes pix-pulsa { 0%, 100% { opacity: 1; } 50% { opacity: 0.55; } }
@media (prefers-reduced-motion: reduce) {
    .pix-contagem.urgente .pix-contagem-relogio { animation: none; }
}

/* ── Passos (pagar / anexar) ── */
.pix-passo { padding: 20px 24px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.pix-passo:last-child { border-bottom: none; }
.pix-passo.colapsado { background: #fbfaf6; }
.pix-passo-tit { font-family: 'Zodiak', serif; font-size: 16px; font-weight: 700; color: #2b2318; margin-bottom: 8px; }
.pix-passo-sub { font-size: 13px; color: #6b5f50; line-height: 1.5; margin: 0 0 14px; }

.pix-qr-area { text-align: center; margin-bottom: 16px; }
.pix-qr { width: 210px; height: 210px; border-radius: 14px; border: 1.5px solid rgba(132,153,183,0.25); background: #fff; padding: 8px; }
.pix-qr.placeholder { display: inline-flex; align-items: center; justify-content: center; font-size: 12px; color: #8499b7; background: #f6f2e3; }
.pix-qr-dica { font-size: 12px; color: #8499b7; margin-top: 8px; line-height: 1.45; }

.pix-copia-lbl { font-size: 11px; font-weight: 600; color: #8499b7; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.pix-copia { display: flex; align-items: center; gap: 10px; background: #f6f2e3; border-radius: 12px; padding: 10px 12px; }
.pix-copia code { flex: 1; min-width: 0; font-size: 11.5px; color: #6b5f50; word-break: break-all; line-height: 1.4; }

.pix-dados { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.pix-dado { flex: 1; min-width: 120px; background: #f6f2e3; border-radius: 12px; padding: 10px 12px; }
.pix-dado span { display: block; font-size: 10.5px; color: #8499b7; text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.pix-dado strong { display: block; font-size: 14px; color: #2b2318; margin-top: 2px; word-break: break-all; }
.pix-nota { font-size: 11.5px; color: #8499b7; line-height: 1.5; margin: 10px 0 0; }

/* ── Comprovante em análise ── */
.pix-analise { display: flex; gap: 14px; align-items: flex-start; padding: 18px 24px; background: rgba(180,181,54,0.12); border-bottom: 1px solid rgba(0,0,0,0.05); }
.pix-analise-ico { font-size: 26px; flex-shrink: 0; }
.pix-analise-tit { font-family: 'Zodiak', serif; font-size: 17px; font-weight: 700; color: #2b2318; }
.pix-analise-sub { font-size: 13px; color: #5c5e00; line-height: 1.5; margin-top: 3px; }

.pix-anexo-preview { padding: 16px 24px 0; }
.pix-anexo-preview img { max-width: 100%; max-height: 320px; border-radius: 14px; border: 1.5px solid rgba(132,153,183,0.25); display: block; margin: 0 auto; }

/* ── Desfechos ── */
.pix-final { text-align: center; padding: 30px 24px; }
.pix-final-ico { font-size: 40px; margin-bottom: 8px; }
.pix-final-tit { font-family: 'Zodiak', serif; font-size: 21px; font-weight: 700; color: #2b2318; margin-bottom: 6px; }
.pix-final-sub { font-size: 13.5px; color: #6b5f50; line-height: 1.55; max-width: 380px; margin: 0 auto 18px; }
.pix-final.ok .pix-final-tit { color: #5c5e00; }
.pix-final.erro .pix-final-tit { color: #2b2318; }

@media (max-width: 480px) {
    .pix-wrap { padding: 12px 10px 32px; }
    .pix-head, .pix-passo, .pix-contagem, .pix-analise { padding-left: 16px; padding-right: 16px; }
    .pix-qr { width: 180px; height: 180px; }
}
