/* ============================================================
   POKÉMON DELUXE — Estilos do MODAL PIX (SyncPay) apenas.
   ------------------------------------------------------------
   Isolado de propósito: a landing page é renderizada pelo bundle
   (Tailwind). Aqui só entra o que o modal de checkout precisa,
   tudo escopado em #pix-modal para não vazar estilo pra página.
   ============================================================ */
#pix-modal {
  --yellow: hsl(45 100% 51%);
  --yellow-d: hsl(45 100% 45%);
  --teal: hsl(168 100% 50%);
  --dark: hsl(0 0% 10%);
}

@keyframes pix-pop-in { 0% { transform: scale(.8); opacity: 0 } 100% { transform: scale(1); opacity: 1 } }
@keyframes pix-pulse  { 50% { opacity: .45 } }
@keyframes pix-spin   { to { transform: rotate(360deg) } }
@keyframes pix-shine  { 0% { background-position: -150% 0 } 100% { background-position: 250% 0 } }

/* ---------- overlay + caixa ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(2,6,23,.7); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center; z-index: 2000; padding: 1rem;
}
.modal-overlay.open { display: flex }
#pix-modal .modal {
  background: linear-gradient(180deg,#0f172a,#1e293b); color: #fff;
  border: 3px solid var(--yellow); border-radius: 1.6rem; max-width: 400px; width: 100%;
  padding: 1.8rem 1.3rem; text-align: center; position: relative;
  animation: pix-pop-in .35s ease both; box-shadow: 0 0 70px -10px rgba(245,158,11,.5);
  max-height: 92vh; overflow-y: auto;
  font-family: Nunito, system-ui, -apple-system, "Segoe UI", sans-serif; line-height: 1.5;
}
#pix-modal .surprise { font-size: .8rem; font-weight: 900; letter-spacing: .1em; color: var(--yellow); text-transform: uppercase }
#pix-modal h3 { font-size: 1.4rem; font-weight: 900; margin: .4rem 0 .2rem; line-height: 1.15 }
#pix-modal .m-sub { color: #cbd5e1; font-weight: 600; font-size: .9rem; margin-bottom: 1.1rem }
#pix-modal .close {
  position: absolute; top: .7rem; right: .9rem; color: #fff; opacity: .6; font-size: 1.4rem;
  font-weight: 900; z-index: 2; border: none; background: none; cursor: pointer; font-family: inherit;
}
#pix-modal .close:hover { opacity: 1 }

/* ---------- botão CTA (só dentro do modal) ---------- */
#pix-modal .cta {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  width: 100%; max-width: 480px; padding: 1.15rem 1.5rem; border-radius: 999px;
  font-weight: 900; font-size: clamp(1.05rem,3.5vw,1.35rem); letter-spacing: .01em;
  color: var(--dark); background: var(--yellow); border: none; cursor: pointer;
  font-family: inherit; text-decoration: none;
  box-shadow: 0 8px 0 var(--yellow-d), 0 14px 24px -8px rgba(245,158,11,.6);
  transition: transform .12s ease, box-shadow .12s ease; text-align: center;
  text-transform: uppercase; overflow: hidden;
}
#pix-modal .cta::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg,transparent 30%,rgba(255,255,255,.55) 50%,transparent 70%);
  background-size: 250% 100%; animation: pix-shine 3.5s linear infinite;
}
#pix-modal .cta:hover { transform: translateY(-2px); box-shadow: 0 10px 0 var(--yellow-d), 0 18px 28px -8px rgba(245,158,11,.7) }
#pix-modal .cta:active { transform: translateY(4px); box-shadow: 0 4px 0 var(--yellow-d) }
#pix-modal .cta--red {
  color: #fff; background: hsl(7 87% 47%);
  box-shadow: 0 8px 0 hsl(7 87% 40%), 0 14px 24px -8px rgba(220,38,38,.5);
}

/* ---------- estados ---------- */
.pix-state { display: flex; flex-direction: column; align-items: center }
.pix-state[hidden] { display: none }
.pix-emoji { font-size: 2.6rem; line-height: 1; margin-bottom: .3rem }
.pix-spinner {
  width: 46px; height: 46px; border-radius: 50%; margin: 1.4rem auto 0;
  border: 4px solid rgba(255,255,255,.18); border-top-color: var(--yellow);
  animation: pix-spin .8s linear infinite;
}

