/* BRASUL 2.0 — zero, premium, mobile-first. Sem legado. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,700;9..144,900&family=Inter:wght@400;600;700;800&display=swap');
:root {
  --paper: #faf7f0; --card: #fff; --ink: #1a1712; --muted: #6f6558;
  --line: #e9e1d0; --brand: #8c1a1a; --brand-deep: #5f0f0f;
  --gold: #b8860b; --gold-bg: #fdf6e0; --green: #166534; --green-bg: #e7f5ec;
  --navy: #141a24; --r: 18px; --max: 1120px; --tab-h: 70px;
  --sh-sm: 0 1px 3px rgba(26,23,18,.08), 0 4px 14px rgba(26,23,18,.07);
  --sh-md: 0 10px 34px rgba(26,23,18,.14);
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 16.5px; scroll-behavior: smooth; }
html, body { overflow-x: hidden; max-width: 100vw; }
body { font-family: Inter, system-ui, sans-serif; background: var(--paper); color: var(--ink); line-height: 1.6; padding-bottom: var(--tab-h); }
h1, h2, h3, .serif { font-family: Fraunces, Georgia, serif; letter-spacing: -0.01em; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font-family: inherit; }
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 14px; }

/* Topo */
.top { position: sticky; top: 0; z-index: 200; background: rgba(20,26,36,.97); color: #fff; border-bottom: 1px solid rgba(255,255,255,.1); }
.top-in { max-width: var(--max); margin: 0 auto; padding: 10px 14px; display: flex; align-items: center; gap: 10px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo-mark { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.logo-mark img { width: 34px; height: 34px; object-fit: contain; }
.legend { display: flex; gap: 12px; flex-wrap: wrap; }
.legend i { display: inline-block; width: 15px; height: 15px; border-radius: 5px; margin-right: 5px; vertical-align: -2px; border: 1.5px solid #c9bfa4; background: #fff; }
.win-ico .material-symbols-outlined { font-size: 1.4rem; color: var(--gold); }
.logo small { display: block; font-size: .72rem; color: rgba(255,255,255,.65); font-family: Inter, sans-serif; }
.logo strong { font-size: .9rem; }
/* Grupo do WhatsApp */
.group-card { background: linear-gradient(135deg, #0f3d22 0%, #166534 100%); color: #fff; border-radius: var(--r); padding: 20px 16px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sh-sm); }
@media (min-width: 768px) {
  .group-card { flex-direction: row; align-items: center; padding: 22px 24px; }
  .group-tx { flex: 1; }
  .group-card .btn { width: auto; white-space: nowrap; }
}
.group-ico { width: 52px; height: 52px; border-radius: 16px; background: rgba(255,255,255,.14); display: flex; align-items: center; justify-content: center; font-size: 1.7rem; }
.group-tx h2 { font-size: 1.3rem; color: #fff; }
.group-tx p { color: rgba(255,255,255,.85); font-size: 0.95rem; margin-top: 4px; }
.btn-group { background: #fff; color: #0f3d22; }
.btn-group:active { background: #e7f5ec; }

/* Respiro dos botões em relação ao conteúdo acima */
#zapBtn, #ajuda .btn, #copyBtn, #mineBox { margin-top: 14px; }
.sec .btn { margin-top: 4px; }
.buybar .btn, .hero-cta .btn { margin-top: 0; }

/* Navegação por abas (app) */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 300; background: #fff; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(0,0,0,.08); }
.tabs a { text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 2px 7px; min-height: var(--tab-h); }
.tabs a.on { color: var(--brand); }
.tabs .material-symbols-outlined { font-size: 1.55rem; }

/* Herói */
.hero { background: radial-gradient(120% 100% at 50% 0%, #232f45 0%, var(--navy) 60%), var(--navy); color: #fff; }
.hero-in { max-width: var(--max); margin: 0 auto; padding: 30px 14px 22px; }
.kicker { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: .78rem; font-weight: 700; padding: 6px 12px; border-radius: 100px; }
.hero h1 { font-size: 2rem; line-height: 1.08; margin: 12px 0 8px; font-weight: 900; }
.hero h1 em { color: #f2b8b5; font-style: normal; }
.hero p { color: rgba(255,255,255,.82); font-size: 1rem; max-width: 36rem; }
.hero-cta { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: none; border-radius: 14px; min-height: 56px; padding: 14px 20px; font-size: 1.03rem; font-weight: 800; cursor: pointer; text-decoration: none; width: 100%; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:active { background: var(--brand-deep); }
.btn-white { background: #fff; color: var(--ink); }
.btn-dark { background: var(--navy); color: #fff; }
/* Destaque do último ganhador */
/* Destaque do último ganhador — card grande, texto completo */
.spotlight { background: #fffdf6; border: 1.5px solid #e3c86e; border-radius: 18px; overflow: hidden; box-shadow: var(--sh-sm); color: var(--ink); margin-top: 16px; }
.spot-photo { position: relative; }
.spot-photo img { width: 100%; height: 180px; object-fit: cover; background: #eee4cf; }
.spot-flag { position: absolute; left: 12px; top: 12px; background: var(--gold, #b8860b); color: #fff; font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.6px; border-radius: 100px; padding: 5px 13px; }
.spot-body { padding: 16px; }
.spot-name { font-family: Fraunces, Georgia, serif; font-weight: 900; font-size: 1.45rem; line-height: 1.2; overflow-wrap: anywhere; }
.spot-won { color: var(--muted); font-size: 0.95rem; margin-top: 2px; overflow-wrap: anywhere; }
.spot-won b { color: var(--ink); }
.spot-desc { color: var(--muted); font-size: 0.9rem; margin-top: 8px; overflow-wrap: anywhere; }
.spot-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.spot-facts span { background: #f7f1de; border: 1px solid #e3c86e; border-radius: 9px; padding: 7px 12px; font-size: 0.88rem; font-weight: 800; }
.spot-facts span.hl { background: var(--brand); border-color: var(--brand); color: #fff; }
/* Foto do sorteio (admin) */
.photo-preview-wide { width: 100%; max-width: 300px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 12px; border: 1.5px solid var(--line); background: #eee4cf; display: block; }
.photo-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.photo-btns .btn { min-height: 52px; font-size: 0.98rem; }
.link-btn { background: none; border: none; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 10px; font-size: 0.93rem; width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* Moldura de recorte 8:5 (acompanha a largura real) */
.crop-view { width: 100%; aspect-ratio: 8 / 5; max-height: 46dvh; margin: 0 auto; overflow: hidden; border-radius: 12px; border: 2px solid var(--navy); background: #111; touch-action: none; }
.crop-view img { max-width: none; display: block; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
/* Listas na descrição (linhas com •) */
.desc-list { margin: 2px 0 10px; padding-left: 2px; list-style: none; }
.desc-list li { position: relative; padding-left: 18px; margin-bottom: 3px; }
.desc-list li::before { content: "•"; position: absolute; left: 4px; color: var(--brand); font-weight: 900; }

/* Seções e cards */
.sec { padding: 24px 0 6px; }
.sec-head h2 { font-size: 1.5rem; font-weight: 900; }
.sec-head p { color: var(--muted); margin-bottom: 12px; }
.grid { display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--sh-sm); }
.card-img { position: relative; }
.card-img img { width: 100%; height: 180px; object-fit: cover; background: #eee4cf; }
.flag { position: absolute; left: 10px; top: 10px; background: var(--green); color: #fff; font-size: .72rem; font-weight: 800; padding: 5px 10px; border-radius: 100px; text-transform: uppercase; }
.card-b { padding: 14px; }
.card-b h3 { font-size: 1.2rem; }
.card-b p { color: var(--muted); font-size: .93rem; margin: 2px 0 10px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 10px; }
.price b { font-size: 1.5rem; color: var(--brand); }
.bar { height: 10px; background: #ece3cd; border-radius: 100px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--green); }
.meta { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); font-weight: 700; margin: 6px 0 12px; }

/* Ganhadores */
.win { display: flex; gap: 12px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.win-ico { width: 46px; height: 46px; border-radius: 12px; background: var(--gold-bg); display: flex; align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.win-tx { flex: 1; min-width: 0; }
.win-tx b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-tx span { font-size: .82rem; color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-n { background: var(--brand); color: #fff; font-weight: 900; border-radius: 10px; padding: 8px 12px; flex-shrink: 0; }

/* Passos / FAQ */
.steps { display: flex; flex-direction: column; gap: 10px; }
.step { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px; display: flex; gap: 12px; }
.step n { width: 42px; height: 42px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin-bottom: 8px; }
.faq summary { font-weight: 800; cursor: pointer; min-height: 44px; }

/* Conta */
.field label { display: block; font-weight: 800; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border-radius: 12px; border: 1.5px solid #d8cfae; background: #fffdf6; padding: 13px 14px; font-size: 1.05rem; font-family: inherit; }
.field input, .field select { min-height: 58px; }
.field textarea { min-height: 130px; resize: vertical; line-height: 1.55; }
.mine { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ticket { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--brand); border-radius: 12px; padding: 14px; }
.nums { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 8px; }
.nums span { background: var(--navy); color: #fff; font-weight: 800; border-radius: 8px; padding: 8px 12px; }

/* Checkout drawer */
/* Checkout drawer — espaçado, puxador funcional */
.sheet-bg { display: none; position: fixed; inset: 0; background: rgba(15,20,30,.6); z-index: 500; }
.sheet-bg.open { display: block; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 501; background: #fff; border-radius: 22px 22px 0 0; height: 94dvh; max-height: 94dvh; display: none; flex-direction: column; overflow: hidden; transition: transform 0.18s ease; }
.sheet.open { display: flex; }
.sheet.dragging { transition: none; }
.sheet-h { padding: 6px 16px 14px; border-bottom: 1px solid var(--line); background: #fff; touch-action: none; user-select: none; -webkit-user-select: none; position: relative; flex-shrink: 0; }
.sheet-grab { display: block; width: 100%; background: none; border: none; padding: 12px 40px 10px; cursor: grab; touch-action: none; }
.sheet-grab:active { cursor: grabbing; }
.sheet-grab span { display: block; width: 48px; height: 6px; border-radius: 100px; background: #d5cbae; margin: 0 auto; }
.sheet-x { position: absolute; top: 14px; right: 12px; width: 44px; height: 44px; border-radius: 50%; border: none; background: #f1ebdd; font-size: 1.1rem; color: var(--muted); cursor: pointer; }
.sheet-h h3 { font-size: 1.25rem; padding-right: 48px; }
.sheet-h p { color: var(--muted); font-size: 0.9rem; padding-right: 48px; }
.sheet-b { padding: 18px 16px calc(16px + env(safe-area-inset-bottom)); overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.buy-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.buy-step-n { width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 900; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.buy-step h4 { font-size: 1.02rem; }
.buy-step p { color: var(--muted); font-size: 0.88rem; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 4px 0 10px; font-size: 0.85rem; color: var(--muted); }
.legend i { display: inline-block; width: 16px; height: 16px; border-radius: 5px; margin-right: 5px; vertical-align: -2px; border: 1.5px solid #c9bfa4; }
.legend .lg-free { background: #fff; }
.legend .lg-mine { background: var(--brand); border-color: var(--brand); }
.legend .lg-busy { background: #e7dfc9; }
.resumo-line { display: flex; justify-content: space-between; align-items: center; background: #f7f2e4; border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin-top: 10px; font-weight: 800; }
.resumo-line b { color: var(--brand); font-size: 1.1rem; }
.sheet-b .field { margin-top: 14px; }
.buybar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: 12px 0 calc(4px + env(safe-area-inset-bottom)); display: flex; gap: 12px; align-items: center; margin-top: 16px; }
.pick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; max-height: 36dvh; min-height: 180px; overflow-y: auto; background: #fbf8ef; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; -webkit-overflow-scrolling: touch; }
.pick { min-height: 62px; border-radius: 11px; border: 1.5px solid #c9bfa4; background: #fff; color: var(--ink); font-weight: 800; font-size: 1.02rem; }
.pick.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
.pick.busy { background: #e7dfc9; color: #a79d84; text-decoration: line-through; }
.buybar div { flex: 1; }
.buybar small { color: var(--muted); display: block; }
.buybar b { font-size: 1.3rem; color: var(--brand); }
.qr { width: min(240px, 72vw); margin: 10px auto; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.copybox { width: 100%; min-height: 54px; border-radius: 10px; border: 1px solid var(--line); background: #f7f2e4; padding: 10px; text-align: center; margin-bottom: 10px; }
#timer-pix, .timer { font-size: 1.7rem; font-weight: 900; color: var(--brand); }

/* Rodapé compacto */
.foot { background: var(--navy); color: rgba(255,255,255,.8); margin-top: 24px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 16px 14px; }
.foot-brand { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-brand h3 { font-size: 1.05rem; }
.foot a.wa { color: #fff; font-weight: 800; text-decoration: none; white-space: nowrap; }
.foot-bot { border-top: 1px solid rgba(255,255,255,.14); text-align: center; font-size: .8rem; padding: 12px 14px calc(12px + var(--tab-h)); color: rgba(255,255,255,.55); }

/* Whats flutuante */
/* WhatsApp flutuante (legado, mantido p/ compat) */
.wa-float { position: fixed; right: 14px; bottom: calc(var(--tab-h) + 14px); z-index: 400; width: 58px; height: 58px; border-radius: 50%; background: #22c55e; display: none; align-items: center; justify-content: center; text-decoration: none; font-size: 1.7rem; box-shadow: var(--sh-md); }
/* Chatbot flutuante */
.chat-fab { position: fixed; right: 14px; bottom: calc(var(--tab-h) + 14px); z-index: 400; width: 60px; height: 60px; border-radius: 50%; border: 2px solid var(--brand); background: var(--navy); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-md), 0 0 0 4px rgba(140,26,26,.15); }
.chat-fab .material-symbols-outlined { font-size: 1.8rem; }
.chat-fab:active { transform: scale(.96); }
/* Retomar QR: pílula flutuante à esquerda, sempre à mão */
.resume-fab { position: fixed; left: 14px; bottom: calc(var(--tab-h) + 14px); z-index: 400; display: flex; align-items: center; gap: 8px; border: 2px solid var(--brand); background: var(--navy); color: #fff; border-radius: 100px; padding: 12px 18px; font-weight: 800; font-size: 0.95rem; cursor: pointer; box-shadow: var(--sh-md), 0 0 0 4px rgba(140,26,26,.15); }
.resume-fab.hidden { display: none; }
.resume-fab .material-symbols-outlined { font-size: 1.4rem; }
.resume-fab b { font-variant-numeric: tabular-nums; }
.chat-panel { position: fixed; left: 0; right: 0; bottom: 0; z-index: 401; background: #fff; border-radius: 20px 20px 0 0; display: none; flex-direction: column; overflow: hidden; height: 78dvh; box-shadow: var(--sh-md); }
.chat-panel.open { display: flex; }
.chat-grabzone { background: var(--navy); padding: 8px 0 2px; touch-action: none; user-select: none; -webkit-user-select: none; }
.chat-grab { display: block; width: 100%; background: none; border: none; padding: 6px 60px; cursor: grab; touch-action: none; }
.chat-grab:active { cursor: grabbing; }
.chat-grab span { display: block; width: 48px; height: 6px; border-radius: 100px; background: rgba(255,255,255,.4); margin: 0 auto; }
.chat-panel.dragging { transition: none; }
.chat-head { background: var(--navy); color: #fff; padding: 12px 14px; display: flex; align-items: center; gap: 10px; }
.chat-head .material-symbols-outlined { font-size: 1.7rem; }
.chat-head div { flex: 1; }
.chat-head b { display: block; font-size: 0.98rem; }
.chat-head small { color: rgba(255,255,255,.7); font-size: 0.76rem; }
.chat-head button { background: rgba(255,255,255,.12); border: none; color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1rem; }
.chat-msgs { list-style: none; flex: 1; overflow-y: auto; padding: 12px; background: #fbf8ef; display: flex; flex-direction: column; gap: 8px; }
.msg { max-width: 85%; padding: 10px 13px; border-radius: 13px; font-size: 0.93rem; }
.msg.bot { background: #fff; border: 1px solid var(--line); align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.me { background: var(--brand); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg.err { background: #fdecec; border: 1px solid #f0bcbc; color: #7a1515; align-self: flex-start; }
.chat-typing { display: flex; gap: 6px; align-items: center; padding: 10px 16px; background: #fbf8ef; }
.chat-typing.hidden { display: none; }
.chat-typing span { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); opacity: .35; animation: bounce-dot 1.1s infinite; }
.chat-typing span:nth-child(2) { animation-delay: .15s; }
.chat-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes bounce-dot { 0%, 60%, 100% { transform: translateY(0); opacity: .35; } 30% { transform: translateY(-7px); opacity: 1; } }
.chat-head .material-symbols-outlined { font-size: 1.7rem; background: rgba(255,255,255,.12); border-radius: 10px; padding: 5px; }
.chat-input { display: flex; gap: 8px; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.chat-input input { flex: 1; min-height: 50px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; font-size: 1rem; font-family: inherit; }
.chat-input button { width: 52px; border-radius: 12px; border: none; background: var(--brand); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.skel { border-radius: 12px; min-height: 130px; background: linear-gradient(90deg, #ece3cb 25%, #f7f1e1 50%, #ece3cb 75%); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.empty { background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 22px 14px; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
/* Toast de avisos */
.toast { position: fixed; left: 14px; right: 14px; bottom: calc(var(--tab-h) + 14px); z-index: 600; background: var(--navy); color: #fff; border-left: 5px solid var(--brand); border-radius: 12px; padding: 14px 16px; font-weight: 600; box-shadow: var(--sh-md); animation: toast-in 0.22s ease; max-width: 520px; margin: 0 auto; }
.toast.hidden { display: none; }
@keyframes toast-in { from { transform: translateY(12px); opacity: 0; } to { transform: none; opacity: 1; } }
.pix-timerbox { background: #f7f2e4; border: 1px solid var(--line); border-radius: 10px; padding: 10px; margin-bottom: 12px; }

/* Tela exclusiva do sorteio */
.draw-stage { min-height: 100dvh; background: radial-gradient(120% 90% at 50% 0%, #24344a 0%, #141a24 65%); color: #fff; padding: 34px 16px calc(30px + env(safe-area-inset-bottom)); text-align: center; display: flex; flex-direction: column; align-items: center; }
.draw-kicker { font-size: 0.78rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.6); }
.draw-title { font-family: Fraunces, Georgia, serif; font-weight: 900; font-size: 1.9rem; line-height: 1.15; margin: 8px 0 4px; max-width: 640px; overflow-wrap: anywhere; }
.draw-sub { color: rgba(255,255,255,.7); margin-bottom: 18px; }
.draw-login { background: #fff; color: var(--ink); border-radius: 16px; padding: 20px 16px; width: 100%; max-width: 400px; }
.draw-screen { width: 100%; max-width: 520px; background: rgba(255,255,255,.06); border: 1.5px solid rgba(255,255,255,.18); border-radius: 20px; padding: 40px 16px; margin-bottom: 16px; }
.draw-screen.live { border-color: var(--brand); box-shadow: 0 0 34px rgba(140,26,26,.55); }
.draw-num { font-family: monospace; font-weight: 900; font-size: 4rem; line-height: 1; }
.draw-name { font-size: 1.25rem; margin-top: 10px; color: rgba(255,255,255,.85); min-height: 2rem; overflow-wrap: anywhere; }
.draw-back { position: fixed; top: calc(12px + env(safe-area-inset-top)); left: 12px; z-index: 600; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); color: #fff; text-decoration: none; font-weight: 700; font-size: 0.9rem; border-radius: 100px; padding: 10px 16px; backdrop-filter: blur(6px); }
.draw-cta { width: 100%; max-width: 520px; min-height: 60px; font-size: 1.1rem; margin-top: 18px; }
@property --rgb-a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
.draw-rgb { width: 100%; max-width: 520px; margin-top: 22px; border-radius: 24px; padding: 5px; background: conic-gradient(from var(--rgb-a, 0deg), #ff004c, #ff8a00, #ffee00, #00e676, #00b0ff, #d500f9, #ff004c); animation: rgb-spin 3s linear infinite; box-shadow: 0 12px 40px rgba(0,0,0,.4); }
.draw-winner { background: linear-gradient(160deg, #232f45 0%, #121927 100%); color: #fff; border-radius: 19px; padding: 26px 18px; }
@keyframes rgb-spin { to { --rgb-a: 360deg; } }
.draw-wtag { font-size: 0.85rem; font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; color: #e8c15a; }
.draw-wnum { font-family: monospace; font-weight: 900; font-size: 3.4rem; color: #e8c15a; margin-top: 6px; text-shadow: 0 0 22px rgba(232,193,90,.45); }
.draw-wname { font-size: 1.45rem; font-weight: 800; color: #fff; overflow-wrap: anywhere; margin-top: 4px; }
.admin-wrap { max-width: 960px; margin: 0 auto; padding: 18px 14px 40px; }
.acard { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 14px; margin-bottom: 12px; }
.astats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.astat { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; text-align: center; }
.login-card { background: #fff; border-radius: 18px; padding: 26px 18px; max-width: 440px; margin: 36px auto; border-top: 6px solid var(--brand); text-align: center; }
.rifa-list-item { background: #fbf8ef; border: 1px solid var(--line); border-radius: 10px; padding: 12px; margin-bottom: 8px; }
.status-ativa { color: var(--green); font-weight: 800; }
.status-encerrada { color: #b42323; font-weight: 800; }
.status-arquivada { color: var(--muted); font-weight: 800; }
/* Avisos do painel */
.toast-admin { position: fixed; left: 14px; right: 14px; bottom: 18px; z-index: 700; max-width: 520px; margin: 0 auto; border-radius: 12px; padding: 14px 16px; font-weight: 700; box-shadow: var(--sh-md); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; }
.toast-admin.show { opacity: 1; transform: none; }
.toast-admin.ok { background: var(--navy); color: #fff; border-left: 5px solid var(--green); }
.toast-admin.erro { background: #3a1111; color: #fff; border-left: 5px solid #ef4444; }
.confirm-ov { display: none; position: fixed; inset: 0; z-index: 701; background: rgba(18,26,36,.6); align-items: center; justify-content: center; padding: 16px; }
.confirm-ov.open { display: flex; }
.confirm-box { background: #fff; border-radius: 16px; padding: 22px 18px; max-width: 420px; width: 100%; }
.confirm-box h3 { font-size: 1.2rem; margin-bottom: 6px; }
.confirm-box p { color: var(--muted); margin-bottom: 16px; }
.confirm-btns { display: flex; gap: 8px; }
.confirm-btns .btn { flex: 1; }
/* Botão de tema */
.theme-btn { margin-left: auto; width: 46px; height: 46px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ================= DARK MODE ================= */
[data-theme="dark"] {
  --paper: #12161f; --card: #1c2431; --ink: #f0ebdd; --muted: #a3adba;
  --line: #2c3849;
  --sh-sm: 0 1px 3px rgba(0,0,0,.4), 0 4px 14px rgba(0,0,0,.35);
  --sh-md: 0 10px 34px rgba(0,0,0,.5);
}
[data-theme="dark"] body { background: var(--paper); color: var(--ink); }
[data-theme="dark"] .card, [data-theme="dark"] .step, [data-theme="dark"] .win,
[data-theme="dark"] .ticket, [data-theme="dark"] .acard, [data-theme="dark"] .login-card,
[data-theme="dark"] .confirm-box, [data-theme="dark"] .faq details,
[data-theme="dark"] .rifa-list-item, [data-theme="dark"] .stat, [data-theme="dark"] .astat,
[data-theme="dark"] .empty, [data-theme="dark"] .search-card {
  background: var(--card); border-color: var(--line); color: var(--ink);
}
[data-theme="dark"] .sheet, [data-theme="dark"] .sheet-h, [data-theme="dark"] .buybar,
[data-theme="dark"] .chat-panel, [data-theme="dark"] .chat-input {
  background: #1a2230; border-color: var(--line);
}
[data-theme="dark"] .chat-msgs { background: #141b27; }
[data-theme="dark"] .msg.bot { background: #242f41; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .chat-input input { background: #242f41; border-color: var(--line); color: var(--ink); }
[data-theme="dark"] .field input, [data-theme="dark"] .field textarea, [data-theme="dark"] .field select,
[data-theme="dark"] .search-box input, [data-theme="dark"] .login-card input,
[data-theme="dark"] .copybox, [data-theme="dark"] #copia-cola {
  background: #222c3d; border-color: #3a4a61; color: var(--ink);
}
[data-theme="dark"] .pick-grid { background: #161d29; border-color: var(--line); }
[data-theme="dark"] .pick { background: #242f41; border-color: #3a4a61; color: var(--ink); }
[data-theme="dark"] .pick.sel { background: var(--brand); border-color: var(--brand); color: #fff; }
[data-theme="dark"] .pick.busy { background: #2a3446; color: #5d6b80; border-color: #2a3446; text-decoration: line-through; }
[data-theme="dark"] .legend .lg-free { background: #242f41; border-color: #3a4a61; }
[data-theme="dark"] .legend .lg-busy { background: #2a3446; }
[data-theme="dark"] .resumo-selecao, [data-theme="dark"] .resumo-line, [data-theme="dark"] .pix-timerbox {
  background: #222c3d; border-color: var(--line);
}
[data-theme="dark"] .legend, [data-theme="dark"] .step-card p, [data-theme="dark"] .perk-card p,
[data-theme="dark"] .rifa-body p, [data-theme="dark"] .section-head p, [data-theme="dark"] .panel .sub,
[data-theme="dark"] .faq p, [data-theme="dark"] .hint, [data-theme="dark"] .field .hint {
  color: var(--muted);
}
[data-theme="dark"] .progress, [data-theme="dark"] .progress-bar-container { background: #2a3446; }
[data-theme="dark"] .spotlight { background: #2a2410; border-color: #8a6d1f; color: var(--ink); }
[data-theme="dark"] .spot-trophy { background: #1c2431; border-color: #8a6d1f; }
[data-theme="dark"] .spot-facts span { background: #1c2431; border-color: #8a6d1f; }
[data-theme="dark"] .winner-trophy, [data-theme="dark"] .hero-stats div, [data-theme="dark"] .stat div { background: #222c3d; border-color: var(--line); }
[data-theme="dark"] .desc-list li::before { color: #e8c15a; }
[data-theme="dark"] .toast-admin.ok { background: #101724; }
[data-theme="dark"] .banner-slot, [data-theme="dark"] .participante-item,
[data-theme="dark"] .table-card, [data-theme="dark"] .ganhadores-section, [data-theme="dark"] .cs-case-section {
  background: var(--card); border-color: var(--line);
}
[data-theme="dark"] .skel { background: linear-gradient(90deg, #222c3d 25%, #2a3547 50%, #222c3d 75%); background-size: 200% 100%; }
[data-theme="dark"] .draw-login { background: var(--card); color: var(--ink); }
[data-theme="dark"] .btn-ghost { background: #222c3d; color: var(--ink); border-color: #3a4a61; }
[data-theme="dark"] .btn-white { background: #f0ebdd; color: #1a1712; }

@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .wrap, .top-in, .hero-in, .foot-in { padding-left: 20px; padding-right: 20px; }
  .tabs { display: none; }
  .hero-in { padding-top: 46px; padding-bottom: 30px; }
  .hero h1 { font-size: 2.5rem; }
  .hero-cta { flex-direction: row; }
  .hero-cta .btn { width: auto; }
  .grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
  .steps { display: grid; grid-template-columns: repeat(3, 1fr); }
  .btn { width: auto; }
  .sheet { left: auto; right: 24px; bottom: 24px; width: 440px; border-radius: 18px; max-height: 90vh; }
  .chat-panel { left: auto; right: 20px; bottom: 92px; width: 380px; height: 520px; border-radius: 16px; border: 1px solid var(--line); }
  .foot-bot { padding-bottom: 14px; }
}
