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

:root {
    --bg:      #0d0d0d;
    --bg2:     #111111;
    --card:    rgba(255,255,255,.02);
    --card2:   rgba(255,255,255,.04);
    --card3:   rgba(255,255,255,.06);
    --line:    rgba(255,255,255,.06);
    --line2:   rgba(255,255,255,.10);
    --text:    #f0f0f0;
    --text2:   #888;
    --text3:   #555;
    --green:        rgb(0,180,113);
    --green-bg:     rgba(0,180,113,.08);
    --green-border: rgba(0,180,113,.22);
    --green-soft:   rgba(0,180,113,.10);
    --red:          rgb(255,90,90);
    --red-bg:       rgba(255,90,90,.08);
    --red-border:   rgba(255,90,90,.22);
    --red-soft:     rgba(255,90,90,.10);
    --yellow:       #eab308;
    --sidebar-w: 220px;
    --right-w:   300px;
    --topbar-h:  52px;
    --r:         12px;
    --r2:        8px;
}

html, body { height: 100%; -webkit-text-size-adjust: 100% }
body {
    font-family: '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: rgba(255,255,255,.08); border-radius: 2px }
::-webkit-scrollbar-track { background: transparent }

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

/* SIDEBAR */
.sidebar {
    width: var(--sidebar-w); flex-shrink: 0;
    background: var(--bg2); border-right: none;
    display: flex; flex-direction: column; height: 100vh; overflow: hidden
}
.sb-logo-row {
    padding: 0 16px; height: var(--topbar-h);
    display: flex; align-items: center; gap: 9px;
    border-bottom: 1px solid rgba(255,255,255,.06); 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: 'Syne',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: rgba(255,255,255,.06);
    border-radius: 8px; transition: background .15s
}
.sb-logo-nav:hover { background: rgba(255,255,255,.09) }
.sidebar.collapsed .sb-logo-nav { display: none }

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

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

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

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

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

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

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

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

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

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

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

/* Collapse button */
.sb-collapse-btn {
    background: rgba(255,255,255,.06); 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: rgba(255,255,255,.06) }
#sbCollapseIcon { transition: transform .25s cubic-bezier(.4,0,.2,1) }

.sb-expand-btn {
    display: none;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    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: rgba(255,255,255,.09) }
/* Only show inside sidebar when it is collapsed */
.sidebar.collapsed .sb-expand-btn { display: flex !important }
/* NEVER on mobile — sidebar is hidden there */
@media(max-width:899px) { .sb-expand-btn { display: none !important } }

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

/* TOPBAR */
.topbar {
    height: var(--topbar-h); flex-shrink: 0;
    background: var(--bg2); border-bottom: 1px solid rgba(255,255,255,.06);
    display: flex; align-items: center; padding: 0 18px; gap: 14px
}
.topbar-breadcrumb { font-size: 13px; font-weight: 600; color: var(--text2); cursor: pointer; transition: color .15s; white-space: nowrap }
.topbar-breadcrumb:hover { color: var(--text) }
/* Trendzbr-style topbar nav label */
.topbar-nav-label {
    font-size: 14px; font-weight: 700; color: var(--text);
    cursor: pointer; white-space: nowrap; transition: color .15s;
    padding: 4px 10px; border-radius: 8px;
    background: rgba(255,255,255,.05)
}
.topbar-nav-label:hover { background: rgba(255,255,255,.08) }
.topbar-right { display: flex; align-items: center; gap: 10px; margin-left: auto }
.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 */
.topbar-search {
    flex: 1; max-width: 380px; position: relative; margin: 0 8px
}
.topbar-search input {
    width: 100%; background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.07);
    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: rgba(255,255,255,.14);
    background: rgba(255,255,255,.07); 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: absolute; top: calc(var(--topbar-h) + 6px); right: 16px; background: #1a1a1a; border: 1px solid var(--line2); border-radius: 12px; padding: 5px; z-index: 300; min-width: 180px; box-shadow: 0 16px 48px rgba(0,0,0,.7); 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 }

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

/* ═══ BANNERS ═══ */
.banner-outer { padding: 16px 18px 12px }

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

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

.banner-item img { width: 100%; height: 100%; object-fit: cover; object-position: center center; display: block }
.banner-overlay { position: absolute; inset: 0; background: linear-gradient(to right, rgba(0,0,0,.80) 0%, rgba(0,0,0,.40) 50%, rgba(0,0,0,.05) 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: 'Syne',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: rgba(255,255,255,.02);  /* rgb(255 255 255/2%) */
    border-radius: 16px;
    margin: 0 18px 14px;
    overflow: hidden
}
.section-outer + .section-outer { margin-top: 0 }

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

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

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

/* Í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: 22px 0 14px }
.section-hdr-left { display: flex; align-items: center; gap: 10px }
.section-hdr-icon { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.section-hdr-title { font-family: 'Syne',sans-serif; font-size: 15px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 6px }
.section-hdr-arrow { color: var(--text3); font-size: 14px; font-weight: 400 }
.section-hdr-right { display: flex; align-items: center }
.subtabs { display: flex; gap: 2px; background: var(--card2); border-radius: 8px; padding: 3px }
.subtab { padding: 4px 12px; font-size: 11.5px; font-weight: 600; color: var(--text3); border: none; background: transparent; border-radius: 6px; cursor: pointer; font-family: inherit; transition: all .15s }
.subtab.active { background: var(--card3); color: var(--text) }

/* LIVE */
.live-badge { display: inline-flex; align-items: center; gap: 4px; background: rgba(255,59,48,.10); border: 1px solid rgba(255,59,48,.25); border-radius: 5px; padding: 2px 7px; font-size: 9px; font-weight: 700; color: #ff3b30; letter-spacing: .4px; text-transform: uppercase; flex-shrink: 0 }
.live-dot { width: 5px; height: 5px; border-radius: 50%; background: #ff3b30; flex-shrink: 0; animation: livepulse 1.1s ease-in-out infinite }
@keyframes livepulse { 0%,100% { opacity: 1; transform: scale(1) } 50% { opacity: .35; transform: scale(.7) } }
.live-section-wrap { padding: 0 18px 28px }
.live-section-hdr { display: flex; align-items: center; justify-content: space-between; padding: 22px 0 14px }
.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: 'Syne',sans-serif; font-size: 15px; font-weight: 700; color: #ff3b30; display: flex; align-items: center; gap: 7px }

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

/* TREND CARD */
.trend-card { flex-shrink: 0; width: 260px; 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: 12px 12px 8px; display: flex; align-items: flex-start; gap: 10px }
.tc-thumb { width: 38px; height: 38px; border-radius: 8px; 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-info { flex: 1; min-width: 0 }
.tc-title { font-size: 12.5px; font-weight: 600; line-height: 1.38; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.tc-date { font-size: 10px; color: var(--text3); margin-top: 3px }
.tc-chance-row { padding: 0 12px 4px; display: flex; justify-content: space-between; align-items: center }
.tc-pct-yes, .tc-pct-no { font-size: 14px; font-weight: 800; color: var(--text) }
.tc-chance-label { font-size: 10px; color: var(--text3) }
.tc-prog { height: 3px; background: var(--red); border-radius: 2px; overflow: hidden; margin: 0 12px 10px }
.tc-prog-fill { height: 100%; background: var(--green); border-radius: 2px }
.tc-btns { display: flex; gap: 6px; padding: 0 12px 8px }
.tc-btn { flex: 1; border: none; border-radius: 20px; padding: 7px 8px; cursor: pointer; font-size: 11px; font-weight: 700; transition: filter .12s; display: flex; align-items: center; justify-content: center; gap: 3px; 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 12px 10px; font-size: 10px; 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: 260px; background: var(--card); border: 1.5px solid rgba(255,59,48,.22); border-radius: var(--r); cursor: pointer; transition: border-color .15s, background .15s; overflow: hidden; position: relative; animation: liveborder 2.5s ease-in-out infinite }
@keyframes liveborder { 0%,100% { border-color: rgba(255,59,48,.22) } 50% { border-color: rgba(255,59,48,.55) } }
.live-card:hover { background: var(--card2); border-color: rgba(255,59,48,.65); animation: none }
.live-card-top { padding: 12px 12px 8px; display: flex; align-items: flex-start; gap: 10px }
.live-card-thumb { width: 40px; height: 40px; border-radius: 50%; background: var(--card3); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.08) }
.live-card-thumb img { width: 100%; height: 100%; object-fit: cover }
.live-card-info { flex: 1; min-width: 0 }
.live-card-title { font-size: 12.5px; font-weight: 600; line-height: 1.38; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 5px }
.live-card-chance-row { padding: 0 12px 4px; display: flex; justify-content: space-between; align-items: center }
.live-card-prog { height: 3px; background: var(--red); border-radius: 2px; overflow: hidden; margin: 0 12px 10px }
.live-card-prog-fill { height: 100%; background: var(--green); border-radius: 2px }
.live-card-btns { display: flex; gap: 6px; padding: 0 12px 8px }
.live-card-btn { flex: 1; border: none; border-radius: 20px; padding: 7px 8px; cursor: pointer; font-size: 11px; font-weight: 700; transition: filter .12s; display: flex; align-items: center; justify-content: center; gap: 3px; 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 12px 10px; font-size: 10px; color: var(--text3); display: flex; justify-content: space-between }

/* CAT GRID */
.cat-cards-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; cursor: pointer; transition: border-color .15s, background .15s, transform .12s; min-height: 182px; 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: 9px; margin-bottom: 6px }
.cat-card-thumb { width: 34px; height: 34px; border-radius: 8px; 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: 12px; font-weight: 600; color: var(--text); line-height: 1.35; flex: 1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.cat-card-date { font-size: 10px; color: var(--text3); margin-bottom: 6px }
.cat-pct-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 3px }
.cat-pct-yes, .cat-pct-no { font-size: 14px; font-weight: 800; color: var(--text) }
.cat-pct-chance { font-size: 10px; color: var(--text3) }
.cat-prog { height: 3px; background: var(--red); border-radius: 2px; overflow: hidden; margin-bottom: 8px }
.cat-prog-fill { height: 100%; background: var(--green); border-radius: 2px }
.cat-btns { display: flex; gap: 5px; margin-top: auto }
.cat-btn { flex: 1; border: none; border-radius: 20px; padding: 6px 6px; cursor: pointer; font-size: 10.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 3px; 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: 9.5px; color: var(--text3); display: flex; justify-content: space-between; margin-top: 5px }
.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: rgba(0,0,0,.45); border: 1px solid rgba(255,255,255,.08); 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: rgba(0,0,0,.7); border-color: rgba(255,255,255,.18) }
.fav-btn svg { width: 13px; height: 13px; transition: all .15s; stroke: rgba(255,255,255,.55); 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: rgba(255,255,255,.02);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 14px;
    padding: 14px 14px 12px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex; flex-direction: column; gap: 0;
    position: relative; overflow: visible
}
.ec:hover { border-color: rgba(255,255,255,.11); background: rgba(255,255,255,.035) }

/* Inside section-outer: slightly brighter background */
.section-outer .ec {
    background: rgba(255,255,255,.05);
    border-color: rgba(255,255,255,.07)
}
.section-outer .ec:hover { background: rgba(255,255,255,.08) }

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

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

/* Thumb — circular like Trendzbr */
.ec-thumb {
    width: 40px; height: 40px; border-radius: 50%;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.08);
    overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center
}
.ec-thumb img { width: 100%; height: 100%; object-fit: cover }

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

/* 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: rgba(255,255,255,.3); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: color .15s; position: relative
}
.ec-action-btn:hover { color: rgba(255,255,255,.7) }

/* 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: #1e1e1e; border: 1px solid rgba(255,255,255,.10);
    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 rgba(0,0,0,.6)
}
.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: 'Syne',sans-serif; font-size: 17px; font-weight: 800; color: var(--text)
}
.ec-pct-no {
    font-family: 'Syne',sans-serif; font-size: 17px; font-weight: 800; color: var(--text)
}
.ec-pct-label { font-size: 10px; color: var(--text3) }

/* Progress bar */
.ec-prog {
    height: 3px; display: flex; border-radius: 2px; overflow: hidden;
    margin-bottom: 10px; background: rgba(255,255,255,.05)
}
.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: 6px; margin-bottom: 8px }
.ec-btn {
    flex: 1; border: none; border-radius: 20px;
    padding: 7px 8px; cursor: pointer;
    font-size: 11px; 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) }

