:root {
  --bg: #0E0E0F;
  --card: #18181B;
  --card-2: #222226;
  --line: #2E2E33;
  --text: #FAFAFA;
  --muted: #A1A1AA;
  --red: #D62828;
  --red-dark: #B91C1C;
  --gold: #F5B700;
  --ok: #22C55E;
  --radius: 16px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.5 Sora, system-ui, sans-serif; }
a { color: #FCA5A5; }
h1, h2 { margin: 0 0 8px; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 700; }
p { margin: 0 0 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.center { text-align: center; }

/* ---------- estrutura ---------- */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; justify-content: space-between; align-items: center; padding: 8px 16px; background: rgba(14,14,15,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
/* O logo tem muita margem preta: recorta o miolo (mesmo truque do CRM). */
.topbar-brand img { height: 60px; width: 104px; object-fit: cover; display: block; }
.topbar-link { color: var(--text); font-weight: 600; font-size: 14px; text-decoration: none; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; }
.wrap { max-width: 560px; margin: 0 auto; padding: 20px 16px 40px; display: flex; flex-direction: column; gap: 16px; }
.foot { text-align: center; color: var(--muted); font-size: 13px; padding: 8px 16px 32px; }
.foot p { margin: 4px 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card.narrow { max-width: 440px; width: 100%; margin: 0 auto; }
.empty { padding: 48px 20px; }
.eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }

/* ---------- destaque do sorteio ---------- */
.hero { padding: 0; overflow: hidden; }
.hero-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.hero-body { padding: 20px; }
.lead { color: #D4D4D8; }
.pill { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--card-2); color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 10px; }
.pill-live { background: rgba(34,197,94,.15); color: #86EFAC; }
.pill-live::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; vertical-align: 1px; animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.facts div { background: var(--card-2); border-radius: 12px; padding: 12px; }
.facts dt { color: var(--muted); font-size: 12px; }
.facts dd { margin: 2px 0 0; font-weight: 700; font-size: 17px; }
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 6px; }
progress { width: 100%; height: 12px; border: 0; border-radius: 999px; overflow: hidden; background: var(--card-2); appearance: none; }
progress::-webkit-progress-bar { background: var(--card-2); }
progress::-webkit-progress-value { background: linear-gradient(90deg, var(--red), #F97316); border-radius: 999px; }
progress::-moz-progress-bar { background: linear-gradient(90deg, var(--red), #F97316); border-radius: 999px; }

.showcase { background: linear-gradient(160deg, #2A1414, var(--card) 55%); }
.showcase-head { display: flex; gap: 14px; align-items: flex-start; }
.won-counter { margin: 14px 0; padding: 12px 14px; border-radius: 12px; background: rgba(245,183,0,.12); border: 1px solid rgba(245,183,0,.35); color: #FDE68A; text-align: center; font-weight: 600; }
.won-counter strong { font-size: 26px; color: var(--gold); margin-right: 4px; vertical-align: -2px; }
.stock-list, .recent { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.stock-list li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--card-2); font-size: 14px; }
.stock-name { font-weight: 600; }
.stock-info { color: var(--muted); font-size: 13px; text-align: right; white-space: nowrap; }
.stock-info strong { color: #86EFAC; }
.stock-list li.sold-out { opacity: .5; }
.stock-list li.sold-out .stock-name { text-decoration: line-through; }
.recent-title { font-size: 15px; margin: 18px 0 8px; }
.recent li { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.recent li:last-child { border-bottom: 0; }
.recent-when { color: var(--muted); font-size: 12px; white-space: nowrap; }
.teaser-icon { font-size: 40px; line-height: 1; margin: 0; }
.chips { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { background: rgba(245,183,0,.14); color: #FDE68A; border-radius: 999px; padding: 4px 10px; font-size: 13px; font-weight: 600; }

/* ---------- compra ---------- */
.buy-form, .stack { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input, textarea, select { font: inherit; color: var(--text); background: #0E0E0F; border: 1px solid #3F3F46; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
input:focus, textarea:focus { outline: 2px solid var(--red); outline-offset: 1px; border-color: transparent; }
.check { flex-direction: row; align-items: center; gap: 10px; font-weight: 500; }
.check input { width: 22px; height: 22px; min-height: 0; accent-color: var(--red); }
.field-note { margin: -6px 0 0; }
.field-error { margin: -8px 0 0; color: #FCA5A5; font-size: 13px; font-weight: 600; }
input.is-ok { border-color: var(--ok); }
input.is-bad { border-color: var(--red); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.qty { display: grid; grid-template-columns: 56px 1fr 56px; gap: 8px; }
.qty input { text-align: center; font-size: 24px; font-weight: 800; -moz-appearance: textfield; }
.qty input::-webkit-inner-spin-button, .qty input::-webkit-outer-spin-button { -webkit-appearance: none; }
.qty-btn { font: inherit; font-size: 26px; font-weight: 700; background: var(--card-2); color: var(--text); border: 1px solid #3F3F46; border-radius: 12px; cursor: pointer; }
.quick { display: flex; gap: 8px; flex-wrap: wrap; }
.chip-btn { flex: 1; min-height: 44px; font: inherit; font-weight: 700; background: transparent; color: var(--text); border: 1px dashed #52525B; border-radius: 12px; cursor: pointer; }
.chip-btn:hover, .qty-btn:hover { border-color: var(--red); }
.total { font-size: 18px; margin: 0; }
.total strong { font-size: 22px; }
.spins-hint { display: block; font-size: 13px; color: #FDE68A; margin-top: 2px; }
.alert { background: rgba(214,40,40,.15); border: 1px solid rgba(214,40,40,.5); color: #FECACA; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 12px; }
.alert.ok { background: rgba(34,197,94,.12); border-color: rgba(34,197,94,.45); color: #BBF7D0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 12px; border: 1px solid #3F3F46; background: var(--card-2); color: var(--text); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn.primary { background: var(--red); border-color: var(--red); color: #FFF; }
.btn.primary:hover { background: var(--red-dark); }
.btn.block { display: flex; width: 100%; }
.btn.big { min-height: 58px; font-size: 18px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.guarantee .hash, .hash { display: block; word-break: break-all; font-size: 12px; background: #0E0E0F; border: 1px solid var(--line); border-radius: 10px; padding: 10px; color: #D4D4D8; margin: 8px 0 12px; }

/* ---------- pagamento ---------- */
.pay .qr { background: #FFF; padding: 12px; border-radius: 16px; margin: 12px auto; display: block; width: 240px; height: 240px; }
.copy-label { text-align: left; margin-bottom: 12px; }
.copy-label textarea { font-size: 13px; resize: none; color: #D4D4D8; }
.countdown { margin: 14px 0 6px; font-size: 15px; }
.countdown strong { font-variant-numeric: tabular-nums; font-size: 20px; }
.dev-box { margin-top: 16px; padding: 14px; border: 1px dashed var(--gold); border-radius: 12px; }

.paid-check { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 50%; background: var(--ok); color: #FFF; font-size: 34px; font-weight: 800; display: grid; place-items: center; }
.numbers { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.numbers li { background: #FFF; color: #111; font-weight: 800; font-size: 20px; padding: 8px 14px; border-radius: 10px; font-variant-numeric: tabular-nums; box-shadow: 0 3px 0 var(--red); }
.lookup-head h2 { margin-bottom: 6px; }
.lookup-head p { margin: 0; }
.lookup-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.lookup-top p { margin: 0; }
.small-numbers { justify-content: flex-start; margin: 12px 0; }
.small-numbers li { font-size: 16px; padding: 6px 10px; }
.numbers li.winner { background: var(--gold); box-shadow: 0 3px 0 #7A5A00; }
.spins-note { background: rgba(214,40,40,.12); border: 1px solid rgba(214,40,40,.4); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.lookup-prizes ul { list-style: none; padding: 0; margin: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.lookup-prizes li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: var(--card-2); border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.strong { font-weight: 700; }
.spin-cta { background: linear-gradient(135deg, #3A1010, #1E1E22); border-color: #5A1F1F; }
.won { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.won li { background: var(--card-2); border-radius: 12px; padding: 14px; }
.won-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.won-none { color: var(--muted); font-size: 14px; }
.voucher { font-family: ui-monospace, Consolas, monospace; font-size: 24px; font-weight: 800; letter-spacing: .08em; color: var(--gold); margin: 6px 0; }
.tag { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: #3F3F46; color: #D4D4D8; }
.tag.ok { background: rgba(34,197,94,.18); color: #86EFAC; }

/* ---------- roleta ---------- */
.wheel { position: relative; width: min(100%, 360px); margin: 16px auto; }
.wheel-svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 10px 30px rgba(214,40,40,.25)); }
.wheel-rotor { transform-origin: 160px 160px; transform-box: view-box; }
.wheel-label { fill: #FFF; font-family: Sora, system-ui, sans-serif; font-weight: 700; paint-order: stroke; stroke: rgba(0,0,0,.45); stroke-width: 3px; }
.wheel-label.on-light { fill: #111; stroke: rgba(255,255,255,.5); }
.wheel-hub { fill: #FFF; font: 800 13px Sora, system-ui, sans-serif; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 16px solid transparent; border-right: 16px solid transparent; border-top: 30px solid var(--gold); z-index: 2; filter: drop-shadow(0 2px 2px rgba(0,0,0,.6)); }
.spins-left { margin: 4px 0 12px; }
.wheel-rule { margin: 14px 0 0; }
.spin-result { margin-top: 16px; padding: 18px; border-radius: 14px; background: var(--card-2); animation: pop .35s ease-out; }
.spin-result.win { background: linear-gradient(135deg, #3B2A00, #1E1E22); border: 1px solid #7A5A00; }
.spin-result h2 { font-size: 24px; }
@keyframes pop { from { transform: scale(.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- resultado ---------- */
.big-number { font-size: 56px; font-weight: 800; letter-spacing: .04em; color: var(--gold); margin: 8px 0; font-variant-numeric: tabular-nums; }
.result-card { border-color: #5A4500; }
.steps { padding-left: 20px; margin: 0 0 16px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: #D4D4D8; }
.steps code:not(.hash) { font-size: 12px; background: #0E0E0F; padding: 2px 6px; border-radius: 6px; word-break: break-all; }
.verify-out { margin-top: 14px; padding: 14px; border-radius: 12px; background: var(--card-2); font-size: 14px; }
.verify-out .ok { color: #86EFAC; font-weight: 700; }
.verify-out .bad { color: #FCA5A5; font-weight: 700; }
details { margin-top: 14px; }
summary { cursor: pointer; color: #FCA5A5; font-weight: 600; }
.sold-list { font-size: 13px; color: var(--muted); word-break: break-word; }

.prose h2 { font-size: 17px; margin-top: 18px; }
.prose p { color: #D4D4D8; font-size: 15px; }

@media (prefers-reduced-motion: reduce) {
  .pill-live::before, .spin-result { animation: none; }
}
