/* ═══════════════════════════════════════════════════════════
   RESET & VARIABLES — Trendzbr style
   Base visual GatGreen: white labels devem copiar app.css/app.js deste site.
═══════════════════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0 }

:root {
    --bg:      #ffffff;
    --bg2:     #f5f5f5;
    --card:    rgba(0,0,0,.03);
    --primary: #22c55e;
    --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:        #22c55e;
    --green-bg:     rgba(34,197,94,.12);
    --green-border: rgba(34,197,94,.28);
    --green-soft:   rgba(34,197,94,.12);
    --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:         14px;
    --r2:        10px;
    --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:      #090a0c;
    --bg2:     #0f1117;
    --card:    rgba(255,255,255,.03);
    --card2:   rgba(255,255,255,.05);
    --card3:   rgba(255,255,255,.08);
    --line:    rgba(255,255,255,.07);
    --line2:   rgba(255,255,255,.12);
    --text:    #f4f4f5;
    --text2:   #a1a1aa;
    --text3:   #71717a;
    --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: #22c55e;
    --green: #22c55e;
}

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(12, 13, 18, 0.92);
    border-top-color: rgba(255, 255, 255, 0.08);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
}

/* GatGreen base — profundidade e shell (tema escuro) */
body[data-theme="dark"] {
    background: radial-gradient(ellipse 100% 52% at 50% -14%, rgba(34, 197, 94, 0.08), transparent 50%),
        linear-gradient(180deg, #090a0c 0%, #060708 55%);
}
[data-theme="dark"] .sidebar {
    background: rgba(15, 17, 23, 0.94);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 8px 0 40px rgba(0, 0, 0, 0.35);
}
[data-theme="dark"] .topbar {
    background: #161616;
    backdrop-filter: blur(16px) saturate(1.15);
    -webkit-backdrop-filter: blur(16px) saturate(1.15);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .header-extra {
    --header-extra-bg: #161616;
    border-bottom-color: rgba(255, 255, 255, 0.07);
}
[data-theme="dark"] .topbar-search input:focus {
    border-color: rgba(34, 197, 94, 0.45);
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.12);
}
[data-theme="dark"] .topbar-deposit-btn,
[data-theme="dark"] .m-topbar-dep {
    box-shadow: 0 2px 14px rgba(34, 197, 94, 0.22);
    border-radius: 10px;
}
[data-theme="dark"] .m-topbar {
    background: #161616;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom-color: rgba(255, 255, 255, 0.07);
}

/* ═══ 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-thumb .ec-thumb-icon--btc {
    background: linear-gradient(145deg, #ffb347 0%, #f7931a 48%, #c45d0f 100%);
    font-size: clamp(36px, 11vw, 52px);
    font-weight: 800;
    color: #fff;
}
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 }

/* Rodapé fixo no desktop: altura reservada em #content-area para o scroll não ir por baixo */
:root {
    --site-footer-fixed-h: 260px;
}

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

/* Menu lateral desligado — navegação principal no rodapé (.bnav) */
.sidebar { display: none !important; }

/* Estilos legados da sidebar (DOM mantido para IDs / JS) */
.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 }

.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 (inativo com sidebar oculta) ══ */
.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 */
/* min-height: 0 — obrigatório para a coluna central rolar e o rodapé ficar embaixo, sem sobrepor */
#main { flex: 1; display: flex; flex-direction: column; overflow: hidden; min-width: 0; min-height: 0; transition: none }

/* TOPBAR — 3 colunas: marca | busca (centro) | ações */
.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) }
.topbar-brand {
    grid-column: 1;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    justify-self: start;
    align-self: center;
    padding: 4px 10px 4px 0;
    margin-left: -4px;
    border-radius: 10px;
    transition: background .15s ease;
    min-width: 0;
}
.topbar-brand:hover { background: var(--soft-4); }
.topbar-brand:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }
.topbar-brand-img { max-height: 28px; max-width: 132px; object-fit: contain; display: block; flex-shrink: 0; }
.topbar-brand-mark {
    width: 28px;
    height: 28px;
    border-radius: 7px;
    background: var(--green);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.topbar-brand-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 160px;
}
.topbar-brand-name2 { color: var(--green); font-weight: 800; }
.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 — faixa do ticker (abaixo do topbar) */
.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: none;
    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; min-height: 0; min-width: 0 }
#page-scroll {
    flex: 1; overflow-y: auto; overflow-x: hidden;
    min-width: 0;
    min-height: 0;
    padding-bottom: calc(40px + 56px + env(safe-area-inset-bottom, 0px));
    scrollbar-width: none  /* Firefox */
}
#page-scroll::-webkit-scrollbar { display: none }  /* Chrome/Safari */

/* ── Rodapé desktop (referência editorial) — oculto temporariamente ── */
.site-footer {
    display: none !important;
    flex-shrink: 0;
    width: 100%;
    min-width: 0;
    margin-top: 0;
    position: relative;
    z-index: 0;
    background: var(--site-footer-bg, #121212);
    border-top: 1px solid var(--soft-5);
    color: var(--text2);
    font-size: 13px;
    box-sizing: border-box;
}
.site-footer-inner {
    max-width: none;
    width: 100%;
    margin: 0 auto;
    padding: 40px clamp(20px, 4vw, 48px) 28px;
    display: grid;
    grid-template-columns: minmax(160px, 1.1fr) repeat(4, minmax(0, 1fr));
    gap: 32px 28px;
    align-items: start;
}
.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}
.site-footer-logo {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: contain;
    flex-shrink: 0;
}
.site-footer-logo-mark {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    flex-shrink: 0;
}
.site-footer-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 18px;
    font-weight: 800;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1.2;
}
.site-footer-name-accent { color: var(--green); }
.site-footer-col { min-width: 0; }
.site-footer-h {
    margin: 0 0 14px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: var(--text);
    text-transform: none;
    letter-spacing: 0.02em;
}
.site-footer-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.site-footer-links a {
    color: var(--text2);
    font-size: 13px;
    font-weight: 500;
    transition: color .15s;
}
.site-footer-links a:hover { color: var(--text); }
.site-footer-muted { color: var(--text3); font-size: 12px; }
.site-footer-social { display: flex; gap: 14px; align-items: center; }
.site-footer-soc {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--soft-4);
    color: var(--text);
    transition: background .15s, color .15s;
}
.site-footer-soc:hover { background: var(--soft-5); color: var(--text); }
.site-footer-bar {
    border-top: 1px solid var(--soft-5);
    padding: 16px clamp(20px, 4vw, 48px) 22px;
}
.site-footer-copy {
    margin: 0;
    text-align: center;
    font-size: 11px;
    color: var(--text3);
    line-height: 1.5;
}
body[data-theme="light"] .site-footer {
    --site-footer-bg: #f3f4f6;
    background: var(--site-footer-bg);
}
body[data-theme="light"] .site-footer-soc {
    background: rgba(0, 0, 0, 0.06);
}

/* ═══ 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 }
/* Desktop: um slide por vez (largura = viewport do slider; gap 0 — translateX vem do JS) */
#bannerTrack { display: flex; gap: 0; transition: transform .5s cubic-bezier(.4,0,.2,1); will-change: transform }
#bannerTrack .banner-item {
    flex-shrink: 0;
    width: 100%;
    height: 130px;
    border-radius: var(--r);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    background: #111;
    box-sizing: border-box;
}

#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: none; 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 }

/* Menu de categorias — só na página inicial (#pageHome), abaixo de Tendências */
.home-cat-menu-wrap {
    margin: 0 18px 18px;
    max-width: 100%;
    box-sizing: border-box;
}
@media (min-width: 900px) {
    .home-cat-menu-wrap { margin: 0 24px 20px; }
}
.home-cat-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.home-cat-menu-row--cats {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    align-content: flex-start;
    gap: 10px 12px;
    padding: 4px 0 10px;
    margin: 0;
}
.home-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex: 0 1 auto;
    max-width: 100%;
    box-sizing: border-box;
    justify-content: flex-start;
    padding: 10px 14px;
    border-radius: 12px;
    background: transparent;
    color: var(--text);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
    border: 1px solid var(--line2);
}
.home-cat-pill .home-cat-ico,
.home-cat-pill .home-cat-ico-wrap {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: inherit;
    opacity: .95;
}
.home-cat-pill .home-cat-ico-wrap svg { width: 18px; height: 18px; }
.home-cat-pill:hover { background: var(--soft-3); border-color: var(--line); }
.home-cat-pill.active {
    border-color: var(--green-border);
    background: var(--green-bg);
    color: var(--green);
    box-shadow: 0 0 0 1px rgba(34, 197, 94, 0.2);
}
body[data-theme="light"] .home-cat-pill.active {
    border-color: var(--green-border);
    background: var(--green-bg);
    color: #15803d;
    box-shadow: none;
}
.home-cat-menu-row--filters {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 4px 0 0;
}
.home-cat-filter-btn {
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    background: transparent;
    padding: 0;
    color: var(--text3);
    transition: color .15s, background .15s, box-shadow .15s;
}
.home-cat-filter--pill {
    padding: 12px 16px;
    border-radius: 12px;
    background: var(--soft-3);
    color: var(--text);
    width: 100%;
    box-sizing: border-box;
    text-align: left;
}
.home-cat-filter--pill:hover { background: var(--soft-5); }
.home-cat-filter--pill.active {
    background: var(--green-bg);
    color: var(--green);
    box-shadow: inset 0 0 0 1px var(--green-border);
}
.home-cat-filter--text { font-weight: 500; width: 100%; text-align: left; padding: 8px 4px; border-radius: 8px; }
.home-cat-filter--text:hover { background: var(--soft-3); color: var(--text); }
.home-cat-filter--text.active {
    color: var(--green);
    font-weight: 700;
    background: transparent;
}