/* ---------- QR + código ---------- */
.pix-qr { width: 220px; max-width: 72vw; height: auto; background: #fff; border-radius: .9rem; padding: .6rem; margin: .4rem auto .2rem; display: block }
.pix-or { color: #cbd5e1; font-weight: 700; font-size: .82rem; margin: .6rem 0 .4rem }
.pix-copy { display: flex; flex-direction: column; gap: .6rem; width: 100% }
.pix-code {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.2);
  color: #fff; border-radius: .7rem; padding: .8rem .9rem; font-size: .78rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
#pix-modal .pix-copy-btn { padding: .9rem 1rem; font-size: 1.05rem }
#pix-modal .pix-check-btn {
  margin-top: .9rem; padding: .9rem 1rem; font-size: 1rem;
  color: #fff; background: hsl(142 71% 45%);
  box-shadow: 0 8px 0 #11823b, 0 14px 24px -8px rgba(22,163,74,.5);
}
.pix-status { display: flex; align-items: center; gap: .5rem; justify-content: center; margin-top: .9rem; color: #cbd5e1; font-weight: 700; font-size: .85rem }
.pix-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--teal); animation: pix-pulse 1.2s ease-in-out infinite }

/* ---------- formulário ---------- */
.pix-form { display: flex; flex-direction: column; gap: .6rem; width: 100%; margin-top: .4rem }
.pix-input {
  width: 100%; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.22);
  color: #fff; border-radius: .7rem; padding: .85rem .9rem; font-size: 1rem; font-weight: 600; font-family: inherit;
}
.pix-input::placeholder { color: #94a3b8 }
.pix-input:focus { outline: none; border-color: var(--yellow); background: rgba(255,255,255,.12) }
#pix-modal .pix-form .cta { margin-top: .3rem; font-size: 1.05rem }
.pix-form-err { color: #fca5a5; font-size: .82rem; font-weight: 700; margin: 0; text-align: left }
.pix-error-msg { color: #fca5a5 }

/* ---------- UPSELL (pós-pagamento) ---------- */
.us-ok {
  width: 100%; box-sizing: border-box; margin-bottom: 1rem;
  background: rgba(22,163,74,.15); border: 1px solid rgba(34,197,94,.45);
  color: #86efac; font-weight: 800; font-size: .78rem; line-height: 1.35;
  border-radius: .7rem; padding: .6rem .7rem;
}
.us-tag {
  display: inline-block; background: var(--yellow); color: #3a2a00;
  font-weight: 900; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em;
  padding: .3rem .8rem; border-radius: 999px;
}
.us-list {
  list-style: none; margin: .2rem 0 1rem; padding: 0; width: 100%;
  display: grid; gap: .45rem; text-align: left;
}
.us-list li {
  display: flex; align-items: flex-start; gap: .55rem;
  font-size: .86rem; font-weight: 700; color: #e2e8f0; line-height: 1.35;
}
.us-ic { flex-shrink: 0; width: 1.15rem; text-align: center; font-size: .9rem }
.us-price {
  width: 100%; box-sizing: border-box; margin-bottom: 1rem;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: 1rem; padding: .8rem;
}
.us-price-label { display: block; color: #cbd5e1; font-weight: 700; font-size: .78rem }
.us-price b {
  display: block; margin-top: .1rem; color: var(--yellow);
  font-size: 2.1rem; font-weight: 900; line-height: 1.05; letter-spacing: -.02em;
}
.us-decline {
  display: block; width: 100%; margin-top: .8rem; padding: .3rem;
  border: none; background: none; cursor: pointer; font-family: inherit;
  color: #94a3b8; font-weight: 700; font-size: .78rem;
  text-decoration: underline; text-underline-offset: 2px; line-height: 1.35;
}
.us-decline:hover { color: #cbd5e1 }

/* ---------- legal + entrega ---------- */
.pix-legal {
  margin-top: 1.1rem; font-size: .66rem; line-height: 1.45; color: #94a3b8; font-weight: 600;
  text-align: left; border-top: 1px solid rgba(255,255,255,.1); padding-top: .8rem;
}
#pix-modal .pix-access-btn { margin-top: .5rem }
.pix-redirect-note { color: #94a3b8; font-size: .78rem; font-weight: 600; margin-top: .7rem }
