/* =====================================================================
   Octorlink — design system (roxo · preto · rosa)
   Sem dependências externas. Animações respeitam prefers-reduced-motion.
   ===================================================================== */
:root {
  --bg: #0b0712;
  --bg-2: #110a1c;
  --surface: #15101f;
  --surface-2: #1c1529;
  --surface-3: #251c36;
  --border: #2e2345;
  --border-strong: #463664;
  --text: #f5f1ff;
  --muted: #b6abcf;
  --dim: #8a7fa6;
  --purple: #8e6bf2;
  --purple-strong: #6d3fe8;
  --purple-soft: rgba(142, 107, 242, .14);
  --pink: #e84a96;
  --pink-bright: #ff3da5;
  --pink-soft: rgba(232, 74, 150, .14);
  --ok: #3ddc97;   --ok-soft: rgba(61, 220, 151, .13);
  --warn: #f5b544; --warn-soft: rgba(245, 181, 68, .13);
  --bad: #ff5c7a;  --bad-soft: rgba(255, 92, 122, .13);
  --info: #5bc0ff; --info-soft: rgba(91, 192, 255, .13);
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .35);
  --glow: 0 0 0 1px rgba(142, 107, 242, .35), 0 12px 40px rgba(109, 63, 232, .25);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--bg); color: var(--text);
  font: 15px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
a { color: var(--pink-bright); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: var(--mono); font-size: .88em; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--pink-bright); outline-offset: 2px; border-radius: 6px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--pink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 8px; }

/* ---------- Logo (wordmark) ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; font-weight: 800; letter-spacing: -.02em; }
.logo img.logo-face { width: 38px; height: 38px; border-radius: 50%; background: var(--surface-3); }
.logo .wm { font-size: 1.35rem; position: relative; line-height: 1; }
.logo .wm b { color: var(--pink-bright); font-weight: 800; }
.logo .wm::after { content: ""; position: absolute; right: -2px; bottom: -6px; width: 52%; height: 3px; border-radius: 3px; background: linear-gradient(90deg, transparent, #fff 60%); transform: skewX(-20deg); opacity: .9; }
.logo img.logo-custom { height: 36px; width: auto; }

/* ---------- Botões ---------- */
.btn {
  --b: var(--surface-3); display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px; min-height: 42px; border-radius: 999px; border: 1px solid var(--border-strong);
  background: var(--b); color: var(--text); font: 600 .95rem var(--font); cursor: pointer; text-decoration: none !important;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, border-color .2s; white-space: nowrap;
}
.btn:hover { border-color: var(--purple); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.loading { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn.loading::after { content: ""; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.btn-primary { background: linear-gradient(135deg, var(--purple-strong), var(--pink)); border-color: transparent; box-shadow: 0 8px 24px rgba(232, 74, 150, .25); }
.btn-primary:hover { box-shadow: 0 10px 32px rgba(232, 74, 150, .4); border-color: transparent; }
.btn-whats { background: #1f9d55; border-color: transparent; }
.btn-danger { background: var(--bad-soft); border-color: rgba(255, 92, 122, .5); color: #ffd3dc; }
.btn-ghost { background: transparent; }
.btn-sm { padding: 6px 12px; min-height: 34px; font-size: .86rem; }
.btn-block { width: 100%; }
.btn-icon { width: 42px; padding: 0; }
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* ---------- Formulários ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field > label, .label { font-weight: 600; font-size: .9rem; color: var(--muted); }
.field .hint { font-size: .8rem; color: var(--dim); }
.field .err { font-size: .82rem; color: var(--bad); min-height: 0; }
input, select, textarea {
  width: 100%; padding: 11px 14px; min-height: 44px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong);
  background: var(--bg-2); color: var(--text); font: 1rem var(--font); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(142, 107, 242, .25); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--bad); }
input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-height: 0; accent-color: var(--pink); flex: none; margin: 2px 0 0; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .92rem; color: var(--muted); cursor: pointer; }
.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
.span-2 { grid-column: span 2; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } .span-2 { grid-column: auto; } }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 52px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; font: 600 .78rem var(--font); }

/* ---------- Cartões e layout ---------- */
.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; min-width: 0; }
.card + .card { margin-top: 16px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.card-head h2, .card-head h3 { margin: 0; }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); }
.stack > * + * { margin-top: 16px; }
.split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }
.divider { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }

/* ---------- Estatísticas ---------- */
.stat { position: relative; overflow: hidden; }
.stat .k { color: var(--muted); font-size: .85rem; font-weight: 600; }
.stat .v { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.stat .s { color: var(--dim); font-size: .82rem; margin-top: 2px; }
.stat.hl { background: linear-gradient(145deg, #2a1650, #1a1030 60%); border-color: rgba(142, 107, 242, .45); box-shadow: var(--glow); }
.stat.hl .v { font-size: 2.2rem; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; background: var(--surface-3); color: var(--muted); border: 1px solid var(--border-strong); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, .35); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: rgba(245, 181, 68, .35); }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: rgba(255, 92, 122, .35); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: rgba(91, 192, 255, .35); }
.badge.purple { background: var(--purple-soft); color: #c4b1ff; border-color: rgba(142, 107, 242, .4); }
.badge.pink { background: var(--pink-soft); color: #ff9fcc; border-color: rgba(232, 74, 150, .4); }
.badge.plain::before { display: none; }

/* ---------- Alertas ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface-2); margin-bottom: 14px; font-size: .93rem; }
.alert.ok { border-color: rgba(61, 220, 151, .4); background: var(--ok-soft); }
.alert.warn { border-color: rgba(245, 181, 68, .45); background: var(--warn-soft); }
.alert.bad { border-color: rgba(255, 92, 122, .45); background: var(--bad-soft); }
.alert.info { border-color: rgba(91, 192, 255, .4); background: var(--info-soft); }
.alert > strong:first-child { display: block; margin-bottom: 2px; }
.demo-banner { background: repeating-linear-gradient(45deg, #3a2400, #3a2400 12px, #2b1b00 12px, #2b1b00 24px); color: #ffd98a; text-align: center; font-size: .82rem; font-weight: 700; padding: 6px 12px; letter-spacing: .02em; }

/* ---------- Tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; font-size: .92rem; }
th, td { padding: 11px 12px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { color: var(--muted); font-weight: 650; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; background: var(--surface-2); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.clickable { cursor: pointer; }
tbody tr.clickable:hover { background: var(--surface-2); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); }
.empty img { width: 92px; margin: 0 auto 10px; opacity: .9; }
@media (max-width: 720px) {
  table.responsive thead { display: none; }
  table.responsive tr { display: block; border-bottom: 1px solid var(--border); padding: 8px 0; }
  table.responsive td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 6px 12px; text-align: right; }
  table.responsive td::before { content: attr(data-l); color: var(--muted); font-size: .8rem; font-weight: 600; text-align: left; }
}

/* ---------- Filtros ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 14px; }
.filters .field { margin: 0; min-width: 150px; flex: 1 1 150px; }
.filters .field.grow { flex: 2 1 240px; }
.pager { display: flex; gap: 8px; align-items: center; justify-content: flex-end; margin-top: 12px; color: var(--muted); font-size: .88rem; }

/* ---------- Linha do tempo ---------- */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 16px 26px; }
.timeline li::before { content: ""; position: absolute; left: 6px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 4px var(--purple-soft); }
.timeline li::after { content: ""; position: absolute; left: 10px; top: 20px; bottom: 0; width: 2px; background: var(--border); }
.timeline li:last-child::after { display: none; }
.timeline .t { font-size: .8rem; color: var(--dim); }

/* ---------- Progresso de indicação ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-top: 10px; }
.steps span { height: 6px; border-radius: 6px; background: var(--surface-3); }
.steps span.on { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.steps.lost span.on { background: var(--dim); }
.steps-labels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; font-size: .7rem; color: var(--dim); margin-top: 4px; }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(5, 2, 10, .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .2s var(--ease); }
.modal { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); border: 1px solid var(--border-strong); border-radius: 18px; padding: 22px; box-shadow: var(--shadow); animation: pop .25s var(--ease); }
.modal.wide { width: min(900px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; margin-bottom: 12px; }
.modal-head h2 { margin: 0; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 10px; z-index: 60; max-width: min(380px, calc(100vw - 32px)); }
.toast { background: var(--surface-2); border: 1px solid var(--border-strong); border-left: 4px solid var(--purple); padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow); animation: slidein .3s var(--ease); font-size: .92rem; }
.toast.ok { border-left-color: var(--ok); } .toast.bad { border-left-color: var(--bad); } .toast.warn { border-left-color: var(--warn); }

/* ---------- Shell do painel (cliente e admin) ---------- */
.shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.side { background: var(--bg-2); border-right: 1px solid var(--border); padding: 18px 14px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav .grp { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--dim); margin: 12px 10px 4px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 600; font-size: .93rem; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.active { background: linear-gradient(90deg, rgba(142, 107, 242, .22), rgba(232, 74, 150, .08)); color: #fff; box-shadow: inset 3px 0 0 var(--pink); }
.nav a .count { margin-left: auto; background: var(--pink); color: #fff; border-radius: 999px; font-size: .72rem; padding: 1px 7px; }
.nav svg { width: 18px; height: 18px; flex: none; }
.main { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 24px; border-bottom: 1px solid var(--border); background: rgba(11, 7, 18, .8); backdrop-filter: blur(8px); position: sticky; top: 0; z-index: 20; }
.topbar .who { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); }
.content { padding: 24px; max-width: 1280px; }
.page-title { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title h1 { font-size: 1.6rem; margin: 0; }
.menu-btn { display: none; }
.bottom-nav { display: none; }
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 270px; z-index: 40; transform: translateX(-100%); transition: transform .25s var(--ease); }
  .side.open { transform: none; box-shadow: var(--shadow); }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px; }
  .topbar { padding: 10px 16px; }
}
.client-shell .bottom-nav { display: none; }
@media (max-width: 900px) {
  .client-shell .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; bottom: 0; left: 0; right: 0; background: rgba(17, 10, 28, .96); border-top: 1px solid var(--border); z-index: 30; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); backdrop-filter: blur(8px); }
  .client-shell .bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; color: var(--dim); font-weight: 600; padding: 4px; text-decoration: none; }
  .client-shell .bottom-nav a.active { color: var(--pink-bright); }
  .client-shell .bottom-nav svg { width: 22px; height: 22px; }
  .client-shell .content { padding-bottom: 90px; }
}
.side-foot { margin-top: auto; font-size: .8rem; color: var(--dim); }

/* ---------- Hero do cliente (Indique e Ganhe) ---------- */
.hero-ref { position: relative; overflow: hidden; border-radius: 22px; padding: 26px; background: radial-gradient(1200px 400px at 110% -20%, rgba(232, 74, 150, .35), transparent 60%), linear-gradient(135deg, #2b1356, #140b25 70%); border: 1px solid rgba(142, 107, 242, .4); box-shadow: var(--glow); }
.hero-ref .grid { display: grid; grid-template-columns: 1fr 190px; gap: 20px; align-items: center; position: relative; z-index: 1; }
.hero-ref h1 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.hero-ref .mascot { height: 250px; width: auto; justify-self: end; margin: -16px 0 -46px 0; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .5)); }
.ref-link { display: flex; gap: 8px; align-items: stretch; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 255, 255, .25); border-radius: 14px; padding: 6px 6px 6px 14px; margin: 14px 0; }
.ref-link input { background: transparent; border: 0; padding: 0; min-height: 40px; font-family: var(--mono); font-size: .9rem; color: #fff; }
.ref-link input:focus { box-shadow: none; }
@media (max-width: 640px) {
  .hero-ref { padding: 20px; }
  .hero-ref .grid { grid-template-columns: 1fr; }
  .hero-ref .mascot { position: absolute; right: -18px; top: -6px; height: 150px; width: auto; opacity: .3; margin: 0; }
  .ref-link { flex-wrap: wrap; padding: 10px; }
  .ref-link .btn { flex: 1; }
}

/* ---------- Páginas públicas / autenticação ---------- */
.public-top { display: flex; justify-content: space-between; align-items: center; padding: 16px 0; gap: 12px; }
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }
.auth-art { position: relative; overflow: hidden; background: radial-gradient(900px 500px at 20% 110%, rgba(232, 74, 150, .35), transparent 60%), radial-gradient(800px 600px at 90% 0%, rgba(109, 63, 232, .45), transparent 60%), #0e0719; display: flex; flex-direction: column; justify-content: space-between; padding: 32px; }
.auth-art .mascot-stage { position: relative; display: grid; place-items: center; flex: 1; }
.auth-art .mascot { width: min(360px, 70%); position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.auth-form { display: flex; align-items: center; justify-content: center; padding: 32px 20px; }
.auth-form .box { width: min(420px, 100%); }
@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-art { min-height: auto; padding: 18px 16px 0; }
  .auth-art .mascot { width: 150px; }
  .auth-art .tag { display: none; }
  .auth-form { padding: 20px 16px 40px; align-items: start; }
}

/* ---------- Animações inspiradas no mascote ---------- */
.float { animation: float 6s ease-in-out infinite; }
.ink { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.ink::before, .ink::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: drift 14s ease-in-out infinite; }
.ink::before { width: 420px; height: 420px; right: 8%; top: 10%; background: radial-gradient(circle, rgba(109, 63, 232, .55), transparent 70%); }
.ink::after { width: 320px; height: 320px; right: 22%; bottom: -10%; background: radial-gradient(circle, rgba(232, 74, 150, .4), transparent 70%); animation-delay: -6s; }
.ring { position: absolute; border: 1px solid rgba(196, 177, 255, .18); border-radius: 50%; pointer-events: none; animation: ripple 6s ease-out infinite; }
.mascot-stage .ring, .landing-hero .ring { width: 360px; height: 360px; left: 50%; top: 50%; margin: -180px 0 0 -180px; }
.landing-hero .ring { left: auto; right: 12%; margin: -180px 0 0 0; }
.ring.r2 { animation-delay: -3s; }
.bubbles span { position: absolute; bottom: -20px; width: 10px; height: 10px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .05); animation: rise 11s linear infinite; }
.bubbles span:nth-child(1) { left: 12%; animation-delay: 0s; }
.bubbles span:nth-child(2) { left: 28%; width: 6px; height: 6px; animation-delay: 3s; animation-duration: 9s; }
.bubbles span:nth-child(3) { left: 55%; width: 14px; height: 14px; animation-delay: 5s; }
.bubbles span:nth-child(4) { left: 72%; animation-delay: 1.5s; animation-duration: 13s; }
.bubbles span:nth-child(5) { left: 86%; width: 7px; height: 7px; animation-delay: 7s; }
.reveal { opacity: 0; transform: translateY(12px); animation: reveal .6s var(--ease) forwards; }
.reveal.d1 { animation-delay: .06s; } .reveal.d2 { animation-delay: .12s; } .reveal.d3 { animation-delay: .18s; } .reveal.d4 { animation-delay: .24s; }
.mascot.peek { animation: peek .8s var(--ease); }
.mascot.shy { transform: translateY(6px) rotate(-3deg); transition: transform .35s var(--ease); }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 10px; min-height: 18px; }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -12px; width: 8px; height: 14px; border-radius: 2px; animation: fall 1.8s ease-in forwards; }

@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-30px, 20px); } }
@keyframes ripple { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.35); opacity: 0; } }
@keyframes rise { 0% { transform: translateY(0); opacity: 0; } 10% { opacity: 1; } 100% { transform: translateY(-110vh); opacity: 0; } }
@keyframes reveal { to { opacity: 1; transform: none; } }
@keyframes peek { 0% { transform: translateY(20px) scale(.96); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.98); } }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } }
@keyframes fall { to { transform: translateY(105vh) rotate(540deg); opacity: .2; } }

@media (prefers-reduced-motion: reduce) {
  .ring { display: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1; transform: none; }
  .bubbles, .confetti { display: none; }
}