/* 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: 1px solid var(--line); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; overflow: hidden; position: relative; animation: none }
.live-card:hover { background: var(--card2); border-color: var(--soft-11); 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: var(--r);
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: border-color .2s ease, background .2s ease, transform .22s ease, box-shadow .22s ease;
    display: flex; flex-direction: column; gap: 0;
    position: relative; overflow: visible
}
.ec:hover {
    border-color: var(--soft-11);
    background: var(--soft-2);
    transform: translateY(-2px);
}
[data-theme="light"] .ec:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
}
[data-theme="dark"] .ec:hover {
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(34, 197, 94, 0.1);
}

/* 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 {
    /* mesmo contorno dos demais cards — sem linha vermelha ao redor */
    border-color: var(--soft-7);
    animation: none;
}
.section-outer .ec-live { border-color: var(--soft-7); }
.ec-live:hover { border-color: var(--soft-11); 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--btc {
    font-size: 20px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(145deg, #ffb347 0%, #f7931a 48%, #c45d0f 100%);
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(247, 147, 26, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.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: none;
    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;
  min-height: 72px;
  box-sizing: border-box;
}
.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 1 0; min-width: 0; max-width: 100% }
/* Título: uma linha + ellipsis — evita card/header pulando ao atualizar ou quebrar linha */
.qd-title {
  font-family: 'Plus Jakarta Sans',sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  line-height: 1.25;
  margin: 0 0 8px;
  letter-spacing: -.3px;
  display: block;
  width: 100%;
  max-width: 100%;
  min-height: 1.25em;
  max-height: 1.25em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.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 */
}
.right-panel--terminal {
    background: transparent;
    border: none;
    border-radius: 0;
    overflow: visible;
}

/* ═══ Chat ao vivo (iframe ou nativo) ═══ */
:root {
    --live-chat-w: 300px;
    /* altura aproximada do fake-ticker (header-extra) — alinha o chat com a faixa */
    --header-extra-h: 46px;
}
@media (min-width: 900px) {
    /* Chat fora do fluxo flex: não compete com #page-scroll (evita largura 0 e mercados sumindo) */
    body.has-live-chat #content-area.content-area--chat {
        max-width: 1280px !important;
        width: min(100%, 1280px) !important;
        margin-left: auto !important;
        margin-right: auto !important;
        align-self: center !important;
        padding: 0 12px !important;
        box-sizing: border-box;
        flex: 1;
        min-height: 0;
        display: flex !important;
        flex-direction: column !important;
    }
    body.page-question #content-area.content-area--chat,
    body.page-question:has(#pageQuestion.pageQuestion--btc-terminal) #content-area.content-area--chat {
        max-width: 1280px !important;
        width: min(100%, 1280px) !important;
    }
    body.has-live-chat #content-area.content-area--chat #page-scroll {
        flex: 1 1 auto !important;
        min-width: 0 !important;
        min-height: 0 !important;
        width: 100% !important;
        /* reserva à direita: painel fixo no canto */
        padding-right: calc(var(--live-chat-w) + 4px);
        box-sizing: border-box;
    }
    .live-chat-wrap {
        position: fixed;
        top: calc(var(--topbar-h) + var(--header-extra-h));
        right: 0;
        bottom: 0;
        width: var(--live-chat-w);
        z-index: 25;
        padding: 0;
        margin: 0;
        display: flex;
        flex-direction: column;
        min-height: 0 !important;
        max-height: none !important;
        box-sizing: border-box;
        pointer-events: auto;
        /* não herdar scroll/clipping de .right-panel-wrap genérico */
        align-self: auto;
        overflow: visible;
    }
    .live-chat-panel {
        flex: 1;
        display: flex;
        flex-direction: column;
        min-height: 0;
        width: 100%;
        height: 100%;
        max-height: none;
        background: linear-gradient(180deg, #141416 0%, #0e0e10 100%);
        border: 1px solid rgba(255, 255, 255, 0.08);
        border-right: none;
        border-radius: 14px 0 0 14px;
        overflow: hidden;
        box-shadow: -8px 0 32px rgba(0, 0, 0, 0.4);
    }
    .live-chat-header {
        flex-shrink: 0;
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 10px 10px 10px 8px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        background: rgba(12, 12, 14, 0.98);
    }
    .live-chat-chevron {
        flex-shrink: 0;
        width: 30px;
        height: 30px;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        border: none;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.06);
        color: rgba(255, 255, 255, 0.75);
        cursor: pointer;
        transition: background 0.15s ease, transform 0.2s ease;
    }
    .live-chat-chevron:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    .live-chat-wrap--collapsed .live-chat-chevron svg {
        transform: rotate(180deg);
    }
    .live-chat-title {
        flex: 1;
        min-width: 0;
        font-size: 10px;
        font-weight: 800;
        letter-spacing: 0.14em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, 0.92);
    }
    .live-chat-online {
        font-size: 11px;
        font-weight: 700;
        color: #84cc16;
        display: flex;
        align-items: center;
        gap: 6px;
        flex-shrink: 0;
    }
    .live-chat-online::before {
        content: '';
        width: 7px;
        height: 7px;
        border-radius: 50%;
        background: #bef264;
        box-shadow: 0 0 10px rgba(190, 242, 100, 0.55);
        flex-shrink: 0;
    }
    .live-chat-close {
        display: none !important;
    }
    .live-chat-iframe {
        flex: 1;
        width: 100%;
        min-height: 280px;
        border: 0;
        background: #0c0c0e;
    }
    .live-chat-fab {
        display: none !important;
    }

    .live-chat-wrap--collapsed {
        width: 44px !important;
        min-width: 44px;
    }
    .live-chat-wrap--collapsed .live-chat-panel {
        max-height: none;
    }
    .live-chat-wrap--collapsed .live-chat-native,
    .live-chat-wrap--collapsed .live-chat-iframe {
        display: none !important;
    }
    .live-chat-wrap--collapsed .live-chat-header {
        flex-direction: column;
        justify-content: flex-start;
        padding: 10px 6px;
        gap: 0;
    }
    .live-chat-wrap--collapsed .live-chat-title,
    .live-chat-wrap--collapsed .live-chat-online {
        display: none !important;
    }
    .live-chat-wrap--collapsed .live-chat-close {
        display: none !important;
    }
}
@media (max-width: 899px) {
    .live-chat-wrap {
        display: none !important;
    }
    body.has-live-chat .live-chat-wrap.live-chat-wrap--open {
        display: flex !important;
        position: fixed;
        inset: 0;
        z-index: 300;
        width: 100% !important;
        max-width: none !important;
        padding: 0;
        margin: 0;
        background: rgba(0, 0, 0, 0.72);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        flex-direction: column;
        justify-content: flex-end;
        align-items: stretch;
    }
    body.has-live-chat .live-chat-wrap.live-chat-wrap--open .live-chat-panel {
        max-height: 88vh;
        border-radius: 16px 16px 0 0;
        min-height: 50vh;
        margin: 0;
        width: 100%;
        box-sizing: border-box;
    }
    .live-chat-close {
        display: flex !important;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        padding: 0;
        border: none;
        border-radius: 8px;
        background: rgba(255, 255, 255, 0.08);
        color: rgba(255, 255, 255, 0.85);
        font-size: 16px;
        line-height: 1;
        cursor: pointer;
        font-family: inherit;
        flex-shrink: 0;
        margin-left: 8px;
    }
    .live-chat-close:hover {
        background: rgba(255, 255, 255, 0.12);
    }
    .live-chat-fab {
        display: flex !important;
        align-items: center;
        justify-content: center;
        position: fixed;
        right: 16px;
        bottom: calc(76px + env(safe-area-inset-bottom, 0px));
        z-index: 88;
        width: 54px;
        height: 54px;
        border-radius: 50%;
        border: none;
        background: linear-gradient(145deg, #4a5df9, #6366f1);
        color: #fff;
        cursor: pointer;
        box-shadow: 0 8px 28px rgba(74, 93, 249, 0.42);
        transition: transform 0.15s ease, filter 0.15s ease;
    }
    .live-chat-fab:hover {
        filter: brightness(1.08);
        transform: scale(1.04);
    }
    .live-chat-fab:active {
        transform: scale(0.97);
    }
    body.live-chat-overlay-open .live-chat-fab {
        display: none !important;
    }
}

/* Chat nativo (comunidade — sem iframe) */
.live-chat-native {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 240px;
}
.live-chat-msgs-outer {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}
.live-chat-new-pill {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.88);
    background: rgba(30, 30, 34, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    pointer-events: none;
    white-space: nowrap;
}
.live-chat-new-pill-ic {
    opacity: 0.85;
    font-size: 12px;
}
.live-chat-msgs {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px 8px 44px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    -webkit-overflow-scrolling: touch;
    background: #0a0a0c;
}
.live-chat-msg {
    font-size: 13px;
    line-height: 1.45;
    color: rgba(248, 250, 252, 0.95);
}
.live-chat-msg-inner {
    display: flex;
    gap: 6px;
    align-items: flex-start;
}
.live-chat-msg--mine .live-chat-msg-inner {
    flex-direction: row-reverse;
}
.live-chat-msg-main {
    flex: 1;
    min-width: 0;
}
.live-chat-msg--mine .live-chat-msg-main {
    text-align: right;
}
.live-chat-msg-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0 2px;
    margin-bottom: 3px;
}
.live-chat-msg--mine .live-chat-msg-head {
    justify-content: flex-end;
}
.live-chat-msg-name {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.live-chat-msg--mine .live-chat-msg-name {
    color: #7dd3fc !important;
}
.live-chat-msg-stat {
    font-size: 11px;
    font-weight: 500;
    color: rgba(148, 163, 184, 0.75);
}
.live-chat-msg-body {
    word-break: break-word;
    white-space: pre-wrap;
    font-size: 13px;
    color: rgba(241, 245, 249, 0.95);
}
.live-chat-flag {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(148, 163, 184, 0.35);
    cursor: pointer;
    opacity: 0.85;
    transition: color 0.15s ease, background 0.15s ease;
}
.live-chat-flag:hover {
    color: rgba(248, 250, 252, 0.65);
    background: rgba(255, 255, 255, 0.06);
}
.live-chat-composer {
    flex-shrink: 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    padding: 10px 10px 8px;
    background: rgba(8, 8, 10, 0.92);
}
.live-chat-name-row {
    margin-bottom: 8px;
}
.live-chat-name {
    width: 100%;
    box-sizing: border-box;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
}
.live-chat-composer-row {
    display: flex;
    gap: 8px;
    align-items: center;
}
.live-chat-input-shell {
    flex: 1;
    min-width: 0;
    position: relative;
    display: flex;
    align-items: center;
}
.live-chat-input {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 40px 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(22, 22, 26, 0.95);
    color: #fff;
    font-size: 13px;
    font-family: inherit;
}
.live-chat-input::placeholder {
    color: rgba(148, 163, 184, 0.65);
}
.live-chat-emoji {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: rgba(148, 163, 184, 0.75);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
}
.live-chat-emoji:hover {
    color: rgba(226, 232, 240, 0.95);
}
.live-chat-send-fab {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: linear-gradient(145deg, #4a5df9, #6366f1);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(74, 93, 249, 0.35);
    transition: transform 0.12s ease, filter 0.12s ease;
}
.live-chat-send-fab:hover {
    filter: brightness(1.08);
    transform: scale(1.03);
}
.live-chat-send-fab:active {
    transform: scale(0.97);
}
.live-chat-hint-bottom {
    font-size: 10.5px;
    color: rgba(148, 163, 184, 0.65);
    margin: 10px 2px 0;
    line-height: 1.4;
    text-align: center;
}
.live-chat-rules {
    color: #60a5fa;
    text-decoration: none;
    font-weight: 600;
}
.live-chat-rules:hover {
    text-decoration: underline;
}
html[data-theme="light"] .live-chat-msgs {
    background: #f1f5f9;
}
html[data-theme="light"] .live-chat-msg-body {
    color: #0f172a;
}
html[data-theme="light"] .live-chat-msg-stat {
    color: #64748b;
}
html[data-theme="light"] .live-chat-composer {
    background: #fff;
    border-top-color: #e2e8f0;
}
html[data-theme="light"] .live-chat-input,
html[data-theme="light"] .live-chat-name {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #0f172a;
}
html[data-theme="light"] .live-chat-hint-bottom {
    color: #64748b;
}

.rp-terminal-stack {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.rp-terminal-placeholder {
    padding: 18px 16px !important;
}
.rp-term-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 4px;
}
.rp-term-head-label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}
.rp-term-balance {
    font-size: 11px;
    color: var(--text3);
    text-align: center;
    margin: 0 0 4px;
}
.rp-term-balance span {
    font-weight: 700;
    color: var(--text2);
}
.rp-bet--multi .qd-btc-trade-sides {
    display: none !important;
}
.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-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)) }
/* Checkout de previsão: bloco fixo na página do mercado (não é popup) */
#pageQuestion #mobBetSheet.mob-checkout-inline {
    position: sticky;
    bottom: 0;
    z-index: 25;
    margin-top: 16px;
    padding: 0 0 max(10px, env(safe-area-inset-bottom));
    width: 100%;
    box-sizing: border-box;
    background: linear-gradient(180deg, transparent 0%, rgba(5, 5, 7, 0.92) 12%, rgba(5, 5, 7, 0.98) 100%);
    border-radius: 16px 16px 0 0;
}
#pageQuestion #mobBetSheet.mob-checkout-inline .mob-bet-sheet-inner {
    max-width: 100%;
}
/* Desktop: painel duplicado — coluna direita já tem o trade; multi mantém checkout inline */
@media (min-width: 900px) {
    #pageQuestion.pageQuestion--btc-terminal:not(.pageQuestion--multi) #mobBetSheet.mob-checkout-inline {
        display: none !important;
    }
}
/* Checkout mobile: mesmo visual escuro do painel Bitcoin (sheet transparente) */
#mobBetSheet .mob-checkout-sheet {
    background: transparent;
    border-top: none;
    box-shadow: none;
    padding: 10px 14px max(28px, env(safe-area-inset-bottom));
}
#mobBetSheet .mob-checkout-panel {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}
/* Checkout v2: linha curta no topo + título da pergunta no rodapé */
#mobBetSheet .mob-checkout-v2.mob-checkout-panel {
    background: linear-gradient(165deg, rgba(22, 28, 32, 0.98) 0%, rgba(10, 12, 18, 0.99) 100%);
    border: 1px solid rgba(74, 222, 128, 0.14);
    border-radius: 18px;
    padding: 16px 16px 14px;
}
#mobBetSheet .mob-checkout-top {
    display: none;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.12) 0%, rgba(15, 23, 42, 0.9) 100%);
    border: 1px solid rgba(52, 211, 153, 0.22);
}
#mobBetSheet .mob-checkout-top.mob-checkout-top--aven {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18) 0%, rgba(30, 41, 59, 0.95) 100%);
    border-color: rgba(52, 211, 153, 0.35);
}
#mobBetSheet .mob-checkout-dir-ic {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: #4ade80;
    box-shadow: 0 0 20px rgba(74, 222, 128, 0.25);
}
#mobBetSheet .mob-checkout-top--aven .mob-checkout-dir-ic {
    color: #5cff9a;
    text-shadow: 0 0 12px rgba(74, 222, 128, 0.55);
}
#mobBetSheet .mob-checkout-top-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}
#mobBetSheet .mob-checkout-line {
    font-size: 16px;
    font-weight: 800;
    color: #ecfdf5;
    line-height: 1.25;
    letter-spacing: -0.02em;
}
#mobBetSheet .mob-checkout-odds {
    font-size: 13px;
    font-weight: 800;
    color: #6ee7b7;
    font-variant-numeric: tabular-nums;
}
#mobBetSheet .mob-checkout-qtitle {
    margin: 14px 0 0;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.52);
}
/* Rodovia/Avenida: botões mais vivos */
#mobBetSheet .mob-checkout-panel--aven .qd-btc-trade-pill--sobe {
    background: linear-gradient(145deg, #059669 0%, #10b981 42%, #047857 100%) !important;
    border: 1px solid rgba(110, 231, 183, 0.65) !important;
    color: #f0fdf4 !important;
    box-shadow: 0 6px 24px rgba(16, 185, 129, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
#mobBetSheet .mob-checkout-panel--aven .qd-btc-trade-pill--sobe.active {
    box-shadow: 0 0 0 2px rgba(167, 243, 208, 0.85), 0 8px 28px rgba(16, 185, 129, 0.55);
}
#mobBetSheet .mob-checkout-panel--aven .qd-btc-trade-pill--desce {
    background: linear-gradient(145deg, #b91c1c 0%, #ef4444 48%, #991b1b 100%) !important;
    border: 1px solid rgba(252, 165, 165, 0.55) !important;
    color: #fff5f5 !important;
    box-shadow: 0 6px 24px rgba(239, 68, 68, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
#mobBetSheet .mob-checkout-panel--aven .qd-btc-trade-pill--desce .qd-btc-pill-odds.no {
    color: #fecaca !important;
}
#mobBetSheet .mob-checkout-panel--aven .qd-btc-trade-pill--sobe .qd-btc-pill-odds.yes {
    color: #d1fae5 !important;
}
#mobBetSheet .mob-checkout-panel--aven .qd-btc-cta--sobe {
    background: linear-gradient(180deg, #22c55e 0%, #15803d 100%) !important;
    color: #052e16 !important;
    box-shadow: 0 10px 32px rgba(34, 197, 94, 0.45);
}
#mobBetSheet .mob-checkout-panel--aven .qd-btc-cta--desce {
    background: linear-gradient(180deg, #f87171 0%, #b91c1c 100%) !important;
    color: #fff !important;
    box-shadow: 0 10px 32px rgba(239, 68, 68, 0.4);
}
#mobBetSheet .mob-checkout-chance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 8px;
    color: rgba(255, 255, 255, 0.55);
}
#mobBetSheet .mob-checkout-chance-yes { color: #4ade80; }
#mobBetSheet .mob-checkout-chance-no { color: #f87171; }
#mobBetSheet .mob-checkout-chance-lbl {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.38);
}
#mobBetSheet .mob-checkout-prog {
    margin-bottom: 12px;
}
#mobBetSheet .mob-checkout-prog-track {
    height: 5px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}
