/* ==========================================================
   UPPSMS — design system
   Preto/grafite como base, laranja na ação principal e na luz da marca.
   ========================================================== */
@font-face { font-family: 'Inter'; src: url('/fonts/inter.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/manrope.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jbmono-500.woff2') format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url('/fonts/jbmono-700.woff2') format('woff2'); font-weight: 700; font-display: swap; }
:root {
    /* paleta da marca (docs/IDENTIDADE-VISUAL.md) */
    --brand-bg: #08090B;
    --brand-surface: #12151B;
    --brand-surface-raised: #191E26;
    --brand-border: #20252E;
    --brand-primary: #FF6A00;
    --brand-primary-hover: #FF9F1A;
    --brand-highlight: #FFC857;
    --brand-text: #F5F7FA;
    --brand-muted: #AAB2BF;

    /* nomes usados pelos componentes */
    --bg: var(--brand-bg);
    --bg-2: #0D0F13;
    --surface: var(--brand-surface);
    --surface-2: var(--brand-surface-raised);
    --surface-3: #232933;
    --line: var(--brand-border);
    --line-2: #2E3541;
    --text: var(--brand-text);
    --muted: var(--brand-muted);
    --dim: #8A93A1;
    --brand: var(--brand-primary);
    --brand-2: var(--brand-primary-hover);
    --brand-soft: rgba(255, 106, 0, .12);
    --brand-glow: rgba(255, 106, 0, .45);
    --on-brand: #0B0B0D;
    --ok: #34d399;
    --ok-soft: rgba(52, 211, 153, .12);
    --warn: #fbbf24;
    --warn-soft: rgba(251, 191, 36, .12);
    --bad: #fb6f84;
    --bad-soft: rgba(251, 111, 132, .12);
    --info: #60a5fa;
    --r-lg: 18px;
    --r: 12px;
    --r-sm: 10px;
    --shadow: 0 12px 32px -14px rgba(0, 0, 0, .75);
    --shadow-contact: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 10px 24px -16px rgba(0, 0, 0, .9);
    --ease: cubic-bezier(.2, .8, .2, 1);
    --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --display: 'Manrope', 'Inter', system-ui, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;
    --nav-h: 68px;
    --safe-b: env(safe-area-inset-bottom, 0px);
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 400 15px/1.5 var(--font);
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
    min-height: 100dvh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-2); text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; margin: 0; line-height: 1.2; }