/* ---------- Landing ---------- */
.landing-hero { position: relative; overflow: hidden; padding: 40px 0 60px; }
.landing-hero .grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.landing-hero .mascot { width: min(380px, 100%); margin-inline: auto; position: relative; z-index: 2; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .55)); }
.landing-hero .lead { font-size: 1.12rem; color: var(--muted); max-width: 560px; }
.gradient-text { background: linear-gradient(90deg, #c7b2ff, var(--pink-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.how { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.how .n { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); font-weight: 800; margin-bottom: 10px; }
@media (max-width: 900px) { .landing-hero .grid { grid-template-columns: 1fr; } .landing-hero .mascot { width: 220px; } .how { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .how { grid-template-columns: 1fr; } }
.footer { border-top: 1px solid var(--border); padding: 24px 0; margin-top: 50px; color: var(--dim); font-size: .85rem; }

/* ---------- Sorteios ---------- */
.raffle-card { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: start; }
.raffle-card .ph { width: 120px; height: 120px; border-radius: 14px; object-fit: cover; background: var(--surface-3); display: grid; place-items: center; color: var(--dim); font-size: 2rem; }
@media (max-width: 520px) { .raffle-card { grid-template-columns: 1fr; } .raffle-card .ph { width: 100%; height: 170px; } }
.rules { white-space: pre-wrap; background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; max-height: 320px; overflow: auto; font-size: .9rem; color: var(--muted); }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; font-size: .92rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.winner { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.winner .pos { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #ffcf5a, #ff8a3d); color: #2a1300; font-weight: 800; }

/* ---------- Gráficos ---------- */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; display: block; overflow: visible; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }
.chart .axis-label { fill: var(--dim); font-size: 11px; font-family: var(--font); }
.chart .bar { transition: opacity .15s; }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart-tip { position: absolute; pointer-events: none; background: var(--surface-3); border: 1px solid var(--border-strong); border-radius: 10px; padding: 8px 10px; font-size: .82rem; box-shadow: var(--shadow); white-space: nowrap; transform: translate(-50%, -110%); z-index: 5; }
.chart-tip b { display: block; margin-bottom: 2px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); margin-bottom: 6px; }
.legend i { display: inline-block; width: 12px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.legend i.s1 { background: #8e6bf2; } .legend i.s2 { background: #e84a96; }
.hbar { display: grid; grid-template-columns: 150px 1fr 48px; gap: 10px; align-items: center; font-size: .88rem; margin-bottom: 8px; }
.hbar .track { height: 10px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.hbar .fill { height: 100%; border-radius: 6px; background: #8e6bf2; width: 0; transition: width .8s var(--ease); }
.hbar .n { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
@media (max-width: 520px) { .hbar { grid-template-columns: 110px 1fr 40px; } }

/* ---------- Diversos ---------- */
.tabs { display: flex; gap: 6px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; color: var(--muted); font: 600 .92rem var(--font); padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; }
.tabs button.active { color: #fff; border-bottom-color: var(--pink); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--muted); font: 600 .84rem var(--font); cursor: pointer; }
.chip.active { background: var(--purple-soft); color: #fff; border-color: var(--purple); }
.notif { display: flex; gap: 12px; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); }
.notif + .notif { margin-top: 8px; }
.notif.unread { border-color: rgba(232, 74, 150, .45); background: linear-gradient(90deg, var(--pink-soft), transparent); }
.notif .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--pink); margin-top: 6px; flex: none; }
.notif:not(.unread) .dot { background: var(--border-strong); }
.bell { position: relative; }
.bell .count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px; background: var(--pink); color: #fff; font-size: .7rem; display: grid; place-items: center; padding: 0 4px; }
.pix-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.pix-item + .pix-item { margin-top: 8px; }
.radio-card { display: flex; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--border-strong); border-radius: 12px; cursor: pointer; }
.radio-card:has(input:checked) { border-color: var(--pink); background: var(--pink-soft); }
.radio-card + .radio-card { margin-top: 8px; }
.code-box { font-family: var(--mono); font-size: .8rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px; overflow-wrap: anywhere; color: var(--muted); }
pre.code-box { white-space: pre-wrap; max-height: 260px; overflow: auto; margin: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }
.flex { display: flex; gap: 10px; align-items: center; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }
.loading-page { display: grid; place-items: center; min-height: 60vh; }
.loading-page img { width: 110px; }
.narrow { max-width: 420px; }
.mx-auto { margin-inline: auto; }
textarea.tall { min-height: 220px; }
.raffle-photo { width: 100%; border-radius: 12px; object-fit: cover; max-height: 360px; }
.logo-preview { max-height: 60px; width: auto; margin-bottom: 12px; background: var(--bg-2); padding: 8px; border-radius: 8px; }
a.card { color: inherit; text-decoration: none; transition: border-color .2s, transform .2s var(--ease); }
a.card:hover { border-color: var(--purple); transform: translateY(-2px); }
fieldset { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; }
fieldset .check { margin-bottom: 8px; }
details summary { cursor: pointer; color: var(--muted); }
.bubbles { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
.btn svg { width: 18px; height: 18px; flex: none; }
.cards > .card + .card, .split > .card + .card, .how > .card + .card, .split > * + .card { margin-top: 0; }
#view:focus, main[tabindex="-1"]:focus { outline: none; }
@media (max-width: 900px) { .landing-hero .mascot { width: 150px; } .landing-hero { padding: 20px 0 30px; } }
.raffle-card h1 { font-size: clamp(1.4rem, 2.6vw, 1.9rem); }

/* =====================================================================
   TEMA 2.0 — visual futurista/profissional (sobrepõe o tema base)
   ===================================================================== */
:root {
  --bg: #05030a;
  --bg-2: #0a0614;
  --surface: rgba(20, 14, 34, .72);
  --surface-solid: #140e22;
  --surface-2: rgba(31, 22, 51, .75);
  --surface-3: #2a1f44;
  --border: rgba(142, 107, 242, .16);
  --border-strong: rgba(142, 107, 242, .32);
  --glass-blur: blur(14px) saturate(140%);
  --neon: 0 0 0 1px rgba(142, 107, 242, .28), 0 8px 32px rgba(76, 29, 149, .28), inset 0 1px 0 rgba(255, 255, 255, .04);
}
body { background: var(--bg); }

/* ---------- Cena de fundo: grade em perspectiva + aurora ---------- */
.bg-scene { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: radial-gradient(1200px 700px at 85% -10%, rgba(109, 63, 232, .28), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(232, 74, 150, .18), transparent 60%), var(--bg); }
.bg-scene .grid-floor { position: absolute; left: -50%; right: -50%; bottom: -10%; height: 70%; transform: perspective(600px) rotateX(62deg); transform-origin: bottom;
  background-image: linear-gradient(rgba(142, 107, 242, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 107, 242, .22) 1px, transparent 1px); background-size: 56px 56px;
  mask-image: linear-gradient(to top, #000 10%, transparent 85%); -webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%); animation: gridmove 14s linear infinite; }
.bg-scene .grid-flat { position: absolute; inset: 0; background-image: linear-gradient(rgba(142, 107, 242, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(142, 107, 242, .06) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 20%, transparent 75%); }
.bg-scene .aurora { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(90px); opacity: .35; animation: drift 22s ease-in-out infinite; }
.bg-scene .aurora.a1 { background: #6d3fe8; top: -30vmax; right: -15vmax; }
.bg-scene .aurora.a2 { background: #e84a96; bottom: -35vmax; left: -20vmax; opacity: .22; animation-delay: -9s; }
.bg-scene .scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(to bottom, transparent, rgba(142, 107, 242, .06), transparent); animation: scan 9s linear infinite; }
@keyframes gridmove { to { background-position: 0 56px, 0 0; } }
@keyframes scan { to { top: 110%; } }

/* ---------- Superfícies de vidro ---------- */
.card, .panel { background: var(--surface); border: 1px solid var(--border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); }
.modal { background: var(--surface-solid); }
th { background: rgba(31, 22, 51, .9); }
input, select, textarea { background: rgba(8, 5, 16, .7); border-color: rgba(142, 107, 242, .28); }
input:focus, select:focus, textarea:focus { box-shadow: 0 0 0 3px rgba(142, 107, 242, .22), 0 0 18px rgba(142, 107, 242, .25); }
.btn { border-color: rgba(142, 107, 242, .35); background: rgba(42, 31, 68, .7); }
.btn-primary { background: linear-gradient(135deg, #6d3fe8, #b23fd1 55%, #e84a96); box-shadow: 0 6px 24px rgba(178, 63, 209, .35), inset 0 1px 0 rgba(255, 255, 255, .18); }
.btn-primary:hover { box-shadow: 0 8px 34px rgba(232, 74, 150, .5), inset 0 1px 0 rgba(255, 255, 255, .22); }

/* ---------- Login centralizado ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 72px 16px 32px; position: relative; }
.login-card { position: relative; width: min(440px, 100%); padding: 34px 30px 26px; border-radius: 22px; background: rgba(16, 11, 28, .78); backdrop-filter: blur(18px) saturate(150%); -webkit-backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(142, 107, 242, .28); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .02), 0 0 60px rgba(109, 63, 232, .18); animation: pop .5s var(--ease); }
.login-card.wide { width: min(620px, 100%); }
.login-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: linear-gradient(140deg, rgba(142, 107, 242, .9), transparent 35%, transparent 65%, rgba(232, 74, 150, .8));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.login-card::after { content: ""; position: absolute; top: 0; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .6), transparent); }
.login-logo { display: flex; justify-content: center; margin-bottom: 6px; }
.login-logo img { height: 46px; width: auto; }
.login-title { text-align: center; font-size: 1.28rem; margin: 14px 0 4px; }
.login-sub { text-align: center; color: var(--muted); font-size: .92rem; margin-bottom: 20px; }
.mascot-peek { position: absolute; top: -74px; right: 18px; width: 92px; pointer-events: none; filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .5)); animation: float 6s ease-in-out infinite; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(8, 5, 16, .75); border: 1px solid var(--border); margin-bottom: 18px; position: relative; }
.seg button { position: relative; z-index: 1; border: 0; background: none; color: var(--muted); font: 700 .9rem var(--font); padding: 10px; border-radius: 9px; cursor: pointer; display: flex; gap: 8px; align-items: center; justify-content: center; transition: color .2s; }
.seg button svg { width: 16px; height: 16px; }
.seg button.active { color: #fff; }
.seg .thumb { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 6px); border-radius: 9px; background: linear-gradient(135deg, rgba(109, 63, 232, .9), rgba(232, 74, 150, .75)); box-shadow: 0 4px 16px rgba(178, 63, 209, .35); transition: transform .3s var(--ease); }
.seg.right .thumb { transform: translateX(calc(100% + 4px)); }
.login-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 16px; font-size: .86rem; }
.secure-line { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .76rem; color: var(--dim); letter-spacing: .02em; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 151, .6); animation: pulse 2s infinite; flex: none; }
.live-dot.warn { background: var(--warn); box-shadow: 0 0 0 0 rgba(245, 181, 68, .6); }
.live-dot.bad { background: var(--bad); box-shadow: 0 0 0 0 rgba(255, 92, 122, .6); }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(0, 0, 0, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
.login-footer { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; font-size: .78rem; color: var(--dim); }
.hint-ok { color: var(--ok) !important; }
@media (max-width: 480px) { .login-card { padding: 28px 18px 20px; } .mascot-peek { width: 74px; top: -58px; } }

/* ---------- Shell 2.0 ---------- */
.shell { background: transparent; }
.side { background: rgba(8, 5, 16, .82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-right: 1px solid var(--border); }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px 10px; border-bottom: 1px solid var(--border); }
.side .brand img.wordmark { height: 30px; width: auto; }
.side .brand .tag { font-size: .62rem; font-weight: 800; letter-spacing: .12em; color: #c4b1ff; border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 6px; margin-left: auto; }
.nav a { border: 1px solid transparent; }
.nav a:hover { background: rgba(142, 107, 242, .08); }
.nav a.active { background: linear-gradient(90deg, rgba(142, 107, 242, .22), rgba(232, 74, 150, .06)); border-color: rgba(142, 107, 242, .28); box-shadow: inset 3px 0 0 var(--pink), 0 0 18px rgba(142, 107, 242, .15); }
.nav a .count.bad { background: var(--bad); }
.topbar { background: rgba(6, 4, 12, .72); border-bottom: 1px solid var(--border); gap: 16px; }
.topbar .spacer { flex: 1; }
.search { position: relative; flex: 1; max-width: 520px; }
.search input { padding-left: 40px; min-height: 40px; border-radius: 12px; font-size: .92rem; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--dim); }
.search kbd { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 .7rem var(--mono); color: var(--dim); border: 1px solid var(--border-strong); border-radius: 6px; padding: 2px 6px; }
.search-results { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: var(--surface-solid); border: 1px solid var(--border-strong); border-radius: 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); overflow: hidden; z-index: 30; }
.search-results a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 14px; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--border); font-size: .9rem; }
.search-results a:hover, .search-results a.sel { background: rgba(142, 107, 242, .14); }
.search-results .t { font-size: .72rem; color: #c4b1ff; text-transform: uppercase; letter-spacing: .06em; }
.pill-status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: rgba(8, 5, 16, .6); font-size: .8rem; font-weight: 700; color: var(--muted); text-decoration: none !important; white-space: nowrap; }
.clock { font: 600 .82rem var(--mono); color: var(--dim); white-space: nowrap; }
@media (max-width: 900px) { .search kbd, .clock { display: none; } .pill-status span.lbl { display: none; } }

/* ---------- Grade do dashboard ---------- */
.dash { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.c-3 { grid-column: span 3; } .c-4 { grid-column: span 4; } .c-5 { grid-column: span 5; } .c-6 { grid-column: span 6; } .c-7 { grid-column: span 7; } .c-8 { grid-column: span 8; } .c-12 { grid-column: span 12; }
@media (max-width: 1180px) { .c-3 { grid-column: span 6; } .c-4, .c-5, .c-7, .c-8 { grid-column: span 12; } .c-6 { grid-column: span 12; } }
@media (max-width: 640px) { .c-3 { grid-column: span 12; } }
.panel { border-radius: var(--radius); padding: 18px; min-width: 0; position: relative; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.panel-head h3 { margin: 0; font-size: .95rem; letter-spacing: .01em; display: flex; align-items: center; gap: 8px; }
.panel-head h3 svg { width: 18px; height: 18px; color: #c4b1ff; }
.panel-head .sub { font-size: .78rem; color: var(--dim); }
.eyebrow { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: #c4b1ff; font-weight: 800; }
.seg-sm { display: inline-flex; padding: 3px; border-radius: 10px; background: rgba(8, 5, 16, .7); border: 1px solid var(--border); }
.seg-sm button { border: 0; background: none; color: var(--muted); font: 700 .78rem var(--font); padding: 6px 12px; border-radius: 8px; cursor: pointer; }
.seg-sm button.active { background: rgba(142, 107, 242, .3); color: #fff; }

/* ---------- KPI ---------- */
.kpi { position: relative; overflow: hidden; border-radius: var(--radius); padding: 16px 16px 14px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); min-height: 132px; transition: border-color .25s, transform .25s var(--ease), box-shadow .25s; text-decoration: none !important; color: var(--text); display: block; }
.kpi:hover { border-color: rgba(142, 107, 242, .5); transform: translateY(-2px); box-shadow: var(--neon); }
.kpi::after { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #6d3fe8, #e84a96); opacity: .8; }
.kpi .k { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .k svg { width: 16px; height: 16px; color: #c4b1ff; }
.kpi .v { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; margin-top: 8px; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpi .foot { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .78rem; color: var(--dim); position: relative; z-index: 1; }
.kpi .spark { position: absolute; right: 0; bottom: 0; width: 55%; height: 44px; opacity: .9; }
.kpi.hero { background: linear-gradient(150deg, rgba(76, 29, 149, .55), rgba(20, 14, 34, .8) 60%); border-color: rgba(142, 107, 242, .45); box-shadow: var(--neon); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: .76rem; padding: 2px 7px; border-radius: 999px; }
.delta.up { color: var(--ok); background: var(--ok-soft); } .delta.down { color: var(--bad); background: var(--bad-soft); } .delta.flat { color: var(--muted); background: rgba(255, 255, 255, .05); }

/* ---------- Anel, filas, feed, status ---------- */
.ring-gauge { position: relative; display: inline-grid; place-items: center; }
.ring-gauge .ring-val { transition: stroke-dashoffset 1.4s var(--ease); }
.ring-gauge .ring-text { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring-gauge .ring-text strong { font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.ring-gauge .ring-text span { font-size: .72rem; color: var(--dim); }
.queue { display: flex; flex-direction: column; gap: 8px; }
.queue a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(8, 5, 16, .45); color: var(--text); text-decoration: none; transition: border-color .2s, background .2s; }
.queue a:hover { border-color: rgba(142, 107, 242, .5); background: rgba(142, 107, 242, .08); }
.queue .n { min-width: 34px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-variant-numeric: tabular-nums; background: rgba(142, 107, 242, .18); color: #d9ccff; }
.queue a.hot .n { background: rgba(232, 74, 150, .22); color: #ffc2de; }
.queue a.zero { opacity: .5; }
.queue .lbl { flex: 1; font-size: .88rem; }
.queue .go { color: var(--dim); }
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: start; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: .86rem; }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: rgba(142, 107, 242, .15); color: #c4b1ff; }
.feed .ic svg { width: 15px; height: 15px; }
.feed .ic.pink { background: rgba(232, 74, 150, .16); color: #ff9fcc; } .feed .ic.ok { background: var(--ok-soft); color: var(--ok); } .feed .ic.bad { background: var(--bad-soft); color: var(--bad); }
.feed .when { font-size: .74rem; color: var(--dim); white-space: nowrap; }
.feed .who { color: var(--dim); font-size: .78rem; }
.status-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; }
.status-tile { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(8, 5, 16, .45); }
.status-tile .live-dot { margin-top: 6px; }
.status-tile strong { display: block; font-size: .88rem; }
.status-tile span { font-size: .78rem; color: var(--dim); }
.stackbar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; background: var(--surface-3); gap: 2px; }
.stackbar i { display: block; height: 100%; width: 0; transition: width 1s var(--ease); }
.stackbar i.a { background: #f5b544; } .stackbar i.b { background: #3ddc97; } .stackbar i.c { background: #8e6bf2; } .stackbar i.d { background: #e84a96; }
.stack-legend { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 16px; margin-top: 12px; font-size: .84rem; }
.stack-legend div { display: flex; justify-content: space-between; gap: 8px; }
.stack-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.stack-legend i.a { background: #f5b544; } .stack-legend i.b { background: #3ddc97; } .stack-legend i.c { background: #8e6bf2; } .stack-legend i.d { background: #e84a96; }
.rank-badge { display: inline-flex; align-items: baseline; gap: 4px; font-weight: 800; }
.rank-badge b { font-size: 2rem; background: linear-gradient(90deg, #c7b2ff, #ff3da5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mini-table td, .mini-table th { padding: 8px 10px; }
.chart .cursor { stroke: rgba(196, 177, 255, .5); stroke-dasharray: 3 3; }
.chart path.draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.chart-tip .tip-row { display: block; }
.chart-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.chart-tip i.s1 { background: #8e6bf2; } .chart-tip i.s2 { background: #e84a96; }
.risk { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.risk-bar { width: 120px; height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.risk-bar i { display: block; height: 100%; background: linear-gradient(90deg, #3ddc97, #f5b544, #ff5c7a); width: 0; transition: width .8s var(--ease); }
.sev { font-weight: 800; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; }
.sev.alta { background: var(--bad-soft); color: var(--bad); } .sev.media { background: var(--warn-soft); color: var(--warn); } .sev.baixa { background: var(--info-soft); color: var(--info); }
.welcome { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.welcome h1 { margin: 4px 0 0; font-size: 1.7rem; }
.count-up { font-variant-numeric: tabular-nums; }
.skeleton { background: linear-gradient(90deg, rgba(31, 22, 51, .6), rgba(60, 44, 96, .6), rgba(31, 22, 51, .6)); background-size: 200% 100%; min-height: 120px; }
@media (prefers-reduced-motion: reduce) { .bg-scene .grid-floor, .bg-scene .scan, .bg-scene .aurora { animation: none; } .chart path.draw { stroke-dashoffset: 0; animation: none; } }
.logo img.wordmark { height: 32px; width: auto; display: block; }
.kpi .v.small-v { font-size: 1.05rem; margin-top: 14px; }
.search input { padding-right: 74px; }
.stack-legend { grid-template-columns: 1fr; }

/* =====================================================================
   TEMA 3.0 — menus profissionais, caixas 3D animadas, login refinado
   ===================================================================== */
@property --ang { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinang { to { --ang: 360deg; } }
@keyframes shine { to { background-position: 200% center; } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes rise3d { from { opacity: 0; transform: perspective(900px) rotateX(16deg) translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes sweep { from { transform: translateX(-120%) skewX(-18deg); } to { transform: translateX(220%) skewX(-18deg); } }
@keyframes breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(232, 74, 150, .45); } 50% { box-shadow: 0 0 0 6px rgba(232, 74, 150, 0); } }

/* ---------- Login: borda viva e texto animado (sem mascote) ---------- */
.login-card::before { background: conic-gradient(from var(--ang), rgba(142, 107, 242, .95), rgba(232, 74, 150, .9), transparent 30%, transparent 60%, rgba(142, 107, 242, .95)); animation: spinang 6s linear infinite; }
.login-card { padding-top: 38px; }
.login-logo img { height: 52px; filter: drop-shadow(0 6px 24px rgba(142, 107, 242, .45)); animation: logoin .9s var(--ease) both; }
@keyframes logoin { from { opacity: 0; transform: translateY(-10px) scale(.96); filter: blur(6px); } }
.shine-title { background: linear-gradient(90deg, #fff 0%, #fff 40%, #c7b2ff 50%, #ff7cc0 55%, #fff 65%, #fff 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 4.5s linear infinite; }
.typed-line { min-height: 1.5em; text-align: center; color: #d9ccff; font-weight: 600; font-size: .95rem; margin: -6px 0 18px; }
.typed-line .caret { display: inline-block; width: 2px; height: 1.05em; background: #ff3da5; margin-left: 2px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.login-card .field, .login-card .seg, .login-card .btn-block, .login-card .login-meta { animation: rise3d .6s var(--ease) backwards; }
.login-card .field:nth-of-type(2) { animation-delay: .06s; } .login-card .btn-block { animation-delay: .12s; }
.trust-row { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin-top: 12px; font-size: .74rem; color: var(--dim); }
.trust-row span { display: inline-flex; align-items: center; gap: 5px; }
.trust-row svg { width: 13px; height: 13px; color: #c4b1ff; }

/* ---------- Menu lateral 3.0 ---------- */
.shell { grid-template-columns: 272px 1fr; transition: grid-template-columns .3s var(--ease); }
.side { padding: 16px 12px; gap: 14px; }
.side .brand { justify-content: space-between; }
.collapse-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: rgba(142, 107, 242, .08); color: var(--muted); display: grid; place-items: center; cursor: pointer; flex: none; }
.collapse-btn svg { width: 16px; height: 16px; transition: transform .3s; }
.me-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(135deg, rgba(109, 63, 232, .16), rgba(232, 74, 150, .06)); position: relative; overflow: hidden; }
.me-card::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .07), transparent); animation: sweep 5s ease-in-out infinite; }
.avatar { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #6d3fe8, #e84a96); box-shadow: 0 4px 14px rgba(178, 63, 209, .4); flex: none; position: relative; }
.avatar::after { content: ""; position: absolute; right: -2px; bottom: -2px; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid #0a0614; }
.me-card .nm { font-weight: 700; font-size: .88rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .rl { font-size: .72rem; color: #c4b1ff; }
.me-card .mini { font-size: .72rem; color: var(--dim); }
.nav { gap: 3px; }
.nav .grp { display: flex; align-items: center; gap: 8px; margin: 14px 8px 6px; font-weight: 800; }
.nav .grp::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--border), transparent); }
.nav a { padding: 7px 10px; gap: 11px; position: relative; transition: background .2s, color .2s, transform .2s var(--ease), border-color .2s; }
.nav a .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(142, 107, 242, .08); border: 1px solid rgba(142, 107, 242, .14); transition: all .25s var(--ease); flex: none; }
.nav a .ico svg { width: 17px; height: 17px; }
.nav a:hover { transform: translateX(3px); }
.nav a:hover .ico { background: rgba(142, 107, 242, .2); color: #fff; }
.nav a.active { box-shadow: 0 0 22px rgba(142, 107, 242, .16); }
.nav a.active .ico { background: linear-gradient(135deg, #6d3fe8, #e84a96); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(178, 63, 209, .45); }
.nav a.active::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: linear-gradient(#8e6bf2, #ff3da5); }
.nav a .count { animation: none; }
.nav a .count.bad, .nav a .count.hot { animation: breathe 2s infinite; }
.nav a .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-cta { padding: 12px; border-radius: 14px; border: 1px dashed rgba(232, 74, 150, .45); background: rgba(232, 74, 150, .06); font-size: .8rem; }
.side-cta strong { display: block; font-size: 1.15rem; margin: 2px 0 8px; }
.side-foot { display: flex; flex-direction: column; gap: 6px; }
.side-foot .row { display: flex; gap: 6px; }
.side-foot .row .btn { flex: 1; }
/* recolhido */
@media (min-width: 901px) {
  .shell.collapsed { grid-template-columns: 84px 1fr; }
  .shell.collapsed .side .brand img, .shell.collapsed .side .brand .tag, .shell.collapsed .nav .grp, .shell.collapsed .nav a .lbl, .shell.collapsed .me-card > div:not(.avatar), .shell.collapsed .side-cta, .shell.collapsed .side-foot .txt { display: none; }
  .shell.collapsed .nav a { justify-content: center; padding: 7px 0; }
  .shell.collapsed .nav a .count { position: absolute; top: 2px; right: 8px; font-size: .62rem; }
  .shell.collapsed .me-card { justify-content: center; padding: 8px 0; }
  .shell.collapsed .collapse-btn svg { transform: rotate(180deg); }
  .shell.collapsed .side .brand { justify-content: center; }
}
.side-backdrop { display: none; }
@media (max-width: 900px) { .side.open + .side-backdrop, .side-backdrop.show { display: block; position: fixed; inset: 0; background: rgba(0, 0, 0, .55); z-index: 35; } }
.page-crumb { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); font-weight: 600; white-space: nowrap; }
.page-crumb b { color: #fff; }

/* ---------- Caixas 3D ---------- */
.tilt { transform-style: preserve-3d; transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateZ(0); transition: transform .35s var(--ease), box-shadow .35s, border-color .3s; will-change: transform; }
.tilt.is-tilting { transition: transform .08s linear, box-shadow .35s; }
.tilt > * { transform: translateZ(18px); }
.tilt .v { transform: translateZ(34px); }
.kpi, .panel, .card { isolation: isolate; }
.kpi::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang), transparent 0 70%, rgba(142, 107, 242, .9) 80%, rgba(255, 61, 165, .9) 88%, transparent 96%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinang 5s linear infinite; opacity: .0; transition: opacity .4s; pointer-events: none; z-index: 2; }
.kpi:hover::before, .kpi.hero::before { opacity: 1; }
.kpi .shine { position: absolute; top: 0; bottom: 0; left: 0; width: 45%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .09), transparent); transform: translateX(-120%) skewX(-18deg); pointer-events: none; }
.kpi:hover .shine { animation: sweep 1.1s var(--ease); }
.kpi .ico3d { position: absolute; top: 14px; right: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(142, 107, 242, .35), rgba(232, 74, 150, .18)); border: 1px solid rgba(196, 177, 255, .3); box-shadow: 0 10px 24px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .15); transform: translateZ(46px); color: #fff; }
.kpi .ico3d svg { width: 20px; height: 20px; }
.panel.tilt > * { transform: translateZ(10px); }
.rise3d { animation: rise3d .7s var(--ease) backwards; }
.rise3d.d1 { animation-delay: .06s; } .rise3d.d2 { animation-delay: .12s; } .rise3d.d3 { animation-delay: .18s; } .rise3d.d4 { animation-delay: .24s; } .rise3d.d5 { animation-delay: .3s; }
.welcome .title-row { display: flex; align-items: center; gap: 16px; }

/* ---------- WhatsApp ---------- */
.wa-status { display: flex; align-items: center; gap: 16px; }
.wa-orb { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: linear-gradient(145deg, #16a34a, #0f7a3a); color: #fff; box-shadow: 0 10px 30px rgba(22, 163, 74, .35); flex: none; }
.wa-orb svg { width: 32px; height: 32px; }
.wa-orb.off { background: linear-gradient(145deg, #3a2f52, #241c36); box-shadow: none; }
.qr-box { width: 280px; max-width: 100%; aspect-ratio: 1; border-radius: 18px; background: #fff; padding: 14px; display: grid; place-items: center; margin: 0 auto; box-shadow: 0 0 0 1px rgba(142, 107, 242, .4), 0 20px 50px rgba(109, 63, 232, .35); position: relative; overflow: hidden; }
.qr-box img { width: 100%; height: 100%; image-rendering: pixelated; }
.qr-box::after { content: ""; position: absolute; left: 0; right: 0; height: 3px; background: linear-gradient(90deg, transparent, #8e6bf2, #e84a96, transparent); top: 0; animation: qrscan 2.6s ease-in-out infinite; }
@keyframes qrscan { 50% { top: calc(100% - 3px); } }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.steps-list li { counter-increment: s; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; font-size: .9rem; }
.steps-list li::before { content: counter(s); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: .78rem; background: rgba(142, 107, 242, .25); color: #fff; flex: none; }
.chat-preview { background: #0b141a; border-radius: 14px; padding: 16px; border: 1px solid rgba(255, 255, 255, .06); }
.bubble { max-width: 92%; background: #005c4b; color: #e9edef; padding: 8px 10px 18px; border-radius: 10px 0 10px 10px; margin-left: auto; font-size: .9rem; white-space: pre-wrap; position: relative; box-shadow: 0 1px 1px rgba(0, 0, 0, .3); }
.bubble .tm { position: absolute; right: 8px; bottom: 3px; font-size: .66rem; color: rgba(233, 237, 239, .6); }
.var-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.var-chips button { font: 600 .74rem var(--mono); padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border-strong); background: rgba(142, 107, 242, .1); color: #d9ccff; cursor: pointer; }
.progress { height: 8px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #8e6bf2, #e84a96); transition: width .8s var(--ease); }
.doc-body { white-space: pre-wrap; line-height: 1.65; color: var(--muted); font-size: .93rem; }
.tabs-pill { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(8, 5, 16, .7); border: 1px solid var(--border); flex-wrap: wrap; }
.tabs-pill button { border: 0; background: none; color: var(--muted); font: 700 .86rem var(--font); padding: 8px 14px; border-radius: 9px; cursor: pointer; }
.tabs-pill button.active { background: linear-gradient(135deg, rgba(109, 63, 232, .85), rgba(232, 74, 150, .7)); color: #fff; }
.since { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: #d9ccff; }
@media (prefers-reduced-motion: reduce) { .tilt { transform: none !important; } .login-card::before, .kpi::before { animation: none; } .shine-title { animation: none; } }
textarea.doc-edit { min-height: 380px; font-size: .9rem; line-height: 1.55; }
.chip input { width: 16px; height: 16px; margin: 0 4px 0 0; vertical-align: -2px; }
.side > * { flex-shrink: 0; }
.side .nav { flex-shrink: 1; min-height: 0; }
.side { overflow-y: auto; scrollbar-width: thin; scrollbar-color: rgba(142,107,242,.35) transparent; }
.kpi .v { padding-right: 48px; overflow-wrap: anywhere; }
.kpi.hero .v { font-size: 1.7rem; }

/* ---------- v3.1: carregamento, estados vazios, ajustes ---------- */
.loader { display: grid; justify-items: center; gap: 18px; }
.loader img { height: 42px; width: auto; animation: logoPulse 1.8s ease-in-out infinite; filter: drop-shadow(0 6px 22px rgba(142, 107, 242, .45)); }
.loader-bar { display: block; width: 180px; height: 3px; border-radius: 3px; background: rgba(142, 107, 242, .18); position: relative; overflow: hidden; }
.loader-bar::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; border-radius: 3px; background: linear-gradient(90deg, #8e6bf2, #ff3da5); animation: loadbar 1.1s ease-in-out infinite; }
@keyframes loadbar { 0% { left: -40%; } 100% { left: 100%; } }
@keyframes logoPulse { 50% { opacity: .65; transform: scale(.98); } }
.empty-orb { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 50%; position: relative; display: grid; place-items: center; background: radial-gradient(circle, rgba(142, 107, 242, .28), rgba(142, 107, 242, .04) 70%); }
.empty-orb::before, .empty-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(196, 177, 255, .35); animation: ripple 3s ease-out infinite; }
.empty-orb::after { animation-delay: -1.5s; }
.empty-orb i { width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #8e6bf2, #ff3da5); box-shadow: 0 0 24px rgba(255, 61, 165, .6); }
.empty-orb b { font: 800 1.2rem var(--mono); color: #d9ccff; }
.success-check { width: 88px; height: 88px; }
.success-check svg { width: 100%; height: 100%; }
.success-check circle { stroke: #3ddc97; stroke-width: 2.5; stroke-dasharray: 151; stroke-dashoffset: 151; animation: dash .8s ease forwards; }
.success-check path { stroke: #3ddc97; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 36; stroke-dashoffset: 36; animation: dash .45s .7s ease forwards; }
@keyframes dash { to { stroke-dashoffset: 0; } }
.hero-ref .grid.solo { grid-template-columns: 1fr; }
.side > * { flex-shrink: 0; }
.side .nav { flex-shrink: 0; }
.kpi .spark { width: 40%; height: 40px; opacity: .75; }
.kpi .foot { max-width: 64%; flex-wrap: wrap; }
@media (prefers-reduced-motion: reduce) { .loader img, .loader-bar::after, .empty-orb::before, .empty-orb::after { animation: none; } .success-check circle, .success-check path { stroke-dashoffset: 0; animation: none; } }

/* =====================================================================
   TEMA 4.0 — emblema animado, cronômetro, banners, selos, suporte, refinamentos
   ===================================================================== */
:root {
  --c-roxo: #8e6bf2; --c-rosa: #e84a96; --c-verde: #2bd48f; --c-ouro: #f5b83d; --c-azul: #4a9bf2;
  --c-ciano: #22c7d6; --c-laranja: #f57c3d; --c-vermelho: #f2555a; --c-prata: #b8bccb;
}
/* Tipografia e superfícies mais refinadas */
h1, h2 { letter-spacing: -.025em; }
.page-title h1, .welcome h1 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); }
.panel, .card { border-radius: 18px; }
.panel::after, .card.glow-top::after { content: ""; position: absolute; left: 18px; right: 18px; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(196, 177, 255, .35), transparent); pointer-events: none; }
.kpi { border-radius: 18px; background: linear-gradient(160deg, rgba(38, 26, 64, .78), rgba(16, 11, 28, .78) 65%); }
.kpi .v { background: linear-gradient(180deg, #fff 30%, #d9ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.kpi.hero { background: radial-gradient(420px 180px at 100% 0%, rgba(232, 74, 150, .28), transparent 70%), linear-gradient(150deg, rgba(88, 40, 170, .6), rgba(20, 14, 34, .85) 65%); }
.content { max-width: 1360px; }
.req { font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #ff9fcc; border: 1px solid rgba(232, 74, 150, .45); border-radius: 6px; padding: 1px 5px; margin-left: 6px; vertical-align: 1px; }
.field .hint.good { color: var(--ok); } .field .hint.bad-t { color: var(--warn); } .field .hint.busy { color: #c4b1ff; }
.field.loading-field select { background-image: linear-gradient(90deg, transparent, rgba(142, 107, 242, .18), transparent); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
select:disabled { opacity: .6; }

/* ---------- Emblema animado do título (substitui o cubo) ---------- */
.welcome .title-row { display: flex; align-items: center; gap: 18px; }
.emblem { position: relative; width: 62px; height: 62px; flex: none; display: grid; place-items: center; }
.emblem .em-core { position: relative; z-index: 2; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(145deg, #6d3fe8, #b23fd1 55%, #e84a96); box-shadow: 0 10px 28px rgba(178, 63, 209, .45), inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -8px 16px rgba(40, 10, 80, .35);
  animation: emFloat 5s ease-in-out infinite; }
.emblem .em-core svg { width: 24px; height: 24px; filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35)); }
.emblem .em-core::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .35) 45%, transparent 60%); background-size: 250% 100%; animation: shine 3.8s linear infinite; }
.emblem .em-orbit { position: absolute; inset: -4px; border-radius: 50%; border: 1px dashed rgba(196, 177, 255, .35); animation: spin 14s linear infinite; }
.emblem .em-orbit i { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #ff3da5; box-shadow: 0 0 10px #ff3da5; top: -3px; left: 50%; margin-left: -3px; }
.emblem .em-orbit i:nth-child(2) { top: auto; bottom: -3px; background: #8e6bf2; box-shadow: 0 0 10px #8e6bf2; }
.emblem .em-orbit i:nth-child(3) { top: 50%; left: -3px; margin: -3px 0 0; width: 5px; height: 5px; background: #fff; box-shadow: 0 0 8px #fff; }
@keyframes emFloat { 50% { transform: translateY(-3px) rotate(-3deg); } }

/* ---------- Cronômetro (contagem regressiva) ---------- */
.countdown { display: flex; gap: 8px; align-items: stretch; }
.countdown .cd-unit { position: relative; min-width: 58px; text-align: center; padding: 8px 6px 6px; border-radius: 12px; background: linear-gradient(180deg, rgba(40, 28, 66, .9), rgba(10, 6, 20, .9)); border: 1px solid rgba(142, 107, 242, .3); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 6px 16px rgba(0, 0, 0, .3); overflow: hidden; }
.countdown .cd-unit::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: rgba(0, 0, 0, .45); box-shadow: 0 1px 0 rgba(255, 255, 255, .04); }
.countdown b { display: block; font: 800 1.45rem/1.1 var(--mono); color: #fff; font-variant-numeric: tabular-nums; perspective: 300px; }
.countdown b .cd-v { display: inline-block; }
.countdown b.flip .cd-v { animation: flipIn .45s var(--ease); }
.countdown .cd-l { display: block; font-size: .62rem; color: var(--dim); text-transform: uppercase; letter-spacing: .1em; margin-top: 2px; }
.countdown [data-u="s"] { border-color: rgba(232, 74, 150, .55); }
.countdown .cd-ring { position: absolute; left: 0; bottom: 0; height: 2px; width: calc(var(--p, 0) * 100%); background: linear-gradient(90deg, #8e6bf2, #ff3da5); transition: width 1s linear; }
.countdown.big { gap: 12px; }
.countdown.big .cd-unit { min-width: 84px; padding: 14px 8px 10px; border-radius: 16px; }
.countdown.big b { font-size: 2.35rem; background: linear-gradient(180deg, #fff 40%, #d9ccff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.countdown.big .cd-l { font-size: .68rem; }
.countdown.sm .cd-unit { min-width: 46px; padding: 5px 4px 4px; border-radius: 9px; }
.countdown.sm b { font-size: 1.05rem; }
.countdown.done .cd-unit { opacity: .45; }
.cd-done { margin-top: 8px; font-weight: 800; color: #ff9fcc; }
@keyframes flipIn { 0% { transform: translateY(-28%) rotateX(55deg); opacity: .35; } 70% { transform: translateY(3%); opacity: 1; } 100% { transform: none; } }
@media (max-width: 520px) { .countdown.big { gap: 6px; } .countdown.big .cd-unit { min-width: 0; flex: 1; padding: 10px 4px 8px; } .countdown.big b { font-size: 1.65rem; } }

/* ---------- Destaque do sorteio no painel ---------- */
.raffle-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 150px 1fr auto; gap: 22px; align-items: center; padding: 22px 24px; border-radius: 22px;
  background: radial-gradient(600px 240px at 0% 0%, rgba(232, 74, 150, .32), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(109, 63, 232, .45), transparent 60%), linear-gradient(135deg, #1d0f3a, #0f0820);
  border: 1px solid rgba(232, 74, 150, .45); box-shadow: 0 0 0 1px rgba(142, 107, 242, .15), 0 20px 60px rgba(109, 63, 232, .3); }
.raffle-hero::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: conic-gradient(from var(--ang), transparent 0 60%, rgba(255, 61, 165, .95) 75%, rgba(142, 107, 242, .95) 85%, transparent 95%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spinang 6s linear infinite; pointer-events: none; }
.raffle-hero > * { position: relative; z-index: 1; }
.rh-prize { width: 150px; height: 150px; border-radius: 20px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, rgba(142, 107, 242, .35), rgba(232, 74, 150, .25)); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 16px 40px rgba(0, 0, 0, .45); animation: emFloat 6s ease-in-out infinite; }
.rh-prize img { width: 100%; height: 100%; object-fit: cover; }
.rh-gift svg { width: 70px; height: 70px; color: #fff; filter: drop-shadow(0 6px 18px rgba(255, 61, 165, .6)); }
.rh-info h2 { font-size: clamp(1.3rem, 2.4vw, 1.75rem); margin: 8px 0 6px; }
.rh-tag { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #ffc2de; background: rgba(232, 74, 150, .16); border: 1px solid rgba(232, 74, 150, .45); padding: 4px 10px; border-radius: 999px; }
.rh-timer { text-align: center; }
.rh-timer .eyebrow { margin-bottom: 8px; }
.rh-timer .btn-row { justify-content: center; }
.rh-glow { position: absolute; width: 380px; height: 380px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 61, 165, .35), transparent 65%); filter: blur(10px); animation: drift 12s ease-in-out infinite; z-index: 0; }
.rh-confetti i { position: absolute; top: -10px; width: 6px; height: 12px; border-radius: 2px; opacity: .7; animation: rhfall 7s linear infinite; }
.rh-confetti i:nth-child(1) { left: 20%; background: #ff3da5; } .rh-confetti i:nth-child(2) { left: 38%; background: #8e6bf2; animation-delay: -2s; }
.rh-confetti i:nth-child(3) { left: 56%; background: #fff; animation-delay: -4s; width: 4px; } .rh-confetti i:nth-child(4) { left: 71%; background: #f5b83d; animation-delay: -1s; }
.rh-confetti i:nth-child(5) { left: 86%; background: #ff3da5; animation-delay: -5s; } .rh-confetti i:nth-child(6) { left: 8%; background: #c4b1ff; animation-delay: -3s; }
.rh-confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 0; }
@keyframes rhfall { 0% { transform: translateY(0) rotate(0); } 100% { transform: translateY(260px) rotate(540deg); opacity: 0; } }
.btn-glow { animation: breathe 2.2s infinite; }
.timer-strip { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 20px; border-radius: 18px; background: linear-gradient(135deg, rgba(88, 40, 170, .45), rgba(20, 14, 34, .8)); border: 1px solid rgba(232, 74, 150, .4); }
.raffle-card.open { border-color: rgba(232, 74, 150, .4); }
@media (max-width: 1000px) { .raffle-hero { grid-template-columns: 110px 1fr; } .rh-prize { width: 110px; height: 110px; } .rh-timer { grid-column: 1 / -1; } }
@media (max-width: 560px) { .raffle-hero { grid-template-columns: 1fr; padding: 18px; text-align: center; } .rh-prize { margin: 0 auto; } .rh-state { justify-content: center; display: flex; flex-wrap: wrap; gap: 6px; } }

/* ---------- Carrossel de banners ---------- */
.banner-car { margin-bottom: 18px; }
.carousel { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 1800 / 630; background: #0c0718; border: 1px solid rgba(142, 107, 242, .3); box-shadow: 0 18px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .02); isolation: isolate; }
.car-track { position: absolute; inset: 0; }
.car-slide { position: absolute; inset: 0; display: block; opacity: 0; transform: scale(1.04) translateX(3%); transition: opacity .8s var(--ease), transform 1.1s var(--ease); pointer-events: none; }
.car-slide.on { opacity: 1; transform: none; pointer-events: auto; z-index: 1; }
.car-slide img { position: relative; width: 100%; height: 100%; object-fit: contain; z-index: 1; user-select: none; }
.car-bg { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(26px) brightness(.55) saturate(1.3); }
.carousel.fade-only .car-slide { transform: none; }
.car-nav { position: absolute; top: 50%; z-index: 3; width: 42px; height: 42px; margin-top: -21px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(10, 6, 20, .55); color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; backdrop-filter: blur(6px); opacity: 0; transition: opacity .25s, transform .2s; }
.car-nav.prev { left: 12px; } .car-nav.next { right: 12px; }
.carousel:hover .car-nav, .carousel:focus-within .car-nav { opacity: 1; }
.car-nav:hover { transform: scale(1.08); }
.car-dots { position: absolute; z-index: 3; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(10, 6, 20, .55); backdrop-filter: blur(6px); }
.car-dots button { width: 26px; height: 5px; padding: 0; border: 0; border-radius: 4px; background: rgba(255, 255, 255, .28); cursor: pointer; overflow: hidden; position: relative; }
.car-dots button i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: linear-gradient(90deg, #c4b1ff, #ff3da5); }
.car-dots button[aria-selected="true"] { width: 42px; background: rgba(255, 255, 255, .35); }
.car-dots button.run i { animation: carbar var(--car-ms, 10s) linear forwards; }
.carousel.paused .car-dots button.run i { animation-play-state: paused; }
@keyframes carbar { to { width: 100%; } }
@media (max-width: 640px) { .carousel { border-radius: 14px; } .car-nav { display: none; } .car-dots { bottom: 6px; padding: 4px 8px; } }

/* ---------- Selos ---------- */
.selos { display: flex; flex-wrap: wrap; gap: 6px; }
.selo { --sc: var(--c-roxo); display: inline-flex; align-items: center; gap: 7px; padding: 3px 11px 3px 3px; border-radius: 999px; font-size: .78rem; font-weight: 750; color: #fff; white-space: nowrap;
  background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 32%, transparent), color-mix(in srgb, var(--sc) 10%, transparent)); border: 1px solid color-mix(in srgb, var(--sc) 60%, transparent); box-shadow: 0 0 14px color-mix(in srgb, var(--sc) 22%, transparent); }
.selo .selo-ic { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--sc); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.selo .selo-ic svg { width: 13px; height: 13px; }
.selo.xs { font-size: .66rem; padding: 1px 8px 1px 2px; } .selo.xs .selo-ic { width: 16px; height: 16px; } .selo.xs .selo-ic svg { width: 10px; height: 10px; }
.selo.lg { font-size: .92rem; padding: 5px 16px 5px 5px; } .selo.lg .selo-ic { width: 32px; height: 32px; } .selo.lg .selo-ic svg { width: 18px; height: 18px; }
.c-roxo { --sc: var(--c-roxo); } .c-rosa { --sc: var(--c-rosa); } .c-verde { --sc: var(--c-verde); } .c-ouro { --sc: var(--c-ouro); } .c-azul { --sc: var(--c-azul); }
.c-ciano { --sc: var(--c-ciano); } .c-laranja { --sc: var(--c-laranja); } .c-vermelho { --sc: var(--c-vermelho); } .c-prata { --sc: var(--c-prata); }
.selo.c-ouro .selo-ic, .selo.c-prata .selo-ic { color: #231500; }
.me-card .mini .selo { margin-top: 3px; }
.icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(46px, 100%), 1fr)); gap: 6px; max-height: 250px; overflow: auto; padding: 4px; border-radius: 12px; border: 1px solid var(--border); background: rgba(8, 5, 16, .5); }
.icon-grid label { display: grid; place-items: center; height: 46px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; color: var(--muted); transition: all .15s; }
.icon-grid label:hover { background: rgba(142, 107, 242, .12); color: #fff; }
.icon-grid input { position: absolute; opacity: 0; pointer-events: none; }
.icon-grid label:has(input:checked) { background: linear-gradient(135deg, #6d3fe8, #e84a96); color: #fff; box-shadow: 0 4px 14px rgba(178, 63, 209, .45); }
.icon-grid svg { width: 22px; height: 22px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatches label { width: 34px; height: 34px; border-radius: 50%; background: var(--sc); cursor: pointer; border: 2px solid transparent; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); position: relative; }
.swatches input { position: absolute; opacity: 0; pointer-events: none; }
.swatches label:has(input:checked) { border-color: #fff; box-shadow: 0 0 0 3px color-mix(in srgb, var(--sc) 60%, transparent), 0 0 18px var(--sc); }
.badge-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 14px; }
.badge-card { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.badge-card.off { opacity: .5; }
.badge-card .big-ic { width: 54px; height: 54px; flex: none; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(145deg, var(--sc), color-mix(in srgb, var(--sc) 45%, #000)); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--sc) 35%, transparent), inset 0 1px 0 rgba(255, 255, 255, .3); }
.badge-card .big-ic svg { width: 28px; height: 28px; }

/* ---------- Cartão de identidade (perfil) ---------- */
.id-card { display: flex; gap: 18px; align-items: center; padding: 20px 22px; border-radius: 20px; background: radial-gradient(500px 200px at 100% 0%, rgba(232, 74, 150, .2), transparent 60%), linear-gradient(135deg, rgba(88, 40, 170, .45), rgba(16, 11, 28, .85)); border: 1px solid rgba(142, 107, 242, .35); }
.avatar.xl { width: 68px; height: 68px; border-radius: 20px; font-size: 1.5rem; }
.data-list dt { display: flex; align-items: center; }
.switch-row { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.switch { width: 46px; height: 26px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border-strong); position: relative; flex: none; transition: background .25s; margin-top: 2px; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--ease); box-shadow: 0 2px 6px rgba(0, 0, 0, .4); }
.switch-row input:checked + .switch { background: linear-gradient(135deg, #16a34a, #22c55e); border-color: transparent; }
.switch-row input:checked + .switch::after { transform: translateX(20px); }
.switch-row input:focus-visible + .switch { outline: 2px solid var(--pink-bright); outline-offset: 2px; }

/* ---------- Suporte (chat) ---------- */
.help-card { display: flex; gap: 14px; align-items: center; color: var(--text); text-decoration: none !important; background: linear-gradient(135deg, rgba(22, 163, 74, .16), rgba(20, 14, 34, .7)); border-color: rgba(61, 220, 151, .3); transition: transform .2s var(--ease), border-color .2s; }
.help-card:hover { transform: translateY(-2px); border-color: rgba(61, 220, 151, .6); }
.help-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(145deg, #16a34a, #0f7a3a); color: #fff; flex: none; box-shadow: 0 8px 22px rgba(22, 163, 74, .35); }
.help-ic svg { width: 24px; height: 24px; }
.count-pill { margin-left: auto; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 800; font-size: .8rem; animation: breathe 2s infinite; }
.ticket-list { display: grid; gap: 10px; }
.ticket { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); color: var(--text); text-decoration: none !important; transition: border-color .2s, transform .2s var(--ease); }
.ticket:hover { border-color: rgba(142, 107, 242, .55); transform: translateX(3px); }
.ticket.unread { border-color: rgba(232, 74, 150, .5); background: linear-gradient(90deg, rgba(232, 74, 150, .1), var(--surface)); }
.ticket .t-ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: rgba(142, 107, 242, .16); color: #c4b1ff; flex: none; }
.ticket .t-ic svg { width: 20px; height: 20px; }
.ticket .t-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70ch; }
.chat { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: min(72vh, 760px); min-height: 420px; }
.chat-log { flex: 1; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 10px; background: radial-gradient(600px 300px at 100% 0%, rgba(109, 63, 232, .12), transparent 60%); scroll-behavior: smooth; }
.msg { max-width: min(78%, 620px); padding: 10px 14px 8px; border-radius: 16px; position: relative; animation: pop .25s var(--ease); font-size: .93rem; }
.msg .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.msg time { display: block; font-size: .68rem; color: rgba(255, 255, 255, .55); margin-top: 4px; text-align: right; }
.msg .who { display: block; font-size: .72rem; font-weight: 800; color: #c4b1ff; margin-bottom: 2px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, #6d3fe8, #b23fd1); border-bottom-right-radius: 4px; box-shadow: 0 6px 18px rgba(109, 63, 232, .35); }
.msg.them { align-self: flex-start; background: var(--surface-3); border: 1px solid var(--border-strong); border-bottom-left-radius: 4px; }
.msg.them.staff-me { background: linear-gradient(135deg, #6d3fe8, #b23fd1); border: 0; }
.msg.sys { align-self: center; max-width: 90%; text-align: center; background: rgba(8, 5, 16, .55); border: 1px dashed var(--border-strong); font-size: .78rem; color: var(--muted); padding: 6px 12px; border-radius: 999px; }
.msg.sys time { display: inline; margin: 0 0 0 8px; }
.msg .att { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; padding: 6px 10px; border-radius: 10px; background: rgba(0, 0, 0, .25); color: #fff; font-size: .82rem; font-weight: 600; }
.msg .att svg { width: 16px; height: 16px; }
.chat-note { padding: 8px 16px; font-size: .82rem; color: var(--ok); background: var(--ok-soft); border-top: 1px solid rgba(61, 220, 151, .3); }
.chat-input { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--border); background: rgba(8, 5, 16, .6); }
.chat-input textarea { min-height: 44px; max-height: 160px; resize: none; border-radius: 14px; }
.chat-input .btn-icon { width: 46px; height: 46px; border-radius: 14px; flex: none; }
.att-btn { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--border-strong); cursor: pointer; flex: none; }
.att-btn:hover { color: #fff; border-color: var(--purple); }
.att-btn svg { width: 20px; height: 20px; }
.att-name { padding: 0 16px 8px; }
.inbox { display: grid; grid-template-columns: 360px 1fr; gap: 16px; align-items: start; }
.inbox-list { max-height: calc(100vh - 220px); overflow-y: auto; display: grid; gap: 8px; padding-right: 4px; }
.inbox-list .ticket { padding: 12px; }
.inbox-list .ticket.sel { border-color: var(--pink); box-shadow: 0 0 0 1px var(--pink), 0 0 20px rgba(232, 74, 150, .2); }
@media (max-width: 1100px) { .inbox { grid-template-columns: 1fr; } .inbox-list { max-height: none; } }
@media (max-width: 640px) { .chat { height: calc(100vh - 230px); } .msg { max-width: 90%; } }

/* ---------- Comprovantes ---------- */
.receipts { display: grid; gap: 8px; }
.receipt { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: rgba(8, 5, 16, .45); }
.receipt.removed { opacity: .55; border-style: dashed; }
.receipt .r-ic { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: rgba(61, 220, 151, .14); color: var(--ok); flex: none; }
.receipt .r-ic svg { width: 18px; height: 18px; }

/* ---------- Banners (admin) ---------- */
.banner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.banner-item { border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); display: flex; flex-direction: column; }
.banner-item.off { opacity: .55; }
.banner-item .bi-img { aspect-ratio: 1800 / 630; background: #0c0718; position: relative; }
.banner-item .bi-img img { width: 100%; height: 100%; object-fit: contain; }
.banner-item .bi-pos { position: absolute; top: 8px; left: 8px; background: rgba(10, 6, 20, .7); border-radius: 8px; padding: 2px 8px; font: 800 .78rem var(--mono); }
.banner-item .bi-body { padding: 12px 14px; display: grid; gap: 8px; }
.drop { border: 2px dashed var(--border-strong); border-radius: 14px; padding: 18px; text-align: center; color: var(--muted); cursor: pointer; transition: border-color .2s, background .2s; display: block; }
.drop:hover, .drop.over { border-color: var(--pink); background: rgba(232, 74, 150, .06); }
.drop img { max-height: 140px; margin: 10px auto 0; border-radius: 10px; }

/* ---------- Assistente de conexão do WhatsApp ---------- */
.wizard { display: grid; gap: 10px; }
.wz-step { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: rgba(8, 5, 16, .45); }
.wz-step .n { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--surface-3); color: var(--muted); }
.wz-step.ok { border-color: rgba(61, 220, 151, .45); } .wz-step.ok .n { background: var(--ok); color: #03140c; }
.wz-step.bad { border-color: rgba(255, 92, 122, .45); } .wz-step.bad .n { background: var(--bad); color: #fff; }
.wz-step.run .n { background: linear-gradient(135deg, #6d3fe8, #e84a96); color: #fff; animation: breathe 1.6s infinite; }
.qr-box.wait { background: rgba(8, 5, 16, .6); color: var(--muted); text-align: center; font-size: .9rem; }
.qr-box.wait::after { display: none; }
.pairing { font: 800 1.4rem var(--mono); letter-spacing: .2em; text-align: center; color: #fff; }
.qr-timer { height: 4px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 10px; }
.qr-timer i { display: block; height: 100%; background: linear-gradient(90deg, #22c55e, #8e6bf2); width: 100%; transition: width 1s linear; }

/* ---------- Admin: edição por master ---------- */
.master-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #231500; background: linear-gradient(135deg, #ffd66b, #f5b83d); padding: 3px 9px; border-radius: 999px; }
.master-tag svg { width: 12px; height: 12px; }
.locked-note { display: flex; gap: 8px; align-items: center; font-size: .8rem; color: var(--dim); }
.locked-note svg { width: 14px; height: 14px; }
.rank-panel { padding: 12px 18px; }
@media (prefers-reduced-motion: reduce) {
  .emblem .em-orbit, .emblem .em-core, .emblem .em-core::after, .rh-prize, .rh-glow, .rh-confetti, .raffle-hero::before, .btn-glow, .count-pill { animation: none !important; }
  .countdown b.flip .cd-v { animation: none; }
  .car-slide { transition: opacity .01s; transform: none; }
}
.center-row { justify-content: center; }
.w-auto { width: auto; min-width: 200px; }
h1 svg, h2 svg, h3 svg { width: 1em; height: 1em; vertical-align: -.12em; flex: none; }
.card-head h2, .card-head h3, .card > h2, .card > h3 { display: flex; align-items: center; gap: 10px; }
.card-head h2 svg, .card > h2 svg, .card > h3 svg { color: #c4b1ff; }
.badge svg { width: 12px; height: 12px; }
.kpi .v.text-v { font-size: 1.35rem; }
.me-card .master-tag { font-size: .58rem; padding: 2px 7px; letter-spacing: .06em; }
p > svg, .empty > svg, li > svg { width: 1.1em; height: 1.1em; vertical-align: -.15em; }
.ticket > .w-100 { min-width: 0; } .inbox-list .ticket .t-last { max-width: 100%; }
@media (max-width: 900px) {
  .shell, .shell.collapsed { grid-template-columns: minmax(0, 1fr); }
  .welcome .title-row { gap: 12px; }
  .emblem { width: 50px; height: 50px; } .emblem .em-core { width: 38px; height: 38px; border-radius: 12px; }
  .rank-panel { width: 100%; }
  .raffle-hero .btn-row { justify-content: center; }
}

/* =====================================================================
   TEMA CLARO ("White") — ativado por data-theme="light" (botão ☀/☾ no topo e em Meus dados)
   ===================================================================== */
[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f3fc; --bg-2: #ffffff; --surface: rgba(255, 255, 255, .92); --surface-solid: #ffffff; --surface-2: #f4f0fc; --surface-3: #ebe4fa;
  --border: rgba(109, 63, 232, .14); --border-strong: rgba(109, 63, 232, .28);
  --text: #1d1530; --muted: #4f4668; --dim: #7a7294;
  --purple: #6d3fe8; --purple-soft: rgba(109, 63, 232, .1); --pink: #d43d86; --pink-bright: #c2257a; --pink-soft: rgba(212, 61, 134, .1);
  --ok: #0f9960; --ok-soft: rgba(15, 153, 96, .1); --warn: #b7791f; --warn-soft: rgba(183, 121, 31, .12); --bad: #d6334f; --bad-soft: rgba(214, 51, 79, .1); --info: #1c7ed6; --info-soft: rgba(28, 126, 214, .1);
  --shadow: 0 10px 30px rgba(60, 30, 120, .12); --neon: 0 0 0 1px rgba(109, 63, 232, .18), 0 10px 30px rgba(109, 63, 232, .12);
  --glow: 0 0 0 1px rgba(109, 63, 232, .2), 0 12px 34px rgba(109, 63, 232, .14);
}
[data-theme="light"] body { background: var(--bg); color: var(--text); }
[data-theme="light"] .bg-scene { background: radial-gradient(1100px 600px at 90% -10%, rgba(109, 63, 232, .12), transparent 60%), radial-gradient(900px 600px at -10% 110%, rgba(232, 74, 150, .08), transparent 60%), var(--bg); }
[data-theme="light"] .bg-scene .aurora { opacity: .12; }
[data-theme="light"] .bg-scene .grid-flat { background-image: linear-gradient(rgba(109, 63, 232, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(109, 63, 232, .06) 1px, transparent 1px); }
[data-theme="light"] .bg-scene .grid-floor { opacity: .35; }
[data-theme="light"] .bg-scene .scan { display: none; }
[data-theme="light"] .card, [data-theme="light"] .panel, [data-theme="light"] .kpi { background: #fff; box-shadow: 0 1px 2px rgba(40, 20, 80, .04), 0 8px 24px rgba(60, 30, 120, .06); }
[data-theme="light"] .kpi { background: linear-gradient(170deg, #fff, #faf7ff); }
[data-theme="light"] .kpi .v, [data-theme="light"] .countdown.big b { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--text); }
[data-theme="light"] .kpi.hero, [data-theme="light"] .hero-ref, [data-theme="light"] .id-card, [data-theme="light"] .timer-strip {
  background: radial-gradient(500px 200px at 100% 0%, rgba(232, 74, 150, .14), transparent 60%), linear-gradient(135deg, #f1eaff, #fff 70%); border-color: rgba(109, 63, 232, .3); }
[data-theme="light"] .raffle-hero { background: radial-gradient(600px 240px at 0% 0%, rgba(232, 74, 150, .16), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(109, 63, 232, .16), transparent 60%), linear-gradient(135deg, #fbf8ff, #f3ecff); border-color: rgba(212, 61, 134, .4); box-shadow: 0 16px 40px rgba(109, 63, 232, .14); }
[data-theme="light"] .rh-tag { color: #b0125f; }
[data-theme="light"] .side { background: rgba(255, 255, 255, .92); }
[data-theme="light"] .topbar { background: rgba(255, 255, 255, .85); }
[data-theme="light"] .me-card { background: linear-gradient(135deg, rgba(109, 63, 232, .08), rgba(232, 74, 150, .04)); }
[data-theme="light"] .nav a:hover { background: rgba(109, 63, 232, .07); }
[data-theme="light"] .nav a.active { color: var(--text); background: linear-gradient(90deg, rgba(109, 63, 232, .12), rgba(232, 74, 150, .04)); }
[data-theme="light"] .nav a:hover .ico { color: var(--purple); }
[data-theme="light"] .page-crumb b, [data-theme="light"] .tabs button.active, [data-theme="light"] .chip.active, [data-theme="light"] .seg-sm button.active { color: var(--text); }
[data-theme="light"] .countdown .cd-unit { background: linear-gradient(180deg, #fff, #f3eefd); border-color: rgba(109, 63, 232, .22); box-shadow: 0 4px 12px rgba(60, 30, 120, .08); }
[data-theme="light"] .countdown .cd-unit::before { background: rgba(109, 63, 232, .1); box-shadow: none; }
[data-theme="light"] .countdown b, [data-theme="light"] .pairing { color: var(--text); }
[data-theme="light"] input, [data-theme="light"] select, [data-theme="light"] textarea { background: #fff; border-color: rgba(109, 63, 232, .25); color: var(--text); }
[data-theme="light"] .btn { background: #fff; border-color: rgba(109, 63, 232, .25); color: var(--text); }
[data-theme="light"] .btn:hover { border-color: var(--purple); }
[data-theme="light"] .btn-primary { color: #fff; background: linear-gradient(135deg, #6d3fe8, #b23fd1 55%, #e84a96); border-color: transparent; }
[data-theme="light"] .btn-danger { background: var(--bad-soft); color: var(--bad); border-color: rgba(214, 51, 79, .4); }
[data-theme="light"] .btn-whats { background: #1f9d55; color: #fff; border-color: transparent; }
[data-theme="light"] .btn-ghost { background: transparent; }
[data-theme="light"] th { background: #f4f0fc; }
[data-theme="light"] .table-wrap, [data-theme="light"] .pix-item, [data-theme="light"] .receipt, [data-theme="light"] .queue a, [data-theme="light"] .status-tile, [data-theme="light"] .wz-step, [data-theme="light"] .ticket { background: #fff; }
[data-theme="light"] .pix-item, [data-theme="light"] .rules, [data-theme="light"] .code-box { background: #faf8ff; }
[data-theme="light"] .ref-link { background: #fff; border-color: rgba(109, 63, 232, .35); }
[data-theme="light"] .ref-link input { color: var(--text); }
[data-theme="light"] .panel-head h3 svg, [data-theme="light"] .kpi .k svg, [data-theme="light"] .card-head h2 svg, [data-theme="light"] .card > h2 svg, [data-theme="light"] .card > h3 svg, [data-theme="light"] .feed .ic,
[data-theme="light"] .eyebrow, [data-theme="light"] .me-card .rl, [data-theme="light"] .since, [data-theme="light"] .msg .who, [data-theme="light"] .ticket .t-ic, [data-theme="light"] .search-results .t { color: #5b2fd0; }
[data-theme="light"] .gradient-text, [data-theme="light"] .rank-badge b { background: linear-gradient(90deg, #6d3fe8, #d43d86); -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .shine-title { background: linear-gradient(90deg, #1d1530 0%, #1d1530 40%, #6d3fe8 50%, #d43d86 55%, #1d1530 65%, #1d1530 100%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; }
[data-theme="light"] .badge.purple { color: #5b2fd0; } [data-theme="light"] .badge.pink { color: #b0125f; }
[data-theme="light"] .kpi .ico3d { color: #fff; background: linear-gradient(145deg, #7d52f0, #d43d86); border-color: transparent; box-shadow: 0 8px 18px rgba(109, 63, 232, .3); }
[data-theme="light"] .msg.them { background: #f1ecfc; border-color: rgba(109, 63, 232, .18); color: var(--text); }
[data-theme="light"] .msg.me { color: #fff; }
[data-theme="light"] .msg.me time { color: rgba(255, 255, 255, .75); }
[data-theme="light"] .msg time { color: var(--dim); }
[data-theme="light"] .msg.sys { background: #faf8ff; }
[data-theme="light"] .chat-log { background: radial-gradient(600px 300px at 100% 0%, rgba(109, 63, 232, .06), transparent 60%), #fff; }
[data-theme="light"] .chat-input { background: #faf8ff; }
[data-theme="light"] .carousel { background: #efe9fb; border-color: rgba(109, 63, 232, .2); box-shadow: 0 14px 36px rgba(60, 30, 120, .14); }
[data-theme="light"] .login-card { background: rgba(255, 255, 255, .94); box-shadow: 0 30px 70px rgba(60, 30, 120, .18); }
[data-theme="light"] .seg { background: #f4f0fc; } [data-theme="light"] .seg button.active { color: #fff; }
[data-theme="light"] .typed-line { color: #5b2fd0; }
[data-theme="light"] .modal { background: #fff; }
[data-theme="light"] .toast { background: #fff; color: var(--text); }
[data-theme="light"] .skeleton { background: linear-gradient(90deg, #f1ecfb, #e7defa, #f1ecfb); background-size: 200% 100%; }
[data-theme="light"] .empty-orb b, [data-theme="light"] .var-chips button, [data-theme="light"] .queue .n { color: #5b2fd0; }
[data-theme="light"] .tabs-pill, [data-theme="light"] .seg-sm { background: #f4f0fc; }
[data-theme="light"] .tabs-pill button.active { color: #fff; }
[data-theme="light"] .help-card { background: linear-gradient(135deg, rgba(15, 153, 96, .08), #fff); }
[data-theme="light"] .selo { color: var(--text); background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 16%, #fff), color-mix(in srgb, var(--sc) 6%, #fff)); }
[data-theme="light"] .demo-banner { color: #6b4400; background: repeating-linear-gradient(45deg, #ffe7b0, #ffe7b0 12px, #fff1cc 12px, #fff1cc 24px); }
[data-theme="light"] .alert { color: var(--text); }
[data-theme="light"] .chart-tip { background: #fff; color: var(--text); }
[data-theme="light"] .icon-grid { background: #faf8ff; }
[data-theme="light"] .icon-grid label:hover { color: var(--purple); }
[data-theme="light"] .att-btn:hover { color: var(--purple); }
[data-theme="light"] .avatar::after { border-color: #fff; }
[data-theme="light"] .search-results { background: #fff; }
[data-theme="light"] .master-tag { color: #231500; }

/* Botão de tema */
.theme-btn svg { width: 19px; height: 19px; }
.theme-seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); }
.theme-seg button { border: 0; background: none; color: var(--muted); font: 700 .84rem var(--font); padding: 8px 12px; border-radius: 9px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.theme-seg button svg { width: 16px; height: 16px; }
.theme-seg button.active { background: linear-gradient(135deg, #6d3fe8, #e84a96); color: #fff; }

/* ---------- v5: banners proporcionais, fotos de prêmio, avatar, confirmação de saída ---------- */
.carousel.car-banner { aspect-ratio: var(--car-ar, 1800 / 630); border-radius: 22px; }
.carousel.fit-cover .car-slide img { object-fit: cover; border-radius: inherit; }
.carousel.fit-cover .car-bg { display: none; }
.carousel .car-slide { border-radius: inherit; overflow: hidden; }
.carousel.car-photo { aspect-ratio: 1 / 1; border-radius: 18px; background: #120a22; }
.carousel.car-photo .car-dots { bottom: 8px; padding: 4px 8px; }
.carousel.car-photo .car-dots button { width: 16px; } .carousel.car-photo .car-dots button[aria-selected="true"] { width: 26px; }
.carousel.car-photo .car-nav { width: 34px; height: 34px; margin-top: -17px; font-size: 1.3rem; }
.rh-prize .carousel { width: 100%; height: 100%; aspect-ratio: auto; border: 0; border-radius: 0; box-shadow: none; }
.prize-gallery { width: 100%; max-width: 360px; }
.prize-thumb { width: 120px; height: 120px; border-radius: 14px; overflow: hidden; flex: none; }
.prize-thumb .carousel { width: 100%; height: 100%; aspect-ratio: auto; border-radius: 14px; }
@media (max-width: 640px) { .carousel.car-banner { border-radius: 16px; } }
[data-theme="light"] .carousel.car-photo { background: #f1ecfb; }

.avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; pointer-events: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; -webkit-touch-callout: none; }
.avatar { user-select: none; -webkit-user-select: none; }
.avatar.sm { width: 28px; height: 28px; border-radius: 9px; font-size: .72rem; } .avatar.sm::after, .avatar.xs::after, .avatar.nodot::after { display: none; }
.avatar.xs { width: 22px; height: 22px; border-radius: 7px; font-size: .6rem; }
.avatar.lg { width: 48px; height: 48px; border-radius: 14px; }
.avatar.round { border-radius: 50%; }
.avatar-edit { position: relative; display: inline-block; }
.avatar-edit .ae-btn { position: absolute; right: -6px; bottom: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--bg); background: linear-gradient(135deg, #6d3fe8, #e84a96); color: #fff; cursor: pointer; }
.avatar-edit .ae-btn svg { width: 15px; height: 15px; }
.msg-row { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.msg-row.me { flex-direction: row-reverse; align-self: flex-end; }
.msg-row.them { align-self: flex-start; }
.msg-row .msg { max-width: min(72vw, 580px); }
.ap { display: grid; gap: 12px; }
.ap-stage { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto; border-radius: 20px; overflow: hidden; background: #1b1230; touch-action: none; }
.ap-stage canvas { width: 100%; height: 100%; display: block; cursor: grab; }
.ap-stage canvas:active { cursor: grabbing; }
.ap-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(5, 3, 10, .45); pointer-events: none; outline: 2px solid rgba(255, 255, 255, .7); outline-offset: -2px; }
.ap-empty { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 4px; color: #fff; cursor: pointer; background: linear-gradient(145deg, rgba(109, 63, 232, .45), rgba(232, 74, 150, .3)); z-index: 2; }
.ap-empty span { font-size: 2.4rem; }
.ap-ctrl input[type=range] { padding: 0; min-height: 28px; accent-color: var(--pink); }
.bye-modal { width: min(440px, 100%); text-align: center; padding: 30px 26px 24px; }
.bye-ic { position: relative; width: 84px; height: 84px; margin: 0 auto 14px; border-radius: 26px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #6d3fe8, #b23fd1 55%, #e84a96); box-shadow: 0 16px 40px rgba(178, 63, 209, .45); animation: byeIn .5s var(--ease); }
.bye-ic svg { width: 38px; height: 38px; animation: byeWave 1.6s ease-in-out .4s infinite; }
.bye-ic span { position: absolute; inset: -8px; border-radius: 32px; border: 1px solid rgba(196, 177, 255, .45); animation: ripple 2.4s ease-out infinite; }
.bye-t { font-size: 1.4rem; margin-bottom: 6px; }
@keyframes byeIn { from { transform: scale(.6) rotate(-12deg); opacity: 0; } }
@keyframes byeWave { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) { .bye-ic, .bye-ic svg, .bye-ic span { animation: none; } }

/* ---------- v5: pontos e ranking ---------- */
.pts-card { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; color: #fff; background: radial-gradient(420px 200px at 110% -10%, rgba(255, 207, 90, .45), transparent 60%), linear-gradient(135deg, #3a1784, #7a2ab8 55%, #d43d86); box-shadow: 0 18px 48px rgba(122, 42, 184, .35); }
.pts-card::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); animation: sweep 4.5s ease-in-out infinite; }
.pts-card .pts-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; position: relative; z-index: 1; }
.pts-card .pts-lbl { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .85; }
.pts-card .pts-val { font: 800 2.6rem/1 var(--font); letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.pts-card .pts-val small { font-size: 1rem; font-weight: 700; opacity: .8; margin-left: 6px; }
.pts-card .pts-star { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .3); }
.pts-card .pts-star svg { width: 28px; height: 28px; color: #ffd66b; filter: drop-shadow(0 0 10px rgba(255, 214, 107, .7)); }
.pts-card .pts-bar { position: relative; z-index: 1; height: 10px; border-radius: 6px; background: rgba(255, 255, 255, .2); overflow: hidden; margin: 14px 0 6px; }
.pts-card .pts-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, #ffd66b, #fff); transition: width 1.2s var(--ease); }
.pts-card .pts-foot { position: relative; z-index: 1; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .82rem; opacity: .92; }
.pts-card .btn { position: relative; z-index: 1; background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .35); }
.pts-rules { display: flex; gap: 10px; flex-wrap: wrap; }
.pts-rule { flex: 1 1 180px; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.pts-rule b { font-size: 1.3rem; color: var(--purple); }
.reward-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.reward { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: var(--surface); transition: transform .2s var(--ease), border-color .2s; }
.reward:hover { transform: translateY(-3px); border-color: rgba(142, 107, 242, .5); }
.reward .rw-img { aspect-ratio: 16 / 10; background: linear-gradient(135deg, rgba(109, 63, 232, .35), rgba(232, 74, 150, .25)); display: grid; place-items: center; }
.reward .rw-img img { width: 100%; height: 100%; object-fit: cover; }
.reward .rw-img svg { width: 48px; height: 48px; color: #fff; }
.reward .rw-body { padding: 14px; display: grid; gap: 6px; flex: 1; }
.reward .rw-cost { font-weight: 800; color: var(--purple); display: inline-flex; gap: 6px; align-items: center; }
.reward .rw-cost svg { width: 16px; height: 16px; }
.reward.locked { opacity: .75; }
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; margin-bottom: 18px; }
.pod { text-align: center; border-radius: 20px 20px 12px 12px; padding: 16px 10px 14px; border: 1px solid var(--border); background: var(--surface); position: relative; }
.pod .medal { width: 46px; height: 46px; margin: 0 auto 8px; border-radius: 50%; display: grid; place-items: center; font: 800 1.1rem var(--font); color: #231500; box-shadow: 0 8px 20px rgba(0, 0, 0, .25); }
.pod.p1 { padding-top: 26px; border-color: rgba(245, 184, 61, .6); background: linear-gradient(180deg, rgba(245, 184, 61, .16), var(--surface)); }
.pod.p1 .medal { background: linear-gradient(135deg, #ffe08a, #f5b83d); width: 56px; height: 56px; font-size: 1.3rem; }
.pod.p2 .medal { background: linear-gradient(135deg, #f1f3f8, #b8bccb); }
.pod.p3 .medal { background: linear-gradient(135deg, #ffcfa3, #d9864a); }
.pod .pn { font-weight: 800; } .pod .pp { font: 800 1.25rem var(--font); color: var(--purple); margin-top: 4px; }
.pod.me { box-shadow: 0 0 0 2px var(--pink); }
.rank-list { display: grid; gap: 6px; }
.rank-row { display: grid; grid-template-columns: 46px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); }
.rank-row .pos { font: 800 1rem var(--mono); color: var(--muted); text-align: center; }
.rank-row .pts { font-weight: 800; color: var(--purple); font-variant-numeric: tabular-nums; }
.rank-row.me { border-color: var(--pink); background: linear-gradient(90deg, var(--pink-soft), var(--surface)); }
.my-rank { display: flex; gap: 16px; align-items: center; padding: 16px 20px; border-radius: 18px; margin-bottom: 16px; background: linear-gradient(135deg, rgba(109, 63, 232, .2), rgba(232, 74, 150, .12)); border: 1px solid rgba(142, 107, 242, .4); }
.my-rank .big { font: 800 2.2rem var(--font); }
@media (max-width: 560px) { .podium { gap: 6px; } .pod { padding: 12px 6px; } .pod .pn { font-size: .85rem; } }
.ml-auto { margin-left: auto; } .pos-pts { color: var(--ok); } .neg-pts { color: var(--bad); } a.rank-panel { color: inherit; text-decoration: none !important; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(96px, 100%), 1fr)); gap: 8px; }
.pg-item { position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 1; background: var(--surface-2); }
.pg-item img { width: 100%; height: 100%; object-fit: cover; }
.pg-item .bi-pos { position: absolute; top: 4px; left: 4px; background: rgba(10, 6, 20, .7); color: #fff; border-radius: 6px; padding: 1px 6px; font: 800 .7rem var(--mono); }
.pg-act { position: absolute; left: 4px; right: 4px; bottom: 4px; display: flex; gap: 4px; justify-content: center; }
.pg-act .btn { width: 28px; min-height: 28px; height: 28px; padding: 0; }
.pg-act .btn svg { width: 14px; height: 14px; }
.master-box { border-color: rgba(245, 184, 61, .45); background: linear-gradient(135deg, rgba(245, 184, 61, .1), var(--surface)); }
.bye-ic.sm-ic { width: 46px; height: 46px; border-radius: 14px; margin: 0; background: linear-gradient(145deg, #ffd66b, #f5b83d); color: #231500; box-shadow: 0 8px 20px rgba(245, 184, 61, .35); animation: none; }
.bye-ic.sm-ic svg { width: 22px; height: 22px; animation: none; }
.me-card { position: relative; }
.me-photo { position: absolute; left: 34px; top: 34px; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--bg-2); background: linear-gradient(135deg, #6d3fe8, #e84a96); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 2; }
.me-photo svg { width: 11px; height: 11px; }
.me-card .avatar::after { display: none; }
.kpi-mini { font: 800 1.5rem var(--font); color: var(--purple); margin-right: 18px; font-variant-numeric: tabular-nums; }
.shell.collapsed .me-photo { display: none; }
.narrow-lg { max-width: 760px; } a.rank-row { color: inherit; text-decoration: none !important; }
[data-theme="light"] .pill-status { background: #fff; color: var(--muted); }
[data-theme="light"] .feed .ic.ok { color: var(--ok); } [data-theme="light"] .feed .ic.bad { color: var(--bad); } [data-theme="light"] .feed .ic.pink { color: #b0125f; }
[data-theme="light"] .rank-row, [data-theme="light"] .pod, [data-theme="light"] .reward, [data-theme="light"] .badge-card, [data-theme="light"] .banner-item { background: #fff; }
[data-theme="light"] .my-rank { background: linear-gradient(135deg, rgba(109, 63, 232, .1), rgba(232, 74, 150, .06)); }
[data-theme="light"] .pts-rule { background: #faf8ff; }

/* =====================================================================
   VERSÃO 6 — aparelhos, página inicial, live do sorteio, QR Code, indicações
   ===================================================================== */
/* ---------- Ajuste automático por aparelho (data-device definido em theme.js) ---------- */
html[data-device="mobile"] { font-size: 16px; }
html[data-device="mobile"] body { font-size: 15.5px; }
html[data-device="tablet"] body { font-size: 16px; }
html[data-device="notebook"] body { font-size: 15px; }
html[data-device="desktop"] body { font-size: 15.5px; }
html[data-device="wide"] body { font-size: 17px; }
html[data-device="wide"] .container { width: min(1360px, 100% - 64px); }
/* Conteúdo centralizado com largura máxima: nada de tela "esticada" em monitores grandes */
.content { margin-inline: auto; width: 100%; }
html[data-device="desktop"] .content { max-width: 1400px; }
html[data-device="wide"] .content { max-width: 1560px; padding: 32px 40px; }
html[data-device="tablet"] .content { padding: 20px; }
/* Toque: alvos de pelo menos 44px e sem efeitos de hover que "grudam" */
html[data-input="touch"] .btn { min-height: 44px; }
html[data-input="touch"] .btn-sm { min-height: 40px; }
html[data-input="touch"] .nav a { min-height: 46px; }
html[data-input="touch"] input, html[data-input="touch"] select, html[data-input="touch"] textarea { font-size: 16px; } /* evita zoom automático no iPhone */
html[data-input="touch"] a.card:hover, html[data-input="touch"] .ref-card:hover { transform: none; }
html[data-device="tablet"][data-orientation="portrait"] .dash .c-3 { grid-column: span 6; }
html[data-device="tablet"][data-orientation="portrait"] .dash .c-4, html[data-device="tablet"][data-orientation="portrait"] .dash .c-8 { grid-column: span 12; }
img, video, svg { max-width: 100%; }

/* ---------- Página inicial ---------- */
body.lp { background: var(--bg); overflow-x: hidden; }
.lp-wrap { width: min(1200px, 100% - 40px); margin-inline: auto; }
html[data-device="wide"] .lp-wrap { width: min(1380px, 100% - 80px); }
.lp-top { position: sticky; top: 0; z-index: 30; transition: background .25s, box-shadow .25s, backdrop-filter .25s; }
.lp-top.scrolled { background: rgba(8, 5, 16, .72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 1px 0 var(--border); }
.lp-bar { display: flex; align-items: center; gap: 18px; min-height: 72px; }
.lp-brand img { height: 34px; width: auto; }
.lp-links { display: flex; gap: 22px; margin-left: 18px; }
.lp-links a { color: var(--muted); font-weight: 600; font-size: .92rem; }
.lp-links a:hover { color: var(--text); text-decoration: none; }
.lp-actions { margin-left: auto; display: flex; gap: 8px; align-items: center; }
.lp-hero { position: relative; overflow: hidden; padding: 36px 0 70px; }
.lp-aurora i { position: absolute; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.lp-aurora i:nth-child(1) { width: 640px; height: 640px; right: -160px; top: -220px; background: radial-gradient(circle, rgba(109, 63, 232, .55), transparent 65%); }
.lp-aurora i:nth-child(2) { width: 520px; height: 520px; left: -200px; bottom: -260px; background: radial-gradient(circle, rgba(232, 74, 150, .35), transparent 65%); }
.lp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; min-height: min(640px, 78vh); }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: .8rem; font-weight: 700; letter-spacing: .04em; color: #ffc2de; background: rgba(232, 74, 150, .12); border: 1px solid rgba(232, 74, 150, .35); }
.lp-copy h1 { font-size: clamp(2.3rem, 5.4vw, 4.1rem); line-height: 1.04; letter-spacing: -.03em; margin: 18px 0 16px; font-weight: 850; }
.lp-lead { font-size: clamp(1.02rem, 1.4vw, 1.2rem); color: var(--muted); max-width: 560px; line-height: 1.6; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn-lg { padding: 14px 24px; min-height: 52px; font-size: 1.02rem; border-radius: 14px; }
.lp-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .88rem; }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; }
.lp-trust li b { display: inline-grid; color: var(--pink-bright); }
.lp-trust li b svg { width: 16px; height: 16px; }
.lp-stage { position: relative; display: grid; place-items: center; min-height: 520px; }
.lp-mascot { position: relative; z-index: 2; width: min(400px, 100%); height: auto; filter: drop-shadow(0 34px 44px rgba(0, 0, 0, .55)); animation: lpFloat 6s ease-in-out infinite; image-rendering: auto; }
.lp-shadow { position: absolute; bottom: 4%; left: 50%; width: 46%; height: 26px; margin-left: -23%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); animation: lpShadow 6s ease-in-out infinite; z-index: 1; }
.lp-orbit { position: absolute; inset: 6% 2%; z-index: 0; }
.lp-orbit i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(196, 177, 255, .2); animation: ripple 6s ease-out infinite; }
.lp-orbit i:nth-child(2) { animation-delay: -3s; }
.lp-orbit::before { content: ""; position: absolute; inset: 14%; border-radius: 50%; background: radial-gradient(circle, rgba(142, 107, 242, .35), transparent 62%); }
.lp-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(20, 14, 34, .82); border: 1px solid rgba(142, 107, 242, .3); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 16px 40px rgba(0, 0, 0, .4); animation: lpFloat 7s ease-in-out infinite; }
.lp-float b { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); flex: none; }
.lp-float b svg { width: 19px; height: 19px; }
.lp-float strong { display: block; font-size: .92rem; line-height: 1.2; }
.lp-float small { color: var(--dim); font-size: .74rem; }
.lp-float.f1 { top: 12%; left: -4%; animation-delay: -1s; }
.lp-float.f2 { bottom: 18%; right: -6%; animation-delay: -3s; }
.lp-float.f2 b { background: linear-gradient(135deg, #0f9960, #3ddc97); }
.lp-float.f3 { top: 46%; left: -10%; animation-delay: -5s; }
.lp-float.f3 b { background: linear-gradient(135deg, #b7791f, #f5b544); }
@keyframes lpFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes lpShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.82); opacity: .6; } }
.lp-sec { padding: 64px 0; }
.lp-head { text-align: center; margin-bottom: 34px; }
.lp-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); letter-spacing: -.02em; }
.lp-kicker { display: inline-block; font-size: .76rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-bright); margin-bottom: 8px; }
.lp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; counter-reset: s; }
.lp-steps li, .lp-feats article { position: relative; padding: 24px 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); backdrop-filter: var(--glass-blur); -webkit-backdrop-filter: var(--glass-blur); }
.lp-steps li b, .lp-feats article b { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); margin-bottom: 14px; box-shadow: 0 10px 24px rgba(178, 63, 209, .3); }
.lp-steps li b svg, .lp-feats article b svg { width: 22px; height: 22px; }
.lp-steps h3, .lp-feats h3 { font-size: 1.08rem; margin-bottom: 6px; }
.lp-steps p, .lp-feats p { color: var(--muted); font-size: .92rem; margin: 0; }
.lp-n { position: absolute; top: 18px; right: 20px; font: 800 2.2rem/1 var(--font); color: rgba(142, 107, 242, .22); }
.lp-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-live { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; padding: 34px; border-radius: 26px; position: relative; overflow: hidden;
  background: radial-gradient(600px 260px at 0% 0%, rgba(232, 74, 150, .2), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(109, 63, 232, .25), transparent 60%), rgba(16, 11, 28, .8); border: 1px solid rgba(142, 107, 242, .3); }
.lp-live h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.lp-live-media { aspect-ratio: 1; max-width: 300px; width: 100%; justify-self: center; border-radius: 22px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, rgba(142, 107, 242, .3), rgba(232, 74, 150, .2)); border: 1px solid rgba(255, 255, 255, .1); }
.lp-live-media > b svg { width: 90px; height: 90px; color: #fff; opacity: .9; }
.lp-final-box { display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center; padding: 28px 30px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border-strong); }
.lp-final-box img { width: 84px; height: 84px; }
.lp-final-box .lp-cta { margin-top: 0; }
.lp-foot { border-top: 1px solid var(--border); padding: 26px 0 34px; color: var(--dim); font-size: .86rem; }
@media (max-width: 1080px) {
  .lp-links { display: none; }
  .lp-steps, .lp-feats { grid-template-columns: 1fr 1fr; }
  .lp-float.f3 { display: none; }
}
@media (max-width: 860px) {
  .lp-hero { padding: 14px 0 40px; }
  .lp-hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; text-align: center; }
  .lp-stage { order: -1; min-height: 300px; }
  .lp-mascot { width: 210px; }
  .lp-lead { margin-inline: auto; }
  .lp-cta, .lp-trust { justify-content: center; }
  .lp-float { padding: 8px 12px 8px 8px; }
  .lp-float.f1 { left: 2%; top: 8%; } .lp-float.f2 { right: 2%; bottom: 10%; }
  .lp-live { grid-template-columns: 1fr; text-align: center; padding: 24px 18px; }
  .lp-live .countdown, .lp-live .btn-row { justify-content: center; }
  .lp-final-box { grid-template-columns: 1fr; text-align: center; justify-items: center; }
}
@media (max-width: 560px) {
  .lp-bar { min-height: 62px; gap: 8px; }
  .lp-brand img { height: 28px; }
  .lp-actions .btn-ghost:not(.btn-icon) { display: none; }
  .lp-steps, .lp-feats { grid-template-columns: 1fr; }
  .lp-cta .btn { width: 100%; }
  .lp-sec { padding: 40px 0; }
  .lp-float small { display: none; }
  .lp-float b { width: 30px; height: 30px; }
}

/* ---------- Live do sorteio (painel do cliente) ---------- */
.rh-tag.on-air { background: rgba(255, 60, 90, .2); border-color: rgba(255, 60, 90, .6); color: #ffd0d8; }
.rh-tag.on-air .live-dot { background: #ff3c5a; }
.onair-big { display: inline-flex; align-items: center; gap: 10px; font: 800 1.6rem var(--font); color: #ff5c7a; }
.onair-big svg { width: 30px; height: 30px; }
.btn-insta { color: #fff !important; border: 0; background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888); box-shadow: 0 8px 24px rgba(220, 39, 67, .35); }
.btn-insta:hover { filter: brightness(1.08); text-decoration: none; }
.btn-insta svg { width: 18px; height: 18px; }
.btn-wa { background: #1f9d55; border-color: transparent; color: #fff !important; }

/* ---------- Link bloqueado / QR Code / ajuda ---------- */
.locked-link { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: rgba(142, 107, 242, .1); border: 1px dashed rgba(142, 107, 242, .45); }
.ll-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(142, 107, 242, .22); color: #d9ccff; flex: none; }
.ll-ic svg { width: 19px; height: 19px; }
.ref-qr { display: grid; place-items: center; padding: 18px; border-radius: 18px; background: #fff; width: fit-content; margin: 0 auto; box-shadow: 0 12px 30px rgba(0, 0, 0, .25); }
.ref-qr img { width: min(260px, 64vw); height: auto; image-rendering: pixelated; }
.help-box { padding: 14px 16px; border-radius: 14px; background: rgba(142, 107, 242, .08); border: 1px solid var(--border); text-align: left; }
.help-box strong { display: block; margin-bottom: 4px; }

/* ---------- Minhas indicações (visual limpo) ---------- */
.ref-sum { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.ref-sum > div { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.ref-sum b { display: block; font-size: 1.5rem; font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.ref-sum span { color: var(--dim); font-size: .82rem; }
.ref-sum .ok b { color: var(--ok); }
.ref-sum .money b { background: linear-gradient(90deg, #c7b2ff, var(--pink-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chip-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; margin-left: 4px; border-radius: 999px; background: rgba(142, 107, 242, .2); font-size: .72rem; }
.ref-list { display: grid; gap: 10px; }
.ref-card { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); transition: border-color .2s; }
.ref-card:hover { border-color: var(--border-strong); }
.rc-top { display: flex; align-items: center; gap: 12px; }
.rc-id { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.rc-id strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-pill { font-size: .76rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--purple-soft); color: #d9ccff; border: 1px solid rgba(142, 107, 242, .35); }
.rc-pill.done { background: var(--ok-soft); color: var(--ok); border-color: rgba(61, 220, 151, .4); }
.rc-pill.lost { background: rgba(138, 127, 166, .12); color: var(--dim); border-color: var(--border); }
.rc-track { display: grid; grid-template-columns: repeat(5, 1fr); margin: 14px 2px 6px; }
.rc-track span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rc-track span::before { content: ""; position: absolute; top: 5px; left: -50%; right: 50%; height: 2px; background: var(--surface-3); }
.rc-track span:first-child::before { display: none; }
.rc-track span.on::before, .rc-track span.cur::before { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.rc-track i { position: relative; z-index: 1; width: 12px; height: 12px; border-radius: 50%; background: var(--surface-3); border: 2px solid var(--surface-3); }
.rc-track span.on i { background: var(--purple); border-color: var(--purple); }
.rc-track span.cur i { background: var(--pink-bright); border-color: rgba(255, 61, 165, .35); box-shadow: 0 0 0 4px rgba(255, 61, 165, .18); }
.rc-track em { font-style: normal; font-size: .7rem; color: var(--dim); text-align: center; }
.rc-track span.cur em { color: var(--text); font-weight: 700; }
.rc-track.lost span.on::before, .rc-track.lost span.cur::before { background: var(--dim); }
.rc-track.lost span.on i, .rc-track.lost span.cur i { background: var(--dim); border-color: var(--dim); box-shadow: none; }
.ref-card.done .rc-track span.cur i { background: var(--ok); border-color: rgba(61, 220, 151, .35); box-shadow: 0 0 0 4px rgba(61, 220, 151, .18); }
.rc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.rc-reward { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--purple-soft); color: var(--text); }
.rc-reward.ok { background: var(--ok-soft); color: var(--ok); } .rc-reward.bad { background: var(--bad-soft); color: var(--bad); } .rc-reward.warn { background: var(--warn-soft); color: var(--warn); }
.rc-more { margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.rc-more summary { font-size: .84rem; font-weight: 600; }
.rc-tl { list-style: none; margin: 10px 0 8px; padding: 0 0 0 14px; border-left: 2px solid var(--border-strong); }
.rc-tl li { position: relative; display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: .86rem; }
.rc-tl li::before { content: ""; position: absolute; left: -19px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); }
.rc-tl time { color: var(--dim); font-size: .8rem; white-space: nowrap; }
@media (max-width: 640px) {
  .ref-sum { grid-template-columns: 1fr 1fr; }
  .rc-track em { font-size: .62rem; }
  .rc-foot .rc-reward { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .lp-mascot, .lp-float, .lp-shadow, .lp-orbit i { animation: none !important; } }

/* ---------- Tema claro para os componentes da versão 6 ---------- */
[data-theme="light"] .lp-top.scrolled { background: rgba(255, 255, 255, .85); }
[data-theme="light"] .lp-eyebrow { color: #b0125f; background: rgba(212, 61, 134, .08); }
[data-theme="light"] .lp-aurora i:nth-child(1) { opacity: .45; } [data-theme="light"] .lp-aurora i:nth-child(2) { opacity: .35; }
[data-theme="light"] .lp-float { background: rgba(255, 255, 255, .92); border-color: rgba(109, 63, 232, .2); box-shadow: 0 16px 40px rgba(60, 30, 120, .16); }
[data-theme="light"] .lp-steps li, [data-theme="light"] .lp-feats article, [data-theme="light"] .lp-final-box, [data-theme="light"] .ref-card, [data-theme="light"] .ref-sum > div { background: #fff; box-shadow: 0 1px 2px rgba(40, 20, 80, .04), 0 8px 24px rgba(60, 30, 120, .06); }
[data-theme="light"] .lp-live { background: radial-gradient(600px 260px at 0% 0%, rgba(232, 74, 150, .14), transparent 60%), radial-gradient(600px 300px at 100% 100%, rgba(109, 63, 232, .16), transparent 60%), #fff; }
[data-theme="light"] .lp-shadow { background: radial-gradient(closest-side, rgba(60, 30, 120, .28), transparent); }
[data-theme="light"] .lp-mascot { filter: drop-shadow(0 26px 30px rgba(60, 30, 120, .25)); }
[data-theme="light"] .rc-pill { color: #5b2fd6; }
[data-theme="light"] .ll-ic { color: #5b2fd6; }
[data-theme="light"] .rh-tag.on-air { color: #c0122f; }

/* ---------- Admin: etapas da indicação (pipeline) ---------- */
.pipe-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.pipe-head h2 { font-size: 1.4rem; }
.pipe { list-style: none; margin: 18px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.pipe li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: .78rem; color: var(--dim); cursor: help; }
.pipe li::before { content: ""; position: absolute; top: 15px; left: -50%; right: 50%; height: 3px; background: var(--surface-3); border-radius: 3px; }
.pipe li:first-child::before { display: none; }
.pipe li.done::before, .pipe li.cur::before { background: linear-gradient(90deg, var(--purple), var(--pink)); }
.pipe li i { position: relative; z-index: 1; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 800; font-size: .85rem; background: var(--surface-3); border: 2px solid var(--border-strong); color: var(--muted); }
.pipe li i svg { width: 16px; height: 16px; }
.pipe li.done i { background: var(--purple); border-color: var(--purple); color: #fff; }
.pipe li.cur i { background: linear-gradient(135deg, var(--purple-strong), var(--pink)); border-color: rgba(255, 61, 165, .5); color: #fff; box-shadow: 0 0 0 5px rgba(255, 61, 165, .16); }
.pipe li.cur span { color: var(--text); font-weight: 700; }
.pipe.lost li i { opacity: .55; }
.pipe-next { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.pipe-actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 10px; }
.pipe-act { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 14px; border-radius: 14px; cursor: pointer; font: inherit; color: var(--text); background: var(--surface-2); border: 1px solid var(--border-strong); transition: border-color .2s, transform .2s var(--ease), background .2s; }
.pipe-act:hover { border-color: var(--purple); transform: translateY(-1px); }
.pipe-act svg { width: 20px; height: 20px; flex: none; color: var(--purple); }
.pipe-act strong { display: block; font-size: .92rem; }
.pipe-act small { color: var(--dim); font-size: .78rem; }
.pipe-act.primary { background: linear-gradient(135deg, rgba(109, 63, 232, .35), rgba(232, 74, 150, .25)); border-color: rgba(232, 74, 150, .5); }
.pipe-act.primary svg { color: #fff; }
.pipe-act.danger svg { color: var(--bad); }
.pipe-act.danger:hover { border-color: var(--bad); }
.pipe-convert { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--ok-soft); border: 1px solid rgba(61, 220, 151, .35); }
.pipe-convert strong { display: inline-flex; gap: 6px; align-items: center; }
.pipe-convert svg { width: 17px; height: 17px; }
.pipe-help { margin-top: 12px; }
.pipe-help summary { font-size: .84rem; }
@media (max-width: 760px) {
  .pipe { grid-template-columns: repeat(7, minmax(44px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .pipe li span { font-size: .66rem; }
  .pipe li i { width: 26px; height: 26px; font-size: .75rem; }
  .pipe li::before { top: 12px; }
}

/* ---------- Admin: sorteios ao vivo ---------- */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.live-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); color: inherit; transition: border-color .2s, transform .2s var(--ease); }
.live-card:hover { border-color: var(--purple); transform: translateY(-2px); text-decoration: none; }
.lc-ph { width: 96px; height: 96px; border-radius: 14px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(145deg, rgba(142, 107, 242, .3), rgba(232, 74, 150, .2)); }
.lc-ph img { width: 100%; height: 100%; object-fit: cover; }
.lc-ph svg { width: 40px; height: 40px; color: #fff; }
.lc-body { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lc-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .78rem; color: var(--dim); margin-top: 4px; }
.lc-meta span { display: inline-flex; align-items: center; gap: 5px; }
.lc-meta svg { width: 14px; height: 14px; }
@media (max-width: 480px) { .live-grid { grid-template-columns: 1fr; } .live-card { grid-template-columns: 72px 1fr; } .lc-ph { width: 72px; height: 72px; } }

/* ---------- Admin: visão geral simplificada ---------- */
.todo-list { display: grid; gap: 8px; }
.todo { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
.todo:hover { border-color: var(--purple); text-decoration: none; }
.todo-n { font: 800 1.35rem/1 var(--font); text-align: center; color: var(--purple); }
.todo.hot { border-color: rgba(232, 74, 150, .55); } .todo.hot .todo-n { color: var(--pink-bright); }
.todo.zero { opacity: .6; } .todo.zero .todo-n { color: var(--dim); }
.todo svg { width: 16px; height: 16px; transform: rotate(90deg); color: var(--dim); }

/* ---------- Admin: funcionalidades ---------- */
.feat-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 18px; align-items: start; margin-top: 12px; }
.input-suffix { display: flex; align-items: center; gap: 8px; }
.input-suffix input { width: 90px; }
.input-suffix span { color: var(--dim); font-size: .85rem; }
@media (max-width: 1000px) { .feat-grid { grid-template-columns: 1fr; } }
[data-theme="light"] .pipe-act, [data-theme="light"] .todo { background: #fff; }
[data-theme="light"] .live-card { background: #fff; box-shadow: 0 1px 2px rgba(40, 20, 80, .04), 0 8px 24px rgba(60, 30, 120, .06); }
/* ---------- v7: botão voltar nas telas de acesso ---------- */
.back-link { position: absolute; top: 16px; left: 18px; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: .84rem; font-weight: 700; color: var(--muted); background: rgba(142, 107, 242, .1); border: 1px solid var(--border); z-index: 2; }
.back-link:hover { color: var(--text); border-color: var(--purple); text-decoration: none; }
.login-card .back-link + .login-logo { margin-top: 14px; }

/* =====================================================================
   VERSÃO 7 — página inicial editável, ranking público, QR no painel
   ===================================================================== */
.lp-mascot.custom { width: min(440px, 100%); max-height: 560px; object-fit: contain; }
.lp-sub { max-width: 640px; margin: 8px auto 0; }
.lp-camp { display: inline-flex; align-items: center; gap: 12px; margin-top: 18px; padding: 10px 16px 10px 10px; border-radius: 16px; background: linear-gradient(135deg, rgba(61, 220, 151, .14), rgba(142, 107, 242, .14)); border: 1px solid rgba(61, 220, 151, .35); }
.lp-camp small { display: block; color: var(--dim); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.lp-camp strong { color: var(--ok); }
.lp-camp-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #0f9960, #3ddc97); color: #fff; flex: none; }
.lp-camp-ic svg { width: 20px; height: 20px; }
.lp-faq-wrap { max-width: 860px; }
.lp-faq { display: grid; gap: 10px; }
.lp-q { border-radius: 16px; background: var(--surface); border: 1px solid var(--border); padding: 0 18px; transition: border-color .2s; }
.lp-q[open] { border-color: var(--border-strong); }
.lp-q summary { list-style: none; cursor: pointer; padding: 16px 28px 16px 0; font-weight: 700; color: var(--text); position: relative; }
.lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary::after { content: "+"; position: absolute; right: 0; top: 12px; font-size: 1.4rem; color: var(--pink-bright); transition: transform .2s; }
.lp-q[open] summary::after { transform: rotate(45deg); }
.lp-q p { color: var(--muted); margin: 0 0 16px; }

/* ---------- Ranking (página inicial e página /ranking) ---------- */
.rk-hero { position: relative; overflow: hidden; padding: 40px 0 10px; text-align: center; }
.rk-hero-in { position: relative; z-index: 1; }
.rk-hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); letter-spacing: -.03em; margin: 6px 0 12px; }
.rk-hero .lp-lead { margin-inline: auto; }
.rk-sec { padding-top: 24px; }
.rk-tabs { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-strong); margin-top: 18px; }
.rk-tabs button { border: 0; cursor: pointer; font: 700 .92rem var(--font); color: var(--muted); background: none; padding: 10px 20px; border-radius: 999px; transition: color .2s, background .2s; }
.rk-tabs button.active { color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); box-shadow: 0 6px 20px rgba(178, 63, 209, .35); }
.rk-tabs.small-tabs { margin: 0 auto 18px; display: flex; width: fit-content; }
.rk-tabs.small-tabs button { padding: 8px 16px; font-size: .86rem; }
.rk-shell { max-width: 900px; margin: 0 auto; }
.rk-shell.loading-soft { opacity: .55; transition: opacity .2s; }
.rk-podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 14px; align-items: end; margin: 10px 0 22px; }
.rk-pod { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-width: 0; }
.rk-pod.empty { opacity: .35; }
.rk-crown { height: 30px; color: #f5b83d; }
.rk-crown svg { width: 30px; height: 30px; filter: drop-shadow(0 4px 12px rgba(245, 184, 61, .55)); }
.rk-av { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); color: #fff; font-weight: 800; font-size: .9rem; border: 2px solid rgba(255, 255, 255, .12); user-select: none; }
.rk-av img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.rk-av.big { width: 96px; height: 96px; font-size: 1.8rem; border-width: 3px; }
.rk-pod.p1 .rk-av.big { width: 118px; height: 118px; border-color: #f5b83d; box-shadow: 0 0 0 6px rgba(245, 184, 61, .18), 0 18px 40px rgba(0, 0, 0, .45); }
.rk-pod.p2 .rk-av.big { border-color: #c9d1e3; box-shadow: 0 0 0 5px rgba(201, 209, 227, .14); }
.rk-pod.p3 .rk-av.big { border-color: #d98b52; box-shadow: 0 0 0 5px rgba(217, 139, 82, .16); }
.rk-medal { margin-top: -16px; z-index: 1; font: 800 .8rem var(--font); padding: 3px 10px; border-radius: 999px; color: #1d1530; background: #f5b83d; box-shadow: 0 4px 12px rgba(0, 0, 0, .35); }
.rk-pod.p2 .rk-medal { background: #c9d1e3; } .rk-pod.p3 .rk-medal { background: #d98b52; }
.rk-name { font-size: 1.02rem; margin-top: 6px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pts { color: var(--muted); font-size: .9rem; white-space: nowrap; }
.rk-pts b { font-size: 1.15rem; color: var(--text); font-variant-numeric: tabular-nums; }
.rk-pod .rk-pts b { font-size: 1.5rem; background: linear-gradient(90deg, #c7b2ff, var(--pink-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rk-base { width: 100%; margin-top: 10px; border-radius: 16px 16px 6px 6px; display: grid; place-items: center; font: 900 2.2rem var(--font); color: rgba(255, 255, 255, .85);
  background: linear-gradient(180deg, rgba(142, 107, 242, .55), rgba(142, 107, 242, .12)); border: 1px solid rgba(142, 107, 242, .4); }
.rk-pod.p1 .rk-base { height: 120px; background: linear-gradient(180deg, rgba(245, 184, 61, .55), rgba(232, 74, 150, .15)); border-color: rgba(245, 184, 61, .5); }
.rk-pod.p2 .rk-base { height: 88px; }
.rk-pod.p3 .rk-base { height: 64px; background: linear-gradient(180deg, rgba(217, 139, 82, .5), rgba(142, 107, 242, .1)); border-color: rgba(217, 139, 82, .45); }
.rk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rk-row { display: grid; grid-template-columns: 48px 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.rk-pos { font: 800 1rem var(--font); color: var(--dim); text-align: center; }
.rk-who { min-width: 0; }
.rk-who strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-bar { height: 6px; border-radius: 6px; background: var(--surface-3); margin-top: 6px; overflow: hidden; }
.rk-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--purple), var(--pink)); transition: width 1s var(--ease); }
.rk-empty { text-align: center; padding: 34px 18px; border-radius: 20px; background: var(--surface); border: 1px dashed var(--border-strong); color: var(--muted); }
.rk-empty svg { width: 40px; height: 40px; color: var(--purple); margin-bottom: 8px; }
.rk-cta { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; max-width: 900px; margin: 30px auto 0; padding: 22px 26px; border-radius: 22px;
  background: radial-gradient(500px 200px at 0% 0%, rgba(232, 74, 150, .18), transparent 60%), var(--surface); border: 1px solid var(--border-strong); }
@media (max-width: 640px) {
  .rk-podium { gap: 6px; }
  .rk-av.big { width: 64px; height: 64px; font-size: 1.2rem; }
  .rk-pod.p1 .rk-av.big { width: 80px; height: 80px; }
  .rk-name { font-size: .86rem; }
  .rk-pod .rk-pts b { font-size: 1.1rem; }
  .rk-pod .small { display: none; }
  .rk-base { font-size: 1.5rem; }
  .rk-pod.p1 .rk-base { height: 84px; } .rk-pod.p2 .rk-base { height: 62px; } .rk-pod.p3 .rk-base { height: 44px; }
  .rk-row { grid-template-columns: 34px 38px 1fr auto; gap: 8px; padding: 10px 12px; }
  .rk-row .rk-av { width: 38px; height: 38px; }
  .rk-tabs button { padding: 9px 14px; }
  .rk-cta { text-align: center; justify-content: center; }
}
[data-theme="light"] .rk-row, [data-theme="light"] .lp-q, [data-theme="light"] .rk-tabs, [data-theme="light"] .rk-empty { background: #fff; }
[data-theme="light"] .rk-base { color: #fff; }
[data-theme="light"] .rk-cta { background: radial-gradient(500px 200px at 0% 0%, rgba(232, 74, 150, .12), transparent 60%), #fff; }

/* ---------- QR Code no painel do cliente ---------- */
.share-row { display: grid; grid-template-columns: 1fr auto; gap: 18px; align-items: center; margin-top: 14px; }
.qr-inline { display: grid; place-items: center; gap: 6px; padding: 10px; border-radius: 16px; background: #fff; border: 0; cursor: zoom-in; box-shadow: 0 10px 26px rgba(0, 0, 0, .3); transition: transform .2s var(--ease); }
.qr-inline:hover { transform: scale(1.04); }
.qr-inline img { width: 124px; height: 124px; image-rendering: pixelated; }
.qr-inline span { font: 700 .7rem var(--font); color: #4f4668; letter-spacing: .02em; }
@media (max-width: 560px) { .share-row { grid-template-columns: 1fr; } .qr-inline { justify-self: center; } }
.prize-list { display: grid; gap: 8px; }
.prize-item { display: flex; gap: 12px; align-items: center; padding: 10px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); flex-wrap: wrap; }
.pz-ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); color: #fff; flex: none; }
.pz-ic svg { width: 19px; height: 19px; }
.prize-item .w-100 { flex: 1; min-width: 180px; }
[data-theme="light"] .prize-item { background: #fff; }
.rt-pick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; }
.rt-opt { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); cursor: pointer; }
.rt-opt:has(input:checked) { border-color: var(--pink); box-shadow: 0 0 0 3px rgba(232, 74, 150, .15); }
.rt-opt input { margin-top: 3px; }
.rt-opt strong { display: block; font-size: .9rem; }
.rt-opt small { color: var(--dim); font-size: .76rem; }
@media (max-width: 700px) { .rt-pick { grid-template-columns: 1fr; } }
/* ---------- Admin: editor da página inicial ---------- */
.le-sec summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.le-sec summary::-webkit-details-marker { display: none; }
.le-sec summary::after { content: "▾"; color: var(--dim); transition: transform .2s; }
.le-sec[open] summary::after { transform: rotate(180deg); }
.le-item { padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-bottom: 10px; }
.le-img { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.le-prev { width: 110px; height: 150px; border-radius: 14px; background: var(--surface-3); display: grid; place-items: center; overflow: hidden; }
.le-prev img { max-width: 100%; max-height: 100%; object-fit: contain; }
.icon-pick { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-pick label { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); cursor: pointer; color: var(--muted); }
.icon-pick label:has(input:checked) { border-color: var(--pink); color: var(--pink-bright); background: var(--pink-soft); }
.icon-pick input { position: absolute; opacity: 0; pointer-events: none; }
.icon-pick svg { width: 18px; height: 18px; }
.le-save { position: sticky; bottom: 12px; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; padding: 12px 16px; border-radius: 16px; background: var(--surface-solid, #140e22); border: 1px solid var(--border-strong); box-shadow: 0 10px 30px rgba(0, 0, 0, .35); z-index: 5; }
[data-theme="light"] .le-item { background: #faf7ff; } [data-theme="light"] .le-save { background: #fff; }
@media (max-width: 640px) { .rk-name { white-space: normal; line-height: 1.2; overflow-wrap: anywhere; } }
/* ---------- Instalador pelo navegador ---------- */
.setup-steps { list-style: none; display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; padding: 0; margin: 10px 0 18px; }
.setup-steps li { font-size: .78rem; font-weight: 700; padding: 5px 12px; border-radius: 999px; color: var(--dim); border: 1px solid var(--border); }
.setup-steps li.on { color: #fff; border-color: transparent; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); }
/* Mascote inteiro no card "Pronto para começar?" (sem cortar o boné) */
.lp-final-box { overflow: visible; }
.lp-final-box img.lp-final-mascot { width: 104px; height: auto; margin: -64px 0 -30px; filter: drop-shadow(0 16px 22px rgba(0, 0, 0, .45)); animation: lpFloat 6s ease-in-out infinite; }
@media (max-width: 860px) { .lp-final-box img.lp-final-mascot { width: 92px; margin: -48px 0 0; } .lp-final { padding-top: 64px; } }
.lp-brand img.logo-custom { height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.login-logo img.logo-custom { height: 52px; width: auto; max-width: 240px; object-fit: contain; }
.logo-box { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.logo-box .logo-preview { max-height: 60px; width: auto; }
/* ---------- v8: caixa da chave Pix (Criar conta e página de indicação) ---------- */
fieldset.pix-box { position: relative; padding: 16px 16px 14px; margin: 4px 0 16px; border-radius: 16px; border: 1px solid rgba(50, 188, 173, .35); background: linear-gradient(160deg, rgba(50, 188, 173, .10), rgba(142, 107, 242, .06)); }
.pix-box legend { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .95rem; padding: 0 6px; margin-left: -6px; }
.pix-ic { display: inline-grid; place-items: center; height: 22px; padding: 0 7px; border-radius: 6px; font-size: .68rem; font-weight: 800; letter-spacing: .06em; color: #fff; background: linear-gradient(135deg, #32bcad, #1f8f84); }
.pix-types { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 12px; }
.pix-types label { position: relative; cursor: pointer; }
.pix-types input { position: absolute; opacity: 0; pointer-events: none; }
.pix-types span { display: inline-block; padding: 7px 13px; border-radius: 999px; font-size: .85rem; font-weight: 600; color: var(--muted); border: 1px solid var(--border-strong); background: var(--surface-2); transition: all .15s var(--ease); }
.pix-types label:hover span { color: var(--text); }
.pix-types input:checked + span { color: #fff; border-color: transparent; background: linear-gradient(135deg, #32bcad, #1f8f84); box-shadow: 0 4px 14px rgba(50, 188, 173, .3); }
.pix-types input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
.pix-why { margin: 0; padding: 10px 12px; border-radius: 12px; font-size: .84rem; line-height: 1.5; color: var(--muted); background: rgba(61, 220, 151, .07); border: 1px dashed rgba(61, 220, 151, .35); }
.pix-why strong:first-child { display: block; color: var(--text); margin-bottom: 2px; }
[data-theme="light"] fieldset.pix-box { background: linear-gradient(160deg, rgba(50, 188, 173, .08), rgba(109, 63, 232, .04)); }
/* ---------- v8: confirmação da conta por e-mail ---------- */
.cfm-hero { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; }
.cfm-hero img { width: 64px; height: auto; flex: none; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .35)); animation: lpFloat 6s ease-in-out infinite; }
.cfm-list { list-style: none; padding: 12px 14px; margin: 0 0 14px; border-radius: 12px; background: var(--purple-soft); display: grid; gap: 8px; font-size: .9rem; }
.cfm-list li { display: flex; gap: 10px; align-items: center; }
.cfm-list svg { width: 18px; height: 18px; flex: none; color: var(--pink-bright); }
.cfm-mail { font-size: 3rem; line-height: 1; margin: 6px 0 10px; }
.cfm-banner { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cfm-banner > div:first-child { flex: 1 1 260px; }
/* ---------- v8: cartões que giram em volta do mascote — versão compacta para celular, tablet e iPad ---------- */
@keyframes lpBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@media (max-width: 1080px) {
  .lp-float { gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; max-width: 200px; animation-name: lpBob; box-shadow: 0 10px 24px rgba(0, 0, 0, .35); }
  .lp-float > span { min-width: 0; }
  .lp-float b { width: 28px; height: 28px; border-radius: 50%; }
  .lp-float b svg { width: 15px; height: 15px; }
  .lp-float strong { font-size: .78rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .lp-float small { display: none; }
  .lp-float.f3 { display: flex; }
  .lp-float.f1 { top: 12%; left: 2%; }
  .lp-float.f2 { top: 46%; bottom: auto; right: 0; }
  .lp-float.f3 { top: auto; bottom: 14%; left: 4%; }
}
@media (max-width: 860px) {
  .lp-stage { width: min(380px, 100%); margin-inline: auto; min-height: 290px; }
  .lp-mascot { width: 185px; }
  .lp-mascot.custom { width: min(240px, 70%); max-height: 300px; }
  .lp-float { max-width: 160px; }
  .lp-float.f1 { top: 8%; left: 0; }
  .lp-float.f2 { top: 42%; right: -2%; }
  .lp-float.f3 { bottom: 10%; left: 0; }
}
@media (max-width: 560px) {
  .lp-stage { width: min(330px, 100%); min-height: 250px; }
  .lp-mascot { width: 150px; }
  .lp-float { gap: 6px; padding: 4px 10px 4px 4px; max-width: 136px; }
  .lp-float b { width: 24px; height: 24px; }
  .lp-float b svg { width: 13px; height: 13px; }
  .lp-float strong { font-size: .7rem; }
  .lp-float.f2 { right: 0; }
}
/* ---------- v8: ranking profissional (números, pódio em cartões, tabela e "como subir") ---------- */
.rk-shell.full { max-width: 980px; }
.rk-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 4px 0 26px; }
.rk-kpi { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--neon, none); min-width: 0; }
.rk-kpi > b { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); }
.rk-kpi:nth-child(2) > b { background: linear-gradient(135deg, #0f9960, #3ddc97); }
.rk-kpi:nth-child(3) > b { background: linear-gradient(135deg, #b7791f, #f5b544); }
.rk-kpi:nth-child(4) > b { background: linear-gradient(135deg, #1c7ed6, #5bc0ff); }
.rk-kpi > b svg { width: 20px; height: 20px; }
.rk-kpi strong { display: block; font-size: 1.35rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rk-kpi small { color: var(--dim); font-size: .78rem; }
.rk-podium { gap: 16px; margin: 0 0 26px; }
.rk-pod { gap: 0; }
.rk-card { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 10px 16px; border-radius: 22px 22px 10px 10px; background: linear-gradient(180deg, rgba(142, 107, 242, .12), rgba(142, 107, 242, .02)); border: 1px solid var(--border); border-bottom: 0; min-width: 0; }
.rk-pod.p1 .rk-card { background: linear-gradient(180deg, rgba(245, 184, 61, .18), rgba(245, 184, 61, .02)); border-color: rgba(245, 184, 61, .35); padding-top: 6px; }
.rk-ring { position: relative; display: flex; flex-direction: column; align-items: center; }
.rk-ring .rk-medal { margin-top: -14px; }
.rk-chip { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--ok); background: var(--ok-soft); white-space: nowrap; }
.rk-chip svg { width: 13px; height: 13px; }
.rk-gap { font-size: .74rem; color: var(--dim); }
.rk-pod.p1 .rk-gap { color: #f5b83d; font-weight: 700; }
.rk-base { margin-top: 0; border-radius: 0 0 14px 14px; }
.rk-pod.empty .rk-card { border-style: dashed; }
.rk-board { border-radius: 20px; border: 1px solid var(--border); background: var(--surface); overflow: hidden; }
.rk-head, .rk-board .rk-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 96px 200px; gap: 12px; align-items: center; }
.rk-head { padding: 12px 18px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); border-bottom: 1px solid var(--border); background: rgba(142, 107, 242, .06); }
.rk-h-act { text-align: center; } .rk-h-pts { text-align: right; }
.rk-board .rk-list { gap: 0; }
.rk-board .rk-row { padding: 12px 18px; border: 0; border-radius: 0; background: none; border-bottom: 1px solid var(--border); transition: background .15s; }
.rk-board .rk-row:last-child { border-bottom: 0; }
.rk-board .rk-row:hover { background: rgba(142, 107, 242, .06); }
.rk-board .rk-pos { display: inline-grid; place-items: center; width: 38px; height: 30px; border-radius: 10px; background: var(--surface-3); color: var(--muted); font-size: .88rem; }
.rk-board .rk-row.top10 .rk-pos { color: #fff; background: linear-gradient(135deg, rgba(109, 63, 232, .8), rgba(232, 74, 150, .8)); }
.rk-board .rk-who { display: flex; gap: 12px; align-items: center; min-width: 0; }
.rk-board .rk-who > div { min-width: 0; }
.rk-board .rk-who small { display: block; color: var(--dim); font-size: .74rem; }
.rk-act { text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.rk-score { text-align: right; min-width: 0; }
.rk-score .rk-bar { margin-left: auto; }
.rk-how { margin-top: 26px; padding: 20px 22px; border-radius: 20px; background: radial-gradient(600px 200px at 100% 0%, rgba(232, 74, 150, .10), transparent 60%), var(--surface); border: 1px solid var(--border); }
.rk-how h3 { display: flex; gap: 8px; align-items: center; margin: 0 0 14px; }
.rk-how h3 svg { width: 22px; height: 22px; color: #f5b83d; }
.rk-how ol { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.rk-how li { display: flex; gap: 10px; align-items: flex-start; }
.rk-how li > b { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); }
.rk-how li strong { display: block; font-size: .92rem; }
.rk-how li small { color: var(--muted); font-size: .8rem; }
@media (max-width: 860px) {
  .rk-kpis { grid-template-columns: 1fr 1fr; }
  .rk-how ol { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .rk-kpi { padding: 12px; gap: 10px; } .rk-kpi > b { width: 34px; height: 34px; } .rk-kpi strong { font-size: 1.1rem; }
  .rk-card { padding: 10px 4px 12px; }
  .rk-gap, .rk-chip { display: none; }
  .rk-head { display: none; }
  .rk-board .rk-row { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 10px 12px; gap: 8px; }
  .rk-board .rk-act { display: none; }
  .rk-score { min-width: 86px; } .rk-score .rk-bar { width: 86px; }
}
[data-theme="light"] .rk-board, [data-theme="light"] .rk-kpi, [data-theme="light"] .rk-how { background: #fff; }
/* Títulos dos cartões: até 2 linhas em vez de cortar com "…" */
@media (max-width: 1080px) {
  .lp-float { border-radius: 18px; }
  .lp-float strong { white-space: normal; line-height: 1.15; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
}
@media (max-width: 560px) { .lp-float { max-width: 128px; border-radius: 16px; } }
.lp-float { text-align: left; } .lp-float > span { flex: 0 1 auto; }
.rk-sec .rk-cta { max-width: 980px; }
/* ---------- v8.1: página do link de indicação (responsiva em qualquer tela) ---------- */
.ref-body { min-height: 100vh; display: flex; flex-direction: column; }
.ref-wrap { width: min(880px, 100% - 32px); margin-inline: auto; }
.ref-top { position: sticky; top: 0; z-index: 20; background: rgba(5, 3, 10, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--border); }
.ref-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.ref-bar .logo img { height: 30px; width: auto; }
#main.ref-wrap { flex: 1; padding: 22px 0 40px; }
.ref-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 26px 28px; margin-bottom: 18px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(500px 260px at 100% 0%, rgba(232, 74, 150, .18), transparent 60%), radial-gradient(600px 300px at 0% 100%, rgba(109, 63, 232, .22), transparent 60%), var(--surface); border: 1px solid var(--border-strong); }
.ref-hero h1 { font-size: clamp(1.45rem, 3.4vw, 2.3rem); line-height: 1.12; letter-spacing: -.02em; margin: 10px 0 8px; }
.ref-lead { color: var(--muted); font-size: clamp(.95rem, 1.6vw, 1.05rem); margin: 0 0 14px; max-width: 520px; }
.ref-mascot { width: auto; height: clamp(150px, 24vw, 250px); max-width: 100%; object-fit: contain; filter: drop-shadow(0 18px 26px rgba(0, 0, 0, .5)); animation: lpBob 6s ease-in-out infinite; }
.ref-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ref-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; background: rgba(142, 107, 242, .1); border: 1px solid var(--border); font-size: .82rem; font-weight: 600; }
.ref-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .72rem; color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); }
.ref-card { padding: clamp(18px, 3.4vw, 30px); }
.ref-card h2 { margin-top: 0; }
.ref-foot { border-top: 1px solid var(--border); padding: 18px 0 26px; color: var(--dim); font-size: .84rem; }
@media (max-width: 640px) {
  #main.ref-wrap { padding-top: 14px; }
  .ref-hero { grid-template-columns: minmax(0, 1fr) 92px; gap: 10px; padding: 18px 16px; border-radius: 20px; align-items: start; }
  .ref-mascot { height: auto; width: 92px; margin-top: 4px; }
  .ref-steps { grid-column: 1 / -1; }
  .ref-steps li { font-size: .76rem; }
  .ref-bar .btn { font-size: .78rem; padding: 7px 12px; }
}
@media (max-width: 380px) { .ref-hero { grid-template-columns: minmax(0, 1fr) 72px; } .ref-mascot { width: 72px; } }
[data-theme="light"] .ref-top { background: rgba(255, 255, 255, .85); }
/* Tipos de chave Pix: mesma grade em qualquer tela (cadastro e link de indicação) */
.pix-types { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.pix-types label { display: block; }
.pix-types span { display: block; text-align: center; padding: 9px 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 420px) { .pix-types { grid-template-columns: repeat(3, minmax(0, 1fr)); } .pix-types span { font-size: .8rem; } }
.login-card.wide { width: min(760px, 100%); }
/* ---------- v8.1: TVs e monitores muito grandes — o site inteiro cresce na mesma proporção (nada fica miúdo ou perdido) ---------- */
@media (min-width: 2200px) { html { zoom: 1.25; } }
@media (min-width: 2800px) { html { zoom: 1.6; } }
@media (min-width: 3400px) { html { zoom: 2; } }
@media (max-width: 640px) {
  .ref-hero { row-gap: 0; }
  .ref-hero-copy { display: contents; }
  .ref-hero-copy > * { grid-column: 1; }
  .ref-hero #ref-by { justify-self: start; }
  .ref-mascot { grid-column: 2; grid-row: 1 / span 3; align-self: center; }
  .ref-hero .ref-steps { grid-column: 1 / -1; margin-top: 4px; display: grid; grid-template-columns: 1fr; gap: 6px; }
  .ref-steps li { border-radius: 12px; }
}
/* ---------- v8.1: seções do site (um liga/desliga por seção) ---------- */
.le-sections .card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.le-toggles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; }
.le-toggle { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface-2); cursor: pointer; transition: border-color .2s, background .2s, opacity .2s; }
.le-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.le-toggle .le-t-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); }
.le-toggle .le-t-ic svg { width: 18px; height: 18px; }
.le-toggle .le-t-tx { flex: 1; min-width: 0; }
.le-toggle .le-t-tx strong { display: block; font-size: .92rem; }
.le-toggle .le-t-tx small { color: var(--dim); font-size: .76rem; }
.le-toggle:has(input:checked) { border-color: rgba(61, 220, 151, .45); background: rgba(61, 220, 151, .06); }
.le-toggle:not(:has(input:checked)) .le-t-ic { filter: grayscale(1); opacity: .5; }
.le-toggle:not(:has(input:checked)) .le-t-tx { opacity: .65; }
.le-toggle input:focus-visible ~ .switch { outline: 2px solid var(--purple); outline-offset: 2px; }
.le-toggle input:checked ~ .switch { background: linear-gradient(135deg, #16a34a, #22c55e); border-color: transparent; }
.le-toggle input:checked ~ .switch::after { transform: translateX(20px); }
/* ---------- v8.1: responsividade geral (celular, tablet, iPad, notebook, TV) ---------- */
/* Rede de segurança: nada empurra a tela para os lados (decorações, animações, textos longos) */
html, body { max-width: 100%; overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
img, video, svg, canvas, iframe { max-width: 100%; }
input, select, textarea, button { max-width: 100%; }
.card, .panel, .field, .grid-2 > *, .grid-3 > * { min-width: 0; }
p, dd, li, td { overflow-wrap: break-word; }
.btn { overflow-wrap: normal; }
/* Tabelas viram cartões no celular: textos longos quebram em vez de sair do cartão */
@media (max-width: 720px) {
  table.responsive td { flex-wrap: wrap; align-items: center; }
  table.responsive td::before { flex: none; }
  table.responsive td > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
}
/* Barra do topo dos painéis em telas pequenas */
@media (max-width: 640px) {
  .topbar { gap: 8px; padding: 8px 12px; }
  .topbar .spacer { display: none; }
  .page-crumb { flex: 1 1 auto; min-width: 0; overflow: hidden; }
  .page-crumb b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .search { flex: 0 0 40px; max-width: none; }
  .search input { padding: 0 0 0 38px; color: transparent; cursor: pointer; }
  .search input::placeholder { color: transparent; }
  .search:focus-within { position: absolute; left: 12px; right: 12px; top: 50%; transform: translateY(-50%); z-index: 25; }
  .search:focus-within input { color: var(--text); cursor: text; }
  .pill-status { padding: 7px; }
  .pill-status .live-dot { margin: 0; }
  .topbar .theme-btn, .topbar .btn-icon { width: 38px; height: 38px; flex: none; }
}
/* Telas de acesso (entrar, criar conta, recuperar) */
@media (max-width: 480px) { .login-wrap { padding: 56px 10px 24px; } }
/* Página de termos: linha confortável de leitura em telas largas */
.doc-body { max-width: 80ch; }
/* ---------- v8.1: acabamento dos painéis (admin e cliente) ---------- */
/* Área de conteúdo aproveita melhor monitores grandes, sem esticar demais */
html[data-device="desktop"] .content { max-width: 1520px; }
html[data-device="wide"] .content { max-width: 1680px; }
/* Títulos das páginas com linha de destaque */
.page-title h1 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.02em; }
.page-title { padding-bottom: 14px; border-bottom: 1px solid var(--border); position: relative; }
.page-title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--purple), var(--pink)); }
/* Cartões: brilho sutil no topo e borda que acende ao passar o mouse */
.panel-body .card { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 120px), var(--surface); box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 10px 30px rgba(0, 0, 0, .18); transition: border-color .2s; }
.panel-body .card:hover { border-color: var(--border-strong); }
.panel-body .card > h2:first-child, .panel-body .card > h3:first-child { display: flex; align-items: center; gap: 8px; }
.panel-body .card h2 svg, .panel-body .card h3 svg { width: 18px; height: 18px; color: var(--pink-bright); }
/* Tabelas: cabeçalho fixo mais nítido, linhas com respiro e números alinhados */
.panel-body .table-wrap { border-radius: 14px; background: rgba(8, 5, 16, .35); }
.panel-body th { font-size: .72rem; letter-spacing: .08em; color: var(--dim); background: rgba(24, 17, 40, .96); backdrop-filter: blur(6px); }
.panel-body tbody tr { transition: background .15s; }
.panel-body tbody tr:hover { background: rgba(142, 107, 242, .07); }
.panel-body td { padding: 12px; }
.mono, td.mono { white-space: nowrap; }
/* Campos de envio de arquivo com botão no padrão do painel */
input[type="file"] { padding: 6px; font-size: .88rem; color: var(--muted); }
input[type="file"]::file-selector-button { margin-right: 12px; padding: 8px 14px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface-3); color: var(--text); font: 600 .85rem var(--font); cursor: pointer; transition: background .2s; }
input[type="file"]::file-selector-button:hover { background: rgba(142, 107, 242, .25); }
/* Selos e contadores do menu lateral */
.nav a .count { box-shadow: 0 0 0 2px var(--bg-2), 0 4px 10px rgba(232, 74, 150, .35); font-weight: 700; }
/* Barra do topo com leve profundidade */
.panel-body .topbar { box-shadow: 0 8px 24px rgba(0, 0, 0, .18); }
/* Filtros das listas numa faixa própria */
.panel-body .filters { padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.panel-body .filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); }
.panel-body .filters .field { min-width: 0; }
.panel-body .filters .field.grow { grid-column: span 2; }
.panel-body .filters .btn-row { grid-column: 1 / -1; margin: 0; }
@media (max-width: 420px) { .panel-body .filters .field.grow { grid-column: auto; } }
[data-theme="light"] .panel-body .card { background: #fff; box-shadow: 0 8px 24px rgba(60, 30, 120, .07); }
[data-theme="light"] .panel-body th { background: #f4f0fc; color: var(--muted); }
[data-theme="light"] .panel-body .table-wrap, [data-theme="light"] .panel-body .filters { background: #fff; }
[data-theme="light"] input[type="file"]::file-selector-button { background: #f4f0fc; }
@media (max-width: 640px) { .page-title { padding-bottom: 10px; } .panel-body .card { padding: 16px; } }

/* Ajustes finos de telas pequenas e médias */
@media (max-width: 1180px) { .panel-body .clock { display: none; } }
@media (max-width: 520px) {
  .wz-step { grid-template-columns: 30px minmax(0, 1fr); }
  .wz-step > :last-child:not(:first-child) { grid-column: 1 / -1; justify-self: start; }
  .feed li { grid-template-columns: 24px minmax(0, 1fr); }
  .feed .when { grid-column: 2; }
  .countdown { flex-wrap: wrap; }
  .countdown .cd-unit { min-width: 0; flex: 1 1 52px; }
  .card-head > * { min-width: 0; }
  .badge { white-space: normal; }
}
.my-rank { flex-wrap: wrap; }
.kv { grid-template-columns: max-content minmax(0, 1fr); }
.kv dd { min-width: 0; }
@media (max-width: 520px) { .mono, td.mono { white-space: normal; overflow-wrap: anywhere; } .kv { grid-template-columns: minmax(0, 1fr); } .kv dt { margin-top: 6px; } }
.kv dd .badge { white-space: normal; }
.split { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }

.page-crumb svg { width: 18px; height: 18px; flex: none; }
.filters-toggle { display: none; margin-bottom: 10px; }
.filters-toggle svg { width: 16px; height: 16px; }
@media (max-width: 640px) { .filters-toggle { display: flex; } .filters.collapsed { display: none; } }
/* ---------- v9: situação da indicação (3 botões para o suporte) ---------- */
.ls-card { padding: 20px 22px; }
.ls-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.ls-head h2 { font-size: clamp(1.15rem, 2vw, 1.4rem); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ls-step { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: rgba(91, 192, 255, .14); color: var(--info); border: 1px solid rgba(91, 192, 255, .35); }
.ls-big { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ls-btn { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: transform .15s var(--ease), border-color .2s, background .2s, box-shadow .2s; min-width: 0; }
.ls-btn > svg { width: 22px; height: 22px; flex: none; padding: 9px; box-sizing: content-box; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.ls-btn span { min-width: 0; } .ls-btn strong { display: block; font-size: .98rem; } .ls-btn small { display: block; color: var(--dim); font-size: .76rem; }
.ls-btn:not(:disabled):hover { transform: translateY(-2px); }
.ls-btn:disabled { cursor: default; opacity: .55; }
.ls-btn.on { opacity: 1; }
.ls-btn.open.on, .ls-btn.open:not(:disabled):hover { border-color: rgba(91, 192, 255, .55); background: rgba(91, 192, 255, .1); }
.ls-btn.open > svg { color: var(--info); }
.ls-btn.done.on, .ls-btn.done:not(:disabled):hover { border-color: rgba(61, 220, 151, .55); background: rgba(61, 220, 151, .1); box-shadow: 0 8px 24px rgba(61, 220, 151, .12); }
.ls-btn.done > svg { color: var(--ok); }
.ls-btn.lost.on, .ls-btn.lost:not(:disabled):hover { border-color: rgba(255, 92, 122, .55); background: rgba(255, 92, 122, .1); }
.ls-btn.lost > svg { color: var(--bad); }
.ls-btn.on::after { content: "atual"; margin-left: auto; align-self: flex-start; font-size: .64rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.ls-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--border); }
.ls-chip { display: inline-flex; align-items: center; gap: 5px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border-strong); background: transparent; color: var(--muted); font: 600 .82rem var(--font); cursor: pointer; transition: all .15s; }
.ls-chip svg { width: 13px; height: 13px; }
.ls-chip:not(:disabled):hover { color: var(--text); border-color: var(--info); }
.ls-chip.past { color: var(--ok); border-color: rgba(61, 220, 151, .35); }
.ls-chip.on { color: #fff; background: linear-gradient(135deg, #1c7ed6, #5bc0ff); border-color: transparent; }
.ls-chip:disabled { cursor: default; }
.ls-chip.loading { opacity: .6; pointer-events: none; }
.ls-more { margin-top: 12px; } .ls-more summary { font-size: .86rem; }
.reason-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.reason-chips .chip.active { border-color: var(--pink); color: var(--text); background: var(--pink-soft); }
@media (max-width: 720px) { .ls-big { grid-template-columns: minmax(0, 1fr); } .ls-card { padding: 16px; } }
[data-theme="light"] .ls-btn { background: #faf8ff; }
.rc-reason { margin: 8px 0 2px; padding: 8px 12px; border-radius: 12px; font-size: .84rem; color: var(--muted); background: rgba(255, 92, 122, .08); border: 1px solid rgba(255, 92, 122, .25); }
.rc-reason strong { color: var(--text); }
/* ---------- v9: retirada via Pix pelos pontos ---------- */
.reward.rw-pix .rw-img { background: linear-gradient(135deg, rgba(50, 188, 173, .25), rgba(31, 143, 132, .1)); }
.rw-pix-val { display: grid; place-items: center; gap: 2px; font-weight: 800; font-size: 1.35rem; color: #fff; text-align: center; }
.rw-pix-val small { font-size: .62rem; letter-spacing: .12em; padding: 2px 8px; border-radius: 6px; background: linear-gradient(135deg, #32bcad, #1f8f84); }
.rw-bar { height: 5px; border-radius: 5px; background: var(--surface-3); overflow: hidden; margin-top: 8px; }
.rw-bar i { display: block; height: 100%; width: 0; border-radius: 5px; background: linear-gradient(90deg, #32bcad, var(--ok)); transition: width 1s var(--ease); }
.pix-kpi { text-decoration: none; color: inherit; background: radial-gradient(400px 180px at 100% 0%, rgba(50, 188, 173, .22), transparent 60%), var(--surface) !important; }
.pix-kpi .v small { font-size: .9rem; color: var(--dim); }
.pix-kpi .btn { align-self: flex-start; }
[data-theme="light"] .rw-pix-val { color: #0f5f57; }
.red-list { display: grid; gap: 10px; }
.red-item { display: grid; grid-template-columns: 86px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); }
.red-item.pix { border-color: rgba(50, 188, 173, .35); }
.red-ic { width: 86px; height: 64px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); }
.red-item.pix .red-ic { background: linear-gradient(135deg, rgba(50, 188, 173, .25), rgba(31, 143, 132, .1)); }
.red-ic .rw-pix-val { font-size: 1rem; }
.red-ic svg { width: 26px; height: 26px; color: var(--pink-bright); }
.red-main { min-width: 0; display: grid; gap: 3px; }
.red-key { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: .86rem; margin-top: 2px; }
.red-act { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 640px) { .red-item { grid-template-columns: 64px minmax(0, 1fr); } .red-ic { width: 64px; height: 56px; } .red-act { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; } }
[data-theme="light"] .red-item { background: #fff; }
.al-box { padding: 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.cli-num { margin-left: 6px; padding: 1px 8px; border-radius: 999px; font: 700 .72rem var(--mono); color: var(--muted); background: var(--surface-3); border: 1px solid var(--border); white-space: nowrap; }
.cli-num.big { font-size: .82rem; vertical-align: middle; }
.side-cta strong svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--warn); }
/* ---------- v9.1: pedidos de troca (dados do cliente, chaves Pix, anexos) ---------- */
.red-item { align-items: start; }
.red-client { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 100%), 1fr)); gap: 6px 14px; margin-top: 8px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); font-size: .86rem; }
.red-client > div { display: grid; gap: 1px; min-width: 0; }
.red-keys { display: grid; gap: 4px; margin-top: 6px; }
.red-files { display: grid; gap: 6px; margin-top: 8px; }
.red-file { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; border: 1px dashed rgba(61, 220, 151, .4); font-size: .86rem; }
.red-file svg { width: 16px; height: 16px; color: var(--ok); }
.red-file.removed { opacity: .55; border-color: var(--border); }
.red-file.removed a { text-decoration: line-through; }
.dlv-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dlv-pick label { cursor: pointer; }
.dlv-pick input { position: absolute; opacity: 0; pointer-events: none; }
.dlv-pick span { display: grid; gap: 4px; justify-items: start; padding: 14px; border-radius: 14px; border: 1px solid var(--border-strong); background: var(--surface-2); height: 100%; transition: all .15s; }
.dlv-pick span svg { width: 22px; height: 22px; color: var(--pink-bright); }
.dlv-pick small { color: var(--dim); font-size: .76rem; }
.dlv-pick input:checked + span { border-color: var(--pink); background: var(--pink-soft); box-shadow: 0 6px 18px rgba(232, 74, 150, .18); }
.dlv-pick input:focus-visible + span { outline: 2px solid var(--purple); outline-offset: 2px; }
@media (max-width: 480px) { .dlv-pick { grid-template-columns: 1fr; } }
.rd-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
/* ---------- v9.1: avisos ao vivo no painel da equipe ---------- */
.live-bell { position: relative; flex: none; }
.live-bell .count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--pink); color: #fff; font: 700 .68rem/18px var(--font); text-align: center; box-shadow: 0 0 0 2px var(--bg); }
.live-bell.has-new svg { animation: bellRing 1.6s ease-in-out infinite; transform-origin: 50% 0; }
@keyframes bellRing { 0%, 60%, 100% { transform: rotate(0); } 10%, 30% { transform: rotate(14deg); } 20%, 40% { transform: rotate(-14deg); } }
.live-panel { position: fixed; right: 16px; top: 64px; z-index: 60; width: min(380px, calc(100vw - 32px)); max-height: 70vh; overflow: auto; border-radius: 18px; background: var(--surface-solid, #140e22); border: 1px solid var(--border-strong); box-shadow: 0 24px 60px rgba(0, 0, 0, .55); }
.live-panel .live-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 12px 14px; background: inherit; border-bottom: 1px solid var(--border); }
.live-list { list-style: none; margin: 0; padding: 6px; }
.live-list a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border-radius: 12px; color: var(--text); text-decoration: none; }
.live-list a:hover { background: rgba(142, 107, 242, .1); }
.live-list li.new a { background: rgba(232, 74, 150, .08); }
.live-list .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); color: #fff; }
.live-list .ic svg { width: 17px; height: 17px; }
.live-list strong { display: block; font-size: .88rem; }
.live-list small { display: block; color: var(--muted); font-size: .78rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-list time { font-size: .72rem; color: var(--dim); white-space: nowrap; }
.live-empty { padding: 22px 16px; }
[data-theme="light"] .live-panel { background: #fff; }
@media (prefers-reduced-motion: reduce) { .live-bell.has-new svg { animation: none; } }
.red-client > div > .badge { justify-self: start; width: max-content; }
/* ---------- v10: OctorPontos ---------- */
.op-brand { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 16px; background: linear-gradient(135deg, rgba(109, 63, 232, .14), rgba(232, 74, 150, .1)); border: 1px solid var(--border); }
.op-brand .op-logo { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); flex: none; }
.op-brand .op-logo svg { width: 22px; height: 22px; }
.op-brand strong { display: block; font-size: 1.1rem; }
.op-brand span:not(.badge):not(.op-logo) { color: var(--muted); font-size: .86rem; }
.op-brand .badge { margin-left: auto; }
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 8px; margin-bottom: 14px; }
.bonus-row { display: grid; grid-template-columns: 90px auto 90px auto; gap: 8px; align-items: center; font-size: .84rem; color: var(--muted); }
.bonus-row input { padding: 8px 10px; }
.reward { position: relative; }
.reward[draggable="true"] { cursor: grab; }
.reward.dragging { opacity: .45; outline: 2px dashed var(--pink); }
.rw-move { position: absolute; top: 8px; left: 8px; right: 8px; z-index: 2; display: flex; justify-content: space-between; align-items: center; pointer-events: none; }
.rw-move > * { pointer-events: auto; }
.rw-mv { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--border-strong); background: rgba(255, 255, 255, .9); color: #1d1530; font-size: 1.2rem; line-height: 1; cursor: pointer; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }
.rw-mv:disabled { opacity: .3; cursor: default; }
.rw-grip { padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .85); color: #6d3fe8; font-weight: 800; letter-spacing: -2px; font-size: .8rem; cursor: grab; }
.op-rules { display: grid; gap: 10px; }
.op-rule { display: flex; gap: 12px; align-items: flex-start; }
.op-rule > b { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); }
.op-rule strong { display: block; } .op-rule span { color: var(--muted); font-size: .86rem; }
.op-bonus { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 8px; }
.op-bonus > div { padding: 10px 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface-2); text-align: center; }
.op-bonus > div.got { border-color: rgba(61, 220, 151, .5); background: rgba(61, 220, 151, .08); }
.op-bonus b { display: block; font-size: 1.15rem; color: var(--pink-bright); } .op-bonus small { color: var(--muted); }
.op-pending { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(91, 192, 255, .1); border: 1px solid rgba(91, 192, 255, .3); font-size: .88rem; }
.op-pending.warn { background: rgba(245, 181, 68, .12); border-color: rgba(245, 181, 68, .4); }
@media (max-width: 480px) { .bonus-row { grid-template-columns: 70px auto 70px auto; } }

/* =====================================================================
   v11 — Meu OctorPontos (saldo, meta do mês, situação dos pontos, link), "Pontos a caminho", liberação no painel
   ===================================================================== */
.op-meu { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; border: 1px solid var(--border-strong); background: radial-gradient(520px 220px at 105% -20%, rgba(232, 74, 150, .16), transparent 60%), radial-gradient(520px 260px at -10% 120%, rgba(109, 63, 232, .16), transparent 60%), var(--surface); box-shadow: var(--shadow); display: grid; gap: 16px; min-width: 0; }
.op-meu-head { display: flex; align-items: center; gap: 12px; }
.op-meu-head h2 { margin: 0; font-size: 1.35rem; }
.op-logo { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple-strong, #6d3fe8), var(--pink)); flex: none; box-shadow: 0 8px 20px rgba(232, 74, 150, .25); }
.op-logo svg { width: 22px; height: 22px; }
.op-logo.sm { width: 34px; height: 34px; border-radius: 11px; } .op-logo.sm svg { width: 18px; height: 18px; }
.op-meu-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; gap: 12px; }
.op-stat { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); min-width: 0; }
.op-stat .k { font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.op-stat b { font: 800 2rem/1.05 var(--font); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.op-stat b small { font-size: .95rem; font-weight: 700; color: var(--muted); }
.op-stat .eq { font-weight: 700; color: var(--ok); }
.op-stat.main { color: #fff; border: 0; background: radial-gradient(300px 140px at 110% -10%, rgba(255, 207, 90, .45), transparent 60%), linear-gradient(135deg, #3a1784, #7a2ab8 55%, #d43d86); }
.op-stat.main .k, .op-stat.main b small { color: rgba(255, 255, 255, .85); }
.op-stat.main .eq { color: #ffe08a; font-size: 1.05rem; }
.op-stat .pts-bar { height: 8px; border-radius: 6px; background: var(--surface-3, rgba(255, 255, 255, .12)); overflow: hidden; margin: 4px 0; }
.op-stat .pts-bar i { display: block; height: 100%; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--purple), var(--pink)); transition: width 1.2s var(--ease); }
.op-states { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.op-states > div { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); display: flex; flex-direction: column; min-width: 0; }
.op-states b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.op-states span { font-weight: 700; font-size: .86rem; } .op-states small { color: var(--dim); font-size: .74rem; }
.op-states .st-pend { border-left: 4px solid var(--info); } .op-states .st-bloq { border-left: 4px solid var(--warn); }
.op-states .st-disp { border-left: 4px solid var(--ok); } .op-states .st-resg { border-left: 4px solid var(--purple); }
.op-share { margin-top: 0; }
.op-share .k { display: block; margin-bottom: 6px; font-weight: 700; }
.op-explain { margin: 0; padding: 12px 14px; border-radius: 14px; background: var(--purple-soft); color: var(--muted); font-size: .9rem; line-height: 1.55; }
.op-way { display: grid; gap: 10px; }
.op-way-item { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.op-way-item.bloqueado { border-color: rgba(245, 181, 68, .45); }
.op-checks { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.op-checks span { font-size: .78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--surface-3, rgba(255, 255, 255, .08)); color: var(--muted); }
.op-checks span::before { content: "○ "; }
.op-checks span.ok { background: var(--ok-soft); color: var(--ok); } .op-checks span.ok::before { content: "✓ "; }
.op-checks span.no { background: var(--warn-soft); color: var(--warn); } .op-checks span.no::before { content: "! "; }
.op-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; counter-reset: none; }
.op-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface-2); }
.op-steps li > b { width: 30px; height: 30px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; background: linear-gradient(135deg, var(--purple-strong, #6d3fe8), var(--pink)); }
.op-steps strong { display: block; margin-bottom: 2px; } .op-steps span { color: var(--muted); font-size: .86rem; }
.op-steps em { font-style: normal; font-weight: 700; color: var(--text); }
.op-goal { display: flex; gap: 12px; align-items: flex-start; margin-top: 12px; padding: 14px; border-radius: 14px; border: 1px solid rgba(232, 74, 150, .35); background: linear-gradient(135deg, rgba(109, 63, 232, .1), rgba(232, 74, 150, .08)); }
.op-goal strong { display: block; } .op-goal span { color: var(--muted); font-size: .88rem; }
.op-terms { margin: 12px 0 0; padding-left: 18px; color: var(--muted); display: grid; gap: 4px; }
.lib-item { align-items: center; gap: 12px; flex-wrap: wrap; }
@media (max-width: 900px) { .op-meu-grid { grid-template-columns: 1fr 1fr; } .op-meu-grid .op-stat.main { grid-column: 1 / -1; } .op-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .op-meu { padding: 16px; } .op-meu-grid { grid-template-columns: 1fr; } .op-states { grid-template-columns: 1fr 1fr; } .op-steps { grid-template-columns: 1fr; } .op-stat b { font-size: 1.7rem; } }
/* v11 — página inicial: seção OctorPontos */
.lp-op-vals { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; }
.lp-op-val { padding: 22px; border-radius: 20px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lp-op-val b { font: 800 2.6rem/1 var(--font); letter-spacing: -.03em; background: linear-gradient(90deg, var(--purple), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-op-val b svg { width: 40px; height: 40px; color: var(--pink); }
.lp-op-val span { font-weight: 800; font-size: 1.05rem; } .lp-op-val small { color: var(--muted); }
.lp-op-val.main { color: #fff; border: 0; background: radial-gradient(360px 160px at 110% -10%, rgba(255, 207, 90, .45), transparent 60%), linear-gradient(135deg, #3a1784, #7a2ab8 55%, #d43d86); box-shadow: 0 18px 48px rgba(122, 42, 184, .3); }
.lp-op-val.main b { background: none; color: #fff; font-size: 3.2rem; } .lp-op-val.main small { color: #ffe08a; font-weight: 700; }
.lp-op-h { text-align: center; margin: 34px 0 16px; font-size: 1.25rem; }
.lp-op-flow { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lp-op-flow li { position: relative; padding: 20px 18px; border-radius: 18px; background: var(--surface); border: 1px solid var(--border); }
.lp-op-flow li strong { display: block; margin-bottom: 4px; padding-right: 34px; } .lp-op-flow li p { margin: 0; color: var(--muted); font-size: .92rem; }
.lp-op-flow li .lp-n { top: 14px; right: 16px; font-size: 1.8rem; }
.lp-op-flow em { font-style: normal; font-weight: 800; color: var(--text); padding: 0 6px; border-radius: 6px; background: var(--purple-soft); }
.lp-op-flow em.st-pend { background: var(--info-soft); color: var(--info); } .lp-op-flow em.st-disp { background: var(--ok-soft); color: var(--ok); } .lp-op-flow em.st-bloq { background: var(--warn-soft); color: var(--warn); }
.lp-op-ex { display: flex; gap: 12px; align-items: center; margin-top: 18px; padding: 16px 18px; border-radius: 16px; border: 1px solid rgba(232, 74, 150, .35); background: linear-gradient(135deg, rgba(109, 63, 232, .1), rgba(232, 74, 150, .08)); }
.lp-op-ex-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--purple-strong), var(--pink)); } .lp-op-ex-ic svg { width: 20px; height: 20px; }
.lp-op-note { text-align: center; color: var(--muted); font-size: .9rem; margin: 16px auto 0; max-width: 760px; }
.lp-op-cta { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
@media (max-width: 900px) { .lp-op-vals { grid-template-columns: 1fr 1fr; } .lp-op-val.main { grid-column: 1 / -1; } .lp-op-flow { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .lp-op-vals, .lp-op-flow { grid-template-columns: 1fr; } .lp-op-val.main b { font-size: 2.6rem; } }
.op-pending > svg { width: 20px; height: 20px; flex: none; }
/* v12 — liberação manual: destaque das indicações prontas para confirmar */
.card.op-ready { border-color: rgba(245, 181, 68, .55); box-shadow: 0 0 0 1px rgba(245, 181, 68, .25), var(--shadow); }
.op-ready-alert { display: block; color: var(--text); margin-bottom: 16px; }
.op-way-item.invalido { border-color: rgba(214, 51, 79, .35); background: var(--bad-soft); }
.op-checks span.bad { background: var(--bad-soft); color: var(--bad); } .op-checks span.bad::before { content: "✕ "; }
/* v12 — aceite obrigatório dos termos do programa (tela cheia) */
.terms-gate { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; background: rgba(20, 12, 40, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.tg-box { width: min(760px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; gap: 12px; padding: 22px; border-radius: 22px; background: var(--surface-solid, #fff); border: 1px solid var(--border-strong); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); min-width: 0; }
.tg-head { display: flex; gap: 12px; align-items: flex-start; } .tg-head h2 { margin: 0 0 2px; font-size: 1.25rem; }
.tg-text { flex: 1; min-height: 180px; overflow: auto; white-space: pre-wrap; font-size: .9rem; line-height: 1.6; padding: 14px 16px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); }
body.no-scroll { overflow: hidden; }
@media (max-width: 560px) { .tg-box { padding: 16px; } .tg-text { font-size: .86rem; } }
.tg-box { width: min(560px, 100%); }
.tg-more summary { cursor: pointer; font-weight: 700; color: var(--pink-bright); padding: 4px 0; }
.tg-more .tg-text { max-height: 46vh; margin-top: 8px; }
.cat-group + .cat-group { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--border-strong); }
.cat-group h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 2px; } .cat-group h4 svg { width: 18px; height: 18px; color: var(--pink); }
.rw-kind { position: absolute; top: 8px; left: 8px; z-index: 2; }
/* v12.4 — imagens do catálogo sem corte e na mesma proporção em qualquer aparelho (celular, tablet, iPad, iPhone, computador).
   O quadro da imagem é sempre 16:10 (padrão 1200×750); a imagem inteira cabe dentro dele (contain), sem distorcer.
   Navegadores antigos sem aspect-ratio (iOS < 15) usam o "padding-top" de 62,5%. */
.reward .rw-img { position: relative; width: 100%; aspect-ratio: 16 / 10; overflow: hidden; display: block; }
@supports not (aspect-ratio: 1 / 1) { .reward .rw-img { height: 0; padding-top: 62.5%; } }
.reward .rw-img > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; display: block; }
.reward .rw-img > svg { position: absolute; inset: 0; margin: auto; }
.reward .rw-img > .rw-pix-val { position: absolute; inset: 0; }
.reward { min-width: 0; }
.reward .rw-body strong { overflow-wrap: anywhere; }
@media (max-width: 380px) { .reward .rw-body { padding: 12px; } }
/* v12.5 — endereço no cadastro: número estreito + bairro largo; empilha no celular pequeno */
.addr-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 0 14px; }
@media (max-width: 360px) { .addr-row { grid-template-columns: 1fr; } }
