/* ═══════════════════════════════════════════════════════════
   RESET & VARIABLES — Trendzbr style
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

:root {
    --bg:      #ffffff;
    --bg2:     #f5f5f5;
    --card:    rgba(0,0,0,.03);
    --primary: #00C853;
    --card2:   rgba(0,0,0,.05);
    --card3:   rgba(0,0,0,.08);
    --line:    rgba(0,0,0,.08);
    --line2:   rgba(0,0,0,.12);
    --text:    #1a1a1a;
    --text2:   #555;
    --text3:   #888;
    --green:        #00C853;
    --green-bg:     rgba(0,200,83,.08);
    --green-border: rgba(0,200,83,.22);
    --green-soft:   rgba(0,180,113,.10);
    --red:          rgb(255,90,90);
    --red-bg:       rgba(255,90,90,.08);
    --red-border:   rgba(255,90,90,.22);
    --red-soft:     rgba(255,90,90,.10);
    --yellow:       #eab308;
    --sidebar-w: 220px;
    --right-w:   300px;
    --topbar-h:  52px;
    --r:         12px;
    --r2:        8px;
    --soft-1:  rgba(0,0,0,.03);
    --soft-2:  rgba(0,0,0,.04);
    --soft-3:  rgba(0,0,0,.05);
    --soft-4:  rgba(0,0,0,.06);
    --soft-5:  rgba(0,0,0,.08);
    --soft-6:  rgba(0,0,0,.08);
    --soft-7:  rgba(0,0,0,.10);
    --soft-8:  rgba(0,0,0,.10);
    --soft-9:  rgba(0,0,0,.12);
    --soft-10: rgba(0,0,0,.12);
    --soft-11: rgba(0,0,0,.15);
    --soft-12: rgba(0,0,0,.20);
    --soft-13: rgba(0,0,0,.25);
    --soft-14: rgba(0,0,0,.4);
    --soft-15: rgba(0,0,0,.6);
    --soft-16: rgba(0,0,0,.45);
    --soft-17: rgba(0,0,0,.7);
}

/* Tema escuro — data-theme no body ou html (compatibilidade) */
body[data-theme="dark"],
[data-theme="dark"] {
    --bg:      #0d0d0d;
    --bg2:     #111111;
    --card:    rgba(255,255,255,.02);
    --card2:   rgba(255,255,255,.04);
    --card3:   rgba(255,255,255,.06);
    --line:    rgba(255,255,255,.06);
    --line2:   rgba(255,255,255,.10);
    --text:    #f0f0f0;
    --text2:   #888;
    --text3:   #555;
    --soft-1:  rgba(255,255,255,.02);
    --soft-2:  rgba(255,255,255,.03);
    --soft-3:  rgba(255,255,255,.04);
    --soft-4:  rgba(255,255,255,.05);
    --soft-5:  rgba(255,255,255,.06);
    --soft-6:  rgba(255,255,255,.07);
    --soft-7:  rgba(255,255,255,.08);
    --soft-8:  rgba(255,255,255,.09);
    --soft-9:  rgba(255,255,255,.10);
    --soft-10: rgba(255,255,255,.12);
    --soft-11: rgba(255,255,255,.14);
    --soft-12: rgba(255,255,255,.18);
    --soft-13: rgba(255,255,255,.25);
    --soft-14: rgba(255,255,255,.4);
    --soft-15: rgba(255,255,255,.6);
    --soft-16: rgba(0,0,0,.45);
    --soft-17: rgba(255,255,255,.7);
    --primary: #00C853;
}

body[data-theme="dark"] ::-webkit-scrollbar-thumb,
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: rgba(255,255,255,.08) }

body[data-theme="dark"] .user-dropdown,
[data-theme="dark"] .user-dropdown { background: #1a1a1a; box-shadow: 0 16px 48px rgba(0,0,0,.5) }
body[data-theme="dark"] .ec-clock-tooltip,
[data-theme="dark"] .ec-clock-tooltip { background: #1a1a1a; border-color: rgba(255,255,255,.12) }
[data-theme="dark"] .sheet { background: #141414; border-top-color: rgba(255,255,255,.06) }
body[data-theme="dark"] .sheet.center-sheet,
[data-theme="dark"] .sheet.center-sheet { background: #141414; border-color: rgba(255,255,255,.08); box-shadow: 0 32px 100px rgba(0,0,0,.6) }
body[data-theme="dark"] #toast,
[data-theme="dark"] #toast { background: #1a1a1a; box-shadow: 0 10px 40px rgba(0,0,0,.5) }
body[data-theme="dark"] .bnav,
[data-theme="dark"] .bnav { background: rgba(11,11,11,.97); border-top-color: rgba(255,255,255,.06) }

/* ═══ Layout & Theme Controls ═══ */
.layout-theme-controls { display: flex; align-items: center; gap: 2px; margin-right: 8px }
.ctrl-btn { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--soft-7); background: var(--soft-3); color: var(--text3); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s }
.ctrl-btn:hover { background: var(--soft-5); color: var(--text); border-color: var(--soft-9) }
@media (max-width: 899px) { .layout-theme-controls { display: none } }

/* Layout: grid (padrão — 3-4 colunas) */
body[data-layout="grid"] .cat-cards-grid { grid-template-columns: repeat(4, 1fr); gap: 18px }
body[data-layout="grid"] .section-outer .cat-cards-grid { grid-template-columns: repeat(4, 1fr) }
@media (max-width: 1200px) { body[data-layout="grid"] .cat-cards-grid { grid-template-columns: repeat(3, 1fr) } }
@media (max-width: 768px) { body[data-layout="grid"] .cat-cards-grid { grid-template-columns: repeat(2, 1fr) } }

/* Layout: feed (1 coluna, cards maiores, mais espaçamento) */
body[data-layout="feed"] .cat-cards-grid { grid-template-columns: 1fr; gap: 24px; max-width: 560px; margin: 0 auto }
body[data-layout="feed"] .section-outer .cat-cards-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto }
body[data-layout="feed"] .ec, body[data-layout="feed"] .cat-card { padding: 22px 22px 20px }
/* Tendências e Ao Vivo: mesmo tamanho dos cards de baixo (560px), sobrescreve inline width */
body[data-layout="feed"] .trend-card {
    width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 560px !important;
    min-width: 0;
}
body[data-layout="feed"] .live-card {
    width: 100% !important;
    flex: 1 1 100% !important;
    max-width: 560px !important;
    min-width: 0;
}

/* Feed desktop: Tendências e Ao Vivo — mesmo layout que cat-cards (coluna 560px) */
@media (min-width: 900px) {
    body[data-layout="feed"] .section-outer .trend-scroll,
    body[data-layout="feed"] .section-outer .trend-scroll#liveGrid {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: stretch;
        gap: 24px;
        max-width: 560px;
        margin: 0 auto;
        overflow: visible;
        padding: 0 24px 24px;
        overflow-x: hidden;
    }
    body[data-layout="feed"] .section-outer .trend-scroll .trend-card,
    body[data-layout="feed"] .section-outer .trend-scroll#liveGrid .live-card {
        width: 100% !important;
        max-width: 560px;
    }
}

/* Layout: dashboard (agrupar por categorias, seções, cards menores) */
body[data-layout="dashboard"] .cat-cards-grid { grid-template-columns: repeat(6, 1fr); gap: 12px }
body[data-layout="dashboard"] .section-outer .cat-cards-grid { grid-template-columns: repeat(6, 1fr) }
body[data-layout="dashboard"] .ec { padding: 12px 14px 10px }
body[data-layout="dashboard"] .ec-thumb { width: 36px; height: 36px }
body[data-layout="dashboard"] .ec-title { font-size: 12px }
body[data-layout="dashboard"] .ec-pct-yes, body[data-layout="dashboard"] .ec-pct-no { font-size: 15px }
body[data-layout="dashboard"] .cat-card { min-height: 160px; padding: 14px }
body[data-layout="dashboard"] .section-hdr { padding: 20px 0 14px }
body[data-layout="dashboard"] .trend-card { width: 200px }

/* Dashboard: imagem cobre o card inteiro + overlay (JS aplica background-image) */
body[data-layout="dashboard"] .cat-cards-grid .ec,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    padding: 14px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    background-size: cover;
    background-position: center;
    border-color: rgba(255,255,255,.1);
}
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-thumb,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-thumb {
    display: none;
}
body[data-layout="dashboard"] .cat-cards-grid .ec::before,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.92), rgba(0,0,0,0.5) 40%, transparent 70%);
    z-index: 1;
    pointer-events: none;
}
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-top,
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-pct-row,
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-prog,
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-btns,
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-returns,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-top,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-pct-row,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-prog,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-btns,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-returns {
    position: relative;
    z-index: 2;
}
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-title,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-title {
    color: #fff !important;
    font-size: 13px;
    text-shadow: 0 1px 4px rgba(0,0,0,.8);
    -webkit-line-clamp: 2;
}
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-pct-yes,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-pct-yes {
    color: #00ff88 !important;
}
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-pct-no,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-pct-no {
    color: #ff6b9d !important;
}
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-pct-row,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-pct-row {
    color: rgba(255,255,255,.95);
}
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-action-btn,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-action-btn {
    color: rgba(255,255,255,.9);
}
body[data-layout="dashboard"] .cat-cards-grid .ec .ec-returns,
body[data-layout="dashboard"] .section-outer .cat-cards-grid .ec .ec-returns {
    color: rgba(255,255,255,.7);
}
@media (max-width: 1200px) { body[data-layout="dashboard"] .cat-cards-grid { grid-template-columns: repeat(4, 1fr) } }
@media (max-width: 768px) { body[data-layout="dashboard"] .cat-cards-grid { grid-template-columns: repeat(2, 1fr) } }

/* ═══════════════════════════════════════════════════════════
   Layout: Satoshi — News-style immersive cards
═══════════════════════════════════════════════════════════ */

/* ── CARD GRID ── */
body[data-layout="satoshi"] .cat-cards-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    padding: 0 18px 24px !important;
}

/* ── CARD REDESIGN ── */
body[data-layout="satoshi"] .ec {
    padding: 0 !important;
    border-radius: 14px;
    overflow: hidden;
    background: var(--soft-1);
    border: 1px solid var(--soft-5);
    display: flex;
    flex-direction: column;
    gap: 0;
    transition: transform .2s, box-shadow .2s, border-color .15s;
}
body[data-layout="satoshi"] .ec:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    border-color: var(--soft-11);
}

body[data-layout="satoshi"] .ec .ec-top {
    position: relative;
    min-height: 170px;
    overflow: hidden;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
}
body[data-layout="satoshi"] .ec .ec-thumb {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    border: none;
    background: linear-gradient(135deg, #1a2332, #0d1520);
}
body[data-layout="satoshi"] .ec .ec-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
}
body[data-layout="satoshi"] .ec .ec-thumb .ec-thumb-icon {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    background: linear-gradient(135deg, #1a2332 0%, #0d1520 50%, #1a1a2e 100%);
}
body[data-layout="satoshi"] .ec .ec-thumb .ec-thumb-icon svg {
    width: 48px;
    height: 48px;
    opacity: .4;
}
body[data-layout="satoshi"] .ec .ec-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 44px 14px 12px;
    background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.5) 55%, transparent 100%);
    z-index: 2;
    max-width: 100%;
    overflow: hidden;
}
body[data-layout="satoshi"] .ec .ec-title {
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.35;
    text-shadow: 0 1px 4px rgba(0,0,0,.6);
    -webkit-line-clamp: 3;
    max-width: 100%;
}
body[data-layout="satoshi"] .ec .ec-ended-badge,
body[data-layout="satoshi"] .ec .ec-live-badge {
    margin-top: 6px;
}

body[data-layout="satoshi"] .ec .ec-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    gap: 4px;
}
body[data-layout="satoshi"] .ec .ec-action-btn {
    background: rgba(0,0,0,.45);
    backdrop-filter: blur(6px);
    color: rgba(255,255,255,.8);
    border-radius: 8px;
    width: 28px;
    height: 28px;
}
body[data-layout="satoshi"] .ec .ec-action-btn:hover {
    background: rgba(0,0,0,.7);
    color: #fff;
}

/* Bottom content below image */
body[data-layout="satoshi"] .ec .ec-pct-row {
    padding: 12px 14px 4px;
}
body[data-layout="satoshi"] .ec .ec-pct-yes,
body[data-layout="satoshi"] .ec .ec-pct-no {
    font-size: 17px;
}
body[data-layout="satoshi"] .ec .ec-prog {
    margin: 0 14px 10px;
    height: 5px;
}
body[data-layout="satoshi"] .ec .ec-btns {
    padding: 0 14px 10px;
    gap: 8px;
}
body[data-layout="satoshi"] .ec .ec-btn {
    padding: 9px 8px;
    font-size: 12px;
    border-radius: 10px;
}
body[data-layout="satoshi"] .ec .ec-returns {
    padding: 0 14px 12px;
    font-size: 11px;
}

/* ── SATOSHI RESPONSIVE ── */
@media (max-width: 1200px) {
    body[data-layout="satoshi"] .cat-cards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 900px) {
    body[data-layout="satoshi"] .cat-cards-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }
    body[data-layout="satoshi"] .ec .ec-top { min-height: 150px }
}
@media (max-width: 540px) {
    body[data-layout="satoshi"] .cat-cards-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 0 12px 20px !important;
    }
    body[data-layout="satoshi"] .ec .ec-top { min-height: 140px }
    body[data-layout="satoshi"] .ec .ec-btn { padding: 8px 6px; font-size: 11px }
}

/* Satoshi: section-outer overrides */
body[data-layout="satoshi"] .section-outer .ec {
    background: var(--soft-1);
    border-color: var(--soft-5);
}