#mobBetSheet .mob-checkout-prog-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #15803d, #22c55e);
    width: 50%;
    transition: width 0.2s ease;
}
#mobBetSheet .qd-btc-trade-sides.mob-trade-sides--single {
    grid-template-columns: 1fr;
}
#mobBetSheet .qd-btc-trade-pill {
    min-height: 56px;
    font-size: 15px;
    border-radius: 12px;
}
#mobBetSheet .qd-btc-pill-odds {
    font-size: 12px;
}
.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 — principal em todas as larguras (substitui sidebar) */
.bnav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid var(--soft-5);
    display: flex;
    z-index: 95;
    padding-bottom: env(safe-area-inset-bottom);
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.06);
}
.bnav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 4px 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;
    max-width: 120px;
}
.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 }
@media (min-width: 900px) {
    .bnav-item { padding-top: 12px; padding-bottom: 10px; font-size: 11px; }
    .bnav-item svg { width: 22px; height: 22px; }
}

/* RESPONSIVE */
@media(max-width:899px) {
    body { overflow: auto }
    #root { flex-direction: column; height: auto; overflow: visible }
    .sidebar { display: none }
    .topbar { display: none }
    .header-extra { position: sticky; top: 56px; z-index: 78 }
    .right-panel { display: none }
    #main { height: auto }
    #content-area { flex-direction: column }
    #page-scroll { overflow: visible; padding-top: 0; padding-bottom: 20px }
    .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 }
    #mobCards  { display: block }
    .q-options-grid { grid-template-columns: 1fr }
    #pageQuestion { padding: 0 12px 40px }
    body.page-question #pageQuestion.pageQuestion--btc-terminal {
        padding-left: 12px;
        padding-right: 8px;
    }
    body { padding-bottom: 72px }
    .bnav { display: flex }
    .site-footer { display: none !important; }
}

