:root {
  --fundo: #0f1013;
  --cartao: #17191e;
  --linha: #262930;
  --texto: #f2f3f5;
  --sub: #a3a8b3;
  --apagado: #6b707b;
  --marca: #e5484d;
  --marca-escura: #b8383c;
  --verde: #3fb980;
  --erro: #ff6b6b;
  --raio: 14px;
}

* { box-sizing: border-box; }

html, body { margin: 0; }

body {
  background: radial-gradient(1200px 600px at 50% -200px, #2a1416 0%, var(--fundo) 60%) fixed, var(--fundo);
  color: var(--texto);
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}

.loja {
  max-width: 560px;
  margin: 0 auto;
  padding: 28px 16px 40px;
}

.topo { margin-bottom: 18px; }

.marca {
  font-weight: 800;
  letter-spacing: .14em;
  font-size: 12px;
  color: var(--sub);
}
.marca span { color: var(--marca); }

h1 {
  font-size: 30px;
  margin: 6px 0 6px;
  letter-spacing: -.02em;
}

.sub { color: var(--sub); margin: 0; }

.cartao {
  background: var(--cartao);
  border: 1px solid var(--linha);
  border-radius: var(--raio);
  padding: 18px;
  margin-top: 14px;
}

h2 {
  font-size: 16px;
  margin: 0 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.num {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--marca);
  color: #fff;
  font-size: 13px;
}

.dica { color: var(--apagado); font-size: 13px; margin: 6px 0 12px; }

.linha { display: flex; gap: 8px; }

input, textarea {
  width: 100%;
  background: #0f1115;
  color: var(--texto);
  border: 1px solid var(--linha);
  border-radius: 10px;
  padding: 12px 14px;
  font: inherit;
}
input:focus, textarea:focus { outline: 2px solid var(--marca); outline-offset: 0; border-color: transparent; }

textarea { resize: none; font-size: 12px; word-break: break-all; }

.botao {
  appearance: none;
  border: 0;
  border-radius: 10px;
  background: var(--marca);
  color: #fff;
  font: inherit;
  font-weight: 700;
  padding: 12px 18px;
  cursor: pointer;
  white-space: nowrap;
}
.botao:hover { background: var(--marca-escura); }
.botao:disabled { opacity: .55; cursor: default; }
.botao.fantasma { background: transparent; color: var(--sub); border: 1px solid var(--linha); }
.botao.fantasma:hover { color: var(--texto); }

.erro { color: var(--erro); font-size: 13px; margin: 10px 0 0; }

.conta-ok {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 4px;
}

.rotulo { color: var(--apagado); font-size: 12px; text-transform: uppercase; letter-spacing: .06em; }
.valor { font-size: 18px; font-weight: 700; }
.valor.verde { color: var(--verde); }

.pacotes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.pacote {
  position: relative;
  text-align: left;
  background: #12141a;
  border: 1px solid var(--linha);
  border-radius: 12px;
  padding: 14px;
  color: var(--texto);
  font: inherit;
  cursor: pointer;
  transition: border-color .15s, transform .15s;
}
.pacote:hover { border-color: var(--marca); transform: translateY(-1px); }
.pacote:disabled { opacity: .55; cursor: default; transform: none; }
.pacote .pts { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.pacote .pts small { font-size: 12px; color: var(--sub); font-weight: 600; }
.pacote .bonus { color: var(--verde); font-size: 12px; font-weight: 600; min-height: 17px; }
.pacote .preco { margin-top: 8px; font-weight: 700; }
.pacote .fita {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(63, 185, 128, .15);
  color: var(--verde);
  font-size: 11px;
  font-weight: 700;
  border-radius: 99px;
  padding: 2px 8px;
}

.resumo { display: flex; justify-content: space-between; margin-bottom: 14px; }
.direita { text-align: right; }

.pix { display: flex; gap: 14px; align-items: flex-start; }
.pix img {
  width: 168px;
  height: 168px;
  border-radius: 10px;
  background: #fff;
  padding: 8px;
  flex: none;
}
.pix-lado { flex: 1; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.link { color: var(--sub); font-size: 13px; }

.status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #12141a;
  color: var(--sub);
  font-weight: 600;
}
.ponto {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5a83a;
  animation: pulso 1.4s ease-in-out infinite;
}
.status.vencido .ponto { background: var(--erro); animation: none; }
@keyframes pulso { 50% { opacity: .3; } }

#voltar-pacotes { margin-top: 12px; }

.ok { text-align: center; }
.ok h2 { justify-content: center; font-size: 20px; }
.selo {
  width: 56px;
  height: 56px;
  margin: 4px auto 10px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(63, 185, 128, .15);
  color: var(--verde);
  font-size: 28px;
  font-weight: 800;
}

.rodape { color: var(--apagado); font-size: 12px; text-align: center; margin-top: 22px; }

@media (max-width: 420px) {
  h1 { font-size: 26px; }
  .pix { flex-direction: column; align-items: stretch; }
  .pix img { align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ponto { animation: none; }
  .pacote { transition: none; }
}

/* ---- o aceite dos termos e a escolha do meio de pagamento ---- */
.termos { display: flex; gap: 10px; align-items: flex-start; margin: 4px 0 14px; font-size: 14px; line-height: 1.45; cursor: pointer; }
.termos input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.termos a { color: inherit; text-decoration: underline; }
.cupom { margin: 0 0 10px; }
.cupom input { text-transform: uppercase; }
.cupom-ok { margin: 0 0 14px; font-size: 14px; color: #ff5c7c; font-weight: 700; }
.pacote .preco .antes { opacity: .5; font-weight: 400; font-size: .85em; }
.pacote .cupom-extra { font-size: 12px; color: #ff5c7c; font-weight: 700; min-height: 1em; }
.metodos { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 0 0 14px; font-size: 14px; }
.metodos .dica { width: 100%; margin: 0; }
/* O `hidden` TEM DE VENCER: sem isto o `display: flex` acima mostrava a escolha
   do cartão mesmo com ele desligado na API. Vale para tudo o que se esconde. */
[hidden] { display: none !important; }
.termos-pagina h2 { margin-top: 18px; }
.termos-pagina ul { padding-left: 20px; }