/* Satoshi: Tendências — 3 cards completos na largura visível; largura em --tr-slot-px (JS ResizeObserver) */
body[data-layout="satoshi"] #trendSection .trend-carousel-host {
    position: relative;
    overflow: visible;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 8px 0 12px;
    box-sizing: border-box;
}
body[data-layout="satoshi"] #trendSection .trend-scroll {
    --tr-gap: 16px;
    --tr-slot-px: 300px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: var(--tr-gap);
    overflow-x: auto;
    overflow-y: visible;
    scroll-snap-type: x proximity;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 16px 12px 28px;
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
/* Durante o auto-slide, tira o snap para o navegador animar o scroll de ponta a ponta */
body[data-layout="satoshi"] #trendSection .trend-scroll.trend-satoshi-animate {
    scroll-snap-type: none;
}
body[data-layout="satoshi"] #trendSection .trend-scroll::-webkit-scrollbar { display: none }
body[data-layout="satoshi"] #trendSection .trend-scroll .ec.trend-card {
    scroll-snap-align: center;
    width: var(--tr-slot-px) !important;
    flex: 0 0 var(--tr-slot-px) !important;
    max-width: var(--tr-slot-px) !important;
    min-width: 0 !important;
    min-height: 0;
    position: relative;
    transition: transform 0.42s cubic-bezier(0.22, 0.9, 0.28, 1),
        filter 0.4s ease,
        opacity 0.4s ease,
        box-shadow 0.42s ease;
    will-change: transform, filter;
}
body[data-layout="satoshi"] #trendSection .trend-scroll .ec.trend-card.trend-satoshi-side {
    transform: scale(0.9);
    filter: blur(7px) saturate(0.75);
    opacity: 0.35;
    z-index: 0;
    box-shadow: none;
}
body[data-layout="satoshi"] #trendSection .trend-scroll .ec.trend-card.trend-satoshi-active {
    transform: scale(1.06);
    filter: none;
    opacity: 1;
    z-index: 2;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
}
[data-theme="light"] body[data-layout="satoshi"] #trendSection .trend-scroll .ec.trend-card.trend-satoshi-active {
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.14);
}
@media (max-width: 420px) {
    body[data-layout="satoshi"] #trendSection .trend-scroll .ec.trend-card.trend-satoshi-side {
        filter: blur(5px) saturate(0.82);
        opacity: 0.42;
    }
}
@media (prefers-reduced-motion: reduce) {
    body[data-layout="satoshi"] #trendSection .trend-scroll:not(.trend-satoshi-animate) { scroll-behavior: auto }
    body[data-layout="satoshi"] #trendSection .trend-scroll.trend-satoshi-animate { scroll-behavior: smooth }
    body[data-layout="satoshi"] #trendSection .trend-scroll .ec.trend-card {
        transition-duration: 0.01ms;
    }
}

/* ── END SATOSHI ── */

/* Transição suave entre layouts */
body { transition: background-color .2s, color .2s }
.cat-cards-grid, .ec, .section-outer { transition: grid-template-columns .25s ease, padding .25s ease, gap .25s ease }

html, body { height: 100%; -webkit-text-size-adjust: 100% }
body {
    font-family: 'Instrument Sans', 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg); color: var(--text);
    -webkit-font-smoothing: antialiased; overflow: hidden; font-size: 14px
}
button, input, select, textarea { font-family: inherit; outline: none }
img { max-width: 100%; height: auto; display: block }
a { text-decoration: none; color: inherit }
::placeholder { color: var(--text3) }
::-webkit-scrollbar { width: 3px; height: 3px }
::-webkit-scrollbar-thumb { background: var(--soft-11); border-radius: 2px }
::-webkit-scrollbar-track { background: transparent }

#root { display: flex; height: 100vh; overflow: hidden }

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    background: var(--bg2); border-right: none;
    display: flex; flex-direction: column; height: 100vh; overflow: hidden
}
.sb-logo-row {
    padding: 0 16px; height: var(--topbar-h);
    display: flex; align-items: center; gap: 9px;
    border-bottom: 1px solid var(--soft-5); flex-shrink: 0
}
.sb-logo-mark { width: 30px; height: 30px; background: var(--green); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.sb-logo-text { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.2px }
.sb-logo-text span { color: var(--green) }

/* "Mercados" label inside logo row */
.sb-logo-nav {
    font-size: 14px; font-weight: 700; color: var(--text);
    cursor: pointer; white-space: nowrap; margin-left: 6px;
    padding: 4px 10px; background: var(--soft-4);
    border-radius: 8px; transition: background .15s
}
.sb-logo-nav:hover { background: var(--soft-5) }
.sidebar.collapsed .sb-logo-nav { display: none }

/* Hide Mercados in topbar since it's in logo row now */
.sidebar:not(.collapsed) + #main .topbar-nav-label { display: none }
.sb-section-label { padding: 14px 14px 5px; font-size: 9px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: 1.2px }
.sb-nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 13px; font-weight: 500; color: var(--text2); cursor: pointer; transition: all .12s; position: relative }
.sb-nav-item:hover { color: var(--text); background: var(--card2) }
.sb-nav-item.active { color: var(--text); font-weight: 600; background: var(--card2) }
.sb-nav-item.active::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); height: 20px; width: 2px; background: var(--green); border-radius: 0 2px 2px 0 }
.sb-nav-icon { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card3) }
.sb-nav-item.active .sb-nav-icon { background: var(--green-bg) }
.sb-nav-icon svg { opacity: .5 }
.sb-nav-item.active .sb-nav-icon svg, .sb-nav-item:hover .sb-nav-icon svg { opacity: .9 }
.sb-nav-icon img { width: 16px; height: 16px; object-fit: contain }
.sb-count {
    margin-left: auto; font-size: 10.5px; font-weight: 700;
    color: var(--text3); min-width: 18px; text-align: right
}
.sb-nav-item.active .sb-count { color: var(--green) }

/* Fav count — exactly like Trendzbr: gray circle badge always visible */
#fav-count {
    margin-left: auto;
    background: var(--soft-4);
    color: var(--text2);
    border-radius: 20px;
    padding: 1px 8px;
    font-size: 11px; font-weight: 700;
    min-width: 22px;
    text-align: center;
    display: inline-block;
    line-height: 1.6
}
.sb-nav-item.active #fav-count { background: var(--green-bg); color: var(--green) }
.sb-divider { height: 1px; background: transparent; margin: 3px 0 }
.sb-footer { margin-top: auto; border-top: none; padding: 6px 0 10px }
.sb-mobile-nav-section { display: none }

/* ══ Sidebar collapse ══ */
.sidebar { transition: width .25s cubic-bezier(.4,0,.2,1) }

/* The key: sidebar clips its own content */
.sidebar.collapsed {
    width: 56px;
    overflow: hidden
}

/* Hide every text node / label / count — use visibility+width trick */
.sidebar.collapsed .sb-logo-text,
.sidebar.collapsed .sb-logo-nav,
.sidebar.collapsed .sb-logo-dot { display: none !important }

/* Nav items: only the icon, everything else hidden */
.sidebar.collapsed .sb-nav-item {
    justify-content: center !important;
    padding: 9px 0 !important;
    gap: 0 !important
}
/* Hide text spans, counts, section labels */
.sidebar.collapsed .sb-nav-text,
.sidebar.collapsed .sb-count,
.sidebar.collapsed .sb-collapse-btn,
.sidebar.collapsed .sb-section-label { display: none !important }

/* Fav nav item same */
.sidebar.collapsed #fav-nav-item { justify-content: center !important; padding: 9px 0 !important; gap: 0 !important }

/* Logo row: just the Z icon */
.sidebar.collapsed .sb-logo-row { justify-content: center !important; padding: 0 8px !important; gap: 0 !important }

/* sb-footer items */
.sidebar.collapsed .sb-footer .sb-nav-item { justify-content: center }

/* Expand button */
.sb-expand-btn { display: none }
.sidebar.collapsed .sb-expand-btn { display: flex !important }

/* Logo estilo Trendzbr */
.sb-logo-icon {
    width: 30px; height: 30px; border-radius: 8px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0
}
.sb-logo-dot { color: var(--text3); font-size: 10px; font-weight: 400 }

/* Collapse button */
.sb-collapse-btn {
    background: var(--soft-4); border: none;
    color: var(--text3); cursor: pointer; padding: 5px;
    border-radius: 7px; transition: all .15s; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center
}
.sb-collapse-btn:hover { color: var(--text); background: var(--soft-5) }
#sbCollapseIcon { transition: transform .25s cubic-bezier(.4,0,.2,1) }

.sb-expand-btn {
    display: none;
    background: var(--soft-2);
    border: 1px solid var(--soft-5);
    color: var(--text3); cursor: pointer;
    padding: 6px; border-radius: 8px;
    transition: all .15s; width: 34px; height: 34px;
    align-items: center; justify-content: center;
    margin: 10px auto 6px; flex-shrink: 0;
    position: relative; z-index: 1
}
.sb-expand-btn:hover { color: var(--text); background: var(--soft-5) }
/* Only show inside sidebar when it is collapsed */
.sidebar.collapsed .sb-expand-btn { display: flex !important }
/* NEVER on mobile — sidebar is hidden there */
@media(max-width:899px) { .sb-expand-btn { display: none !important } }

/* MAIN */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; transition: none }

/* TOPBAR — 3 colunas: esquerda | busca (centro do #main) | ações (canto direito).
   grid-column explícito: se .topbar-nav-label estiver display:none, a coluna 1 fica vazia
   e a busca continua na coluna 2 (não “sobe” para a esquerda). */
.topbar {
    height: var(--topbar-h); flex-shrink: 0;
    background: var(--bg2); border-bottom: 1px solid var(--soft-5);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
    padding: 0 18px;
    gap: 12px;
    box-sizing: border-box;
}
.topbar-breadcrumb { font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; transition: color .15s; white-space: nowrap }
.topbar-breadcrumb:hover { color: var(--text) }
/* Trendzbr-style topbar nav label */
.topbar-nav-label {
    grid-column: 1;
    grid-row: 1;
    font-size: 14px; font-weight: 700; color: var(--text);
    cursor: pointer; white-space: nowrap; transition: color .15s;
    padding: 4px 10px; border-radius: 8px;
    background: var(--soft-3);
    justify-self: start;
    align-self: center;
}
.topbar-nav-label:hover { background: var(--soft-5) }
.topbar-right {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    justify-self: end;
    min-width: 0;
    flex-wrap: nowrap;
}
.topbar-stat { display: flex; flex-direction: column; align-items: flex-end; cursor: pointer }
.topbar-stat-label { font-size: 9px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px; display: flex; align-items: center; gap: 3px; line-height: 1 }
.topbar-stat-val { font-size: 13px; font-weight: 700; color: var(--text); margin-top: 2px; line-height: 1 }
.topbar-vsep { width: 1px; height: 22px; background: var(--line) }
.topbar-deposit-btn { background: var(--green); color: #050a05; border: none; border-radius: 8px; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: filter .15s; white-space: nowrap; font-family: inherit }
.topbar-deposit-btn:hover { filter: brightness(1.1) }
/* Search bar — trilho central do grid; campo limitado para leitura visual */
.topbar-search {
    grid-column: 2;
    grid-row: 1;
    position: relative;
    margin: 0;
    justify-self: center;
    align-self: center;
    width: min(420px, 36vw);
    max-width: 100%;
    min-width: min(200px, 100%);
    box-sizing: border-box;
}
.topbar-search input {
    width: 100%; background: var(--soft-3);
    border: 1px solid var(--soft-7);
    border-radius: 10px; padding: 8px 14px 8px 36px;
    font-size: 13px; color: var(--text); font-family: inherit;
    transition: border-color .18s, background .18s
}
.topbar-search input:focus {
    border-color: var(--soft-12);
    background: var(--soft-4); outline: none
}
.topbar-search input::placeholder { color: var(--text3) }
.topbar-search-icon {
    position: absolute; left: 11px; top: 50%; transform: translateY(-50%);
    color: var(--text3); pointer-events: none; display: flex
}

.topbar-auth-group { display: flex; align-items: center; gap: 6px }
.topbar-auth-group .btn-ghost { width: 88px; padding: 7px 0; text-align: center }
.topbar-auth-group .topbar-deposit-btn { width: 100px }
.topbar-avatar { width: 32px; height: 32px; border-radius: 50%; cursor: pointer; flex-shrink: 0; position: relative; overflow: hidden; background: var(--green-bg); border: 1px solid var(--green-border); display: flex; align-items: center; justify-content: center; transition: border-color .15s }
.topbar-avatar:hover { border-color: rgba(94,255,110,.45) }
.topbar-avatar-blur { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 40% 35%, rgba(94,255,110,.4) 0%, rgba(34,197,94,.15) 55%, transparent 100%); filter: blur(4px) }
.topbar-avatar-icon { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; width: 100%; height: 100% }
.prof-avatar-wrap { width: 46px; height: 46px; border-radius: 50%; position: relative; overflow: hidden; background: var(--green-bg); border: 1px solid var(--green-border); display: flex; align-items: center; justify-content: center; margin-bottom: 10px; flex-shrink: 0 }
.prof-avatar-wrap .topbar-avatar-blur { filter: blur(6px) }

/* USER DROPDOWN */
.user-dropdown { position: fixed; top: calc(var(--topbar-h) + 6px); right: max(18px, env(safe-area-inset-right, 0px)); background: #ffffff; border: 1px solid var(--line2); border-radius: 12px; padding: 5px; z-index: 300; min-width: 180px; box-shadow: 0 16px 48px var(--soft-9); animation: dropIn .18s cubic-bezier(.22,1,.36,1) }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px) scale(.97) } to { opacity: 1; transform: translateY(0) scale(1) } }
.user-dropdown-item { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; cursor: pointer; transition: background .12s; font-size: 13px; font-weight: 500; color: var(--text2) }
.user-dropdown-item:hover { background: var(--card2); color: var(--text) }
.user-dropdown-item-icon { width: 28px; height: 28px; border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--card3) }
.user-dropdown-item.danger { color: var(--red) }
.user-dropdown-item.danger .user-dropdown-item-icon { background: var(--red-bg) }
.user-dropdown-item.danger:hover { background: var(--red-bg) }
.user-dropdown-sep { height: 1px; background: var(--line); margin: 4px 0 }
.user-dropdown-name { padding: 8px 11px 4px; font-size: 11px; font-weight: 600; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }

/* HEADER EXTRA — Ticker + Categorias (estilo FuturiMarket) */
.header-extra {
    flex-shrink: 0;
    background: var(--header-extra-bg, var(--bg2));
    border-bottom: 1px solid var(--soft-5);
}
[data-theme="dark"] .header-extra {
    --header-extra-bg: #131315;
    border-bottom-color: rgba(255,255,255,.08);
}
.desktop-cattabs {
    display: flex;
    align-items: center;
    padding: 0 18px;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.desktop-cattabs::-webkit-scrollbar { display: none }
.desktop-cattabs-inner {
    display: flex;
    gap: 4px;
    padding: 8px 0;
    white-space: nowrap;
}
.desktop-cattab {
    flex-shrink: 0;
    padding: 9px 16px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text3);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .18s;
}
.desktop-cattab:hover { color: var(--text2); background: var(--soft-4) }
.desktop-cattab.active {
    background: var(--green);
    color: #050a05;
}
.desktop-cattab-live.active { background: #FF3B30; color: #fff }
.fake-ticker {
    overflow: hidden;
    padding: 10px 0;
    border-top: 1px solid var(--line);
    background: var(--header-extra-bg, transparent);
}
.fake-ticker-track {
    display: flex;
    gap: 50px;
    animation: tickerScroll 22s linear infinite;
}
.fake-ticker-track span {
    flex-shrink: 0;
    font-size: 13px;
    color: var(--text2);
    white-space: nowrap;
}
.fake-ticker-track strong { color: var(--green); font-weight: 700; font-size: 13px; }
@keyframes tickerScroll {
    0% { transform: translateX(0) }
    100% { transform: translateX(-50%) }
}

/* CONTENT */
#content-area { flex: 1; display: flex; overflow: hidden }
#page-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    min-width: 0; padding-bottom: 40px;
    scrollbar-width: none  /* Firefox */
}
#page-scroll::-webkit-scrollbar { display: none }  /* Chrome/Safari */

/* ═══ BANNERS ═══ */
.banner-outer { padding: 20px 24px 16px }

#bannerSlider { position: relative; overflow: hidden; border-radius: var(--r); width: 100% }
#bannerLoading { height: 130px; border-radius: var(--r); background: var(--card2); display: flex; align-items: center; justify-content: center }
#bannerTrack { display: flex; gap: 10px; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform }
#bannerTrack .banner-item { flex-shrink: 0; width: 340px; height: 130px; border-radius: var(--r); overflow: hidden; position: relative; cursor: pointer; background: #111 }

#bannerCarousel { display: none; position: relative; border-radius: var(--r); overflow: hidden; height: 130px }
#bannerTrackMob { display: flex; flex-wrap: nowrap; gap: 0; height: 100%; transition: transform .55s cubic-bezier(.4,0,.2,1); will-change: transform }
#bannerTrackMob .banner-item { position: relative; flex: 0 0 100%; min-width: 100%; height: 130px; border-radius: 0; overflow: hidden; cursor: pointer; background: #111 }

.banner-item img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.80) 0%, rgba(0,0,0,.40) 50%, var(--soft-3) 100%) }
.banner-badge { position: absolute; top: 10px; left: 12px; background: var(--green); color: #050a05; border-radius: 5px; padding: 2px 8px; font-size: 9px; font-weight: 800; letter-spacing: .3px; text-transform: uppercase; z-index: 2; white-space: nowrap }
.banner-title { position: absolute; bottom: 28px; left: 14px; right: 10px; font-size: 14px; font-weight: 800; color: #fff; line-height: 1.2; z-index: 2; font-family: 'Plus Jakarta Sans',sans-serif; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.banner-cta { position: absolute; bottom: 10px; left: 14px; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.8); z-index: 2; display: flex; align-items: center; gap: 4px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15); border-radius: 5px; padding: 3px 8px; backdrop-filter: blur(6px); cursor: pointer; transition: background .15s; white-space: nowrap }
.banner-cta:hover { background: rgba(255,255,255,.15) }
.banner-dots { display: flex; gap: 4px; justify-content: center; margin-top: 8px }
.banner-carousel-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; gap: 5px; justify-content: center; z-index: 3 }
.banner-dot { width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.25); cursor: pointer; transition: all .25s; flex-shrink: 0 }
.banner-dot.active { background: var(--green); width: 14px; border-radius: 3px }
.banner-carousel-dots .banner-dot { background: rgba(255,255,255,.35) }
.banner-carousel-dots .banner-dot.active { background: #fff; width: 12px }

/* ═══ SEÇÕES ═══ */

/* Container externo da seção — Trendzbr style */
.section-outer {
    background: var(--soft-1);
    border-radius: 16px;
    margin: 0 18px 14px;
    overflow: hidden
}
.section-outer + .section-outer { margin-top: 0 }

.section-wrap { padding: 0 24px 32px }

/* Quando dentro de section-outer, sem padding lateral extra */
.section-outer > .section-wrap {
    padding: 0
}
.section-outer .section-hdr { padding: 24px 24px 16px }
.section-outer .trend-scroll { padding: 0 24px 24px }
.section-outer .cat-cards-grid { padding: 0 24px 24px; grid-template-columns: repeat(4,1fr) }
.section-outer .live-section-wrap { padding: 0 }
.section-outer .live-section-hdr { padding: 24px 24px 16px }
.section-outer .trend-scroll#liveGrid { padding: 0 24px 24px }

/* Cards DENTRO da seção: fundo mais destacado */
.section-outer .cat-card,
.section-outer .trend-card,
.section-outer .live-card {
    background: var(--soft-3);   /* rgb(255 255 255/.05) */
    border-color: var(--soft-7)
}
.section-outer .cat-card:hover,
.section-outer .trend-card:hover,
.section-outer .live-card:hover {
    background: var(--soft-5)
}

/* Ícone de seção */
.section-icon-trend {
    width: 24px; height: 24px; border-radius: 7px;
    background: rgba(94,255,110,.12);
    border: 1px solid rgba(94,255,110,.15);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0
}
.section-hdr { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 18px }
.section-hdr-left { display: flex; align-items: center; gap: 12px }
.section-hdr-icon { width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.section-hdr-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 17px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px }
.section-hdr-arrow { color: var(--text3); font-size: 14px; font-weight: 400 }
.section-hdr-right { display: flex; align-items: center }
.subtabs { display: flex; gap: 2px; background: var(--card2); border-radius: 8px; padding: 3px }
.subtab { padding: 4px 12px; font-size: 11.5px; font-weight: 600; color: var(--text3); border: none; background: transparent; border-radius: 6px; cursor: pointer; font-family: inherit; transition: all .15s }
.subtab.active { background: var(--card3); color: var(--text) }

/* LIVE */
.live-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,59,48,.10); border: 1px solid rgba(255,59,48,.25); border-radius: 5px; padding: 2px 7px; font-size: 9px; font-weight: 700; color: #ff3b30; letter-spacing: .4px; text-transform: uppercase; flex-shrink: 0 }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #ff3b30; flex-shrink: 0; animation: livepulse 1.1s ease-in-out infinite }
@keyframes livepulse { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .35; transform: scale(.7) } }
.live-section-wrap { padding: 0 24px 32px }
.live-section-hdr { display: flex; align-items: center; justify-content: space-between; padding: 26px 0 18px }
.live-section-hdr-left { display: flex; align-items: center; gap: 9px }
.live-section-hdr-icon { width: 22px; height: 22px; border-radius: 6px; background: rgba(255,59,48,.10); border: 1px solid rgba(255,59,48,.20); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.live-section-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 17px; font-weight: 700; color: #ff3b30; display: flex; align-items: center; gap: 8px }

/* Host do carrossel (Satoshi usa para medir o centro; outros layouts só envolvem a faixa) */
.trend-carousel-host { width: 100%; max-width: 100%; box-sizing: border-box }

/* SCROLL CARDS */
.trend-scroll { display: flex; gap: 18px; overflow-x: auto; scrollbar-width: none; padding-bottom: 8px }
.trend-scroll::-webkit-scrollbar { display: none }

/* TREND CARD */
.trend-card { flex-shrink: 0; width: 320px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; overflow: hidden; position: relative }
.trend-card:hover { border-color: var(--line2); background: var(--card2) }
.tc-top { padding: 18px 18px 12px; display: flex; align-items: flex-start; gap: 14px }
.tc-thumb { width: 48px; height: 48px; border-radius: 10px; background: var(--card3); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center }
.tc-thumb img { width: 100%; height: 100%; object-fit: cover }
.tc-thumb .ec-thumb-icon { color: var(--text3) }
.tc-thumb .ec-thumb-icon svg { width: 24px; height: 24px }
.tc-info { flex: 1; min-width: 0 }
.tc-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.tc-date { font-size: 12px; color: var(--text3); margin-top: 5px }
.tc-chance-row { padding: 0 18px 6px; display: flex; justify-content: space-between; align-items: center }
.tc-pct-yes, .tc-pct-no { font-size: 17px; font-weight: 800; color: var(--text) }
.tc-chance-label { font-size: 11px; color: var(--text3) }
.tc-prog { height: 4px; background: var(--red); border-radius: 2px; overflow: hidden; margin: 0 18px 14px }
.tc-prog-fill { height: 100%; background: var(--green); border-radius: 2px }
.tc-btns { display: flex; gap: 10px; padding: 0 18px 12px }
.tc-btn { flex: 1; border: none; border-radius: 22px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 700; transition: filter .12s; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: inherit }
.tc-btn-yes { background: rgba(94,255,110,.12); color: var(--green) }
.tc-btn-yes:hover { filter: brightness(1.2) }
.tc-btn-no  { background: rgba(255,77,77,.10); color: var(--red) }
.tc-btn-no:hover { filter: brightness(1.2) }
.tc-pool { padding: 0 18px 14px; font-size: 12px; color: var(--text3); display: flex; justify-content: space-between }
.tc-pool-val { color: var(--green); font-weight: 600 }

/* LIVE CARD */
.live-card { flex-shrink: 0; width: 320px; background: var(--card); border: 1.5px solid rgba(255,59,48,.22); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; overflow: hidden; position: relative; animation: liveborder 2.5s ease-in-out infinite }
@keyframes liveborder { 0%,100% { border-color: rgba(255,59,48,.22) } 50% { border-color: rgba(255,59,48,.55) } }
.live-card:hover { background: var(--card2); border-color: rgba(255,59,48,.65); animation: none }
.live-card-top { padding: 18px 18px 12px; display: flex; align-items: flex-start; gap: 14px }
.live-card-thumb { width: 50px; height: 50px; border-radius: 50%; background: var(--card3); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid var(--soft-7) }
.live-card-thumb img { width: 100%; height: 100%; object-fit: cover }
.live-card-thumb .ec-thumb-icon { color: var(--text3) }
.live-card-thumb .ec-thumb-icon svg { width: 24px; height: 24px }
.live-card-info { flex: 1; min-width: 0 }
.live-card-title { font-size: 15px; font-weight: 600; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 8px }
.live-card-chance-row { padding: 0 18px 6px; display: flex; justify-content: space-between; align-items: center }
.live-card-prog { height: 4px; background: var(--red); border-radius: 2px; overflow: hidden; margin: 0 18px 14px }
.live-card-prog-fill { height: 100%; background: var(--green); border-radius: 2px }
.live-card-btns { display: flex; gap: 10px; padding: 0 18px 12px }
.live-card-btn { flex: 1; border: none; border-radius: 22px; padding: 10px 12px; cursor: pointer; font-size: 13px; font-weight: 700; transition: filter .12s; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: inherit }
.live-card-btn-yes { background: rgba(94,255,110,.12); color: var(--green) }
.live-card-btn-yes:hover { filter: brightness(1.2) }
.live-card-btn-no  { background: rgba(255,77,77,.10); color: var(--red) }
.live-card-btn-no:hover { filter: brightness(1.2) }
.live-card-pool { padding: 0 18px 14px; font-size: 12px; color: var(--text3); display: flex; justify-content: space-between }

/* CAT GRID */
.cat-cards-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 20px; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; min-height: 220px; display: flex; flex-direction: column; position: relative; overflow: hidden }
.cat-card:hover { border-color: var(--line2); background: var(--card2) }
.cat-card-top { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 10px }
.cat-card-thumb { width: 44px; height: 44px; border-radius: 10px; background: var(--card3); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center }
.cat-card-thumb img { width: 100%; height: 100%; object-fit: cover }
.cat-card-title { font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.4; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.cat-card-date { font-size: 11px; color: var(--text3); margin-bottom: 8px }
.cat-pct-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px }
.cat-pct-yes, .cat-pct-no { font-size: 17px; font-weight: 800; color: var(--text) }
.cat-pct-chance { font-size: 11px; color: var(--text3) }
.cat-prog { height: 4px; background: var(--red); border-radius: 2px; overflow: hidden; margin-bottom: 12px }
.cat-prog-fill { height: 100%; background: var(--green); border-radius: 2px }
.cat-btns { display: flex; gap: 10px; margin-top: auto }
.cat-btn { flex: 1; border: none; border-radius: 22px; padding: 10px 10px; cursor: pointer; font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 4px; transition: filter .12s; font-family: inherit }
.cat-btn-yes { background: rgba(94,255,110,.12); color: var(--green) }
.cat-btn-yes:hover { filter: brightness(1.2) }
.cat-btn-no  { background: rgba(255,77,77,.10); color: var(--red) }
.cat-btn-no:hover { filter: brightness(1.2) }
.cat-card-pool { font-size: 11px; color: var(--text3); display: flex; justify-content: space-between; margin-top: 8px }
.cat-card-pool span { color: var(--green); font-weight: 600 }

.fav-btn { position: absolute; top: 8px; right: 8px; width: 26px; height: 26px; border-radius: 6px; background: var(--soft-16); border: 1px solid var(--soft-7); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; transition: all .15s; backdrop-filter: blur(4px); flex-shrink: 0 }
.fav-btn:hover { background: var(--soft-17); border-color: var(--soft-13) }
.fav-btn svg { width: 13px; height: 13px; transition: all .15s; stroke: var(--soft-15); fill: none }
.fav-btn.active svg { stroke: var(--green); fill: var(--green) }

/* ═══ EVENT CARD — Trendzbr exact style ═══
   Usado por trend-card, cat-card, live-card, mob-card
════════════════════════════════════════════════════ */
.ec {
    background: var(--soft-1);
    border: 1px solid var(--soft-5);
    border-radius: 14px;
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex; flex-direction: column; gap: 0;
    position: relative; overflow: visible
}
.ec:hover { border-color: var(--soft-11); background: var(--soft-2) }