@media(min-width:900px) {
    .sb-mobile-nav-section { display: block }
    .m-topbar { display: none }
    .m-cattabs { display: none }
    #mobCards { display: none }
    /* Navegação principal no rodapé editorial; barra inferior só no mobile */
    .bnav { display: none !important; }
    body { padding-bottom: 0 !important; }
    /* Rodapé desligado: sem reserva inferior.
       Só o bloco de conteúdo (scroll + painel direito) é centralizado; topo, menu e ticker ficam full-bleed.
       #main é column-flex: sem align-self, o filho estica na horizontal e margin:auto não centraliza — precisa align-self:center. */
    #content-area {
        box-sizing: border-box;
        align-self: center;
        align-items: stretch;
        padding-bottom: 0;
        max-width: 1280px;
        width: min(100%, 1280px);
        margin-left: auto;
        margin-right: auto;
    }
    #page-scroll {
        padding-bottom: calc(20px + env(safe-area-inset-bottom, 0px));
        min-height: 0;
    }
    .right-panel-wrap {
        align-self: stretch;
        min-height: 0;
        max-height: 100%;
        overflow-y: auto;
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }
    /* Home: grade de mercados centralizada, largura tipo “véspera” */
    #pageHome {
        max-width: 1280px;
        margin: 0 auto;
        width: 100%;
        box-sizing: border-box;
    }
}

@media (max-width: 1199px) and (min-width: 900px) {
    .site-footer-inner {
        grid-template-columns: 1fr 1fr 1fr;
        gap: 28px 20px;
    }
    .site-footer-brand {
        grid-column: 1 / -1;
        padding-bottom: 8px;
        border-bottom: 1px solid var(--soft-5);
    }
}

/* ══ 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: auto;
    }
    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: none;
        scroll-behavior: auto;
        -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: none;
        overflow: hidden;
        margin: 0 !important;
        padding: 0 !important;
        transition: none;
        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-topbar { z-index: 86; }
    body[data-layout="feed"] .bnav { z-index: 87; }
}


/* ══ Question detail: full-width layout ══ */
/* Padding horizontal alinhado ao topbar (18px); evita “Voltar” duplamente indentado (24+24) */
body.page-question #pageQuestion { padding: 0 18px 80px }
/* Mercado BTC: padding simétrico — faixa entre gráfico e painel fica equilibrada */
body.page-question #pageQuestion.pageQuestion--btc-terminal {
    padding-left: 20px;
    padding-right: 20px;
}

@media (min-width: 900px) {
    /* Mercado: #page-scroll ocupa a coluna esquerda; grade interna centralizada com margin:auto */
    body.page-question #page-scroll {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        width: 100%;
        box-sizing: border-box;
    }
    body.page-question #content-area {
        justify-content: flex-start;
        align-items: stretch;
        align-self: center;
        max-width: 1280px;
        width: min(100%, 1280px);
        margin-left: auto;
        margin-right: auto;
    }
    /* Bitcoin 5 min: mesmo eixo central que o restante da página (faixa entre colunas visível ao centro-direita) */
    body.page-question:has(#pageQuestion.pageQuestion--btc-terminal) #content-area {
        align-self: center;
        margin-left: auto;
        margin-right: auto;
    }
}
body.page-question #qdOptionsGrid {
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 0 24px;
    box-sizing: border-box;
    width: 100%;
}

/* 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 .bnav {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 87;
    }
    body[data-layout="feed"].page-question #pageQuestion {
        padding-top: 72px;
        padding-top: calc(56px + 16px + 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;
}
/* Rodovia: mercado em descanso (grade 0h30–7h30 Brasília) */
.qd-rodovia-resting {
    position: absolute;
    inset: 0;
    z-index: 25;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 10, 14, 0.88);
    backdrop-filter: blur(8px);
    border-radius: inherit;
    pointer-events: none;
    text-align: center;
}
.qd-rodovia-resting-card {
    max-width: 22rem;
    padding: 14px 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: linear-gradient(145deg, rgba(30, 41, 59, 0.95), rgba(15, 23, 42, 0.98));
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.qd-rodovia-resting-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #e2e8f0;
    margin-bottom: 8px;
}
.qd-rodovia-resting-text {
    margin: 0;
    font-size: 13px;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.88);
}
.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--result { color: #fff !important; background: linear-gradient(135deg, #6366f1, #8b5cf6) !important; animation: qd-result-pulse 1.5s ease-in-out infinite; }
.qd-avenida-status--wait { color: #cbd5e1 !important; }
.qd-avenida-status--neutral { color: #e2e8f0 !important; }
@keyframes qd-result-pulse { 0%,100%{opacity:1} 50%{opacity:.7} }
.qd-avenida-result-slot {
    width: 100%;
    flex-shrink: 0;
}
.qd-avenida-result-banner {
    display: flex; align-items: center; gap: 14px;
    padding: 16px 20px; border-radius: 12px;
    margin-bottom: 12px; animation: qd-result-slide .4s ease-out;
}
.qd-avenida-result--over {
    background: linear-gradient(135deg, rgba(34,197,94,.15), rgba(34,197,94,.05));
    border: 1.5px solid rgba(34,197,94,.5);
}
.qd-avenida-result--under {
    background: linear-gradient(135deg, rgba(239,68,68,.15), rgba(239,68,68,.05));
    border: 1.5px solid rgba(239,68,68,.5);
}
.qd-avenida-result-icon { font-size: 32px; }
.qd-avenida-result--over .qd-avenida-result-icon { color: #22c55e; }
.qd-avenida-result--under .qd-avenida-result-icon { color: #ef4444; }
.qd-avenida-result-text { flex: 1; }
.qd-avenida-result-winner { font-size: 18px; font-weight: 700; color: #fff; }
.qd-avenida-result-count { font-size: 14px; color: rgba(255,255,255,.7); margin-top: 2px; }
.qd-avenida-result-next { font-size: 12px; color: rgba(255,255,255,.5); margin-top: 4px; }
@keyframes qd-result-slide { from{opacity:0;transform:translateY(-10px)} to{opacity:1;transform:translateY(0)} }
.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);
    contain: layout;
}
.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; font-variant-numeric: tabular-nums; }

/* Barra após encerrar a rodada: aguardando próxima sessão */
.qd-avenida-lockbar.qd-avenida-lockbar--next {
    background: linear-gradient(95deg, rgba(37, 99, 235, 0.42), rgba(59, 130, 246, 0.22));
    border: 1px solid rgba(96, 165, 250, 0.65);
    color: #dbeafe;
    box-shadow: 0 8px 28px rgba(37, 99, 235, 0.2);
}
.qd-avenida-lockbar.qd-avenida-lockbar--next .qd-avenida-lockbar-ic {
    color: #93c5fd;
    font-size: 22px;
    font-weight: 700;
}
.qd-avenida-lockbar.qd-avenida-lockbar--next .qd-avenida-lockbar-text strong {
    font-size: 14px;
    color: #f0f9ff;
    letter-spacing: 0.02em;
}
.qd-avenida-lockbar.qd-avenida-lockbar--next .qd-avenida-lockbar-sub {
    color: rgba(219, 234, 254, 0.92);
}

.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: 1280px;
    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);
    min-height: 96px;
    box-sizing: border-box;
}
.qd-ap-head-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px 16px;
    align-items: start;
}
.qd-ap-head-main {
    min-width: 0;
    overflow-x: hidden;
    overflow-y: visible;
}
.qd-ap-title {
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 800;
    color: var(--text);
    line-height: 1.3;
    flex: 1 1 0;
    min-width: 0;
    min-height: 1.3em;
    max-height: 1.3em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.qd-ap-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    min-height: 40px;
    min-width: 0;
}
.qd-ap-subrow {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-height: 36px;
}
.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: 96px;
    flex-shrink: 0;
}
.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);
    font-variant-numeric: tabular-nums;
}
.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: 0 0 14px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-top: none;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    margin-bottom: 16px;
}
.qd-rodovia-block--palp .qd-rodovia-video {
    border-radius: 0 0 14px 14px;
}
.qd-rodovia-block--palp .qd-rodovia-video::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 60px rgba(0, 0, 0, 0.35);
}
.qd-rodovia-overlay--palp {
    display: none;
}
.qd-palp-overlay-top {
    display: none;
}