.mono { font-family: var(--mono); font-feature-settings: 'zero' 1; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

svg.i { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.sm { width: 16px; height: 16px; }
svg.i.lg { width: 24px; height: 24px; }

/* ---------- botões ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 48px; padding: 0 20px; border-radius: var(--r); border: 1px solid transparent;
    font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap;
    transition: transform .12s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease, opacity .18s;
    user-select: none;
}
.btn:active { transform: scale(.975); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--brand-2); outline-offset: 2px; }
.input:focus-visible, .select:focus-visible { outline: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary { background: var(--brand); color: var(--on-brand); font-weight: 700; box-shadow: 0 8px 22px -12px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .28); }
.btn-primary:hover { background: var(--brand-2); box-shadow: 0 10px 26px -12px rgba(255, 159, 26, .6), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: var(--surface-2); border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--line-2); background: var(--surface-3); }
.btn-ok { background: var(--ok); color: #052e20; }
.btn-danger { background: var(--bad-soft); color: var(--bad); border-color: rgba(251, 111, 132, .25); }
.btn-wa { background: #25d366; color: #06301a; }
.btn-block { width: 100%; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn-lg { height: 54px; font-size: 16px; }
.icon-btn {
    width: 40px; height: 40px; border-radius: 12px; display: inline-grid; place-items: center;
    background: var(--surface-2); border: 1px solid var(--line); color: var(--text); transition: border-color .18s, background .18s;
}
.icon-btn:hover { border-color: var(--line-2); }
.icon-btn:active { transform: scale(.95); }

/* ---------- marca (views/partials/brand.ejs) ---------- */
.brandmark { --logo: 44px; display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.01em; color: var(--text); min-width: 0; }
/* a logo original vai inteira (JPEG com fundo preto próprio): só dimensionada, nunca recortada ou recolorida */
.brand-logo { display: block; width: var(--logo); height: var(--logo); flex: none; border-radius: 50%; overflow: hidden; background: #000;
    box-shadow: 0 0 0 1px rgba(255, 159, 26, .22), 0 0 20px -6px var(--brand-glow); }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { line-height: 1; white-space: nowrap; background: linear-gradient(180deg, #FFFFFF 0%, #C9CED6 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name b { font-weight: 800; background: linear-gradient(180deg, #FFB347 0%, #FF6A00 70%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-name small { font-family: var(--font); font-weight: 600; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-left: 4px; vertical-align: 2px; }
.brandmark-lg { --logo: 56px; font-size: 24px; }

/* ---------- campos ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 7px; }
.input, .select, textarea.input {
    width: 100%; height: 50px; padding: 0 15px; border-radius: var(--r);
    background: var(--bg-2); border: 1px solid var(--line-2); outline: none;
    transition: border-color .2s, box-shadow .2s; font-size: 16px;
}
textarea.input { height: auto; min-height: 90px; padding: 12px 15px; resize: vertical; }
.input:focus, .select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 106, 0, .22); }
.input::placeholder { color: var(--dim); }
.input-group { display: flex; gap: 8px; }
.input-group .select { width: 104px; flex: none; }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 6px; }

/* ---------- cartões ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; box-shadow: var(--shadow-contact); }
.card + .card { margin-top: 12px; }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 26px 2px 12px; }
.section-title h2 { font-size: 17px; font-weight: 600; }
.section-title a, .section-title button { font-size: 13.5px; font-weight: 500; background: none; border: 0; color: var(--brand-2); padding: 0; }

.badge { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.brand { background: var(--brand-soft); color: var(--brand-2); }
.badge.neutral { background: var(--surface-3); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.dot.pulse { animation: pulse 1.6s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 6px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

.empty { text-align: center; padding: 36px 20px; color: var(--muted); }
.empty img { width: 76px; margin: 4px auto 14px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)) drop-shadow(0 0 14px rgba(255, 106, 0, .25)); }
.empty h3 { font-size: 16px; color: var(--text); margin-bottom: 4px; }
.empty p { margin: 0 0 16px; font-size: 14px; }

.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: sk 1.3s linear infinite; border-radius: var(--r); }
@keyframes sk { to { background-position: -200% 0; } }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2.5px solid color-mix(in srgb, currentColor 25%, transparent); border-top-color: currentColor; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- toast ---------- */
#toasts { position: fixed; left: 0; right: 0; top: 12px; z-index: 100; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
.toast {
    pointer-events: auto; max-width: 440px; width: 100%; display: flex; gap: 10px; align-items: flex-start;
    background: var(--surface-3); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 14px;
    box-shadow: var(--shadow); font-size: 14px; animation: toastIn .25s ease;
}
.toast.ok svg { color: var(--ok); }
.toast.bad svg { color: var(--bad); }
.toast.leaving { animation: toastOut .2s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-8px); } }

/* ---------- bottom sheet / modal ---------- */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(3, 4, 6, .66); backdrop-filter: blur(4px); z-index: 60; opacity: 0; transition: opacity .2s; }
.sheet-backdrop.open { opacity: 1; }
.sheet {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; max-height: 92dvh; overflow: auto;
    background: var(--surface); border-top: 1px solid var(--line-2); border-radius: 24px 24px 0 0;
    padding: 10px 18px calc(20px + var(--safe-b)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2, .8, .2, 1);
}
.sheet.open { transform: none; }
.sheet .grabber { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 0 auto 14px; }
.sheet h3 { font-size: 19px; margin-bottom: 4px; }
@media (min-width: 720px) {
    .sheet { left: 50%; right: auto; bottom: 50%; width: 460px; border-radius: 24px; border: 1px solid var(--line-2); transform: translate(-50%, 60%) scale(.98); opacity: 0; transition: transform .22s ease, opacity .22s; }
    .sheet.open { transform: translate(-50%, 50%); opacity: 1; }
    .sheet .grabber { display: none; }
}

/* ==========================================================
   LOGIN
   ========================================================== */
.auth { overflow-x: hidden;
    min-height: 100dvh; display: grid; grid-template-columns: 1fr;
    background:
        radial-gradient(700px 420px at 100% 0%, rgba(255, 106, 0, .20), transparent 60%),
        radial-gradient(600px 380px at -10% 110%, rgba(255, 106, 0, .08), transparent 60%),
        var(--bg);
}
.auth-hero { position: relative; padding: 18px 16px 0; display: flex; flex-direction: column; }
.hero-row { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.auth-chip { flex: none; width: 118px; margin: -6px -8px 0 0; }
.auth-hero h1 { font-size: clamp(32px, 9vw, 40px); font-weight: 800; line-height: 1.06; letter-spacing: -.03em; text-wrap: balance; }
.auth-hero h1 em { font-style: normal; display: block; background: linear-gradient(180deg, #FFB347, #FF6A00 75%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero .lead { color: var(--muted); margin: 12px 0 0; font-size: 15px; line-height: 1.5; }
.auth-hero .hero-text { position: relative; z-index: 2; flex: 1; min-width: 0; }
@media (max-width: 400px) {
    .auth-hero .brandmark-lg { --logo: 40px; font-size: 19px; }
    .auth-chip { width: 92px; }
    .auth-hero h1 { font-size: clamp(29px, 9vw, 36px); }
}
.auth-panel { padding: 18px 16px 32px; display: flex; justify-content: center; align-items: flex-start; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px 20px; box-shadow: 0 1px 0 rgba(255, 200, 87, .08) inset, 0 24px 60px -30px rgba(0, 0, 0, .9); position: relative; z-index: 3; }
.auth-card::before { content: ''; position: absolute; left: 24px; right: 24px; top: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 159, 26, .75), transparent); }
.auth-card h2 { font-size: 21px; margin-bottom: 4px; }
.auth-card p.sub { color: var(--muted); margin: 0 0 18px; font-size: 14px; }
.auth-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 18px; }
.auth-feats div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 6px; text-align: center; font-size: 12px; color: var(--muted); }
.auth-feats svg { color: var(--brand); margin: 0 auto 4px; display: block; }
.invite { display: flex; gap: 10px; align-items: flex-start; background: var(--ok-soft); border: 1px solid rgba(52, 211, 153, .3); color: #a7f3d0; padding: 12px 14px; border-radius: 12px; font-size: 14px; margin-bottom: 14px; }
.invite svg { color: var(--ok); margin-top: 1px; }
.invite b { color: #fff; }
.ref-card { position: relative; overflow: hidden; border-radius: 20px; padding: 18px; color: var(--text); background: radial-gradient(120% 140% at 0% 100%, rgba(255, 106, 0, .22), transparent 55%), linear-gradient(160deg, #1A1F28, #12151B 60%, #0D0F13); border: 1px solid rgba(255, 159, 26, .22); box-shadow: 0 1px 0 rgba(255, 200, 87, .12) inset; }
.ref-card h3 { font-size: 18px; margin-bottom: 4px; }
.ref-card p { margin: 0 0 14px; color: var(--muted); font-size: 14px; max-width: 70%; }
.ref-card .chip-deco { width: 84px; opacity: .9; }
.ref-link { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 10px 10px 10px 14px; position: relative; z-index: 2; }
.ref-link span { flex: 1; min-width: 0; font-family: var(--mono); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aff-wallet .label { font-size: 13px; color: var(--muted); }
.aff-wallet .amount { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 2px 0 14px; color: var(--ok); }
.aff-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.aff-actions .btn { height: 44px; font-size: 14px; padding: 0 10px; }
.pix-data { display: grid; gap: 10px; }
.pix-data small { display: block; color: var(--dim); font-size: 12px; }
.pix-data b { font-size: 14.5px; word-break: break-all; }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.stats3 div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.stats3 b { display: block; font-family: var(--display); font-size: 18px; }
.stats3 small { color: var(--muted); font-size: 12px; }
.pay-line { display: flex; justify-content: space-between; font-size: 14px; color: var(--muted); padding: 4px 2px; }
.pay-line b { color: var(--text); }
.pay-line.ok b { color: var(--ok); }
.form-error { background: var(--bad-soft); color: var(--bad); border: 1px solid rgba(251, 111, 132, .25); padding: 10px 12px; border-radius: 12px; font-size: 13.5px; margin-bottom: 14px; }
.legal { text-align: center; font-size: 12px; color: var(--dim); margin-top: 16px; }

/* partes do login que só aparecem no computador */
.hero-kicker, .hero-points, .hero-apps, .card-chip { display: none; }
.hero-kicker { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--brand-2); }
.auth-tabs { margin-bottom: 18px; }
.auth-tabs button { font-size: 14.5px; }
.install-link { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; margin-top: 12px; background: none; border: 0; color: var(--brand-2); font-weight: 600; font-size: 14px; padding: 8px; }

@media (min-width: 960px) {
    .auth {
        grid-template-columns: minmax(0, 1fr) 420px; gap: clamp(40px, 6vw, 96px); align-items: center;
        max-width: 1200px; margin: 0 auto; padding: 48px 40px; overflow: visible;
    }
    body:has(.auth) {
        background:
            radial-gradient(900px 560px at 78% 18%, rgba(255, 106, 0, .20), transparent 62%),
            radial-gradient(700px 460px at 0% 105%, rgba(255, 106, 0, .08), transparent 60%),
            var(--bg);
        background-attachment: fixed;
    }
    .auth { background: none; }
    .auth-hero { padding: 0; }
    .auth-hero .brandmark { --logo: 64px; font-size: 26px; margin-bottom: 48px; }
    .hero-row { display: block; margin: 0; }
    .auth-chip { display: none; }
    .auth-hero .hero-text { max-width: 580px; padding: 0; }
    .hero-kicker { display: block; margin-bottom: 16px; }
    .auth-hero h1 { font-size: clamp(48px, 4.6vw, 64px); line-height: 1.02; }
    .auth-hero .lead { font-size: 17.5px; margin-top: 18px; max-width: 500px; line-height: 1.55; }
    .hero-points { display: grid; gap: 14px; list-style: none; padding: 0; margin: 32px 0 0; }
    .hero-points li { display: flex; gap: 14px; align-items: center; }
    .hero-points li > svg { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--brand); flex: none; box-shadow: var(--shadow-contact); }
    .hero-points b { display: block; font-size: 15.5px; font-weight: 600; }
    .hero-points span { color: var(--muted); font-size: 14px; }
    .hero-apps { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
    .hero-apps span { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(18, 21, 27, .6); color: var(--muted); font-size: 13px; font-weight: 500; }
    .hero-apps svg { fill: currentColor; stroke: none; }
    .hero-apps span:nth-child(1) svg { color: #25d366; }
    .hero-apps span:nth-child(2) svg { color: #26a5e4; }
    .auth-panel { padding: 0; display: block; }
    .card-wrap { position: relative; padding-top: 200px; }
    .card-chip { display: block; position: absolute; top: -40px; left: 50%; width: 300px; margin-left: -150px; z-index: 1; }
    .auth-card { max-width: none; padding: 30px 28px; z-index: 2; }
    .auth-card .auth-feats { display: none; }
}
@media (min-width: 960px) and (max-height: 760px) {
    .auth { padding-top: 28px; padding-bottom: 28px; }
    .auth-hero .brandmark { margin-bottom: 28px; }
    .hero-points { margin-top: 20px; gap: 10px; }
    .hero-apps { margin-top: 20px; }
    .card-wrap { padding-top: 150px; }
    .card-chip { width: 230px; margin-left: -115px; top: -30px; }
}

/* ==========================================================
   AMBIENTAÇÃO 3D DA MARCA (views/partials/chip3d.ejs + js/chip3d.js)
   Camadas CSS com perspectiva: textura hexagonal, arco de luz e um chip com
   espessura (cópias escurecidas em translateZ). Não é um modelo 3D: é profundidade
   visual em CSS. Decorativo: não recebe cliques e funciona parado.
   ========================================================== */
.chip3d { --rx: 0deg; --ry: 0deg; --px: 0px; --py: 0px;
    position: relative; width: 100%; aspect-ratio: 1; perspective: 1200px; pointer-events: none; user-select: none; contain: layout paint; }
.chip3d-glow { position: absolute; inset: 4%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 106, 0, .42), rgba(255, 106, 0, .12) 55%, transparent 72%);
    transform: translate(calc(var(--px) * -.5), calc(var(--py) * -.5)); }
.chip3d-hex { position: absolute; inset: -6%; background: url('/img/brand/hex.svg') center / 70% auto; opacity: .5;
    -webkit-mask: radial-gradient(closest-side, #000 30%, transparent 78%); mask: radial-gradient(closest-side, #000 30%, transparent 78%);
    transform: translate(calc(var(--px) * -1), calc(var(--py) * -1)); }
.chip3d-arc { position: absolute; inset: 14% -2%; border-radius: 50%; border: 2px solid rgba(255, 159, 26, .85);
    box-shadow: 0 0 14px rgba(255, 106, 0, .7), inset 0 0 14px rgba(255, 106, 0, .45);
    transform: translate(var(--px), var(--py)) rotateZ(-16deg) rotateX(68deg); }
.chip3d-arc-front { clip-path: inset(50% 0 0 0); }
.chip3d-arc-back { opacity: .55; clip-path: inset(0 0 50% 0); }
.chip3d-float { position: absolute; inset: 17%; transform-style: preserve-3d; animation: chipFloat 7s ease-in-out infinite; }
.chip3d-obj { position: absolute; inset: 0; transform-style: preserve-3d;
    transform: rotateX(calc(10deg + var(--rx))) rotateY(calc(-18deg + var(--ry))) rotateZ(-4deg); transition: transform .5s var(--ease); }
.chip3d.tilting .chip3d-obj { transition: transform .12s linear; }
.chip3d-obj img { position: absolute; inset: 0; width: 100%; height: 100%; }
.chip3d-face { transform: translateZ(0); filter: drop-shadow(0 0 1px rgba(255, 200, 87, .7)); }
.chip3d-edge { transform: translateZ(var(--z)); filter: brightness(.22) saturate(1.4); }
.chip3d-glare { position: absolute; inset: 4%; border-radius: 14%; transform: translateZ(1px); pointer-events: none; mix-blend-mode: soft-light;
    background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .55) 46%, rgba(255, 255, 255, .12) 52%, transparent 64%) no-repeat;
    background-size: 260% 100%; background-position: var(--gx, 60%) 0; -webkit-mask: url('/img/brand/chip.svg') center / 100% 100%; mask: url('/img/brand/chip.svg') center / 100% 100%; }
.chip3d-shadow { position: absolute; left: 24%; right: 24%; bottom: 6%; height: 7%; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .75), transparent); filter: blur(4px);
    animation: chipShadow 7s ease-in-out infinite; }
.chip3d.paused .chip3d-float, .chip3d.paused .chip3d-shadow { animation-play-state: paused; }
@keyframes chipFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes chipShadow { 0%, 100% { transform: scaleX(1); opacity: 1; } 50% { transform: scaleX(.92); opacity: .8; } }
.chip3d-sm .chip3d-arc { border-width: 1.5px; box-shadow: 0 0 10px rgba(255, 106, 0, .6), inset 0 0 10px rgba(255, 106, 0, .4); }
.chip3d-sm .chip3d-hex { opacity: .35; }
@media (prefers-reduced-motion: reduce) {
    .chip3d-float, .chip3d-shadow { animation: none !important; }
    .chip3d-obj { transition: none !important; }
}

/* entrada suave das seções (o conteúdo continua visível sem JS) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity .48s var(--ease), transform .48s var(--ease); }
.reveal-ready [data-reveal].in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-ready [data-reveal] { opacity: 1 !important; transform: none !important; } }

/* ==========================================================
   APP (usuário)
   ========================================================== */
.shell { min-height: 100dvh; }
.topbar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    padding: 10px 16px; background: rgba(8, 9, 11, .84); backdrop-filter: blur(14px) saturate(1.2);
    border-bottom: 1px solid var(--line); box-shadow: 0 1px 0 rgba(255, 159, 26, .05);
}
.topbar .brandmark { --logo: 40px; font-size: 18px; }
.top-actions { display: flex; align-items: center; gap: 8px; }
.top-logout { width: 38px; height: 38px; color: var(--muted); }
.sidenav .side-logout { color: var(--bad); }
.balance-pill {
    display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 6px 0 12px; border-radius: 99px;
    background: var(--surface-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--text);
}
.balance-pill .plus { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); box-shadow: 0 0 12px -2px var(--brand-glow); }