/* Inside section-outer: slightly brighter background */
.section-outer .ec {
    background: var(--soft-3);
    border-color: var(--soft-7)
}
.section-outer .ec:hover { background: var(--soft-5) }

.ec-live {
    border-color: rgba(255,59,48,.28);
    animation: liveborder 2.5s ease-in-out infinite
}
.ec-live:hover { border-color: rgba(255,59,48,.6); animation: none }
.ec-ended {
    border-color: var(--soft-9);
    opacity: .88
}

/* Top row */
.ec-top {
    display: flex; align-items: flex-start; gap: 12px;
    margin-bottom: 12px; width: 100%
}

/* Thumb — circular like Trendzbr */
.ec-thumb {
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--soft-4);
    border: 1px solid var(--soft-7);
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center
}
.ec-thumb img { width: 100%; height: 100%; object-fit: cover }
.ec-thumb-icon { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: var(--text3) }
.ec-thumb-icon svg { width: 26px; height: 26px; flex-shrink: 0 }
.ec-thumb-icon-lg svg { width: 36px; height: 36px }

.ec-info { flex: 1; min-width: 0; overflow: hidden; max-width: calc(100% - 78px) }
.ec-title {
    font-size: 14px; font-weight: 600; line-height: 1.4; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    word-break: break-word; margin-bottom: 4px;
    max-width: 100%
}
.ec-live-badge {
    display: inline-flex; align-items: center; gap: 4px;
    background: rgba(255,59,48,.10); border: 1px solid rgba(255,59,48,.22);
    border-radius: 4px; padding: 1px 6px;
    font-size: 8.5px; font-weight: 700; color: #ff3b30;
    letter-spacing: .4px; text-transform: uppercase
}
.ec-ended-badge,
.qd-ended-badge {
    display: inline-flex; align-items: center;
    background: var(--soft-4); border: 1px solid var(--soft-9);
    border-radius: 999px; padding: 2px 8px;
    font-size: 9px; font-weight: 700; color: var(--text2);
    letter-spacing: .4px; text-transform: uppercase
}

/* Actions: ⭐ + ⏱ */
.ec-actions { display: flex; align-items: center; gap: 3px; flex-shrink: 0; align-self: flex-start; margin-left: auto }
.ec-action-btn {
    width: 24px; height: 24px; border-radius: 6px;
    background: transparent; border: none;
    color: var(--soft-14); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s; position: relative
}
.ec-action-btn:hover { color: var(--soft-17) }

/* Fav active */
.ec-fav.active .ec-fav-icon { stroke: var(--green); fill: var(--green) }
.ec-fav.active { color: var(--green) }

/* Clock tooltip */
.ec-clock { overflow: visible }
.ec-clock-tooltip {
    display: none; position: absolute; top: 28px; right: 0;
    background: #ffffff; border: 1px solid var(--soft-9);
    border-radius: 7px; padding: 4px 9px; white-space: nowrap;
    font-size: 11px; font-weight: 500; color: var(--text);
    pointer-events: none; z-index: 50;
    box-shadow: 0 6px 20px var(--soft-15)
}
.ec-clock:hover .ec-clock-tooltip { display: block }

/* Percentages */
.ec-pct-row {
    display: flex; justify-content: space-between; align-items: baseline;
    margin-bottom: 5px
}
.ec-pct-yes {
    font-family: 'Plus Jakarta Sans',sans-serif; font-size: 19px; font-weight: 800; color: var(--text)
}
.ec-pct-no {
    font-family: 'Plus Jakarta Sans',sans-serif; font-size: 19px; font-weight: 800; color: var(--text)
}
.ec-pct-label { font-size: 11px; color: var(--text3) }

/* Progress bar */
.ec-prog {
    height: 4px; display: flex; border-radius: 2px; overflow: hidden;
    margin-bottom: 12px; background: var(--soft-3)
}
.ec-prog-yes { background: var(--green); border-radius: 2px 0 0 2px }
.ec-prog-no  { background: var(--red);   border-radius: 0 2px 2px 0 }

/* Bet buttons — Trendzbr: pill shape, translucent */
.ec-btns { display: flex; gap: 10px; margin-bottom: 10px }
.ec-btn {
    flex: 1; border: none; border-radius: 22px;
    padding: 10px 10px; cursor: pointer;
    font-size: 13px; font-weight: 700;
    display: flex; align-items: center; justify-content: center; gap: 4px;
    transition: filter .12s, transform .1s; font-family: inherit;
    white-space: nowrap
}
.ec-btn:active { transform: scale(.97) }
.ec-btn-yes { background: rgba(0,180,113,.15); color: var(--green); border-radius: 20px }
.ec-btn-yes:hover { filter: brightness(1.2) }
.ec-btn-no  { background: rgba(255,90,90,.12);  color: var(--red); border-radius: 20px }
.ec-btn-no:hover { filter: brightness(1.2) }
.ec-btn:disabled {
    opacity: .45;
    cursor: not-allowed;
    filter: none
}

/* Return row */
.ec-returns {
    display: flex; justify-content: space-between;
    font-size: 12px; color: var(--text3)
}
.ec-ret-yes { color: var(--green); font-weight: 700 }
.ec-ret-no  { color: var(--green); font-weight: 700 } /* Both green like Trendzbr */
.ec-ret-arrow { color: var(--text3) }

/* Also update legacy classes to use ec for compat */
.trend-card { flex-shrink: 0 }
.cat-card { flex: 1 }

/* QUESTION DETAIL — Trendzbr style */
#pageQuestion { display: none; padding: 0 }
.qd-back-row { display: flex; align-items: center; gap: 6px; padding: 16px 0 12px }
.qd-back-btn { display: flex; align-items: center; gap: 5px; background: var(--soft-4); border: 1px solid var(--soft-7); border-radius: 8px; padding: 5px 10px; color: var(--text2); font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; transition: all .15s }
.qd-back-btn:hover { color: var(--text); background: var(--soft-5) }
.qd-back-sep { color: var(--text3); font-size: 12px }
.qd-back-label { font-size: 12px; color: var(--text3) }
.qd-header { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 20px }
.qd-thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center }
.qd-thumb img { width: 100%; height: 100%; object-fit: cover }
.qd-header-info { flex: 1; min-width: 0 }
.qd-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 8px; letter-spacing: -.3px }
.qd-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.qd-meta-item { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px }
.qd-meta-sep { color: var(--text3); font-size: 11px }
.qd-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0 }
.qd-action-btn { width: 32px; height: 32px; border-radius: 8px; background: var(--soft-3); border: 1px solid var(--soft-7); color: var(--text3); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s }
.qd-action-btn:hover { background: var(--soft-5); color: var(--text) }
.q-detail-fav-btn { transition: all .15s }
.q-detail-fav-btn.active { background: var(--green-bg) !important; border-color: var(--green-border) !important; color: var(--green) !important }
.q-detail-fav-btn.active svg { fill: var(--green); stroke: var(--green) }
.qd-option-block { background: var(--soft-1); border-radius: 14px; overflow: hidden; border: 1px solid var(--soft-5); margin-bottom: 16px }
.qd-option-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; cursor: pointer; transition: background .15s }
.qd-option-row:hover { background: var(--soft-2) }
.qd-option-label { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; min-width: 80px; flex-shrink: 0 }
.qd-option-label.yes { color: var(--green) }
.qd-option-label.no  { color: var(--red) }
.qd-option-pct { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 18px; font-weight: 800; color: var(--text); min-width: 60px; display: flex; flex-direction: column; align-items: flex-start }
.qd-option-sub { font-family: 'DM Sans',sans-serif; font-size: 9px; font-weight: 500; color: var(--text3); text-transform: uppercase; letter-spacing: .5px }
.qd-option-prog-wrap { flex: 1; height: 6px; background: var(--soft-4); border-radius: 3px; overflow: hidden }
.qd-option-prog.yes { height: 100%; background: var(--green); border-radius: 3px }
.qd-option-prog.no  { height: 100%; background: var(--red);   border-radius: 3px }
.qd-option-odds { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 15px; font-weight: 800; min-width: 42px; text-align: right; flex-shrink: 0 }
.qd-option-odds.yes { color: var(--green) }
.qd-option-odds.no  { color: var(--red) }
.qd-option-return { font-size: 11px; color: var(--text3); min-width: 130px; text-align: right; flex-shrink: 0 }
.qd-option-return span { color: var(--green); font-weight: 600 }
.qd-big-prog { height: 4px; display: flex; overflow: hidden }
.qd-big-prog-yes { background: var(--green); transition: width .5s }
.qd-big-prog-no  { background: var(--red); transition: width .5s; flex: 1 }
/* ── Trendzbr-style full-width option rows ── */
.qd-opts-wrap { margin-bottom: 0 }

.qd-opt-full-row {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 0; cursor: pointer; transition: background .12s;
    border-bottom: 1px solid var(--soft-4)
}
.qd-opt-full-row:last-child { border-bottom: none }
.qd-opt-full-row:hover { background: var(--soft-1); margin: 0 -24px; padding: 14px 24px; border-radius: 4px }

.qd-ofr-left {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 180px
}
.qd-ofr-check {
    width: 20px; height: 20px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0
}
.qd-ofr-check.yes { background: rgba(0,180,113,.15); color: var(--green) }
.qd-ofr-check.no  { background: rgba(255,90,90,.12);  color: var(--red) }

.qd-ofr-label { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap }
.qd-ofr-pct { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 17px; font-weight: 800; color: var(--text); margin-left: 4px }
.qd-ofr-sub { font-size: 10px; color: var(--text3); white-space: nowrap }

.qd-ofr-bar-wrap {
    flex: 1; height: 6px;
    background: var(--soft-3);
    border-radius: 3px; overflow: hidden
}
.qd-ofr-bar.yes { height: 100%; background: var(--green); border-radius: 3px }
.qd-ofr-bar.no  { height: 100%; background: var(--red);   border-radius: 3px }

.qd-ofr-right {
    display: flex; flex-direction: column; align-items: flex-end;
    gap: 2px; flex-shrink: 0; min-width: 120px
}
.qd-ofr-odds { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 14px; font-weight: 800 }
.qd-ofr-odds.yes { color: var(--green) }
.qd-ofr-odds.no  { color: var(--red) }
.qd-ofr-ret { font-size: 11px; color: var(--text3) }
.qd-ofr-ret .yes { color: var(--green); font-weight: 600 }
.qd-ofr-ret .no  { color: var(--red);   font-weight: 600 }

/* Activity list */
.qd-act-item {
    display: flex; align-items: flex-start; gap: 12px;
    padding: 12px 0; border-bottom: 1px solid var(--soft-4)
}
.qd-act-item:last-child { border-bottom: none }
.qd-act-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; color: #fff; flex-shrink: 0; opacity: .9
}
.qd-act-body { flex: 1; min-width: 0 }
.qd-act-main { font-size: 13px; color: var(--text2); line-height: 1.4 }
.qd-act-name { font-weight: 600; color: var(--text) }
.qd-act-verb { color: var(--text3) }
.qd-act-choice.yes { color: var(--green); font-weight: 700 }
.qd-act-choice.no  { color: var(--red);   font-weight: 700 }
.qd-act-sub { font-size: 11px; color: var(--text3); margin-top: 2px }
.qd-act-time { font-size: 11px; color: var(--text3); flex-shrink: 0; white-space: nowrap; margin-top: 2px }

.qd-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--soft-5); margin-bottom: 14px; margin-top: 24px }
.qd-tab { padding: 10px 16px; font-size: 13px; font-weight: 600; color: var(--text3); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all .15s; font-family: inherit }
.qd-tab.active { color: var(--text); border-bottom-color: var(--green) }
.qd-activity-item { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--soft-4) }
.qd-activity-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--green-bg); border: 1px solid var(--green-border); display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--green); flex-shrink: 0 }
.qd-activity-info { flex: 1; font-size: 12px; color: var(--text3) }
.qd-activity-name { font-weight: 600; color: var(--text2) }
.qd-activity-choice.yes { color: var(--green); font-weight: 700 }
.qd-activity-choice.no  { color: var(--red); font-weight: 700 }
.qd-activity-val { font-size: 12px; font-weight: 600; color: var(--text); flex-shrink: 0 }
.q-options-grid { display: block }
.arr-green { color: var(--green); font-weight: 600 }
.arr-red { color: var(--red); font-weight: 600 }