/* Video overlay: result + loading next session */
.qd-aven-video-overlay {
    position: absolute;
    inset: 0;
    z-index: 20;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 18px;
    background: rgba(0, 0, 0, 0.82);
    backdrop-filter: blur(6px);
    transition: opacity 0.3s;
    border-radius: inherit;
}
.qd-aven-video-overlay--active {
    display: flex;
}
.qd-aven-ov-result {
    text-align: center;
}
.qd-aven-ov-icon {
    font-size: 38px;
    line-height: 1;
    margin-bottom: 6px;
}
.qd-aven-video-overlay--over .qd-aven-ov-icon { color: #22c55e; }
.qd-aven-video-overlay--under .qd-aven-ov-icon { color: #ef4444; }
.qd-aven-ov-winner {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}
.qd-aven-video-overlay--over .qd-aven-ov-winner { color: #4ade80; }
.qd-aven-video-overlay--under .qd-aven-ov-winner { color: #f87171; }
.qd-aven-ov-count {
    font-size: 14px;
    color: rgba(255,255,255,0.7);
    margin-top: 4px;
}
.qd-aven-ov-count strong {
    color: #fff;
    font-size: 16px;
}
.qd-aven-ov-next {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    background: rgba(255,255,255,0.08);
    border-radius: 10px;
    color: rgba(255,255,255,0.85);
    font-size: 14px;
}
.qd-aven-ov-next strong {
    color: #fff;
    font-weight: 700;
}
.qd-aven-ov-loading-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: avenOvSpin 0.8s linear infinite;
}
@keyframes avenOvSpin {
    to { transform: rotate(360deg); }
}
.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;
    font-variant-numeric: tabular-nums;
    min-width: 5.5ch;
    display: inline-block;
    text-align: right;
}
.qd-palp-bet-closed {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #ff6b6b;
}
.qd-palp-cam-foot {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    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%);
    pointer-events: none;
}
.qd-palp-cam-foot span {
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.8);
}

/* ══ Redesigned status bar (above video) ══ */
.qd-palp-status-bar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 42%);
    align-items: center;
    column-gap: 12px;
    padding: 12px 16px;
    margin-bottom: 0;
    border-radius: 12px 12px 0 0;
    background: #18181b;
    border: 1px solid rgba(255,255,255,0.06);
    border-bottom: none;
}
.qd-palp-status-left {
    display: flex;
    align-items: baseline;
    gap: 10px;
    min-width: 0;
}
.qd-palp-status-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.5);
}
.qd-palp-status-count {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    line-height: 1;
    color: #22c55e;
    font-variant-numeric: tabular-nums;
    min-width: 3.5ch;
    display: inline-block;
    text-align: right;
}
.qd-palp-status-right {
    text-align: right;
    justify-self: end;
    min-width: 220px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}
.qd-palp-cal-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.qd-palp-cal-label {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.65);
}
.qd-palp-cal-timer {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: clamp(18px, 4vw, 22px);
    font-weight: 800;
    color: #fbbf24;
    font-variant-numeric: tabular-nums;
}
.qd-palp-status-bar .qd-palp-bet-open {
    align-items: flex-end;
}
.qd-palp-status-bar .qd-palp-bet-closed {
    font-size: 12px;
    font-weight: 700;
    color: #ef4444;
    font-style: italic;
    max-width: 100%;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    /* altura estável entre “Próxima sessão em Xs” e mensagens longas */
    min-height: 2.5em;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}
.qd-palp-status-bar .qd-palp-bet-mmss {
    font-size: 18px;
}
.qd-palp-status-bar + .qd-rodovia-block--palp {
    border-radius: 0 0 14px 14px;
    margin-top: 0;
}

/* ══ Redesigned header (compact) ══ */
.qd-ap-thumb {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
}
.qd-ap-ultimos-inline {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.06em;
    color: var(--text3);
    margin-left: 4px;
}
.qd-ap-bubbles--inline {
    display: inline-flex !important;
    flex-wrap: nowrap !important;
    gap: 5px !important;
    vertical-align: middle;
}
.qd-ap-d-sep {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: clamp(26px, 5vw, 34px);
    line-height: 1;
    color: rgba(255, 77, 77, 0.6);
}

/* ══ Simplified pick cards (Palpity-style) ══ */
.qd-pick-grid--palp {
    gap: 10px;
    margin-top: 12px;
}
.qd-pick-grid--palp .qd-pick-card {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px 20px;
    min-height: 0;
}
.qd-pick-grid--palp .qd-pick-card .qd-pick-top,
.qd-pick-grid--palp .qd-pick-card .qd-pick-pct,
.qd-pick-grid--palp .qd-pick-card .qd-pick-return,
.qd-pick-grid--palp .qd-pick-card .qd-avenida-voltrack {
    display: none;
}
.qd-pick-grid--palp .qd-btc-pill-odds {
    font-variant-numeric: tabular-nums;
}
.qd-pick-grid--palp .qd-pick-badge {
    font-size: 13px;
    font-weight: 700;
    padding: 0;
    background: none;
    border: none;
    color: inherit;
}
.qd-pick-grid--palp .qd-pick-badge svg { display: none; }
.qd-pick-grid--palp .qd-pick-odds {
    font-size: 13px;
    font-weight: 600;
    color: inherit;
    opacity: 0.8;
}
.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-avenida-pro-head {
        padding: 12px 14px;
        margin-bottom: 10px;
    }
    .qd-ap-head-grid {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        align-items: center;
    }
    .qd-ap-head-main {
        flex: 1 1 0;
        min-width: 0;
        overflow-x: hidden;
        overflow-y: visible;
    }
    .qd-ap-title {
        font-size: 15px;
        margin-bottom: 0;
        max-height: 1.35em;
        min-height: 1.35em;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .qd-ap-subrow {
        gap: 6px;
    }
    .qd-ap-round-box {
        flex: 0 0 auto;
        text-align: center;
    }
    .qd-ap-round-digits {
        font-size: 26px;
        gap: 2px;
    }
    .qd-palp-status-bar {
        padding: 10px 14px;
        grid-template-columns: 1fr;
        row-gap: 10px;
    }
    .qd-palp-status-count {
        font-size: 22px;
    }
    .qd-palp-status-right {
        font-size: 12px;
        min-width: 0;
        width: 100%;
        align-items: stretch;
    }
    .qd-palp-status-right .qd-palp-bet-closed {
        justify-content: center;
        text-align: center;
    }
}

/* ══ 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 rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    background: linear-gradient(180deg, #1a1a1d 0%, #121214 100%);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.25);
}
.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: linear-gradient(180deg, #1a1a1d 0%, #121214 100%);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 16px;
    transition: opacity .3s;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}
.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 0 12px;
    /* Mesma linha de base do logo: topbar 18px + marca margin -4px ≈ 14px da borda da área principal */
    margin-left: -4px;
}
/* Horizontal vem do padding de #pageQuestion — evita indentação dupla */
.qd-header { padding: 0 0 20px }
#qdOptionsGrid { padding: 0 0 24px }
#qdActivity { padding: 0 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 }
}

/* ═══════════════════════════════════════
   BTC Market Styles
   ═══════════════════════════════════════ */