.main { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 28px + var(--safe-b)); }
.view { animation: viewIn .22s ease; }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; }
.page-head h1 { font-size: 22px; font-weight: 700; }
.page-head .sub { color: var(--muted); font-size: 14px; margin-top: 2px; }

.bottomnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
    display: grid; grid-template-columns: repeat(5, 1fr); background: rgba(10, 12, 15, .94); backdrop-filter: blur(16px);
    border-top: 1px solid var(--line);
}
.bottomnav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--dim); font-size: 11px; font-weight: 600; position: relative; }
.bottomnav a.active { color: var(--text); }
.bottomnav a.active svg { color: var(--brand); }
.bottomnav a.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 3px; border-radius: 0 0 4px 4px; background: var(--brand); box-shadow: 0 0 12px var(--brand-glow); }
.bottomnav a.buy .fab { width: 46px; height: 46px; margin-top: -18px; border-radius: 16px; display: grid; place-items: center; background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 24px -8px rgba(255, 106, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .3); border: 3px solid var(--bg); }
.bottomnav a.buy.active::before { display: none; }
.bottomnav a.buy.active svg { color: var(--on-brand); }
.nav-count { position: absolute; top: 8px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--ok); color: #052e20; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }

.sidenav { display: none; }
@media (min-width: 1024px) {
    .shell { display: grid; grid-template-columns: 250px 1fr; }
    .bottomnav { display: none; }
    .sidenav {
        display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100dvh; padding: 20px 14px;
        border-right: 1px solid var(--line); background: linear-gradient(180deg, #0F1216, var(--bg-2));
    }
    .sidenav .brandmark { --logo: 52px; font-size: 21px; padding: 4px 6px 22px; }
    .sidenav a { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 12px; border-radius: 12px; color: var(--muted); font-weight: 500; border: 1px solid transparent; transition: background .18s, color .18s, border-color .18s; }
    .sidenav a:hover { background: var(--surface); color: var(--text); }
    .sidenav a.active { background: linear-gradient(90deg, rgba(255, 106, 0, .16), rgba(255, 106, 0, .04)); border-color: rgba(255, 106, 0, .28); color: var(--text); box-shadow: inset 3px 0 0 var(--brand); }
    .sidenav a.active svg { color: var(--brand); }
    .sidenav .side-ninja { margin-top: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; position: relative; overflow: hidden; }
    .sidenav .side-ninja { background: radial-gradient(140% 120% at 100% 100%, rgba(255, 106, 0, .16), transparent 60%), var(--surface); }
    .sidenav .side-ninja .btn { height: 36px; padding: 0 12px; background: var(--surface-3); }
    .sidenav .side-ninja img { position: absolute; right: 10px; top: 10px; width: 40px; height: auto; transform: rotate(-12deg); opacity: .9; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
    .sidenav .side-ninja .btn { position: relative; z-index: 1; }
    .sidenav .side-ninja p { margin: 0 0 10px; font-size: 13px; color: var(--muted); max-width: 130px; }
    .topbar .brandmark { visibility: hidden; }
    .main { padding-bottom: 40px; max-width: 760px; }
}

/* início */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 2px 0 14px; }
.hello h1 { font-size: 22px; font-weight: 700; }
.hello p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.wallet-card {
    position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; padding: 20px;
    background:
        radial-gradient(120% 140% at 100% 0%, rgba(255, 106, 0, .30), transparent 55%),
        linear-gradient(160deg, #1A1F28 0%, #12151B 55%, #0D0F13 100%);
    border: 1px solid rgba(255, 159, 26, .22);
    box-shadow: 0 1px 0 rgba(255, 200, 87, .14) inset, 0 18px 40px -22px rgba(255, 106, 0, .55);
}
.wallet-card::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
    background: url('/img/brand/hex.svg') right -40px top -30px / 260px auto no-repeat;
    -webkit-mask: radial-gradient(260px 200px at 100% 0%, #000, transparent 75%); mask: radial-gradient(260px 200px at 100% 0%, #000, transparent 75%); }
.wallet-card::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 159, 26, .7), transparent); pointer-events: none; }
.wallet-card .label { font-size: 13px; color: var(--muted); font-weight: 500; }
.wallet-card .amount { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; margin: 2px 0 16px; font-variant-numeric: tabular-nums; }
.wallet-card .amount small { font-size: 18px; font-weight: 700; opacity: .8; margin-right: 4px; }
.wallet-card .actions { display: flex; gap: 8px; position: relative; z-index: 2; }
.wallet-card .actions .btn { height: 44px; font-size: 14px; }
.wallet-card .btn-white { background: var(--brand); color: var(--on-brand); font-weight: 700; box-shadow: 0 8px 22px -12px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, .28); }
.wallet-card .btn-white:hover { background: var(--brand-2); }
.wallet-card .btn-glass { background: rgba(255, 255, 255, .06); color: var(--text); border-color: var(--line-2); }
.chip-deco { position: absolute; right: 14px; bottom: 50%; transform: translateY(50%) rotate(-10deg); width: 92px; height: auto; z-index: 1; pointer-events: none;
    filter: drop-shadow(0 12px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 18px rgba(255, 106, 0, .35)); }