/* ═══ RIGHT PANEL BET FORM — Trendzbr style ═══ */
.rpb-top {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 14px 10px; border-bottom: 1px solid var(--soft-4)
}
.rpb-prediction-label {
    font-size: 13px; font-weight: 500; color: var(--text2);
    display: flex; align-items: center; gap: 6px
}
.rpb-choice-tag {
    display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700;
    color: var(--green); background: rgba(0,180,113,.1); border: 1px solid rgba(0,180,113,.2);
    border-radius: 20px; padding: 2px 9px
}
.rpb-choice-tag.no { color: var(--red); background: rgba(255,90,90,.1); border-color: rgba(255,90,90,.2) }
.rpb-close {
    width: 26px; height: 26px; border-radius: 50%; background: var(--soft-5);
    border: 1px solid var(--soft-9); color: var(--text3); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .15s
}
.rpb-close:hover { background: var(--soft-7); color: var(--text) }
.rpb-amount-display {
    text-align: center; padding: 20px 14px 8px; cursor: text; position: relative
}
.rpb-amount-prefix { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 32px; font-weight: 800; color: var(--text3) }
.rpb-amount-val {
    font-family: 'Plus Jakarta Sans',sans-serif; font-size: 52px; font-weight: 800;
    color: var(--text); letter-spacing: -2px; line-height: 1
}
.rpb-balance { text-align: center; font-size: 12px; color: var(--text3); padding-bottom: 16px }
.rpb-balance span { font-weight: 600; color: var(--text2) }
.rpb-quick-amounts { display: flex; gap: 5px; padding: 0 14px 14px }
.rpb-qa {
    flex: 1; border: 1px solid var(--soft-9); background: var(--soft-3);
    border-radius: 20px; color: var(--text2); font-size: 11px; font-weight: 700;
    padding: 6px 2px; cursor: pointer; font-family: inherit; transition: all .15s; text-align: center
}
.rpb-qa:hover, .rpb-qa.active { background: var(--green); color: #050a05; border-color: var(--green) }
.rpb-confirm {
    width: 100%; padding: 14px; border: none; border-radius: 10px;
    background: var(--green); color: #050a05; font-size: 15px; font-weight: 800;
    cursor: pointer; font-family: 'Plus Jakarta Sans',sans-serif; transition: filter .15s
}
.rpb-confirm:hover:not(:disabled) { filter: brightness(1.1) }
.rpb-confirm:disabled { opacity: .35; cursor: not-allowed }

/* RIGHT PANEL */
.right-panel-wrap {
    padding: 10px 12px 10px 0;
    flex-shrink: 0; width: calc(var(--right-w) + 12px);
    display: flex; flex-direction: column;
    /* NOT flex:1 — only as tall as content */
    align-self: flex-start
}
.right-panel {
    width: 100%; background: var(--soft-1);
    border: 1px solid var(--soft-5);
    border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    /* No height:100% — shrinks to content */
}
.rp-tabs {
    display: flex; border-bottom: 1px solid var(--soft-4);
    flex-shrink: 0; padding: 0 4px
}
.rp-tab { flex: 1; padding: 13px 8px; font-size: 13px; font-weight: 600; color: var(--text3); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all .18s; font-family: inherit; margin-bottom: -1px; border-radius: 0 }
.rp-tab.active { color: var(--text); border-bottom-color: var(--green) }
.rp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px 20px; text-align: center; gap: 8px }
.rp-empty-step {
    font-size: 11px; font-weight: 700; color: #fff;
    background: var(--green); border-radius: 20px;
    padding: 4px 14px; letter-spacing: .2px;
    margin-bottom: 4px
}
.rp-empty-title { font-size: 13px; font-weight: 500; color: var(--text2); line-height: 1.5 }
.rp-empty-text { font-size: 12px; color: var(--text3); line-height: 1.6 }
.rp-tos { font-size: 10px; color: var(--text3); padding: 10px 16px 12px; border-top: none; text-align: center; line-height: 1.5 }
.rp-tos a { color: var(--green) }
.rp-bet-form { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1 }
.rp-bet-question { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.45 }
.rp-bet-sub { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3) }
.rp-pct-row { display: flex; justify-content: space-between; align-items: center }
.rp-pct-yes { font-size: 15px; font-weight: 800; color: var(--green) }
.rp-pct-no  { font-size: 15px; font-weight: 800; color: var(--red) }
.rp-prog { height: 3px; border-radius: 2px; background: var(--red); overflow: hidden }
.rp-prog-fill { height: 100%; border-radius: 2px; background: var(--green) }
.rp-choices { display: flex; gap: 6px }
.rp-choice { flex: 1; border-radius: 10px; padding: 10px 7px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit }
.rp-choice:hover { border-color: var(--line2) }
.rp-choice-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center }
.rp-choice-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text3) }
.rp-choice-odd { font-size: 14px; font-weight: 800; color: var(--text) }
.rp-choice.yes-sel { background: var(--green-bg); border-color: var(--green-border) }
.rp-choice.yes-sel .rp-choice-label { color: var(--green) }
.rp-choice.yes-sel .rp-choice-odd { color: var(--green) }
.rp-choice.no-sel { background: var(--red-bg); border-color: var(--red-border) }
.rp-choice.no-sel .rp-choice-label { color: var(--red) }
.rp-choice.no-sel .rp-choice-odd { color: var(--red) }
.rp-return-row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px }
.rp-return-label { font-size: 12px; font-weight: 500; color: var(--text2) }
.rp-return-val { font-size: 14px; font-weight: 800; color: var(--green); font-family: 'Plus Jakarta Sans',sans-serif }
.rp-amount-row { display: flex; align-items: center; gap: 6px }
.rp-amount-prefix { font-size: 13px; font-weight: 600; color: var(--text3) }
.rp-amount-input { flex: 1; border: 1px solid var(--line2); border-radius: 8px; padding: 9px 11px; font-size: 16px; font-weight: 700; color: var(--text); background: var(--card); font-family: 'Plus Jakarta Sans',sans-serif; width: 100%; transition: border-color .2s }
.rp-amount-input:focus { border-color: var(--soft-13) }
.rp-confirm-btn { padding: 11px; border: none; border-radius: 10px; background: var(--green); color: #050a05; font-size: 13px; font-weight: 800; cursor: pointer; transition: filter .15s; font-family: inherit }
.rp-confirm-btn:hover:not(:disabled) { filter: brightness(1.1) }
.rp-confirm-btn:disabled { opacity: .3; cursor: not-allowed }
.rp-cancel-btn { width: 100%; padding: 8px; border: 1px solid var(--soft-7); border-radius: 9px; background: transparent; color: var(--text3); font-size: 12px; font-weight: 500; cursor: pointer; transition: all .15s; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 2px }
.rp-cancel-btn:hover { background: var(--red-bg); border-color: var(--red-border); color: var(--red) }

/* MODAIS */
.overlay { position: fixed; inset: 0; left: 0; top: 0; right: 0; bottom: 0; width: 100%; min-height: 100%; min-height: 100dvh; background: rgba(0,0,0,.82); z-index: 200; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-sizing: border-box }
.overlay.center { align-items: center; justify-content: center; padding: max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left)) }
.sheet { background: #ffffff; border-radius: 18px 18px 0 0; padding: 18px 20px 36px; width: 100%; max-width: 480px; animation: slideUp .3s cubic-bezier(.22,1,.36,1); max-height: 92vh; overflow-y: auto; border-top: 1px solid var(--soft-5) }
.sheet.center-sheet { background: #ffffff; border-radius: 18px; padding: 28px 24px; border: 1px solid var(--soft-7); box-shadow: 0 32px 100px var(--soft-11); animation: popIn .22s cubic-bezier(.22,1,.36,1); margin: auto; max-height: min(92dvh, 920px); overflow-y: auto; flex-shrink: 0 }
@keyframes slideUp { from { transform: translateY(100%) } to { transform: translateY(0) } }
@keyframes popIn { from { opacity: 0; transform: scale(.95) translateY(10px) } to { opacity: 1; transform: scale(1) translateY(0) } }
.sheet-handle { width: 36px; height: 3px; border-radius: 2px; background: var(--soft-9); margin: 0 auto 18px }
.sheet-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 20px; font-weight: 800; margin-bottom: 4px; color: var(--text); letter-spacing: -.3px }
.sheet-sub { font-size: 13px; color: var(--text3); font-weight: 400; margin-bottom: 20px }
.modal-close { float: right; background: var(--soft-4); border: 1px solid var(--soft-7); border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; color: var(--text3); cursor: pointer; transition: all .15s; margin-top: -2px }
.modal-close:hover { background: var(--soft-7); color: var(--text) }
.fld { margin-bottom: 12px }
.fld label { display: block; font-size: 11px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .7px; margin-bottom: 6px }
.fld input, .fld select { width: 100%; padding: 12px 14px; border: 1px solid var(--soft-7); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text); background: var(--soft-3); transition: border-color .18s, background .18s; font-family: inherit }
.fld input:focus { border-color: var(--soft-13); background: var(--soft-2); outline: none }
.fld input::placeholder { color: var(--soft-14) }
.msg-box { border-radius: 10px; padding: 10px 13px; font-size: 12.5px; font-weight: 500; margin-bottom: 12px; display: flex; align-items: center; gap: 8px }
.msg-err { background: rgba(255,77,77,.08); border: 1px solid rgba(255,77,77,.18); color: var(--red) }
.msg-ok  { background: rgba(94,255,110,.08); border: 1px solid rgba(94,255,110,.18); color: var(--green) }

/* BOTÕES */
.btn { width: 100%; padding: 13px; border: none; border-radius: 10px; font-size: 14px; font-weight: 800; cursor: pointer; transition: all .18s; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 7px; letter-spacing: -.1px }
.btn:disabled { opacity: .3; cursor: not-allowed }
.btn-brand, .btn-green { background: var(--green); color: #050a05 }
.btn-brand:hover:not(:disabled), .btn-green:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px) }
.btn-ghost { background: var(--soft-3); color: var(--text); border: 1px solid var(--soft-7); font-weight: 600; font-size: 13px }
.btn-ghost:hover { background: var(--soft-5); border-color: var(--soft-11) }
.btn-sm { padding: 7px 14px; width: auto; font-size: 12px; border-radius: 8px }
.btn-logout { background: rgba(255,77,77,.07); color: var(--red); border: 1px solid rgba(255,77,77,.13) }
.btn-logout:hover { background: rgba(255,77,77,.12) }
.quick-amounts { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px }
.qa { padding: 5px 12px; border-radius: 20px; background: var(--soft-3); color: var(--text2); font-size: 12px; font-weight: 600; border: 1px solid var(--soft-7); cursor: pointer; transition: all .12s }
.qa:hover, .qa.active { background: var(--green); color: #050a05; border-color: var(--green) }
.tabs { display: flex; background: var(--soft-2); border-radius: 8px; padding: 3px; margin-bottom: 10px; gap: 2px }
.tab-btn { flex: 1; padding: 6px; text-align: center; font-size: 12px; font-weight: 600; border: none; background: transparent; border-radius: 6px; cursor: pointer; color: var(--text3); transition: all .15s; font-family: inherit }
.tab-btn.active { background: var(--soft-5); color: var(--green) }

/* PROFILE */
.prof-hero { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 10px; border: 1px solid var(--line) }
.prof-name { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 16px; font-weight: 700; color: var(--text) }
.prof-email { font-size: 12px; color: var(--text3); margin-top: 2px }
.prof-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 12px }
.pstat { background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 10px }
.pstat-lbl { font-size: 9.5px; color: var(--text3); font-weight: 600; text-transform: uppercase; letter-spacing: .5px }
.pstat-val { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 14px; font-weight: 700; margin-top: 3px; color: var(--text) }
.pstat-val.accent { color: var(--green) }