.qd-btc-icon {
    font-size: 24px;
    background: #f7931a;
    color: #fff;
    width: 36px; height: 36px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; flex-shrink: 0;
}
.qd-btc-pro-head {
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.qd-btc-price-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    background: var(--bg2, #151518);
    border-radius: 12px;
    margin: 8px 0;
}
.qd-btc-price-col { display: flex; flex-direction: column; gap: 2px; }
.qd-btc-price-label { font-size: 10px; color: var(--text3, #777); text-transform: uppercase; letter-spacing: 0.5px; }
.qd-btc-price-val { font-size: 20px; font-weight: 700; color: var(--text1, #fff); }
.qd-btc-price-diff {
    display: flex; align-items: center; gap: 4px;
    font-size: 13px; font-weight: 600;
    padding: 4px 10px; border-radius: 6px;
}
.qd-btc-price-diff.up { color: #43c773; background: rgba(67,199,115,0.12); }
.qd-btc-price-diff.down { color: #e23838; background: rgba(226,56,56,0.12); }
.qd-btc-chart-wrap {
    position: relative;
    background: linear-gradient(180deg, rgba(21,21,24,1) 0%, rgba(16,16,19,1) 100%);
    border-radius: 14px;
    padding: 12px 8px 4px;
    margin-bottom: 10px;
    height: 260px;
    border: 1px solid rgba(255,255,255,0.04);
    box-shadow: 0 2px 16px rgba(0,0,0,0.3);
    overflow: hidden;
}
.qd-btc-chart-wrap canvas {
    width: 100% !important;
    height: 100% !important;
    will-change: transform;
}
.qd-btc-target-line {
    position: absolute; top: 8px; left: 8px; z-index: 2;
}
.qd-btc-target-badge {
    background: rgba(67,199,115,0.85);
    color: #fff; padding: 3px 10px;
    border-radius: 4px; font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 4px;
}
.qd-btc-target-badge::before { content: '▲'; font-size: 9px; }
.qd-btc-status-bar { justify-content: center; }
.qd-pick-card--btc-sobe {
    background: linear-gradient(135deg, rgba(67,199,115,0.15) 0%, rgba(67,199,115,0.05) 100%) !important;
    border: 1px solid rgba(67,199,115,0.3) !important;
}
.qd-pick-card--btc-sobe:hover:not(.disabled) {
    background: rgba(67,199,115,0.25) !important;
}
.qd-pick-card--btc-desce {
    background: linear-gradient(135deg, rgba(226,56,56,0.15) 0%, rgba(226,56,56,0.05) 100%) !important;
    border: 1px solid rgba(226,56,56,0.3) !important;
}
.qd-pick-card--btc-desce:hover:not(.disabled) {
    background: rgba(226,56,56,0.25) !important;
}
.qd-btc-result-icon {
    font-size: 28px; font-weight: 700; margin-bottom: 8px;
}
.qd-btc-result-icon.up { color: #43c773; }
.qd-btc-result-icon.down { color: #e23838; }
.qd-btc-result-icon.draw { color: #fbbf24; }
.qd-btc-result-prices {
    display: flex; gap: 20px; font-size: 14px; color: rgba(255,255,255,0.7); margin-bottom: 12px;
}
@media (max-width: 720px) {
    .qd-btc-price-val { font-size: 16px; }
    .qd-btc-price-diff { font-size: 11px; padding: 3px 8px; }
    .qd-btc-chart-wrap { height: 220px; }
}

/* ══ BTC terminal — layout tipo Véspera: centralizado, ~65/35, cards uniformes ══ */
.pageQuestion--btc-terminal .qd-header {
    display: none;
}
.pageQuestion--btc-terminal #qdOptionsGrid {
    position: relative;
    /* Largura alinhada ao miolo da página (mesmo teto do #content-area) — proporção tipo Palpity */
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
    padding: 10px 16px 40px 16px;
    width: 100%;
    box-sizing: border-box;
}
/* Resultado da rodada: só sobre a coluna esquerda (2.1fr em grid 2.1 + 1; gap 24px) */
.pageQuestion--btc-terminal #qdBtcVideoOverlay.qd-aven-video-overlay {
    pointer-events: none;
    inset: auto;
    top: 0;
    bottom: 0;
    left: 0;
    right: auto;
    width: calc((100% - 24px) * 2.1 / 3.1);
    border-radius: 0 16px 16px 0;
}
.qd-btc-terminal {
    display: grid;
    /* ~68% main / ~32% trade — coluna direita mín. maior (referência Véspera/Palpity) */
    grid-template-columns: minmax(0, 2.1fr) minmax(340px, 1fr);
    gap: 24px;
    align-items: start;
    margin-top: 12px;
}

/* Rodovia/Avenida: mobile = câmera → checkout → livro → histórico → posições → descrição */
.qd-btc-terminal.qd-btc-terminal--avenida {
    display: flex;
    flex-direction: column;
    gap: 20px;
    grid-template-columns: unset;
}
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone {
    min-width: 0;
    width: 100%;
}
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--head,
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--cam,
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--lock,
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--ob,
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--hist,
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--pos,
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--desc {
    margin: 0;
}
.qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--checkout .qd-btc-panel--trade {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}
@media (min-width: 1101px) {
    .qd-btc-terminal.qd-btc-terminal--avenida {
        display: grid;
        grid-template-columns: minmax(0, 2.1fr) minmax(340px, 1fr);
        gap: 24px;
        align-items: start;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--head {
        grid-column: 1;
        grid-row: 1;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--cam {
        grid-column: 1;
        grid-row: 2;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--lock {
        grid-column: 1;
        grid-row: 3;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--ob {
        grid-column: 1;
        grid-row: 4;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--hist {
        grid-column: 1;
        grid-row: 5;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--checkout {
        grid-column: 2;
        grid-row: 1 / 6;
        position: sticky;
        top: 12px;
        align-self: start;
        z-index: 2;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--pos {
        grid-column: 2;
        grid-row: 6;
        align-self: start;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida .qd-avenida-zone--desc {
        grid-column: 1;
        grid-row: 6;
    }
}

.qd-btc-col { min-width: 0; }
.qd-btc-col--left,
.qd-btc-col--mid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.qd-btc-col--left > .qd-btc-panel--head {
    margin-bottom: 0;
}
.qd-btc-col--left .qd-btc-price-bar--terminal {
    margin-bottom: 0;
}
.qd-btc-col--left .qd-btc-chart-wrap {
    margin-bottom: 0;
}
.qd-btc-col--left .qd-btc-panel--book {
    margin-top: 0;
}
.qd-btc-col--mid {
    position: sticky;
    top: 12px;
    align-self: start;
}
.qd-btc-col--mid .qd-btc-panel--trade {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.1);
}
.qd-btc-panel {
    background: linear-gradient(180deg, #1c1c1f 0%, #131315 100%);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 14px;
    overflow: hidden;
}
.pageQuestion--btc-terminal .qd-btc-panel {
    border-radius: 16px;
}
.qd-btc-panel--head {
    padding: 18px 20px 14px;
    margin-bottom: 0;
}
.pageQuestion--btc-terminal .qd-btc-panel--head {
    padding: 22px 24px 18px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #1a1612 0%, #12100e 42%, #0c0b09 100%);
    border: 1px solid rgba(247, 147, 26, 0.22);
    box-shadow:
        0 0 0 1px rgba(247, 147, 26, 0.06),
        0 14px 44px rgba(0, 0, 0, 0.52);
}
.pageQuestion--btc-terminal .qd-btc-panel--head::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 130% 90% at 50% -38%, rgba(247, 147, 26, 0.3), transparent 58%);
    pointer-events: none;
}
.pageQuestion--btc-terminal .qd-btc-panel--head::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 85% 55% at 100% 100%, rgba(247, 147, 26, 0.08), transparent 52%);
    pointer-events: none;
}
.pageQuestion--btc-terminal .qd-btc-panel--head > * {
    position: relative;
    z-index: 1;
}
.qd-btc-head-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: nowrap;
    min-height: 48px;
}
.qd-btc-head-title {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1 1 0;
}
.qd-btc-head-h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.25;
    color: var(--text, #fff);
    min-width: 0;
    flex: 1 1 0;
    min-height: 1.25em;
    max-height: 1.25em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.pageQuestion--btc-terminal .qd-btc-head-h2 {
    font-size: 18px;
}
.pageQuestion--btc-terminal .qd-btc-icon {
    width: 42px;
    height: 42px;
    font-size: 26px;
    box-shadow:
        0 4px 18px rgba(247, 147, 26, 0.38),
        0 0 0 2px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.qd-btc-head-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.qd-btc-status-dots {
    display: inline-flex;
    gap: 5px;
    align-items: center;
}
.qd-btc-status-dots .dn {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.qd-btc-status-dots .dn--down { background: #e23838; box-shadow: 0 0 8px rgba(226, 56, 56, 0.5); }
.qd-btc-status-dots .dn--up { background: #43c773; box-shadow: 0 0 8px rgba(67, 199, 115, 0.45); }
.qd-btc-round-compact {
    font-family: 'Plus Jakarta Sans', ui-monospace, monospace;
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--text, #fff);
}
.pageQuestion--btc-terminal .qd-btc-round-compact {
    font-size: 26px;
}
.qd-btc-head-sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.qd-btc-price-bar--terminal {
    margin-top: 0;
    margin-bottom: 10px;
}
.qd-btc-price-col--right {
    text-align: right;
}
.qd-btc-timer-full {
    width: 100%;
    text-align: center;
    justify-content: center;
}
.qd-btc-panel--book {
    margin-top: 10px;
    padding: 12px 10px 10px;
}
.pageQuestion--btc-terminal .qd-btc-panel--book {
    padding: 14px 14px 12px;
}
.pageQuestion--btc-terminal .qd-btc-book-title {
    font-size: 12px;
    margin-bottom: 12px;
}
.qd-btc-book-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 10px;
    padding: 0 4px;
}
.qd-btc-ob-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}
.qd-btc-ob-tab {
    border: none;
    border-radius: 10px;
    padding: 12px 10px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, filter 0.15s ease;
    color: #fff;
}
.pageQuestion--btc-terminal .qd-btc-ob-tab {
    padding: 14px 12px;
    font-size: 14px;
    border-radius: 12px;
}
.qd-btc-ob-tab--sobe {
    background: linear-gradient(135deg, rgba(67, 199, 115, 0.35) 0%, rgba(67, 199, 115, 0.12) 100%);
    border: 1px solid rgba(67, 199, 115, 0.45);
}
.qd-btc-ob-tab--sobe.active {
    box-shadow: 0 0 0 2px rgba(67, 199, 115, 0.35);
}
.qd-btc-ob-tab--desce {
    background: linear-gradient(135deg, rgba(226, 56, 56, 0.35) 0%, rgba(226, 56, 56, 0.1) 100%);
    border: 1px solid rgba(226, 56, 56, 0.45);
}
.qd-btc-ob-tab--desce.active {
    box-shadow: 0 0 0 2px rgba(226, 56, 56, 0.35);
}
.qd-btc-ob-tab-odds {
    font-weight: 700;
    opacity: 0.95;
}
.qd-btc-ob-scroll {
    max-height: 280px;
    overflow: auto;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.pageQuestion--btc-terminal .qd-btc-ob-scroll {
    max-height: 320px;
    border-radius: 10px;
}
.qd-btc-ob-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 11px;
}
.pageQuestion--btc-terminal .qd-btc-ob-table {
    font-size: 12px;
}
.pageQuestion--btc-terminal .qd-btc-ob-table thead th {
    padding: 10px 10px 8px;
    font-size: 10px;
}
.pageQuestion--btc-terminal .qd-btc-ob-table td {
    padding: 8px 10px;
}
.qd-btc-ob-table thead th {
    text-align: left;
    padding: 8px 8px 6px;
    color: rgba(255, 255, 255, 0.4);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-size: 9px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    position: sticky;
    top: 0;
    background: #141416;
    z-index: 1;
}
.qd-btc-ob-table td {
    padding: 6px 8px;
    position: relative;
    color: rgba(255, 255, 255, 0.88);
}
.qd-btc-ob-row--desce td { color: #fb9a9a; }
.qd-btc-ob-row--sobe td { color: #86efac; }
.qd-btc-ob-td-tot {
    text-align: right;
    font-weight: 700;
}
.qd-btc-ob-bar {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: var(--obw, 40%);
    max-width: 100%;
    opacity: 0.14;
    pointer-events: none;
    border-radius: 2px;
}
.qd-btc-ob-bar--desce { background: #e23838; }
.qd-btc-ob-bar--sobe { background: #43c773; }
.qd-btc-ob-total { position: relative; z-index: 1; }

.qd-btc-panel--trade {
    padding: 18px 18px 20px;
}
.pageQuestion--btc-terminal .qd-btc-panel--trade {
    padding: 22px 22px 24px;
}
.pageQuestion--btc-terminal .qd-btc-price-bar--terminal {
    padding: 16px 20px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(30, 27, 22, 0.98) 0%, rgba(16, 14, 12, 0.99) 100%);
    border: 1px solid rgba(247, 147, 26, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pageQuestion--btc-terminal .qd-btc-price-label {
    font-size: 11px;
    letter-spacing: 0.06em;
}
.pageQuestion--btc-terminal .qd-btc-price-val {
    font-size: 22px;
}
.pageQuestion--btc-terminal .qd-btc-price-diff {
    font-size: 14px;
    padding: 6px 12px;
}
#pageQuestion.pageQuestion--btc-terminal .qd-btc-chart-wrap {
    height: 360px;
    border-radius: 16px;
    padding: 16px 12px 10px;
    background: linear-gradient(185deg, #181612 0%, #0d0c0a 55%, #070605 100%);
    border: 1px solid rgba(247, 147, 26, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.045),
        0 4px 28px rgba(0, 0, 0, 0.48);
}
#pageQuestion.pageQuestion--btc-terminal .qd-btc-chart-wrap::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(ellipse 100% 58% at 50% 0%, rgba(247, 147, 26, 0.14), transparent 54%);
    pointer-events: none;
    z-index: 0;
}
#pageQuestion.pageQuestion--btc-terminal .qd-btc-chart-wrap canvas {
    position: relative;
    z-index: 1;
}
.qd-btc-panel--rules {
    padding: 18px 20px 20px;
}
.pageQuestion--btc-terminal .qd-btc-panel--rules {
    padding: 22px 24px 24px;
}
.qd-btc-rules-title {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 12px;
}
.pageQuestion--btc-terminal .qd-btc-rules-title {
    font-size: 14px;
    margin-bottom: 14px;
}
.pageQuestion--btc-terminal .qd-btc-rules-body {
    font-size: 13px;
    line-height: 1.6;
}
.qd-btc-rules-body {
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.62);
    white-space: pre-wrap;
    word-break: break-word;
}
.qd-btc-pill-odds {
    display: block;
    font-size: 11px;
    font-weight: 700;
    opacity: 0.92;
    margin-top: 2px;
}
.qd-btc-trade-pill {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.2;
    min-height: 52px;
}
.qd-btc-panel--vespera-pos {
    margin-top: 0;
    padding: 16px 18px 18px;
}
.pageQuestion--btc-terminal .qd-btc-panel--vespera-pos {
    padding: 20px 22px 22px;
}
.qd-btc-pos-head {
    font-size: 13px;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.pageQuestion--btc-terminal .qd-btc-pos-head {
    font-size: 14px;
    margin-bottom: 14px;
}
.qd-btc-pos-tabs--static span {
    cursor: default;
    pointer-events: none;
}
.qd-btc-trade-tabs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin-bottom: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 10px;
}
.pageQuestion--btc-terminal .qd-btc-trade-tabs {
    margin-bottom: 16px;
    padding-bottom: 12px;
    gap: 8px;
}
.qd-btc-tt {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.45);
    font-size: 12px;
    font-weight: 700;
    padding: 6px 10px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}
.pageQuestion--btc-terminal .qd-btc-tt {
    font-size: 13px;
    padding: 8px 12px;
}
.pageQuestion--btc-terminal .qd-btc-tt-mkt {
    font-size: 11px;
}
.qd-btc-tt.active {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}
.qd-btc-tt-mkt {
    margin-left: auto;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
}
.qd-btc-trade-sides {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
}
.pageQuestion--btc-terminal .qd-btc-trade-sides {
    gap: 10px;
    margin-bottom: 16px;
}
.qd-btc-trade-pill {
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-weight: 800;
    font-size: 14px;
    cursor: pointer;
    font-family: inherit;
    color: #fff;
    opacity: 0.55;
    transition: opacity 0.15s ease, box-shadow 0.15s ease;
}
.pageQuestion--btc-terminal .qd-btc-trade-pill {
    min-height: 58px;
    padding: 14px 12px;
    font-size: 15px;
    border-radius: 12px;
}
.pageQuestion--btc-terminal .qd-btc-pill-odds {
    font-size: 12px;
}
.qd-btc-trade-pill--sobe {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
}
.qd-btc-trade-pill--desce {
    background: linear-gradient(135deg, #991b1b 0%, #ef4444 100%);
}
.qd-btc-trade-pill.active {
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.2);
}
.qd-btc-qty-lbl {
    display: block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 6px;
}
.pageQuestion--btc-terminal .qd-btc-qty-lbl {
    font-size: 11px;
    margin-bottom: 8px;
}
.qd-btc-qty-row {
    display: flex;
    align-items: stretch;
    gap: 0;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 10px;
}
.qd-btc-qty-step {
    width: 44px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 20px;
    font-weight: 600;
    cursor: pointer;
    font-family: inherit;
}
.pageQuestion--btc-terminal .qd-btc-qty-step {
    width: 52px;
    font-size: 22px;
}
.qd-btc-qty-step:hover { background: rgba(255, 255, 255, 0.1); }
.qd-btc-qty-input {
    flex: 1;
    border: none;
    background: rgba(0, 0, 0, 0.25);
    color: #fff;
    font-size: 18px;
    font-weight: 800;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    padding: 12px 8px;
}
.pageQuestion--btc-terminal .qd-btc-qty-input {
    font-size: 22px;
    padding: 14px 10px;
}
.pageQuestion--btc-terminal .qd-btc-qty-row {
    border-radius: 12px;
    margin-bottom: 12px;
}
.qd-btc-qty-input:focus { outline: none; }
.qd-btc-quick-amt {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.qd-btc-quick-amt button {
    flex: 1;
    min-width: 48px;
    padding: 8px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.85);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
}
.pageQuestion--btc-terminal .qd-btc-quick-amt {
    gap: 8px;
    margin-bottom: 16px;
}
.pageQuestion--btc-terminal .qd-btc-quick-amt button {
    min-width: 52px;
    padding: 10px 8px;
    font-size: 12px;
    border-radius: 10px;
}
.qd-btc-quick-amt button:hover { background: rgba(255, 255, 255, 0.1); }
.qd-btc-trade-summary {
    padding: 12px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    margin-bottom: 14px;
}
.qd-btc-sum-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    margin-bottom: 6px;
}
.qd-btc-sum-row strong { color: #fff; font-size: 20px; font-weight: 800; }
.qd-btc-win-row strong.qd-btc-win-val { color: #43c773; font-size: 18px; }
.pageQuestion--btc-terminal .qd-btc-sum-row {
    font-size: 14px;
}
.pageQuestion--btc-terminal .qd-btc-sum-row strong {
    font-size: 22px;
}
.pageQuestion--btc-terminal .qd-btc-win-row strong.qd-btc-win-val {
    font-size: 20px;
}
.qd-btc-cta {
    width: 100%;
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: filter 0.15s ease, opacity 0.15s ease;
}
.pageQuestion--btc-terminal .qd-btc-cta {
    padding: 18px 16px;
    font-size: 16px;
    border-radius: 14px;
}
.qd-btc-cta--sobe { background: linear-gradient(135deg, #16a34a 0%, #4ade80 100%); }
.qd-btc-cta--desce { background: linear-gradient(135deg, #b91c1c 0%, #f87171 100%); }
.qd-btc-cta:hover:not(:disabled):not(.qd-btc-cta--disabled) { filter: brightness(1.06); }
.qd-btc-cta:disabled,
.qd-btc-cta.qd-btc-cta--disabled {
    opacity: 0.45;
    cursor: not-allowed;
    filter: grayscale(0.3);
}
.qd-btc-min-hint {
    margin: 10px 0 0;
    font-size: 10px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
}

.qd-btc-panel--positions {
    margin-top: 0;
    padding: 12px 14px 14px;
}
.qd-btc-pos-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.4);
}
.qd-btc-pos-tabs span.active { color: #fff; }
.qd-btc-pos-body { min-height: 72px; }
.qd-btc-pos-placeholder {
    margin: 0 0 10px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    line-height: 1.45;
}
.qd-btc-pos-link {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, 0.15);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
}

@media (max-width: 1100px) {
    .qd-btc-terminal {
        grid-template-columns: 1fr;
    }
    .qd-btc-terminal.qd-btc-terminal--avenida {
        display: flex;
        flex-direction: column;
        gap: 18px;
    }
    .qd-btc-col--mid {
        position: static;
    }
    .pageQuestion--btc-terminal #qdBtcVideoOverlay.qd-aven-video-overlay {
        inset: 0;
        width: auto;
        border-radius: inherit;
    }
}
@media (max-width: 720px) {
    .pageQuestion--btc-terminal #qdOptionsGrid,
    .pageQuestion--avenida-pro #qdOptionsGrid {
        padding: 0 10px 20px;
    }
    .qd-btc-ob-scroll { max-height: 220px; }
}

/* ══ Terminal unificado (Bitcoin + demais): degradê moderno, cards alinhados ══ */
.pageQuestion--btc-terminal {
    --qd-term-surface: linear-gradient(165deg, #26262a 0%, #1a1a1e 42%, #0e0e11 100%);
    --qd-term-border: rgba(255, 255, 255, 0.1);
    --qd-term-elev: 0 18px 52px rgba(0, 0, 0, 0.52);
    --qd-term-inset: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.pageQuestion--btc-terminal .qd-btc-panel {
    background: var(--qd-term-surface);
    border-color: var(--qd-term-border);
    box-shadow: var(--qd-term-elev), var(--qd-term-inset);
}

.pageQuestion--btc-terminal .qd-btc-col--left > *,
.pageQuestion--btc-terminal .qd-btc-col--mid > * {
    width: 100%;
    box-sizing: border-box;
}

.qd-btc-icon--img {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.qd-btc-icon--generic {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    font-size: 22px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.03) 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.qd-btc-icon--generic svg {
    width: 22px;
    height: 22px;
    opacity: 0.92;
}

/* Coluna direita: mesmo “peso” do painel Comprar do BTC */
.pageQuestion--btc-terminal .qd-terminal-side-picks.qd-btc-panel--trade {
    padding: 22px 22px 24px;
    background: var(--qd-term-surface);
    border-color: var(--qd-term-border);
    box-shadow: var(--qd-term-elev), var(--qd-term-inset);
}
.pageQuestion--btc-terminal .qd-terminal-side-trade-inner {
    width: 100%;
}
.pageQuestion--btc-terminal .qd-side-trade-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.pageQuestion--btc-terminal .qd-side-trade-thumb {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.08);
}
.pageQuestion--btc-terminal .qd-side-trade-tag {
    flex: 1;
    min-width: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    line-height: 1.25;
}
.pageQuestion--btc-terminal .qd-side-trade-summary .qd-btc-win-row.qd-side-win-only {
    justify-content: flex-end;
    margin-top: 2px;
}
.pageQuestion--btc-terminal .qd-side-trade-summary .qd-btc-win-row.qd-side-win-only span {
    display: none;
}
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-grid {
    margin: 0;
    gap: 12px;
    align-items: stretch;
}
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 18px 16px;
    border-radius: 14px;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
/* Binário: cartões estilo “trade pill” do Bitcoin */
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-card.yes:not(.qd-pick-card--palp) {
    background: linear-gradient(145deg, rgba(21, 128, 61, 0.45) 0%, rgba(22, 163, 74, 0.18) 55%, rgba(15, 80, 40, 0.15) 100%);
    border: 1px solid rgba(74, 222, 128, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-card.no:not(.qd-pick-card--palp) {
    background: linear-gradient(145deg, rgba(153, 27, 27, 0.5) 0%, rgba(220, 38, 38, 0.2) 55%, rgba(90, 20, 20, 0.18) 100%);
    border: 1px solid rgba(248, 113, 113, 0.4);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-card:not(.qd-pick-card--palp):hover:not(:disabled) {
    transform: translateY(-2px);
    filter: brightness(1.05);
}
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-card:not(.qd-pick-card--palp).active {
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-odds {
    font-size: 26px;
}
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-pct,
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-return {
    color: rgba(255, 255, 255, 0.72);
}
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-badge.yes { color: #bbf7d0; }
.pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-badge.no { color: #fecaca; }

/* Avenida / Palpity na coluna direita */
.pageQuestion--btc-terminal .qd-terminal-side-picks--aven .qd-pick-grid--avenida {
    width: 100%;
}
.pageQuestion--btc-terminal .qd-terminal-side-picks--aven .qd-pick-card--palp {
    min-height: 96px;
    border-radius: 14px;
    padding: 20px 16px;
}
.pageQuestion--btc-terminal .qd-terminal-side-picks--aven .qd-pick-card--palp.qd-pick-card.yes {
    background: linear-gradient(145deg, rgba(22, 163, 74, 0.5) 0%, rgba(21, 128, 61, 0.2) 100%);
    border: 1px solid rgba(74, 222, 128, 0.45);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.pageQuestion--btc-terminal .qd-terminal-side-picks--aven .qd-pick-card--palp.qd-pick-card.no {
    background: linear-gradient(145deg, rgba(185, 28, 28, 0.55) 0%, rgba(127, 29, 29, 0.22) 100%);
    border: 1px solid rgba(252, 165, 165, 0.42);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

/* Gráfico e chances */
.pageQuestion--btc-terminal .qd-chart-wrap {
    background: var(--qd-term-surface);
    border: 1px solid var(--qd-term-border);
    border-radius: 16px;
    padding: 18px 18px 14px;
    margin-bottom: 0;
    box-shadow: var(--qd-term-elev), var(--qd-term-inset);
}
.pageQuestion--btc-terminal .qd-chart-legend-item {
    color: rgba(255, 255, 255, 0.55);
}
.pageQuestion--btc-terminal .qd-chart-legend-item strong {
    color: rgba(255, 255, 255, 0.95);
}
.pageQuestion--btc-terminal .qd-chart-period {
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.25);
    color: rgba(255, 255, 255, 0.55);
    border-radius: 10px;
}
.pageQuestion--btc-terminal .qd-chart-period:hover {
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    border-color: rgba(255, 255, 255, 0.16);
}
.pageQuestion--btc-terminal .qd-chart-period.active {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(34, 197, 94, 0.35);
}

.pageQuestion--btc-terminal .qd-big-section {
    background: var(--qd-term-surface);
    border: 1px solid var(--qd-term-border);
    border-radius: 16px;
    padding: 20px 18px;
    box-shadow: var(--qd-term-elev), var(--qd-term-inset);
}
.pageQuestion--btc-terminal .qd-full-prog {
    border-radius: 999px;
    overflow: hidden;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.pageQuestion--btc-terminal .qd-big-chance {
    color: rgba(255, 255, 255, 0.45);
    font-weight: 800;
    letter-spacing: 0.12em;
}

.pageQuestion--btc-terminal .qd-description-card {
    background: var(--qd-term-surface);
    border: 1px solid var(--qd-term-border);
    border-radius: 16px;
    padding: 20px 20px;
    margin-top: 0;
    box-shadow: var(--qd-term-elev), var(--qd-term-inset);
}
.pageQuestion--btc-terminal .qd-description-title {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 800;
    letter-spacing: 0.04em;
}
.pageQuestion--btc-terminal .qd-description-text {
    color: rgba(255, 255, 255, 0.62);
}

.pageQuestion--btc-terminal .qd-multi-section {
    background: var(--qd-term-surface);
    border: 1px solid var(--qd-term-border);
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: var(--qd-term-elev), var(--qd-term-inset);
}
.pageQuestion--btc-terminal .qd-mopt-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.pageQuestion--btc-terminal .qd-mopt-card:hover {
    border-color: rgba(255, 255, 255, 0.14);
    background: rgba(255, 255, 255, 0.04);
}
.pageQuestion--btc-terminal .qd-mopt-btn.yes {
    background: linear-gradient(135deg, #15803d 0%, #22c55e 100%);
    border: none;
}
.pageQuestion--btc-terminal .qd-mopt-btn.no {
    background: linear-gradient(135deg, #991b1b 0%, #ef4444 100%);
    border: none;
}

/* Cabeçalho Avenida + vídeo: mesmo bloco visual */
.pageQuestion--btc-terminal .qd-avenida-pro-head {
    margin-bottom: 0;
    padding: 22px 22px 18px;
    border-radius: 16px;
    background: var(--qd-term-surface);
    border: 1px solid var(--qd-term-border);
    box-shadow: var(--qd-term-elev), var(--qd-term-inset);
}
.pageQuestion--btc-terminal .qd-palp-status-bar {
    border-radius: 16px 16px 0 0;
    padding: 14px 18px;
    background: linear-gradient(180deg, #1f1f23 0%, #17171a 100%);
    border: 1px solid var(--qd-term-border);
    border-bottom: none;
    box-shadow: var(--qd-term-inset);
}
.pageQuestion--btc-terminal .qd-palp-status-bar + .qd-rodovia-block--palp {
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--qd-term-border);
    border-top: none;
    margin-bottom: 20px;
    box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55);
}
.pageQuestion--btc-terminal .qd-rodovia-block:not(.qd-rodovia-block--palp) {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--qd-term-border);
    box-shadow: var(--qd-term-elev);
    margin-bottom: 20px;
}
.pageQuestion--btc-terminal .qd-palp-cam-foot {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0.75) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.pageQuestion--btc-terminal .qd-avenida-history-wrap,
.pageQuestion--btc-terminal .qd-avenida-orderbook {
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.2);
}

/* Rodapé do grid: countdown + regras */
.pageQuestion--btc-terminal #qdOptionsGrid > .qd-countdown {
    margin-top: 20px;
    border-radius: 16px;
    border: 1px solid var(--qd-term-border);
    background: var(--qd-term-surface);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4), var(--qd-term-inset);
}
.pageQuestion--btc-terminal #qdOptionsGrid > .qd-rules {
    border-top: none;
    padding: 20px 4px 8px;
}
.pageQuestion--btc-terminal #qdOptionsGrid > .qd-rules .qd-rules-title {
    color: rgba(255, 255, 255, 0.92);
}
.pageQuestion--btc-terminal #qdOptionsGrid > .qd-rules .qd-rules-text {
    color: rgba(255, 255, 255, 0.58);
}
.pageQuestion--btc-terminal .qd-ended-note {
    margin-top: 16px;
    border-radius: 12px;
    border: 1px solid rgba(250, 204, 21, 0.25);
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.12) 0%, rgba(0, 0, 0, 0.2) 100%);
    color: rgba(254, 240, 138, 0.95);
}

@media (max-width: 1100px) {
    .pageQuestion--btc-terminal .qd-terminal-side-picks .qd-pick-card {
        min-height: 0;
    }
}

/* Ambiente teste.gatgreen — links Palpity visíveis (sidebar desativada) */
.teste-palpity-banner {
    background: linear-gradient(90deg, #14532d 0%, #0f172a 100%);
    border-bottom: 1px solid rgba(34, 197, 94, 0.25);
    padding: 8px 14px;
    text-align: center;
    font-size: 13px;
    line-height: 1.35;
}
.teste-palpity-banner a {
    color: #86efac;
    font-weight: 600;
    text-decoration: none;
}
.teste-palpity-banner a:hover {
    text-decoration: underline;
}
.teste-palpity-banner-sep {
    color: #64748b;
    margin: 0 8px;
}
.teste-palpity-banner-sub {
    font-size: 12px;
    font-weight: 500 !important;
    color: #94a3b8 !important;
}
.teste-palpity-toplink {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    margin-right: 6px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    color: var(--green);
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    text-decoration: none;
    white-space: nowrap;
}
.teste-palpity-toplink:hover {
    filter: brightness(1.05);
}
.teste-palpity-moblink {
    flex-shrink: 0;
    font-size: 11px;
    font-weight: 700;
    color: var(--green);
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 6px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
}
.teste-palpity-moblink:active {
    opacity: 0.9;
}