.announce { display: flex; gap: 10px; align-items: flex-start; background: var(--warn-soft); border: 1px solid rgba(251, 191, 36, .22); color: #fde68a; box-shadow: var(--shadow-contact); border-radius: var(--r); padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }

.steps { display: grid; gap: 10px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step .n { width: 30px; height: 30px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-2); font-weight: 700; font-size: 14px; }
.step h4 { font-family: var(--font); font-size: 14.5px; font-weight: 600; letter-spacing: 0; }
.step p { margin: 1px 0 0; font-size: 13.5px; color: var(--muted); }

/* serviços */
.search { position: relative; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search .input { padding-left: 44px; }
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
@media (min-width: 520px) { .svc-grid { grid-template-columns: repeat(5, 1fr); } }
@media (min-width: 1024px) { .svc-grid { grid-template-columns: repeat(6, 1fr); } }
.svc {
    display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 4px 10px; border-radius: 16px;
    background: var(--surface); border: 1px solid var(--line); text-align: center; transition: border-color .2s, transform .12s;
}
.svc { transition: border-color .18s, transform .18s var(--ease), box-shadow .18s; }
.svc:active { transform: scale(.96); }
@media (hover: hover) { .svc:hover { border-color: rgba(255, 159, 26, .35); transform: translateY(-2px); box-shadow: 0 10px 20px -14px var(--brand-glow); } }
.svc span { font-size: 12px; font-weight: 500; line-height: 1.2; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.logo { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-3); flex: none; font-family: var(--display); font-weight: 700; font-size: 17px; color: #fff; }
.logo svg { width: 24px; height: 24px; }
.logo-img { background: rgba(255, 255, 255, .06); overflow: hidden; }
.logo-img img { width: 28px; height: 28px; object-fit: contain; border-radius: 7px; }
.logo.sm.logo-img img { width: 22px; height: 22px; border-radius: 5px; }
.logo.sm { width: 36px; height: 36px; border-radius: 11px; font-size: 14px; }
.logo.sm svg { width: 19px; height: 19px; }
.svc-list { display: flex; flex-direction: column; }
.svc-row { display: flex; align-items: center; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--line); background: none; border-left: 0; border-right: 0; border-top: 0; text-align: left; width: 100%; }
.svc-row:last-child { border-bottom: 0; }
.svc-row .name { flex: 1; font-weight: 500; font-size: 14.5px; color: var(--text); }
.svc-row > svg { color: var(--dim); }

/* países */
.picked { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
.picked .t { flex: 1; min-width: 0; }
.picked .t b { display: block; font-size: 15px; }
.picked .t small { color: var(--muted); font-size: 12.5px; }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 12px -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: transparent; color: var(--muted); font-size: 13px; font-weight: 600; }
.chip.on { background: var(--brand); color: var(--on-brand); border-color: var(--brand); }
.country-list { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.country {
    display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; background: none; border: 0;
    border-bottom: 1px solid var(--line); text-align: left; transition: background .15s;
}
.country:last-child { border-bottom: 0; }
.country:active { background: var(--surface-2); }
.flag { width: 30px; height: 22px; border-radius: 5px; object-fit: cover; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); background: var(--surface-3); }
.flag.globe { display: grid; place-items: center; color: var(--muted); }
.country .t { flex: 1; min-width: 0; }
.country .t b { display: block; font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.country .t small { font-size: 12.5px; color: var(--dim); }
.price-tag { font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text); white-space: nowrap; }
.buy-mini { height: 32px; padding: 0 12px; border-radius: 10px; background: var(--brand-soft); color: var(--brand-2); border: 1px solid rgba(255, 106, 0, .25); font-weight: 700; font-size: 13px; display: inline-flex; align-items: center; }

.confirm-box { display: flex; align-items: center; gap: 12px; padding: 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 16px; margin: 14px 0; }
.confirm-row { display: flex; justify-content: space-between; font-size: 14px; padding: 6px 2px; color: var(--muted); }
.confirm-row b { color: var(--text); }

/* pedidos */
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.seg a, .seg button { height: 38px; border: 0; background: none; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); display: grid; place-items: center; }
.seg a.on, .seg button.on { background: var(--surface-3); color: var(--text); box-shadow: inset 0 -2px 0 var(--brand), 0 1px 0 rgba(255, 255, 255, .04) inset; }

.order { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px; margin-bottom: 12px; position: relative; overflow: hidden; }
.order.has-code { border-color: rgba(52, 211, 153, .35); box-shadow: 0 0 0 1px rgba(52, 211, 153, .1), 0 16px 32px -20px rgba(52, 211, 153, .5); }
.order-head { display: flex; align-items: center; gap: 12px; }
.order-head .t { flex: 1; min-width: 0; }
.order-head .t b { display: block; font-size: 15px; }
.order-head .t small { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.order-head .t small .flag { width: 18px; height: 13px; border-radius: 3px; }
.phone-box {
    display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 12px 12px 12px 16px;
    background: var(--bg-2); border: 1px solid var(--line); border-radius: 14px;
}
.phone-box .num { font-family: var(--mono); font-size: 19px; font-weight: 700; letter-spacing: .01em; overflow-wrap: anywhere; }
.phone-box .lbl { font-size: 11.5px; color: var(--dim); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.code-box {
    margin-top: 10px; padding: 14px 16px; border-radius: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    background: var(--ok-soft); border: 1px dashed rgba(52, 211, 153, .4);
}
.code-box .code { font-family: var(--mono); font-size: 30px; font-weight: 700; letter-spacing: .14em; color: var(--ok); }
.code-box .lbl { font-size: 11.5px; color: var(--ok); opacity: .8; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.waiting-box { margin-top: 10px; padding: 14px 16px; border-radius: 14px; background: var(--brand-soft); display: flex; align-items: center; gap: 12px; font-size: 14px; }
.waiting-box b { font-weight: 700; }
.waiting-box small { display: inline-block; margin-top: 4px; color: var(--muted); font-size: 12.5px; }
.waiting-box[data-stage="2"] { background: rgba(245, 158, 11, .12); border: 1px solid rgba(245, 158, 11, .35); }
.waiting-box[data-stage="2"] > svg { color: #f59e0b; flex: none; width: 20px; height: 20px; }
.wait-help { margin-top: 8px; font-size: 13px; color: var(--muted); }
.wait-help summary { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; list-style: none; color: var(--brand-2); font-weight: 600; }
.wait-help summary::-webkit-details-marker { display: none; }
.wait-help ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; line-height: 1.45; }
.wait-help b { color: var(--text); }
.waiting-box .bars { display: flex; gap: 3px; align-items: flex-end; height: 18px; }
.waiting-box .bars i { width: 4px; border-radius: 2px; background: var(--brand-2); animation: bars 1s ease-in-out infinite; }
.waiting-box .bars i:nth-child(2) { animation-delay: .15s; }
.waiting-box .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes bars { 0%, 100% { height: 5px; } 50% { height: 18px; } }
.sms-text { margin-top: 8px; font-size: 13px; color: var(--muted); background: var(--bg-2); border-radius: 12px; padding: 10px 12px; word-break: break-word; }
.order-foot { display: flex; align-items: center; gap: 8px; margin-top: 12px; }
.order-foot .timer { margin-right: auto; font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.progress { height: 3px; background: var(--line); border-radius: 3px; margin-top: 12px; overflow: hidden; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 3px; transition: width 1s linear; }

.hist { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.hist:last-child { border-bottom: 0; }
.hist .t { flex: 1; min-width: 0; }
.hist .t b { display: block; font-size: 14px; font-weight: 600; }
.hist .t small { color: var(--dim); font-size: 12.5px; }
.hist .r { text-align: right; }
.hist .r b { display: block; font-size: 14px; }
.list-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }

/* carteira */
.amounts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 12px; }
.amounts button { height: 46px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg-2); font-weight: 700; font-size: 14.5px; }
.amounts button.on { border-color: var(--brand); background: var(--brand-soft); color: var(--text); box-shadow: inset 0 0 0 1px var(--brand); }
.money-input { position: relative; }
.money-input span { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; }
.money-input .input { padding-left: 46px; font-weight: 700; font-size: 18px; }
.pix-qr { background: #fff; padding: 12px; border-radius: 16px; width: 220px; margin: 12px auto; }
.pix-code { font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--bg-2); border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px; word-break: break-all; max-height: 86px; overflow: hidden; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 10px; color: var(--muted); font-size: 14px; margin-top: 12px; }
.success-burst { text-align: center; padding: 10px 0; }
.success-burst .ok-ring { width: 76px; height: 76px; border-radius: 50%; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); margin: 6px auto 12px; animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.success-burst .ok-ring svg { width: 36px; height: 36px; }
@keyframes pop { from { transform: scale(.5); opacity: 0; } }

/* conta / suporte */
.profile { display: flex; align-items: center; gap: 14px; }
.avatar { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(140deg, #FF9F1A, #FF6A00 55%, #C24E00); font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--on-brand); flex: none; }
.menu { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 15px 16px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; font-size: 15px; font-weight: 500; }
.menu > :last-child { border-bottom: 0; }
.menu .ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--surface-3); color: var(--brand-2); flex: none; }
.menu .ic.wa { background: rgba(37, 211, 102, .14); color: #25d366; }
.menu .ic.tg { background: rgba(38, 165, 228, .14); color: #26a5e4; }
.menu .ic.bad { background: var(--bad-soft); color: var(--bad); }
.menu .t { flex: 1; }
.menu .t small { display: block; color: var(--dim); font-size: 12.5px; font-weight: 400; }
.support-hero { position: relative; overflow: hidden; background: radial-gradient(120% 140% at 100% 100%, rgba(255, 106, 0, .18), transparent 55%), var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 120px 18px 18px; min-height: 140px; box-shadow: var(--shadow-contact); }
.support-hero img { position: absolute; right: 14px; top: 50%; transform: translateY(-50%) rotate(-10deg); width: 88px; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .5)) drop-shadow(0 0 16px rgba(255, 106, 0, .3)); }
.support-hero h3 { font-size: 18px; margin-bottom: 4px; }
.support-hero p { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
details.faq { border-bottom: 1px solid var(--line); }
details.faq:last-child { border-bottom: 0; }
details.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; font-weight: 500; font-size: 14.5px; cursor: pointer; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary svg { color: var(--dim); transition: transform .2s; }
details.faq[open] summary svg { transform: rotate(180deg); }
details.faq p { margin: 0; padding: 0 16px 14px; color: var(--muted); font-size: 14px; }

.fab-wa { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + var(--safe-b)); z-index: 35; width: 52px; height: 52px; border-radius: 50%; background: #25d366; display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(37, 211, 102, .7); }
.fab-wa svg { width: 26px; height: 26px; fill: #fff; }
@media (min-width: 1024px) { .fab-wa { bottom: 24px; right: 24px; } }

/* ranking de afiliados */
.rk-me { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.rk-me > div { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.rk-me small { display: block; color: var(--muted); font-size: 12px; }
.rk-me b { font-family: var(--display); font-size: 20px; }
.rk-next { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; padding: 10px 12px; border-radius: 12px; background: var(--brand-soft); border: 1px solid var(--line-2); font-size: 13.5px; }
.rk-next svg { color: var(--brand-2); margin-top: 2px; }
.rk-next.gold { background: rgba(251, 191, 36, .12); border-color: rgba(251, 191, 36, .3); }
.rk-next.gold svg { color: var(--warn); }
.rk-list { margin-top: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.rk-row { display: grid; grid-template-columns: 40px 1fr auto 82px; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.rk-row:last-child { border-bottom: 0; }
.rk-row.podium { background: linear-gradient(90deg, rgba(251, 191, 36, .08), transparent 60%); }
.rk-row.me { background: var(--brand-soft); box-shadow: inset 3px 0 0 var(--brand-2); }
.rk-pos { font-size: 20px; text-align: center; }
.rk-n { font-size: 13px; font-weight: 700; color: var(--muted); }
.rk-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rk-pts { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.rk-pct { text-align: right; font-family: var(--display); font-weight: 700; color: var(--ok); }

.rk-wheel { display: block; font-family: var(--font); font-size: 10.5px; font-weight: 700; color: var(--warn); }
.rk-wheelbox { display: flex; gap: 12px; align-items: flex-start; margin-top: 10px; padding: 12px 14px; border-radius: 16px; background: linear-gradient(135deg, rgba(255, 106, 0, .18), rgba(18, 21, 27, .9)); border: 1px solid rgba(253, 230, 138, .3); }
.rk-wheelbox b { font-size: 14.5px; }
.rk-wheelbox p { margin: 4px 0; display: flex; gap: 10px; flex-wrap: wrap; font-size: 13.5px; }
.rk-wheelbox p b { color: #fde68a; }
.rk-wheelbox small { color: var(--muted); font-size: 12.5px; line-height: 1.45; }
.rk-wheelbox small b { color: var(--text); font-size: 12.5px; }
.mini-wheel.sm { width: 46px; height: 46px; border-width: 3px; box-shadow: none; }

/* comunidade */
.cm-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.cm-txt b { display: block; font-size: 14.5px; }
.cm-txt small { color: var(--dim); font-size: 12.5px; }
.cm-row { display: flex; gap: 8px; }
.cm-btn { display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px 0 10px; border-radius: 12px; color: #fff; font-size: 13px; font-weight: 600; transition: transform .12s, filter .2s; }
.cm-btn svg { width: 18px; height: 18px; flex: none; }
.cm-btn:active { transform: scale(.95); }
.cm-btn:hover { filter: brightness(1.1); }
.cm-whatsapp { background: #1faa55; }
.cm-telegram { background: #229ed9; }
.cm-instagram { background: linear-gradient(45deg, #f09433, #dc2743 50%, #bc1888); }
@media (max-width: 420px) { .cm-card .cm-btn span { display: none; } .cm-card .cm-btn { width: 40px; padding: 0; justify-content: center; } }
.cm-btn.mini { width: 36px; height: 36px; padding: 0; justify-content: center; border-radius: 11px; }
.cm-btn.mini span { display: none; }
.side-community { padding: 10px 12px; margin-top: 10px; }
.side-community small { display: block; color: var(--dim); font-size: 12px; margin-bottom: 8px; }
@media (min-width: 1024px) { .sidenav .side-community:not(.hidden) + .side-ninja { margin-top: 12px; } .sidenav .side-community { margin-top: auto; } }

/* roleta de prêmios */
.wheel-card { background: radial-gradient(420px 260px at 50% 0%, rgba(255, 106, 0, .22), transparent 70%), var(--surface); border: 1px solid var(--line-2); border-radius: 24px; padding: 18px 16px; }
.wheel-box { position: relative; width: min(100%, 340px); margin: 6px auto 14px; aspect-ratio: 1; }
.wheel-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 18px 40px rgba(255, 106, 0, .35)); }
.wheel-rot { transform-origin: 160px 160px; transform-box: view-box; }
.wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 15px solid transparent; border-right: 15px solid transparent; border-top: 30px solid #FFC857; z-index: 3; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .5)); }
.wheel-hub { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 25%; aspect-ratio: 1; border-radius: 50%; border: 4px solid #FFC857; background: radial-gradient(circle at 35% 30%, #FFB347, #FF6A00 55%, #A63B00); color: var(--on-brand); font-family: var(--display); font-weight: 800; font-size: clamp(12px, 3.6vw, 16px); letter-spacing: .02em; box-shadow: 0 8px 20px rgba(0, 0, 0, .5); z-index: 2; }
.wheel-hub:active { transform: translate(-50%, -50%) scale(.95); }
.pay-from { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.pay-from button { text-align: left; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--bg-2); }
.pay-from button small { display: block; color: var(--muted); font-size: 12px; }
.pay-from button b { font-size: 15px; }
.pay-from button.on { border-color: var(--brand-2); background: var(--brand-soft); }
.prize-img { width: 120px; height: 120px; object-fit: contain; margin: 4px auto 10px; animation: pop .45s cubic-bezier(.2, 1.4, .4, 1); }
.wheel-promo { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding: 18px; border-radius: 20px; color: var(--text); overflow: hidden; background: radial-gradient(120% 140% at 100% 50%, rgba(255, 106, 0, .28), transparent 60%), linear-gradient(160deg, #1A1F28, #12151B); border: 1px solid rgba(255, 159, 26, .25); }
.wheel-promo h3 { font-size: 18px; margin-bottom: 4px; }
.wheel-promo p { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.mini-wheel { width: 92px; height: 92px; flex: none; border-radius: 50%; border: 4px solid #FFC857; background: conic-gradient(#FF6A00 0 45deg, #1d4ed8 0 90deg, #047857 0 135deg, #b45309 0 180deg, #b91c1c 0 225deg, #be185d 0 270deg, #0e7490 0 315deg, #4338ca 0); animation: spinSlow 8s linear infinite; box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
@keyframes spinSlow { to { transform: rotate(360deg); } }

/* aviso de instalação do app (PWA) */
.pwa-banner {
    position: fixed; left: 12px; right: 12px; bottom: 16px; z-index: 90; display: flex; align-items: center; gap: 12px;
    padding: 12px 12px 12px 14px; border-radius: 18px; background: rgba(25, 30, 38, .97); backdrop-filter: blur(14px);
    border: 1px solid var(--line-2); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 106, 0, .15);
    transform: translateY(140%); opacity: 0; transition: transform .35s cubic-bezier(.2, .9, .3, 1.1), opacity .25s;
    max-width: 520px; margin: 0 auto;
}
.pwa-banner.show { transform: none; opacity: 1; }
.pwa-banner > img { width: 48px; height: 48px; border-radius: 13px; flex: none; }
.pwa-txt { flex: 1; min-width: 0; font-size: 13px; color: var(--muted); line-height: 1.4; }
.pwa-txt > b { display: block; color: var(--text); font-size: 14.5px; margin-bottom: 1px; }
.pwa-txt span b { color: var(--text); }
.pwa-acts { display: flex; flex-direction: column; align-items: stretch; gap: 2px; flex: none; }
.pwa-later { background: none; border: 0; color: var(--dim); font-size: 12.5px; padding: 4px; }
.pwa-x { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; flex: none; align-self: flex-start; }
.pwa-ios-share { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--surface-3); color: var(--info); vertical-align: -6px; }
.pwa-ios-share svg { width: 15px; height: 15px; }
.shell ~ .pwa-banner, body:has(.bottomnav) .pwa-banner { bottom: calc(var(--nav-h) + 12px + var(--safe-b)); }
@media (min-width: 1024px) { body:has(.bottomnav) .pwa-banner { bottom: 24px; left: auto; right: 24px; margin: 0; width: 400px; } }

/* páginas simples (erro) */
.plain { min-height: 100dvh; display: grid; place-items: center; padding: 24px; text-align: center; background: radial-gradient(600px 360px at 50% 30%, rgba(255, 106, 0, .12), transparent 70%), var(--bg); }
.plain img { width: 132px; height: auto; margin: 0 auto 18px; border-radius: 50%; box-shadow: 0 0 40px -10px var(--brand-glow); }
.plain h1 { font-size: 24px; margin-bottom: 6px; }
.plain p { color: var(--muted); margin: 0 0 18px; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- idioma e moeda ---------- */
.lang-btn { height: 36px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); font-size: 12.5px; font-weight: 700; display: inline-flex; align-items: center; cursor: pointer; }
.lang-lbl { display: inline-flex; align-items: center; gap: 6px; }
.lang-lbl .flag { width: 18px; height: 13px; border-radius: 3px; object-fit: cover; }
.sidenav .side-lang { color: var(--muted); }
.sidenav .side-lang .lang-lbl { font-size: 14px; }
.lang-list { display: grid; gap: 6px; margin-top: 10px; }
.lang-opt { display: flex; align-items: center; gap: 12px; height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 15.5px; font-weight: 600; cursor: pointer; text-align: left; }
.lang-opt span { flex: 1; }
.lang-opt .flag { width: 26px; height: 18px; border-radius: 4px; object-fit: cover; }
.lang-opt.on { border-color: var(--brand-2); background: var(--brand-soft); }
.lang-opt.on .i { color: var(--brand-2); }
.cur-seg { margin-bottom: 6px; }
.auth-lang { position: fixed; top: 12px; right: 12px; z-index: 30; display: flex; align-items: center; gap: 6px; background: rgba(18, 21, 27, .85); border: 1px solid var(--line-2); border-radius: 999px; padding: 0 6px 0 12px; height: 38px; backdrop-filter: blur(8px); color: var(--muted); }
.auth-lang select { background: none; border: 0; color: var(--text); font: 600 13.5px var(--font); height: 36px; cursor: pointer; outline: none; }
.auth-lang select option { background: var(--surface); }
.lang-btn, .balance-pill, .topbar .brandmark { white-space: nowrap; }
@media (max-width: 560px) {
    .lang-btn { width: 36px; padding: 0; justify-content: center; }
    .lang-btn .lang-lbl span { display: none; }
    .lang-btn .lang-lbl .flag { width: 20px; height: 14px; }
}
@media (max-width: 360px) { .topbar .brandmark .brand-name { display: none; } }

/* ---------- pagamento USDT ---------- */
.pay-method { margin-bottom: 14px; }
.pay-method button { display: flex; align-items: center; justify-content: center; gap: 6px; }
.pay-method small { font-size: 11px; color: var(--dim); font-weight: 600; }
.usdt-ic { width: 20px; height: 20px; border-radius: 50%; background: #26a17b; color: #fff; display: inline-grid; place-items: center; font-weight: 800; font-size: 12.5px; line-height: 1; flex: 0 0 auto; }
.btn .usdt-ic { margin-right: 2px; }
.usdt-head { display: flex; gap: 10px; align-items: center; background: rgba(38, 161, 123, .1); border: 1px solid rgba(38, 161, 123, .3); border-radius: 12px; padding: 10px 12px; margin-bottom: 14px; }
.usdt-head .usdt-ic { width: 30px; height: 30px; font-size: 17px; }
.usdt-head b { display: block; font-size: 14.5px; }
.usdt-head small { color: var(--muted); font-size: 12.5px; }
.usdt-step { display: flex; gap: 12px; margin-top: 16px; }
.usdt-step > .n { width: 26px; height: 26px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: 0 0 auto; }
.usdt-step small { color: var(--muted); font-size: 12.5px; display: block; margin-bottom: 4px; }
.usdt-amount { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 700; }
.usdt-amount b { font-family: var(--display); font-size: 26px; }
.usdt-amount .btn { margin-left: auto; }
.usdt-step .pix-qr { margin: 6px auto; display: block; }
.usdt-warn { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; background: var(--warn-soft); border: 1px solid rgba(251, 191, 36, .25); color: #fde68a; border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; }
.usdt-warn .i { flex: 0 0 auto; margin-top: 2px; }
.usdt-status { margin-top: 12px; border-radius: 12px; padding: 10px 12px; font-size: 13.5px; display: flex; gap: 8px; align-items: center; line-height: 1.45; }
.usdt-status.bad { background: var(--bad-soft); border: 1px solid rgba(251, 111, 132, .3); color: #fecdd3; }
.usdt-status.wait { background: var(--brand-soft); border: 1px solid var(--line-2); color: var(--text); }
.usdt-status .spinner { flex: 0 0 auto; }
.money-input.wide .input { padding-left: 70px; }
#txHash { font-size: 13px; letter-spacing: 0; }
.dep-cancel { margin-top: 8px; background: none; border: 1px solid rgba(251, 111, 132, .35); color: var(--bad); }
.dep-cancel:hover { background: var(--bad-soft); }

/* ---------- notificações ---------- */
.push-card { display: flex; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--r); padding: 12px 12px 12px 14px; margin: 14px 0 0; }
.push-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; flex: 0 0 auto; }
.push-txt { flex: 1; min-width: 0; }
.push-txt b { display: block; font-size: 14.5px; }
.push-txt small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-top: 2px; }
.push-acts { display: flex; align-items: center; gap: 4px; }
.push-later { width: 30px; height: 30px; border: 0; background: none; color: var(--dim); display: grid; place-items: center; border-radius: 8px; cursor: pointer; }
.ninja-popup { position: fixed; inset: 0; z-index: 90; background: rgba(3, 4, 6, .72); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 20px; opacity: 0; transition: opacity .2s; }
.ninja-popup.open { opacity: 1; }
.np-box { position: relative; width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line-2); border-radius: 22px; padding: 22px 20px 18px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .8); transform: translateY(14px) scale(.97); transition: transform .22s; }
.ninja-popup.open .np-box { transform: none; }
.np-x { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 10px; border: 0; background: var(--surface-3); color: var(--muted); display: grid; place-items: center; cursor: pointer; }
.np-img { width: 100%; max-height: 220px; object-fit: contain; border-radius: 14px; margin: 8px 0 12px; background: var(--bg-2); }
.np-bell { width: 60px; height: 60px; border-radius: 18px; margin: 4px auto 12px; background: var(--brand-soft); color: var(--brand-2); display: grid; place-items: center; }
.np-box h3 { font-family: var(--display); font-size: 19px; margin: 0 0 6px; padding: 0 26px; }
.np-box p { color: var(--muted); font-size: 14.5px; line-height: 1.5; margin: 0 0 16px; white-space: pre-line; }

/* ---------- tipos de número (padrão x premium) ---------- */
.tier-badge { display: inline-flex; align-items: center; height: 18px; padding: 0 7px; margin-left: 4px; border-radius: 999px; background: rgba(251, 191, 36, .14); color: #fcd34d; font-size: 11px; font-weight: 700; vertical-align: 1px; }
.tier-list { display: grid; gap: 8px; margin-bottom: 12px; }
.tier-opt { display: flex; align-items: flex-start; gap: 10px; width: 100%; text-align: left; padding: 12px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); cursor: pointer; }
.tier-opt.on { border-color: var(--brand-2); background: var(--brand-soft); }
.tier-opt.premium b { color: #fcd34d; }
.tier-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--dim); flex: 0 0 auto; margin-top: 2px; }
.tier-opt.on .tier-radio { border-color: var(--brand-2); box-shadow: inset 0 0 0 3px var(--surface), inset 0 0 0 9px var(--brand-2); }
.tier-body { flex: 1; min-width: 0; }
.tier-body b { display: block; font-size: 14.5px; }
.tier-body small { display: block; color: var(--muted); font-size: 12.5px; line-height: 1.45; margin-top: 3px; }
.tier-price { font-weight: 800; font-size: 15px; white-space: nowrap; }
.tier-info { margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: rgba(251, 191, 36, .08); border: 1px solid rgba(251, 191, 36, .25); color: #fcd34d; font-size: 14px; }
.tier-info p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.reuse-hint { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); color: var(--muted); font-size: 12.5px; line-height: 1.4; }
.reuse-hint .i { flex: 0 0 auto; margin-top: 1px; color: var(--brand-2); }

/* ---------- premiações por faturamento ---------- */
.aw-head { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.aw-head small { display: block; color: var(--muted); font-size: 12px; }
.aw-head b { font-family: var(--display); font-size: 20px; }
.aw-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .aw-grid { grid-template-columns: repeat(4, 1fr); } }
.aw-card { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: 12px 10px 12px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.aw-card.won { border-color: color-mix(in srgb, var(--aw) 55%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--aw) 16%, var(--surface)) 0%, var(--surface) 70%); }
.aw-imgs { position: relative; width: 100%; height: 150px; border: 0; background: none; padding: 0; cursor: zoom-in; display: grid; place-items: center; }
.aw-plaque { height: 140px; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 16px rgba(0, 0, 0, .45)); }
.aw-plaque.ph { font-size: 60px; display: grid; place-items: center; }
.aw-band { position: absolute; bottom: -2px; right: -4px; width: 58%; object-fit: contain; filter: drop-shadow(0 6px 10px rgba(0, 0, 0, .5)); }
.aw-card.locked .aw-imgs img { filter: grayscale(.75) brightness(.7); opacity: .75; }
.aw-check { position: absolute; top: 2px; right: 2px; width: 26px; height: 26px; border-radius: 50%; background: var(--ok); color: #04130d; display: grid; place-items: center; }
.aw-name { font-size: 14px; margin-top: 4px; }
.aw-goal { color: var(--muted); font-size: 12.5px; font-weight: 700; }
.aw-prize { color: var(--dim); font-size: 11.5px; line-height: 1.3; }
.aw-bar { width: 100%; height: 7px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 6px; }
.aw-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--brand), var(--aw)); }
.aw-left { color: var(--dim); font-size: 11px; }
.aw-btn { margin-top: 6px; width: 100%; }
.aw-track { color: var(--muted); font-size: 11.5px; word-break: break-all; }
.aw-card .badge { margin-top: 6px; }

/* ---------- carrossel das placas (3D em alto relevo) ---------- */
.aw-car { position: relative; margin: 0 -16px 6px; }
.aw-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 6px 15% 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.aw-track::-webkit-scrollbar { display: none; }
.aw-slide { flex: 0 0 70%; scroll-snap-align: center; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 14px 12px 14px; border-radius: 20px;
    background: radial-gradient(120% 80% at 50% 0%, color-mix(in srgb, var(--aw) 26%, transparent) 0%, transparent 60%), var(--surface);
    border: 1px solid color-mix(in srgb, var(--aw) 30%, var(--line)); opacity: .5; transform: scale(.9); transition: opacity .35s, transform .35s; }
.aw-slide.active { opacity: 1; transform: none; }
@media (min-width: 760px) { .aw-slide { flex-basis: 36%; } .aw-car { margin: 0 0 6px; } .aw-track { padding: 6px 32% 10px; } }
.plaque3d { position: relative; width: 100%; height: 210px; perspective: 900px; display: grid; place-items: center; touch-action: pan-x pan-y; }
.plaque3d::after { content: ''; position: absolute; bottom: 2px; left: 22%; right: 22%; height: 16px; border-radius: 50%; background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(2px); }
.p3d-inner { position: relative; height: 196px; transform-style: preserve-3d; transform: rotateY(var(--ry, -12deg)) rotateX(var(--rx, 4deg)); transition: transform .25s ease-out; }
.aw-slide.active .plaque3d:not(.tilting) .p3d-inner { animation: p3dSway 7s ease-in-out infinite; }
.p3d-img, .p3d-edge { display: block; height: 196px; width: auto; }
.p3d-img { position: relative; transform: translateZ(10px); filter: drop-shadow(0 0 22px color-mix(in srgb, var(--aw) 30%, transparent)); }
/* "espessura" da placa: cópia escura atrás = efeito de alto relevo ao girar */
.p3d-edge { position: absolute; inset: 0; transform: translateZ(-6px) translateX(3px) translateY(3px); filter: brightness(.18) blur(.4px); }
.p3d-shine { position: absolute; inset: 0; transform: translateZ(11px); pointer-events: none; -webkit-mask-size: 100% 100%; mask-size: 100% 100%;
    background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .55) 48%, rgba(255, 255, 255, .15) 53%, transparent 62%) no-repeat; background-size: 250% 100%;
    mix-blend-mode: soft-light; animation: p3dShine 4.5s ease-in-out infinite; }
.p3d-band { position: absolute; width: 78%; left: 42%; bottom: -8px; transform: translateZ(28px) rotateZ(-6deg); filter: drop-shadow(0 10px 12px rgba(0, 0, 0, .6)); }
.p3d-ph { font-size: 80px; }
.aw-slide:not(.won) .p3d-img, .aw-slide:not(.won) .p3d-band { filter: saturate(.85); }
.aw-slide .aw-check { top: 6px; right: 14%; z-index: 2; }
.aw-info { display: flex; flex-direction: column; align-items: center; gap: 2px; margin-top: 10px; width: 100%; }
.aw-tier { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: color-mix(in srgb, var(--aw) 80%, #fff); }
.aw-meta { font-family: var(--display); font-size: 22px; }
.aw-sub { color: var(--muted); font-size: 12px; }
.aw-cash { margin-top: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 800; font-size: 13px; color: #04130d; background: linear-gradient(90deg, #6ee7b7, #34d399); box-shadow: 0 6px 18px -6px rgba(52, 211, 153, .7); }
.aw-info .aw-prize { color: var(--dim); font-size: 12px; margin-top: 4px; }
.aw-info .aw-bar { width: 80%; }
.aw-info .aw-left { margin-top: 3px; }
.aw-info .aw-btn { width: auto; padding: 0 16px; }
.aw-dots { display: flex; justify-content: center; gap: 6px; }
.aw-dots button { width: 7px; height: 7px; border-radius: 99px; border: 0; background: var(--surface-3); padding: 0; cursor: pointer; transition: width .25s, background .25s; }
.aw-dots button.on { width: 20px; background: var(--brand-2); }
@keyframes p3dSway { 0%, 100% { transform: rotateY(-14deg) rotateX(5deg) translateY(0); } 50% { transform: rotateY(14deg) rotateX(3deg) translateY(-6px); } }
@keyframes p3dShine { 0%, 15% { background-position: 130% 0; } 60%, 100% { background-position: -40% 0; } }
@media (prefers-reduced-motion: reduce) { .aw-slide.active .plaque3d .p3d-inner, .p3d-shine { animation: none !important; } }
.aw-cash { white-space: nowrap; }
.aw-car.compact .aw-slide { flex-basis: 56%; padding: 10px 10px 12px; }
.aw-car.compact .aw-track { padding-left: 22%; padding-right: 22%; }
.aw-car.compact .plaque3d { height: 150px; }
.aw-car.compact .p3d-inner, .aw-car.compact .p3d-img, .aw-car.compact .p3d-edge { height: 138px; }
.aw-car.compact .aw-info { margin-top: 6px; }
.aw-car.compact .aw-meta { font-size: 19px; }
.aw-car.compact .aw-cash { font-size: 11.5px; padding: 3px 8px; }
@media (min-width: 760px) { .aw-car.compact .aw-slide { flex-basis: 26%; } .aw-car.compact .aw-track { padding-left: 37%; padding-right: 37%; } }
/* larguras fixas (evita cards espremidos no computador) */
.aw-car { --sw: min(72vw, 300px); }
.aw-car.compact { --sw: min(58vw, 230px); }
.aw-track, .aw-car.compact .aw-track { padding-left: calc(50% - var(--sw) / 2); padding-right: calc(50% - var(--sw) / 2); }
.aw-slide, .aw-car.compact .aw-slide { flex: 0 0 var(--sw); width: var(--sw); }
@media (min-width: 760px) { .aw-car, .aw-car.compact { margin-left: 0; margin-right: 0; } }
.aw-info .aw-left { white-space: nowrap; }