/* TX */
.tx-list { display: flex; flex-direction: column; gap: 5px }
.tx-item { background: var(--card); border-radius: 10px; padding: 10px 12px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line) }
.tx-ico { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.tx-ico.dep { background: var(--green-bg) } .tx-ico.wit { background: var(--red-bg) } .tx-ico.bet { background: rgba(59,130,246,.08) } .tx-ico.won { background: rgba(234,179,8,.07) }
.tx-name { font-size: 12.5px; font-weight: 600; color: var(--text) } .tx-date { font-size: 10.5px; color: var(--text3); margin-top: 2px }
.tx-amount { margin-left: auto; text-align: right } .tx-val { font-size: 12.5px; font-weight: 700 } .tx-val.pos { color: var(--green) } .tx-val.neg { color: var(--red) }
.badge { padding: 2px 7px; border-radius: 4px; font-size: 10px; font-weight: 700 }
.b-pend { background: rgba(234,179,8,.08); color: var(--yellow) } .b-ok { background: var(--green-bg); color: var(--green) } .b-rej { background: var(--red-bg); color: var(--red) } .b-won { background: rgba(234,179,8,.08); color: var(--yellow) } .b-lost { background: var(--red-bg); color: var(--red) }

/* AFILIADOS */
.aff-hero { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 10px; border: 1px solid var(--line) }
.aff-hero-title { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 17px; font-weight: 700; margin-bottom: 4px }
.aff-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-bottom: 10px }
.aff-metric { background: var(--card2); border: 1px solid var(--line); border-radius: 8px; padding: 10px }
.aff-metric-lbl { font-size: 9.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; color: var(--text3); margin-bottom: 4px }
.aff-metric-val { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 16px; font-weight: 700; color: var(--text) }
.aff-metric-val.accent { color: var(--green) }
.aff-link-box { background: var(--card2); border: 1px solid var(--line2); border-radius: 8px; padding: 9px 11px; display: flex; align-items: center; gap: 8px }
.aff-link-url { flex: 1; font-size: 11.5px; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.aff-link-copy { background: var(--green); color: #050a05; border: none; border-radius: 7px; padding: 5px 12px; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit }
.aff-commission-rate-card { background: var(--card2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; margin-bottom: 10px; display: flex; align-items: center; justify-content: space-between; gap: 8px }
.aff-commission-rate-icon { width: 40px; height: 40px; border-radius: 10px; background: var(--green-bg); border: 1px solid var(--green-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.aff-commission-rate-lbl { font-size: 9.5px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 3px }
.aff-commission-rate-val { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 22px; font-weight: 800; color: var(--green); line-height: 1 }
.aff-commission-rate-type { font-size: 10.5px; color: var(--text3); margin-top: 2px }

/* DEP QR */
.dep-qr-wrap { display: flex; align-items: center; justify-content: center; margin: 0 auto 14px; width: 170px; height: 170px; background: #fff; border-radius: 10px; padding: 10px }

/* NOTIF */
.notif-item { background: var(--card); border-radius: 10px; padding: 10px 12px; margin-bottom: 5px; border: 1px solid var(--line) }

/* UTILS */
.empty { text-align: center; padding: 40px 20px; color: var(--text3); font-size: 13px }
.page-loading { display: flex; align-items: center; justify-content: center; height: 140px }
.spinner { width: 20px; height: 20px; border: 1.5px solid var(--soft-9); border-top-color: var(--green); border-radius: 50%; animation: spin .7s linear infinite }
@keyframes spin { to { transform: rotate(360deg) } }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%) translateY(10px); opacity: 0; background: #ffffff; color: var(--text); padding: 9px 16px; border-radius: 10px; font-size: 13px; font-weight: 500; z-index: 999; pointer-events: none; white-space: nowrap; box-shadow: 0 10px 40px var(--soft-11); transition: all .25s cubic-bezier(.22,1,.36,1); border: 1px solid var(--line); display: flex; align-items: center; gap: 8px }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0) }
#toast.ok  { background: var(--green-bg); border-color: var(--green-border); color: var(--green) }
#toast.err { background: var(--red-bg); border-color: var(--red-border); color: var(--red) }

/* MOBILE TOPBAR */
.m-topbar { display: none; height: 56px; background: var(--bg2); border-bottom: 1px solid var(--line); align-items: center; padding: 0 14px; gap: 10px; position: sticky; top: 0; z-index: 80; width: 100% }
.m-topbar-logo { display: flex; align-items: center; gap: 7px }
.m-topbar-logo-mark { width: 28px; height: 28px; background: var(--green); border-radius: 7px; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.m-topbar-logo-text { font-family: 'Plus Jakarta Sans',sans-serif; font-size: 16px; font-weight: 800; color: var(--text) }
.m-topbar-logo-text span { color: var(--green) }
.m-topbar-mid { flex: 1; display: flex; flex-direction: column; align-items: center }
.m-topbar-bal-label { font-size: 9px; font-weight: 700; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; line-height: 1 }
.m-topbar-bal-val { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1; margin-top: 1px }
.m-topbar-dep { background: var(--green); color: #050a05; border: none; border-radius: 8px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap }
.m-topbar-auth-group { display: flex; gap: 5px; align-items: center }
.m-topbar-auth-group .btn-ghost-sm { background: var(--soft-3); color: var(--text); border: 1px solid var(--soft-7); border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap }
.m-topbar-menu { width: 34px; height: 34px; background: var(--green-bg); border: 1px solid var(--green-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; position: relative; overflow: hidden }

/* MOBILE CAT TABS */
.m-cattabs { display: none; background: var(--bg2); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; white-space: nowrap; -webkit-overflow-scrolling: touch; position: sticky; top: 56px; z-index: 79 }
.m-cattabs::-webkit-scrollbar { display: none }
.m-cattabs-inner { display: flex; gap: 0; padding: 0 4px }
.m-cattab { display: inline-flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 12px 7px; border: none; background: none; color: var(--text3); font-size: 10px; font-weight: 600; cursor: pointer; font-family: inherit; flex-shrink: 0; border-bottom: 2px solid transparent; transition: all .15s }
.m-cattab.active { color: var(--green); border-bottom-color: var(--green) }
.m-cattab svg { opacity: .5; flex-shrink: 0 }
.m-cattab.active svg { opacity: 1 }
.m-cattab span { white-space: nowrap; max-width: 60px; overflow: hidden; text-overflow: ellipsis }
.m-cattab-live { color: #ff3b30 !important; border-bottom-color: #ff3b30 !important }
.m-cattab-live svg { opacity: 1 !important }

/* MOBILE CARD */
/* Mobile card — usa .ec styles, adiciona margin-bottom */
.mob-card { margin-bottom: 16px }
#mobCards { background: var(--bg); padding: 16px 16px 24px }

/* BOTTOM NAV */
.bnav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(255,255,255,.97); backdrop-filter: blur(20px); border-top: 1px solid var(--soft-5); display: flex; z-index: 90; padding-bottom: env(safe-area-inset-bottom) }
.bnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 0 8px; gap: 4px; border: none; background: none; color: var(--text3); font-size: 10px; font-weight: 600; cursor: pointer; font-family: inherit; position: relative; transition: color .15s }
.bnav-item.active { color: var(--green) }
.bnav-item.active::before { content: ''; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; background: var(--green); border-radius: 0 0 2px 2px }

/* RESPONSIVE */
@media(max-width:899px) {
    body { overflow: auto }
    #root { flex-direction: column; height: auto; overflow: visible }
    .sidebar { display: none }
    .topbar { display: none }
    .header-extra .desktop-cattabs { display: none }
    .header-extra { position: sticky; top: 100px; z-index: 78 }
    .right-panel { display: none }
    #main { height: auto }
    #content-area { flex-direction: column }
    #page-scroll { overflow: visible; padding-top: 0 }
    .banner-outer { padding: 8px 12px 4px }
    #bannerSlider  { display: none !important }
    .banner-dots   { display: none !important }
    #bannerCarousel { display: block !important; height: 130px }
    #bannerLoading { display: none !important }
    .section-wrap { display: none }
    #trendSection { display: none !important }
    .m-topbar  { display: flex }
    .m-cattabs { display: block }
    #mobCards  { display: block }
    .q-options-grid { grid-template-columns: 1fr }
    #pageQuestion { padding: 0 12px 40px }
    body { padding-bottom: 72px }
    .bnav { display: flex }
}

@media(min-width:900px) {
    .sb-mobile-nav-section { display: block }
    .bnav { display: none !important }
    .m-topbar { display: none }
    .m-cattabs { display: none }
    #mobCards { display: none }
}

/* ══ FEED LAYOUT: Fullscreen mobile (Instagram/TikTok style) ══ */
/* Aplicar APENAS em mobile - não afeta desktop */
@media (max-width: 899px) {
    html:has(body[data-layout="feed"]) {
        margin: 0;
        padding: 0;
        height: 100%;
        overflow: hidden;
        scroll-behavior: smooth;
    }
    html:has(body[data-layout="feed"].page-question) {
        overflow: auto;
        -webkit-overflow-scrolling: touch;
    }
    body[data-layout="feed"] {
        margin: 0 !important;
        padding: 0 !important;
        padding-bottom: env(safe-area-inset-bottom);
        height: 100% !important;
        overflow: hidden !important;
    }
    body[data-layout="feed"].page-question {
        overflow: auto !important;
        -webkit-overflow-scrolling: touch;
        height: auto !important;
        min-height: 100%;
    }
}

@media (max-width: 899px) {
    /* Container: entre fake-ticker (top) e bnav (bottom) */
    body[data-layout="feed"] #mobCards {
        position: fixed;
        top: 140px;
        top: calc(140px + env(safe-area-inset-top));
        bottom: 70px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        left: 0;
        right: 0;
        display: flex;
        flex-direction: column;
        overflow-y: auto;
        overflow-x: hidden;
        scroll-snap-type: y mandatory;
        scroll-behavior: smooth;
        -webkit-overflow-scrolling: touch;
        padding: 0 !important;
        z-index: 40;
        background: var(--bg);
    }
    /* Wrapper: display contents = cards viram filhos diretos de #mobCards */
    body[data-layout="feed"] #mobCards > div {
        display: contents;
    }
    /* Container de cards: display contents para cards serem flex children diretos */
    body[data-layout="feed"] #mobCards div:has(> .ec.mob-card) {
        display: contents;
    }
    /* Header de categoria: ocultar (live: 1º filho; all: 1º filho de cada wrapper) */
    body[data-layout="feed"] #mobCards > div:first-child:not(:has(.ec.mob-card)),
    body[data-layout="feed"] #mobCards > div > div:first-child:not(:has(.ec.mob-card)) {
        display: none !important;
    }
    /* Primeiro e todos os itens: sem margin-top */
    body[data-layout="feed"] #mobCards > * {
        margin-top: 0 !important;
    }
    /* Card: fullscreen fixo, altura 100%, background cover */
    body[data-layout="feed"] #mobCards .ec.mob-card,
    body[data-layout="feed"] #mobCards .mob-card {
        position: relative;
        flex: 0 0 100%;
        flex-shrink: 0;
        width: 100%;
        height: 100%;
        min-height: 100%;
        scroll-snap-align: start;
        scroll-snap-stop: always;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
        transition: transform 0.3s ease;
        background: var(--bg2);
        background-size: cover;
        background-position: center;
    }
    /* ec-thumb oculto: background vai no card via JS */
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-thumb,
    body[data-layout="feed"] #mobCards .mob-card .ec-thumb {
        display: none;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card.feed-bg-img .ec-thumb,
    body[data-layout="feed"] #mobCards .mob-card.feed-bg-img .ec-thumb {
        display: none;
    }
    /* Overlay: padrão, cobre card inteiro */
    body[data-layout="feed"] #mobCards .ec.mob-card::before,
    body[data-layout="feed"] #mobCards .mob-card::before {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(0,0,0,0.9),
            rgba(0,0,0,0.4),
            transparent
        );
        z-index: 1;
        pointer-events: none;
    }
    /* Container interno fixo: topo no topo, bottom no fundo */
    body[data-layout="feed"] #mobCards .ec.mob-card .market-inner,
    body[data-layout="feed"] #mobCards .mob-card .market-inner {
        position: absolute;
        inset: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        z-index: 2;
        padding: 16px;
        padding-top: calc(16px + env(safe-area-inset-top));
        padding-bottom: calc(16px + env(safe-area-inset-bottom));
        pointer-events: none;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .market-inner > *,
    body[data-layout="feed"] #mobCards .mob-card .market-inner > * {
        pointer-events: auto;
    }
    /* Topo: título, fav, clock */
    body[data-layout="feed"] #mobCards .ec.mob-card .market-top {
        flex-shrink: 0;
    }
    /* Bottom: percentuais + barra + botões - sempre fixo no fundo */
    body[data-layout="feed"] #mobCards .ec.mob-card .market-bottom,
    body[data-layout="feed"] #mobCards .mob-card .market-bottom {
        display: flex;
        flex-direction: column;
        gap: 10px;
        flex-shrink: 0;
    }
    /* Herdar padding lateral nos blocos */
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-top,
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-info,
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-actions,
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-pct-row,
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-prog,
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-btns {
        padding: 0;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-info .ec-title,
    body[data-layout="feed"] #mobCards .mob-card .ec-title {
        color: #fff !important;
        font-size: 20px !important;
        font-weight: 700 !important;
        margin-bottom: 8px;
        text-shadow: 0 2px 8px rgba(0,0,0,.5);
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-pct-row {
        color: rgba(255,255,255,.95);
        margin-bottom: 6px;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-prog {
        margin-bottom: 12px;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-pct-yes {
        color: #00ff88 !important;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-pct-no {
        color: #ff6b9d !important;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-prog {
        border-radius: 4px;
        overflow: hidden;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-btns,
    body[data-layout="feed"] #mobCards .mob-card .ec-btns {
        display: flex;
        gap: 10px;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-btns .ec-btn,
    body[data-layout="feed"] #mobCards .mob-card .ec-btns .ec-btn {
        flex: 1;
        height: 50px;
        border-radius: 12px;
        font-size: 14px;
        font-weight: 700;
        border: none;
        padding: 0 16px;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-btns .ec-btn-yes {
        background: linear-gradient(135deg, #00c853, #00ff88);
        color: #fff !important;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-btns .ec-btn-no {
        background: linear-gradient(135deg, #8e24aa, #d81b60);
        color: #fff !important;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-returns {
        display: none;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-actions {
        color: #fff;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-actions .ec-action-btn {
        color: rgba(255,255,255,.9);
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-action-btn:hover {
        color: #fff !important;
    }
    body[data-layout="feed"] #mobCards .ec.mob-card .ec-fav.active .ec-fav-icon {
        stroke: #00ff88;
        fill: #00ff88;
    }
    /* Ocultar elementos extras no feed mobile */
    body[data-layout="feed"] .banner-outer { display: none !important; }
    /* Fake-ticker: grudado abaixo do header */
    body[data-layout="feed"] .fake-ticker {
        position: fixed;
        top: 100px;
        top: calc(100px + env(safe-area-inset-top));
        left: 0;
        right: 0;
        height: 40px;
        padding: 0;
        margin: 0;
        z-index: 45;
        overflow: hidden;
        background: var(--bg2);
        border-top: 1px solid var(--line);
        border-bottom: 1px solid var(--line);
        display: block !important;
        line-height: 40px;
    }
    body[data-layout="feed"] .fake-ticker-track {
        display: flex;
        align-items: center;
        height: 100%;
        animation: tickerScroll 22s linear infinite;
    }
    body[data-layout="feed"] .header-extra { position: static; min-height: 0 }
    body[data-layout="feed"] .m-cattabs { z-index: 85; }
    body[data-layout="feed"] .m-topbar { z-index: 86; }
    body[data-layout="feed"] .bnav { z-index: 87; }
}


/* ══ Question detail: full-width layout ══ */
body.page-question #pageQuestion { padding: 0 24px 80px }

/* Feed + question: header e menu fixos, página da notícia abaixo do fake-ticker, scroll normal */
@media (max-width: 899px) {
    body[data-layout="feed"].page-question .m-topbar {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 86;
    }
    body[data-layout="feed"].page-question .m-cattabs {
        position: fixed;
        top: 56px;
        left: 0;
        right: 0;
        z-index: 85;
    }
    body[data-layout="feed"].page-question .bnav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 87;
    }
    body[data-layout="feed"].page-question #pageQuestion {
        padding-top: 140px;
        padding-top: calc(140px + env(safe-area-inset-top));
        padding-bottom: 90px;
        padding-bottom: calc(90px + env(safe-area-inset-bottom));
    }
}

/* Trendzbr-style detail: full-width options rows */
.qd-opts-wrap { margin-bottom: 24px }

.qd-opt-full-row {
    display: flex; align-items: center; gap: 16px;
    padding: 16px 0; cursor: pointer; transition: background .12s;
    border-bottom: 1px solid var(--soft-4)
}
.qd-opt-full-row:last-child { border-bottom: none }
.qd-opt-full-row:hover { background: var(--soft-1); border-radius: 8px; padding-left: 8px; padding-right: 8px; margin: 0 -8px }

/* Countdown timer */
.qd-countdown {
    display: flex; flex-direction: column; align-items: center;
    padding: 20px 0 8px; text-align: center;
    border: 1px solid var(--soft-5);
    border-radius: 12px;
    margin-top: 10px;
}
.qd-countdown-label { font-size: 11px; color: var(--text3); margin-bottom: 10px }
.qd-countdown-blocks { display: flex; align-items: center; gap: 8px }
.qd-countdown-block { text-align: center }
.qd-countdown-num {
    font-family: 'Plus Jakarta Sans',sans-serif; font-size: 28px; font-weight: 800;
    color: var(--text); line-height: 1; min-width: 50px
}
.qd-countdown-sep { font-size: 24px; font-weight: 800; color: var(--text3); line-height: 1; margin-bottom: 8px }
.qd-countdown-unit { font-size: 9px; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: .8px; margin-top: 4px }

/* Rules section */
.qd-rules {
    padding: 20px 0 16px;
    border-top: 1px solid var(--soft-4)
}
.qd-rules-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; font-family: 'Plus Jakarta Sans',sans-serif }
.qd-rules-text { font-size: 13px; color: var(--text3); line-height: 1.65; max-width: 900px }
.qd-rules-toggle {
    display: flex; align-items: center; gap: 5px;
    font-size: 12px; color: var(--text2); font-weight: 600;
    cursor: pointer; margin-top: 8px; width: fit-content;
    background: none; border: none; font-family: inherit; padding: 0
}
.qd-rules-toggle:hover { color: var(--text) }

/* ══ Rodovia (Over/Under ao vivo) ══ */
.qd-rodovia-block {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 16px;
    background: var(--soft-2);
    aspect-ratio: 16/9;
    min-height: 180px;
}
.qd-rodovia-video {
    position: absolute;
    inset: 0;
    background: #0a0a0b;
    border-radius: inherit;
}
.qd-rodovia-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: var(--text3);
    font-size: 12px;
}
.qd-rodovia-placeholder svg { opacity: .5 }
.qd-rodovia-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 6px 12px;
    background: linear-gradient(180deg, rgba(0,0,0,.7) 0%, transparent 100%);
    pointer-events: none;
}
.qd-rodovia-overlay--avenida {
    align-content: flex-start;
}
.qd-avenida-livebar {
    flex: 1 1 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: #fff;
    text-transform: uppercase;
}
.qd-avenida-livebar strong {
    font-weight: 800;
    color: var(--am);
    letter-spacing: .04em;
    max-width: 55%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.qd-avenida-rec {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255,59,48,.35);
    animation: qdAvenRec 1.2s ease-in-out infinite;
}
@keyframes qdAvenRec {
    50% { opacity: .45; transform: scale(.92); }
}
.qd-avenida-status-pill {
    flex: 1 1 100%;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    color: #fff;
    text-transform: uppercase;
    padding: 4px 8px;
    border-radius: 8px;
    background: rgba(0,0,0,.25);
}
.qd-avenida-status--open { color: #86efac !important; }
.qd-avenida-status--locked { color: #fde047 !important; }
.qd-avenida-status--wait { color: #cbd5e1 !important; }
.qd-avenida-status--neutral { color: #e2e8f0 !important; }
.qd-avenida-timers {
    flex: 1 1 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 4px;
}
.qd-avenida-timer-line {
    background: rgba(0,0,0,.35);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qd-avenida-timer-line span:first-child {
    font-size: 9px;
    font-weight: 700;
    letter-spacing: .06em;
    color: rgba(255,255,255,.75);
    text-transform: uppercase;
}
.qd-avenida-timer-line strong {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--am);
}
.qd-pick-grid--avenida .qd-pick-card.disabled {
    opacity: .45;
    pointer-events: none;
}
.qd-avenida-hint {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: 12px;
    background: #ffffff0d;
    margin-bottom: 12px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--text2);
}
.qd-avenida-hint-ic { font-size: 22px; line-height: 1 }
.qd-avenida-history-wrap {
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--soft-2);
    border: 1px solid var(--line);
}
.qd-avenida-hist-title {
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--text3);
    margin-bottom: 8px;
}
.qd-avenida-hist-list {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 12px;
    color: var(--text2);
}
.qd-avenida-hist-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: baseline;
    padding: 6px 0;
    border-bottom: 1px solid var(--line);
}
.qd-avenida-hist-list li:last-child { border-bottom: none }
.qd-avenida-hist-list strong { color: var(--green); font-weight: 700 }
.qd-avenida-hist-list li.avenida-hist-over {
    border-left: 3px solid #22c55e;
    padding-left: 10px;
}
.qd-avenida-hist-list li.avenida-hist-under {
    border-left: 3px solid #ef4444;
    padding-left: 10px;
}
.qd-avenida-hist-list li.avenida-hist-under .avenida-hist-count { color: #f87171 !important; }
.qd-avenida-hist-list li.avenida-hist-over .avenida-hist-count { color: #4ade80 !important; }
.avenida-hist-tag {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    padding: 2px 6px;
    border-radius: 4px;
    background: rgba(255,255,255,.08);
}
.avenida-hist-over .avenida-hist-tag { color: #86efac; }
.avenida-hist-under .avenida-hist-tag { color: #fca5a5; }
.avenida-hist-meta { font-size: 11px; color: var(--text3); }

.qd-avenida-lockbar {
    display: none;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(90deg, rgba(250, 204, 21, 0.22), rgba(234, 179, 8, 0.12));
    border: 1px solid rgba(250, 204, 21, 0.45);
    color: #fef08a;
    box-sizing: border-box;
}
.qd-avenida-lockbar-ic { font-size: 20px; line-height: 1.2; flex-shrink: 0 }
.qd-avenida-lockbar-text { display: flex; flex-direction: column; gap: 4px; min-width: 0 }
.qd-avenida-lockbar-text strong { font-size: 13px; color: #fef9c3 }
.qd-avenida-lockbar-sub { font-size: 12px; color: rgba(254, 249, 195, 0.85); line-height: 1.35 }

.qd-pick-grid--avenida .qd-avenida-voltrack {
    height: 6px;
    width: 100%;
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    overflow: hidden;
    margin: 8px 0 4px;
}
.qd-pick-grid--avenida .qd-avenida-volfill {
    height: 100%;
    border-radius: 999px;
    transition: width 0.35s ease;
}
.qd-pick-grid--avenida .qd-avenida-volfill--yes { background: linear-gradient(90deg, #22c55e, #4ade80); }
.qd-pick-grid--avenida .qd-avenida-volfill--no { background: linear-gradient(90deg, #ef4444, #f87171); }

.qd-avenida-hist-dd-head {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 10px;
}
.qd-avenida-hist-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--bg);
    color: var(--text);
    font-size: 13px;
    font-weight: 600;
}
.qd-avenida-hist-detail {
    font-size: 12px;
    line-height: 1.45;
    color: var(--text2);
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(0,0,0,.15);
    border: 1px solid var(--line);
}
.qd-avenida-hist-detail.avenida-hist-detail--over { border-left: 3px solid #22c55e; }
.qd-avenida-hist-detail.avenida-hist-detail--under { border-left: 3px solid #ef4444; }
.qd-rodovia-count {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.qd-rodovia-count strong { color: var(--green) }
.qd-rodovia-timer {
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.qd-rodovia-timer span { color: var(--am) }

/* ══ Avenida / Palpity-style market detail ══ */
.pageQuestion--avenida-pro .qd-header {
    display: none;
}
.pageQuestion--avenida-pro .qd-back-row {
    padding-bottom: 8px;
}
.pageQuestion--avenida-pro #qdOptionsGrid {
    max-width: 1100px;
    margin-left: auto;
    margin-right: auto;
}

.qd-avenida-pro-head {
    margin-bottom: 14px;
    padding: 16px 18px;
    border-radius: 14px;
    background: linear-gradient(180deg, #1c1c1f 0%, #141416 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}
.qd-ap-head-grid {
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 16px 20px;
    align-items: center;
}
.qd-ap-title {
    margin: 0 0 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(15px, 2.8vw, 18px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
}
.qd-ap-subrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}
.qd-ap-live {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fef08a;
    background: rgba(234, 179, 8, 0.14);
    border: 1px solid rgba(250, 204, 21, 0.35);
}
.qd-ap-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #facc15;
    box-shadow: 0 0 0 3px rgba(250, 204, 21, 0.35);
    animation: qdAvenRec 1.2s ease-in-out infinite;
}
.pageQuestion--avenida-pro .qd-ap-subrow .qd-avenida-status-pill {
    flex: 0 1 auto;
    width: auto;
    text-align: center;
    padding: 5px 10px;
    border-radius: 8px;
    font-size: 9px;
}
.qd-ap-round-box {
    text-align: center;
    min-width: 88px;
}
.qd-ap-round-lbl {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 4px;
}
.qd-ap-round-digits {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 5vw, 34px);
    line-height: 1;
    color: #ff4d4d;
    text-shadow: 0 0 24px rgba(255, 77, 77, 0.35);
}
.qd-ap-d-gap {
    width: 6px;
    height: 4px;
    border-radius: 1px;
    background: rgba(255, 77, 77, 0.45);
    align-self: center;
}
.qd-ap-round-units {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text3);
}
.qd-ap-ultimos-box {
    min-width: 0;
}
.qd-ap-ultimos-lbl {
    display: block;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text3);
    margin-bottom: 8px;
}
.qd-ap-bubbles {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}
.qd-ap-bubble {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.35);
}
.qd-ap-bubble--over {
    color: #4ade80;
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(34, 197, 94, 0.12);
}
.qd-ap-bubble--under {
    color: #f87171;
    border-color: rgba(248, 113, 113, 0.45);
    background: rgba(239, 68, 68, 0.12);
}
.qd-ap-bubble--neutral {
    color: var(--text3);
}

.qd-rodovia-block--palp {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.qd-rodovia-block--palp .qd-rodovia-video::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 100px rgba(0, 0, 0, 0.55), inset 0 0 160px rgba(0, 0, 0, 0.35);
}
.qd-rodovia-overlay--palp {
    padding: 0;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    background: none;
}
.qd-palp-overlay-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 14px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.82) 0%, transparent 100%);
}
.qd-palp-count-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.qd-palp-count-label {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}
.qd-palp-count-num {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(36px, 10vw, 52px);
    font-weight: 800;
    line-height: 1;
    color: #fbbf24;
    text-shadow: 0 2px 20px rgba(251, 191, 36, 0.45);
}
.qd-palp-bet-col {
    text-align: right;
    min-width: 0;
    max-width: 58%;
}
.qd-palp-bet-open {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.qd-palp-bet-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}
.qd-palp-bet-mmss {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(20px, 4.5vw, 26px);
    font-weight: 800;
    color: #ff5c5c;
    text-shadow: 0 0 18px rgba(255, 80, 80, 0.4);
    letter-spacing: 0.02em;
}
.qd-palp-bet-closed {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff6b6b;
}
.qd-palp-cam-foot {
    padding: 8px 14px 10px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.75) 0%, transparent 100%);
}
.qd-palp-cam-foot span {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

.qd-pick-grid--palp {
    gap: 10px;
    margin-top: 12px;
}
.qd-pick-card--palp.qd-pick-card.yes {
    background: linear-gradient(165deg, #14532d 0%, #166534 45%, #15803d 100%);
    border-color: rgba(74, 222, 128, 0.35);
    color: #ecfdf5;
}
.qd-pick-card--palp.qd-pick-card.yes:hover:not(:disabled) {
    background: linear-gradient(165deg, #166534 0%, #15803d 50%, #16a34a 100%);
    border-color: rgba(134, 239, 172, 0.5);
}
.qd-pick-card--palp.qd-pick-card.no {
    background: linear-gradient(165deg, #7f1d1d 0%, #991b1b 45%, #b91c1c 100%);
    border-color: rgba(248, 113, 113, 0.4);
    color: #fef2f2;
}
.qd-pick-card--palp.qd-pick-card.no:hover:not(:disabled) {
    background: linear-gradient(165deg, #991b1b 0%, #b91c1c 50%, #dc2626 100%);
    border-color: rgba(252, 165, 165, 0.55);
}
.qd-pick-card--palp .qd-pick-badge.yes { color: #bbf7d0; }
.qd-pick-card--palp .qd-pick-badge.no { color: #fecaca; }
.qd-pick-card--palp .qd-pick-odds.yes { color: #86efac; }
.qd-pick-card--palp .qd-pick-odds.no { color: #fca5a5; }
.qd-pick-card--palp .qd-pick-pct { color: rgba(255, 255, 255, 0.88); }
.qd-pick-card--palp .qd-pick-return { color: rgba(255, 255, 255, 0.55); }
.qd-pick-card--palp.qd-pick-card.disabled,
.qd-pick-card--palp.qd-pick-card:disabled {
    opacity: 0.42;
    filter: grayscale(0.15);
}

.pageQuestion--avenida-pro .qd-avenida-hint {
    background: #1a1a1d;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    color: var(--text2);
}
.pageQuestion--avenida-pro .qd-avenida-history-wrap {
    background: #161618;
    border-color: rgba(255, 255, 255, 0.08);
}
.pageQuestion--avenida-pro .qd-rules {
    border-top-color: rgba(255, 255, 255, 0.08);
}
.pageQuestion--avenida-pro .qd-avenida-lockbar {
    border-radius: 12px;
}

/* Livro de ofertas (Avenida) */
.qd-avenida-orderbook {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #121214;
    border: 1px solid rgba(255, 255, 255, 0.07);
}
.qd-ob-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(41, 121, 255, 0.35);
}
.qd-ob-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
}
.qd-ob-meta {
    font-size: 11px;
    color: var(--text3);
}
.qd-ob-meta strong {
    color: var(--text2);
    font-weight: 700;
}
.qd-ob-levels {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.qd-ob-row {
    position: relative;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 8px;
    overflow: hidden;
    font-size: 12px;
    font-weight: 600;
}
.qd-ob-depth {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    opacity: 0.22;
    pointer-events: none;
    border-radius: 8px;
}
.qd-ob-row--over .qd-ob-depth {
    background: linear-gradient(90deg, #14532d, #166534);
}
.qd-ob-row--under .qd-ob-depth {
    background: linear-gradient(90deg, #7f1d1d, #991b1b);
}
.qd-ob-row--over {
    color: #bbf7d0;
}
.qd-ob-row--under {
    color: #fecaca;
}
.qd-ob-side {
    position: relative;
    z-index: 1;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    opacity: 0.9;
}
.qd-ob-odds,
.qd-ob-vol {
    position: relative;
    z-index: 1;
}
.qd-ob-vol {
    text-align: right;
    color: var(--text);
}
.qd-ob-empty {
    font-size: 12px;
    color: var(--text3);
    line-height: 1.5;
    padding: 6px 0;
}
.qd-ob-tape-hdr {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text3);
    margin: 14px 0 8px;
}
.qd-ob-tape-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.qd-ob-tape {
    font-size: 11px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.qd-ob-tape--over {
    color: #86efac;
}
.qd-ob-tape--under {
    color: #fca5a5;
}
.qd-ob-tape-ic {
    font-weight: 800;
    margin-right: 4px;
}

@media (max-width: 720px) {
    .qd-ap-head-grid {
        grid-template-columns: 1fr;
        text-align: left;
    }
    .qd-ap-round-box {
        text-align: left;
    }
    .qd-ap-round-digits {
        justify-content: flex-start;
    }
    .qd-ap-round-units {
        justify-content: flex-start;
        gap: 24px;
    }
    .qd-palp-bet-col {
        max-width: 100%;
        text-align: left;
    }
    .qd-palp-bet-open {
        align-items: flex-start;
    }
}

/* ══ Question detail big progress section ══ */
.qd-big-section {
    background: #ffffff0d;
    border-radius: 12px;
    padding: 20px 22px 16px;
    margin-bottom: 0
}
.qd-big-labels {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 8px
}
.qd-big-label {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px
}
.qd-big-label.yes { color: var(--green) }
.qd-big-label.no  { color: var(--red) }
.qd-big-pct {
    font-family: 'Plus Jakarta Sans',sans-serif; font-size: 22px; font-weight: 800; color: var(--text);
    margin: 0 6px
}
.qd-big-chance { font-size: 11px; color: var(--text3) }
.qd-full-prog {
    height: 8px; display: flex; border-radius: 4px; overflow: hidden;
    gap: 2px
}
.qd-full-prog-yes { background: var(--green); border-radius: 4px 0 0 4px; transition: width .5s }
.qd-full-prog-no  { background: var(--red);   border-radius: 0 4px 4px 0 }

.qd-description-card {
    margin-top: 14px;
    padding: 18px 20px;
    border: 1px solid var(--soft-5);
    border-radius: 12px;
    background: var(--soft-1)
}
.qd-description-title {
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 8px
}
.qd-description-text {
    font-size: 13px;
    line-height: 1.7;
    color: var(--text2);
    white-space: pre-wrap
}

.qd-pick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px
}
.qd-pick-card {
    border: 1px solid var(--soft-7);
    border-radius: 12px;
    background: var(--soft-1);
    padding: 16px;
    text-align: left;
    cursor: pointer;
    transition: border-color .15s, background .15s, transform .15s;
    color: var(--text)
}
.qd-pick-card:hover {
    background: var(--soft-3);
    transform: translateY(-1px)
}
.qd-pick-card:disabled,
.qd-pick-card.disabled {
    opacity: .5;
    cursor: not-allowed;
    transform: none
}
.qd-pick-card.yes.active {
    border-color: var(--green-border);
    background: var(--green-bg)
}
.qd-pick-card.no.active {
    border-color: var(--red-border);
    background: var(--red-bg)
}
.qd-pick-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px
}
.qd-pick-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .4px
}
.qd-pick-badge.yes { color: var(--green) }
.qd-pick-badge.no { color: var(--red) }
.qd-pick-odds {
    font-family: 'Plus Jakarta Sans',sans-serif;
    font-size: 24px;
    font-weight: 800
}
.qd-pick-odds.yes { color: var(--green) }
.qd-pick-odds.no { color: var(--red) }
.qd-pick-pct {
    font-size: 13px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 6px
}
.qd-pick-return {
    font-size: 12px;
    line-height: 1.6;
    color: var(--text3)
}
.qd-ended-note {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--soft-7);
    background: var(--soft-2);
    font-size: 12px;
    color: var(--text2)
}

/* ═══ ODDS CHART ═══ */
.qd-chart-wrap {
    background: var(--soft-1);
    border: 1px solid var(--soft-5);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: opacity .3s;
}
.qd-chart-wrap canvas {
    transition: opacity .2s;
}
.qd-chart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}
.qd-chart-legend {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.qd-chart-legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text2);
}
.qd-chart-legend-item strong {
    color: var(--text);
    font-weight: 700;
}
.qd-chart-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.qd-chart-dot.yes { background: var(--green) }
.qd-chart-dot.no { background: var(--red) }
.qd-chart-container {
    position: relative;
    height: 220px;
    margin-bottom: 14px;
}
.qd-chart-periods {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.qd-chart-period {
    padding: 5px 14px;
    border-radius: 20px;
    border: 1px solid var(--soft-7);
    background: transparent;
    color: var(--text3);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
    transition: all .25s ease;
    position: relative;
    overflow: hidden;
}
.qd-chart-period:hover {
    background: var(--soft-3);
    color: var(--text2);
    border-color: var(--soft-9);
    transform: translateY(-1px);
}
.qd-chart-period:active {
    transform: scale(.95);
}
.qd-chart-period.active {
    background: var(--green);
    color: #fff;
    border-color: var(--green);
    box-shadow: 0 2px 8px rgba(0,200,83,.3);
}

.qd-back-row { padding: 16px 24px 12px }
.qd-header { padding: 0 24px 20px }
#qdOptionsGrid { padding: 0 24px }
#qdActivity { padding: 0 24px }

@media (max-width: 899px) {
    .qd-pick-grid { grid-template-columns: 1fr }
    .qd-chart-container { height: 180px }
}

/* ═══ LEADERBOARD ═══ */
.lb-header { margin-bottom: 20px }
.lb-title-row { display: flex; align-items: center; gap: 14px }
.lb-icon-wrap {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(34,197,94,.10); border: 1px solid rgba(34,197,94,.18);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.lb-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; margin: 0; color: var(--text) }
.lb-subtitle { font-size: 13px; color: var(--text3); margin: 2px 0 0 }
.lb-tabs {
    display: flex; gap: 6px; margin-bottom: 22px;
    background: var(--soft-2); border-radius: 12px; padding: 4px;
}
.lb-tab {
    flex: 1; padding: 9px 0; border: none; background: transparent;
    font-family: inherit; font-size: 13px; font-weight: 600;
    color: var(--text3); border-radius: 9px; cursor: pointer;
    transition: all .25s ease;
}
.lb-tab:hover { color: var(--text2); background: var(--soft-3) }
.lb-tab.active {
    background: var(--green); color: #fff;
    box-shadow: 0 2px 8px rgba(34,197,94,.3);
}
.lb-empty {
    text-align: center; padding: 40px 16px;
    color: var(--text3); font-size: 14px;
}

/* Podium */
.lb-podium {
    display: flex; align-items: flex-end; justify-content: center;
    gap: 12px; margin-bottom: 24px; padding: 10px 0 0;
}
.lb-podium-item {
    display: flex; flex-direction: column; align-items: center;
    flex: 1; max-width: 160px;
    animation: lbSlideUp .6s ease both;
}
@keyframes lbSlideUp {
    from { opacity: 0; transform: translateY(30px) }
    to { opacity: 1; transform: translateY(0) }
}
.lb-podium-avatar-wrap { position: relative; margin-bottom: 10px }
.lb-avatar {
    width: 52px; height: 52px; border-radius: 50%;
    object-fit: cover; border: 3px solid var(--soft-7);
}
.lb-podium-1 .lb-avatar { width: 64px; height: 64px; border-color: #FFD700; box-shadow: 0 0 16px rgba(255,215,0,.35) }
.lb-podium-2 .lb-avatar { border-color: #C0C0C0; box-shadow: 0 0 12px rgba(192,192,192,.3) }
.lb-podium-3 .lb-avatar { border-color: #CD7F32; box-shadow: 0 0 12px rgba(205,127,50,.3) }
.lb-avatar-letter {
    display: flex; align-items: center; justify-content: center;
    font-size: 20px; font-weight: 700; color: #fff;
}
.lb-podium-1 .lb-avatar-letter { font-size: 24px }
.lb-podium-medal {
    position: absolute; bottom: -4px; right: -4px;
    font-size: 18px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.3));
}
.lb-podium-name {
    font-size: 13px; font-weight: 700; color: var(--text);
    text-align: center; max-width: 120px; overflow: hidden;
    text-overflow: ellipsis; white-space: nowrap; margin-bottom: 3px;
}
.lb-podium-metric {
    font-size: 15px; font-weight: 800;
    font-family: 'Plus Jakarta Sans', sans-serif;
    margin-bottom: 2px;
}
.lb-positive { color: var(--green) }
.lb-negative { color: var(--red) }
.lb-podium-sub { font-size: 11px; color: var(--text3); margin-bottom: 8px }
.lb-podium-bar-wrap {
    width: 100%; display: flex; flex-direction: column; align-items: center;
}
.lb-podium-bar {
    width: 100%; border-radius: 8px 8px 0 0;
    transition: height .6s cubic-bezier(.34,1.56,.64,1);
}
.lb-podium-1 .lb-podium-bar { background: linear-gradient(180deg, #FFD700, #FFA000) }
.lb-podium-2 .lb-podium-bar { background: linear-gradient(180deg, #E0E0E0, #9E9E9E) }
.lb-podium-3 .lb-podium-bar { background: linear-gradient(180deg, #CD7F32, #8B4513) }
.lb-podium-place {
    font-size: 14px; font-weight: 800; color: #fff;
    margin-top: -28px; text-shadow: 0 1px 3px rgba(0,0,0,.3);
}

/* List */
.lb-list { display: flex; flex-direction: column; gap: 2px }
.lb-row {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 14px; border-radius: 12px;
    background: var(--soft-1); border: 1px solid transparent;
    transition: all .2s ease;
    animation: lbFadeIn .4s ease both;
}
@keyframes lbFadeIn {
    from { opacity: 0; transform: translateX(-10px) }
    to { opacity: 1; transform: translateX(0) }
}
.lb-row:hover { border-color: var(--soft-7); background: var(--soft-2) }
.lb-row.lb-me { background: rgba(34,197,94,.06); border-color: rgba(34,197,94,.2) }
.lb-row-rank {
    width: 28px; text-align: center;
    font-size: 14px; font-weight: 700; color: var(--text3);
    flex-shrink: 0;
}
.lb-row-avatar .lb-avatar { width: 38px; height: 38px; border-width: 2px }
.lb-row-avatar .lb-avatar-letter { font-size: 15px }
.lb-row-info { flex: 1; min-width: 0 }
.lb-row-name {
    font-size: 13.5px; font-weight: 700; color: var(--text);
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.lb-you-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    background: var(--green); color: #fff; padding: 1px 6px;
    border-radius: 4px; margin-left: 6px; vertical-align: middle;
}
.lb-row-sub { font-size: 11.5px; color: var(--text3); margin-top: 2px }
.lb-row-metric {
    font-size: 14px; font-weight: 800; flex-shrink: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.lb-medal { font-size: 22px }
.lb-rank-num {
    font-size: 16px; font-weight: 800; color: var(--text3);
}

@media (max-width: 600px) {
    .lb-podium { gap: 8px }
    .lb-podium-item { max-width: 120px }
    .lb-avatar { width: 44px; height: 44px }
    .lb-podium-1 .lb-avatar { width: 54px; height: 54px }
    .lb-podium-metric { font-size: 13px }
    .lb-podium-name { font-size: 12px }
    .lb-row { padding: 10px 12px; gap: 10px }
    .lb-row-avatar .lb-avatar { width: 34px; height: 34px }
    .lb-row-metric { font-size: 12.5px }
}

/* ═══ MULTI-CHOICE CARDS ═══ */
.ec-multi-opts { display: flex; flex-direction: column; gap: 6px; padding: 0 12px 10px }
.ec-multi-opt {
    display: flex; align-items: center; gap: 8px;
    font-size: 12.5px; color: var(--text2);
}
.ec-multi-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0 }
.ec-multi-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: var(--text) }
.ec-multi-pct { font-weight: 800; font-size: 12px; flex-shrink: 0 }
.ec-multi-odds { font-size: 11px; color: var(--text3); flex-shrink: 0 }
.ec-multi-more { font-size: 11px; color: var(--text3); text-align: center; padding: 2px 0 }

/* ═══ MULTI-CHOICE DETAIL — previsao.io style ═══ */
.qd-multi-section { margin-bottom: 16px }
.qd-multi-list { display: flex; flex-direction: column; gap: 12px }
.qd-multi-winner-badge {
    display: inline-block; font-size: 10px; font-weight: 700;
    background: var(--green); color: #fff; padding: 2px 8px;
    border-radius: 4px; margin-left: 6px; vertical-align: middle;
}

.qd-mopt-card {
    background: var(--soft-1); border: 1px solid var(--soft-5);
    border-radius: 14px; padding: 18px 20px 14px;
    transition: all .25s ease;
    animation: lbFadeIn .4s ease both;
}
.qd-mopt-card:hover { border-color: var(--soft-7); background: var(--soft-2) }
.qd-mopt-card.winner { border-color: var(--green); background: rgba(34,197,94,.06) }
.qd-mopt-card.lost { opacity: .45 }

.qd-mopt-top {
    display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.qd-mopt-thumb {
    width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
    flex-shrink: 0; background: var(--soft-3);
    display: flex; align-items: center; justify-content: center;
}
.qd-mopt-thumb img {
    width: 100%; height: 100%; object-fit: cover; border-radius: 50%;
}
.qd-mopt-dot { width: 28px; height: 28px; border-radius: 50% }
.qd-mopt-name {
    flex: 1; font-size: 15px; font-weight: 700; color: var(--text);
    min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.qd-mopt-pct-ring {
    position: relative; width: 56px; height: 56px; flex-shrink: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.qd-mopt-ring-svg {
    position: absolute; inset: 0; width: 100%; height: 100%;
    transform: rotate(-90deg);
}
.qd-mopt-pct-val {
    font-size: 16px; font-weight: 800; color: var(--text); line-height: 1;
}
.qd-mopt-pct-label {
    font-size: 9px; color: var(--text3); text-transform: lowercase; margin-top: 1px;
}

.qd-mopt-btns {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
}
.qd-mopt-btn {
    padding: 12px 8px; border-radius: 10px; border: none;
    font-family: inherit; font-size: 14px; font-weight: 700;
    cursor: pointer; transition: all .2s ease; text-align: center;
}
.qd-mopt-btn.yes {
    background: var(--green, #22c55e); color: #fff;
}
.qd-mopt-btn.no {
    background: #ef4444; color: #fff;
}
.qd-mopt-btn:hover { filter: brightness(1.1); transform: translateY(-1px) }
.qd-mopt-btn:active { transform: scale(.97) }

@media (max-width: 600px) {
    .qd-mopt-card { padding: 14px 14px 12px }
    .qd-mopt-thumb { width: 38px; height: 38px }
    .qd-mopt-name { font-size: 14px }
    .qd-mopt-pct-ring { width: 48px; height: 48px }
    .qd-mopt-pct-val { font-size: 14px }
    .qd-mopt-btn { padding: 10px 6px; font-size: 13px }
}