/* Return row */
.ec-returns {
    display: flex; justify-content: space-between;
    font-size: 10.5px; 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: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); 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: rgba(255,255,255,.09) }
.qd-back-sep { color: var(--text3); font-size: 12px }
.qd-back-label { font-size: 12px; color: var(--text3) }
.qd-header { display: flex; align-items: flex-start; gap: 16px; padding: 0 0 20px }
.qd-thumb { width: 64px; height: 64px; border-radius: 14px; background: var(--card2); border: 1px solid var(--line); overflow: hidden; flex-shrink: 0; display: flex; align-items: center; justify-content: center }
.qd-thumb img { width: 100%; height: 100%; object-fit: cover }
.qd-header-info { flex: 1; min-width: 0 }
.qd-title { font-family: 'Syne',sans-serif; font-size: 22px; font-weight: 800; color: var(--text); line-height: 1.2; margin-bottom: 8px; letter-spacing: -.3px }
.qd-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap }
.qd-meta-item { font-size: 12px; color: var(--text3); display: flex; align-items: center; gap: 4px }
.qd-meta-sep { color: var(--text3); font-size: 11px }
.qd-header-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0 }
.qd-action-btn { width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: var(--text3); cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s }
.qd-action-btn:hover { background: rgba(255,255,255,.08); 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: rgba(255,255,255,.02); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.06); 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: rgba(255,255,255,.03) }
.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: 'Syne',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: rgba(255,255,255,.06); 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: 'Syne',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 rgba(255,255,255,.04)
}
.qd-opt-full-row:last-child { border-bottom: none }
.qd-opt-full-row:hover { background: rgba(255,255,255,.015); 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: 'Syne',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: rgba(255,255,255,.05);
    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: 'Syne',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 rgba(255,255,255,.04)
}
.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 rgba(255,255,255,.06); 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 rgba(255,255,255,.04) }
.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 rgba(255,255,255,.05)
}
.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: rgba(255,255,255,.07);
    border: 1px solid rgba(255,255,255,.1); color: var(--text3); cursor: pointer;
    display: flex; align-items: center; justify-content: center; transition: all .15s
}
.rpb-close:hover { background: rgba(255,255,255,.12); color: var(--text) }
.rpb-amount-display {
    text-align: center; padding: 20px 14px 8px; cursor: text; position: relative
}
.rpb-amount-prefix { font-family: 'Syne',sans-serif; font-size: 32px; font-weight: 800; color: var(--text3) }
.rpb-amount-val {
    font-family: 'Syne',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 rgba(255,255,255,.1); background: rgba(255,255,255,.05);
    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: 'Syne',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: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 16px; overflow: hidden;
    display: flex; flex-direction: column;
    /* No height:100% — shrinks to content */
}
.rp-tabs {
    display: flex; border-bottom: 1px solid rgba(255,255,255,.05);
    flex-shrink: 0; padding: 0 4px
}
.rp-tab { flex: 1; padding: 13px 8px; font-size: 13px; font-weight: 600; color: var(--text3); background: none; border: none; cursor: pointer; border-bottom: 2px solid transparent; transition: all .18s; font-family: inherit; margin-bottom: -1px; border-radius: 0 }
.rp-tab.active { color: var(--text); border-bottom-color: var(--green) }
.rp-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px 20px 20px; text-align: center; gap: 8px }
.rp-empty-step {
    font-size: 11px; font-weight: 700; color: #fff;
    background: var(--green); border-radius: 20px;
    padding: 4px 14px; letter-spacing: .2px;
    margin-bottom: 4px
}
.rp-empty-title { font-size: 13px; font-weight: 500; color: var(--text2); line-height: 1.5 }
.rp-empty-text { font-size: 12px; color: var(--text3); line-height: 1.6 }
.rp-tos { font-size: 10px; color: var(--text3); padding: 10px 16px 12px; border-top: none; text-align: center; line-height: 1.5 }
.rp-tos a { color: var(--green) }
.rp-bet-form { padding: 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; flex: 1 }
.rp-bet-question { font-size: 13px; font-weight: 500; color: var(--text); line-height: 1.45 }
.rp-bet-sub { font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3) }
.rp-pct-row { display: flex; justify-content: space-between; align-items: center }
.rp-pct-yes { font-size: 15px; font-weight: 800; color: var(--green) }
.rp-pct-no  { font-size: 15px; font-weight: 800; color: var(--red) }
.rp-prog { height: 3px; border-radius: 2px; background: var(--red); overflow: hidden }
.rp-prog-fill { height: 100%; border-radius: 2px; background: var(--green) }
.rp-choices { display: flex; gap: 6px }
.rp-choice { flex: 1; border-radius: 10px; padding: 10px 7px; border: 1px solid var(--line); background: var(--card); cursor: pointer; transition: all .15s; display: flex; flex-direction: column; align-items: center; gap: 4px; font-family: inherit }
.rp-choice:hover { border-color: var(--line2) }
.rp-choice-icon { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center }
.rp-choice-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--text3) }
.rp-choice-odd { font-size: 14px; font-weight: 800; color: var(--text) }
.rp-choice.yes-sel { background: var(--green-bg); border-color: var(--green-border) }
.rp-choice.yes-sel .rp-choice-label { color: var(--green) }
.rp-choice.yes-sel .rp-choice-odd { color: var(--green) }
.rp-choice.no-sel { background: var(--red-bg); border-color: var(--red-border) }
.rp-choice.no-sel .rp-choice-label { color: var(--red) }
.rp-choice.no-sel .rp-choice-odd { color: var(--red) }
.rp-return-row { display: flex; justify-content: space-between; align-items: center; background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 9px 12px }
.rp-return-label { font-size: 12px; font-weight: 500; color: var(--text2) }
.rp-return-val { font-size: 14px; font-weight: 800; color: var(--green); font-family: 'Syne',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: 'Syne',sans-serif; width: 100%; transition: border-color .2s }
.rp-amount-input:focus { border-color: rgba(255,255,255,.18) }
.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 rgba(255,255,255,.07); 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; 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) }
.overlay.center { align-items: center; padding: 16px }
.sheet { background: #141414; 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 rgba(255,255,255,.06) }
.sheet.center-sheet { background: #141414; border-radius: 18px; padding: 28px 24px; border: 1px solid rgba(255,255,255,.07); box-shadow: 0 32px 100px rgba(0,0,0,.75); animation: popIn .22s cubic-bezier(.22,1,.36,1) }
@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: rgba(255,255,255,.10); margin: 0 auto 18px }
.sheet-title { font-family: 'Syne',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: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); 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: rgba(255,255,255,.10); 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 rgba(255,255,255,.07); border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text); background: rgba(255,255,255,.05); transition: border-color .18s, background .18s; font-family: inherit }
.fld input:focus { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.07); outline: none }
.fld input::placeholder { color: rgba(255,255,255,.2) }
.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: rgba(255,255,255,.05); color: var(--text); border: 1px solid rgba(255,255,255,.08); font-weight: 600; font-size: 13px }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.13) }
.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: rgba(255,255,255,.05); color: var(--text2); font-size: 12px; font-weight: 600; border: 1px solid rgba(255,255,255,.07); cursor: pointer; transition: all .12s }
.qa:hover, .qa.active { background: var(--green); color: #050a05; border-color: var(--green) }
.tabs { display: flex; background: rgba(255,255,255,.04); 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: rgba(255,255,255,.07); 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: 'Syne',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: 'Syne',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: 'Syne',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: 'Syne',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: 'Syne',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 rgba(255,255,255,.08); 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: #1e1e1e; 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 rgba(0,0,0,.7); 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: 'Syne',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: rgba(255,255,255,.06); color: var(--text); border: 1px solid rgba(255,255,255,.09); 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: 10px }
#mobCards { background: var(--bg) }

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

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

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


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

/* 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 rgba(255,255,255,.04)
}
.qd-opt-full-row:last-child { border-bottom: none }
.qd-opt-full-row:hover { background: rgba(255,255,255,.02); 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 rgba(255,255,255,.06);
    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: 'Syne',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 rgba(255,255,255,.05)
}
.qd-rules-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; font-family: 'Syne',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) }

/* ══ 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: 'Syne',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-back-row { padding: 16px 24px 12px }
.qd-header { padding: 0 24px 20px }
#qdOptionsGrid { padding: 0 24px }
#qdActivity { padding: 0 24px }
