*, *::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;
    --sidebar-bg:  rgba(12,12,12,.92);
    --sidebar-brd: rgba(255,255,255,.06);
    --topbar-bg:   rgba(12,12,12,.65);
    --bnav-ic-color: rgba(255,255,255,.38);
    --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;
    --font-base: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-display: 'Montserrat', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* LIGHT THEME */
[data-theme="light"] {
    --bg:      #f0f2f5;
    --bg2:     #ffffff;
    --card:    rgba(0,0,0,.03);
    --card2:   rgba(0,0,0,.05);
    --card3:   rgba(0,0,0,.07);
    --line:    rgba(0,0,0,.07);
    --line2:   rgba(0,0,0,.12);
    --text:    #111111;
    --text2:   #555555;
    --text3:   #888888;
    --sidebar-bg:  rgba(255,255,255,.97);
    --sidebar-brd: rgba(0,0,0,.07);
    --topbar-bg:   rgba(255,255,255,.85);
    --bnav-ic-color: rgba(0,0,0,.35);
}
[data-theme="light"] body { background: var(--bg) }
[data-theme="light"] .topbar-avatar:hover { background: rgba(0,0,0,.04) }
[data-theme="light"] .bnav { border-top-color: rgba(0,0,0,.07) }
[data-theme="light"] ::-webkit-scrollbar-thumb { background: rgba(0,0,0,.12) }

html, body { height: 100%; -webkit-text-size-adjust: 100% }
body {
    font-family: var(--font-base);
    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(--sidebar-bg); border-right: none;
    display: flex; flex-direction: column; height: 100vh; overflow: hidden
}
.sidebar {
    border-radius: 18px;
    border: 1px solid var(--sidebar-brd);
    box-shadow: 0 18px 60px rgba(0,0,0,.55);
    margin: 10px 0 10px 10px;
    height: calc(100vh - 20px)
}
.sb-logo-row {
    padding: 0 16px; height: var(--topbar-h);
    display: flex; align-items: center; gap: 9px;
    border-bottom: none; flex-shrink: 0;
    position: relative
}
.sb-logo-row::after {
    content: '';
    position: absolute;
    left: 14px;
    right: 14px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent)
}
.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: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text); letter-spacing: -.2px }
.sb-logo-text span { color: var(--green) }
.sb-logo-mini { display: none; width: 30px; height: 30px; object-fit: contain }
.sidebar.collapsed .sb-logo-full { display: none !important }
.sidebar.collapsed .sb-logo-mini { display: block !important }

/* "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; overflow: hidden }
.sb-nav-item:hover { color: var(--text) }
.sb-nav-item.active { color: var(--text); font-weight: 600; background: transparent }

/* Active bar — thin primary-color strip on the left edge */
.sb-nav-item::before { content: none }
.dep-title-bar {
    position: absolute; left: 0; top: 50%; transform: translateY(-50%);
    width: 3px; height: 16px; border-radius: 0 3px 3px 0;
    background: var(--green); opacity: 0; transition: opacity .15s;
    pointer-events: none; flex-shrink: 0;
}
.sb-nav-item.active .dep-title-bar { opacity: 1; }

/* Sidebar icon box — always neutral gray */
.sb-nav-icon {
    width: 22px; height: 22px; border-radius: 0; background: transparent;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
    color: rgba(255,255,255,.42);
}
.sb-nav-item:hover .sb-nav-icon { color: rgba(255,255,255,.78); }
.sb-nav-item.active .sb-nav-icon { color: rgba(255,255,255,.85); }

/* <img> category icons */
.sb-nav-icon img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(1); opacity: .42; }
.sb-nav-item:hover .sb-nav-icon img { opacity: .78; }
.sb-nav-item.active .sb-nav-icon img { opacity: .85; }
.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-divider { background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent); margin: 10px 0 }
.sb-footer { border-top: none; padding: 6px 0 10px }

/* AFFILIATE CARD — sidebar desktop + mobile rsb */
.sb-aff-card {
    position: relative; overflow: hidden; border-radius: 20px;
    background: #14161B; padding: 14px 14px 12px;
    margin: auto 10px 6px; cursor: pointer; display: flex;
    flex-direction: column; gap: 0; min-height: 116px
}
.mob-rsb-aff {
    position: relative; overflow: hidden; border-radius: 20px;
    background: #14161B; padding: 14px 14px 12px;
    margin: 8px 16px 4px; cursor: pointer; display: flex;
    flex-direction: column; gap: 0; min-height: 116px
}
.sb-aff-orb {
    position: absolute; border-radius: 50%;
    filter: blur(24px); pointer-events: none
}
.sb-aff-orb.a { width: 48px; height: 48px; background: #FF3D00; top: 0; left: 0 }
.sb-aff-orb.b { width: 48px; height: 48px; background: #FF3D00; bottom: 0; right: 0 }
.sb-aff-coins {
    position: absolute; right: 0; top: 0;
    height: 80px; object-fit: cover; pointer-events: none
}
.sb-aff-badge {
    display: inline-block; background: rgba(255,255,255,.06);
    border-radius: 6px; padding: 2px 8px;
    font-size: 10px; font-weight: 500; color: #fff;
    margin-bottom: 8px; width: fit-content
}
.sb-aff-body { margin-bottom: 10px; max-width: 174px }
.sb-aff-title { font-size: 14px; font-weight: 600; color: #fff; line-height: 1.3; margin: 0 0 4px }
.sb-aff-sub { font-size: 11px; font-weight: 400; color: rgba(255,255,255,.5); margin: 0 }
.sb-aff-btn {
    position: relative; z-index: 2;
    width: 100%; border: none; border-radius: 999px;
    background: #fff; color: #000;
    font-size: 12px; font-weight: 600; padding: 8px;
    cursor: pointer; font-family: inherit; margin-top: auto
}
.sb-aff-btn:hover { background: rgba(255,255,255,.92) }
/* Hide affiliate card when sidebar is collapsed */
.sidebar.collapsed .sb-aff-card { display: none }
.sb-mobile-nav-section { display: none }
.sb-account-group { display: flex; flex-direction: column; gap: 6px }
.sb-account-toggle { width: 100%; border: 0; background: transparent; text-align: left; font-family: inherit }
.sb-account-caret { transition: transform .16s ease }
.sb-account-menu { display: none; padding-left: 10px }
.sb-account-group.open .sb-account-menu { display: block }
.sb-account-group.open .sb-account-caret { transform: rotate(180deg) }
.sb-subnav-item { padding-left: 28px; font-size: 12px }
#sb-nav-profile, #sb-nav-affiliates { 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 }
.sidebar.collapsed .sb-account-menu { 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 }
#main { margin: 10px 10px 10px 0; border-radius: 18px; overflow: hidden }

/* TOPBAR */
.topbar {
    height: var(--topbar-h); flex-shrink: 0;
    background: var(--topbar-bg); border-bottom: none;
    display: flex; align-items: center; padding: 0 18px; gap: 14px;
    position: relative
}
.topbar::after {
    content: '';
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.06), transparent)
}
.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: #fff; border: none; border-radius: 10px; padding: 7px 16px; font-size: 13px; font-weight: 700; cursor: pointer; transition: filter .15s; white-space: nowrap; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 6px }
.topbar-deposit-btn:hover { filter: brightness(1.1) }
.topbar-avatar { display: flex; align-items: center; gap: 5px; cursor: pointer; color: var(--text3); padding: 3px 6px; border-radius: 8px; transition: background .15s }
.topbar-avatar:hover { background: rgba(255,255,255,.05) }

.bal-pill {
    height: 34px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 8px 0 6px;
    border-radius: 999px;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.08);
    color: var(--text)
}

.bal-pill-val {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: -.1px;
    color: var(--text);
    white-space: nowrap
}

.bal-pill-btn {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: var(--text2);
    cursor: pointer;
    transition: filter .15s, border-color .15s, color .15s
}

.bal-pill-btn:hover {
    color: var(--text);
    border-color: rgba(255,255,255,.16)
}

.bal-pill-btn svg {
    width: 15px;
    height: 15px
}

.bal-pill-plus {
    background: var(--green);
    border-color: var(--green);
    color: #050a05
}

.bal-pill-plus:hover {
    filter: brightness(1.08)
}

.bal-pill-btn.spinning svg {
    animation: spin .75s linear infinite
}
/* 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 40px 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-search-suffix {
    position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.10);
    border-radius: 5px; padding: 2px 7px; font-size: 11px; font-weight: 600;
    color: rgba(255,255,255,.55); pointer-events: none; line-height: 1.4
}

.topbar-auth-group { display: flex; align-items: center; gap: 6px }
.topbar-auth-group .btn-ghost { width: 104px; padding: 7px 0; text-align: center; display: inline-flex; align-items: center; justify-content: center; gap: 6px }
.topbar-auth-group .topbar-deposit-btn { width: 124px }
/* legacy avatar rules removed — replaced by .topbar-avatar at line 243 */
.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) + 8px); right: 16px; background: var(--bg2); border: 1px solid var(--line); border-radius: 14px; padding: 6px; z-index: 300; min-width: 220px; box-shadow: 0 20px 60px rgba(0,0,0,.5); 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) } }
.ud-user { display: flex; align-items: center; gap: 10px; padding: 10px 10px 12px }
.ud-name { font-size: 14px; font-weight: 700; color: var(--text) }
.ud-uid-wrap { display: inline-flex; align-items: center; gap: 5px; background: rgba(128,128,128,.12); border: 1px solid rgba(128,128,128,.15); border-radius: 6px; padding: 3px 7px; margin-top: 4px; cursor: pointer; color: var(--text3); transition: background .12s }
.ud-uid-wrap:hover { background: rgba(128,128,128,.2) }
.ud-uid { font-size: 11px; color: var(--text3); font-family: monospace; letter-spacing: .3px }
.ud-sep { height: 1px; background: var(--line); margin: 2px 0 }
.ud-item { display: flex; align-items: center; gap: 10px; padding: 10px 10px; border-radius: 8px; cursor: pointer; transition: background .12s; font-size: 13px; font-weight: 500; color: var(--text2) }
.ud-item:hover { background: var(--card); color: var(--text) }
.ud-danger { color: #ef4444 }
.ud-danger:hover { background: rgba(239,68,68,.08) }

/* 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 6px }

/* ═══ MARKET TICKER ═══ */
.market-ticker {
    margin: 0 18px 14px;
    border-radius: 10px;
    background: rgba(255,255,255,.03);
    border: 1px solid rgba(255,255,255,.06);
    overflow: hidden;
    height: 38px;
    display: flex;
    align-items: center;
    position: relative;
}
.market-ticker::before,
.market-ticker::after {
    content: ''; position: absolute; top: 0; bottom: 0; width: 32px; z-index: 2; pointer-events: none;
}
.market-ticker::before { left: 0; background: linear-gradient(to right, var(--bg2), transparent); }
.market-ticker::after  { right: 0; background: linear-gradient(to left, var(--bg2), transparent); }
.market-ticker-track {
    display: flex; align-items: center; gap: 0;
    white-space: nowrap;
    animation: tickerScroll 40s linear infinite;
    will-change: transform;
}
.market-ticker-track:hover { animation-play-state: paused; }
@keyframes tickerScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}
.ticker-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 20px; height: 38px;
    border-right: 1px solid rgba(255,255,255,.05);
    cursor: pointer; transition: background .12s;
    flex-shrink: 0;
}
.ticker-item:hover { background: rgba(255,255,255,.04); }
.ticker-item-name {
    font-size: 11px; font-weight: 600; color: var(--text2);
    max-width: 140px; overflow: hidden; text-overflow: ellipsis;
}
.ticker-item-pct {
    font-size: 12px; font-weight: 800; font-family: 'Syne', sans-serif;
    color: var(--text);
    background: rgba(255,255,255,.06);
    border-radius: 5px; padding: 1px 7px;
}
.ticker-item-dot {
    width: 5px; height: 5px; border-radius: 50%; flex-shrink: 0;
    background: rgba(255,255,255,.2);
}
.ticker-item img { filter: brightness(0) invert(1); opacity: .5; flex-shrink: 0; }

#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: var(--font-display); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.banner-cta { position: absolute; bottom: 10px; left: 14px; font-size: 11px; font-weight: 700; color: var(--green); z-index: 2; display: flex; align-items: center; gap: 6px; background: #fff; border: none; border-radius: 6px; padding: 5px 14px; cursor: pointer; transition: opacity .15s; white-space: nowrap }
.banner-cta:hover { opacity: .9 }
.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 }

/* ═══ MERCADOS RÁPIDOS — Cravano-style card scroll ═══ */

/* The section-outer clips; override for mq sections */
.section-outer:has(.mq-scroll),
.mq-section-outer { overflow: visible }

.mq-scroll {
    display: flex; gap: 0;
    overflow-x: auto; overflow-y: visible;
    padding: 4px 18px 22px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none; -ms-overflow-style: none;
}
.mq-scroll::-webkit-scrollbar { display: none }
.section-outer .mq-scroll { padding: 4px 18px 22px }

/* Slide wrapper — holds the trapezoid badge + card */
.mq-slide {
    flex: 0 0 360px; width: 360px;
    display: flex; flex-direction: column; align-items: flex-start;
    padding: 0 8px;
    scroll-snap-align: center;
    transition: transform .3s cubic-bezier(.4,0,.2,1);
    transform: scale(0.88);
    transform-origin: center bottom;
}
.mq-slide.mq-active { transform: scale(1); }

/* Trapezoid "Em Alta" badge above the card */
.mq-badge-wrap {
    position: relative; height: 18px; width: 100px;
    margin-bottom: -1px; z-index: 2; margin-left: 16px;
}
.mq-badge-wrap svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mq-badge-text {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    font-size: 10px; font-weight: 700; color: #fff; letter-spacing: .4px;
    text-transform: uppercase; padding-bottom: 1px; padding-left: 4px;
}

/* Card itself */
.mq-card {
    width: 100%;
    background: var(--card2);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 18px 18px 16px;
    cursor: pointer;
    display: flex; flex-direction: column; gap: 0;
    height: 298px;
    transition: border-color .15s, background .15s;
    position: relative; overflow: hidden;
}
.mq-slide.mq-active .mq-card { border-color: var(--line2); }
.mq-card:hover { border-color: var(--line2); background: var(--card3); }

/* Top row: category pill + market image */
.mq-card-top {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 10px; flex-shrink: 0;
}
.mq-cat-pill {
    display: inline-flex; align-items: center; gap: 4px;
    background: var(--card3); border-radius: 999px;
    padding: 5px 10px 5px 5px;
    font-size: 11px; font-weight: 600; color: var(--text2);
    max-width: 160px; overflow: hidden;
}
.mq-cat-pill-icon {
    width: 16px; height: 16px; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
}
.mq-cat-pill-icon img { width: 16px; height: 16px; object-fit: contain; filter: brightness(0) invert(1); opacity: .5; }
.mq-cat-pill-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mq-market-img {
    width: 46px; height: 46px; border-radius: 12px; object-fit: cover;
    background: var(--card3); flex-shrink: 0;
    display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.mq-market-img img { width: 46px; height: 46px; object-fit: cover; border-radius: 12px; }

/* Title */
.mq-title {
    font-size: 22px; font-weight: 600; line-height: 1.25; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden; margin-bottom: 10px; flex: 1;
}

/* Chance row */
.mq-chance {
    display: flex; align-items: baseline; gap: 5px; margin-bottom: 8px; flex-shrink: 0;
}
.mq-chance-val {
    font-size: 18px; font-weight: 700; color: var(--text); line-height: 1;
}
.mq-chance-label { font-size: 11px; color: var(--text3); font-weight: 500; }

/* New market badge */
.mq-chance-new { align-items: center; gap: 8px }
.mq-new-badge {
    display: inline-flex; align-items: center;
    background: rgba(0,180,113,.15); border: 1px solid rgba(0,180,113,.3);
    color: #00b471; border-radius: 6px;
    padding: 2px 8px; font-size: 11px; font-weight: 700;
    letter-spacing: .3px; white-space: nowrap; flex-shrink: 0;
}

/* Progress bar */
.mq-prog {
    height: 4px; border-radius: 2px; background: rgba(255,90,90,.3);
    margin-bottom: 12px; overflow: hidden; flex-shrink: 0;
}
.mq-prog-fill { height: 100%; background: #00b471; border-radius: 2px; }

/* Buttons */
.mq-btns { display: flex; gap: 8px; flex-shrink: 0; }
.mq-btn {
    flex: 1; border: none; border-radius: 16px; height: 50px; padding: 0 12px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    display: flex; align-items: center; justify-content: center; gap: 5px;
    font-family: inherit; transition: background .18s, color .18s, transform .1s;
    white-space: nowrap;
}
.mq-btn:active { transform: scale(.97) }
.mq-btn-yes { background: rgba(0,180,113,.15); color: #00b471; }
.mq-btn-yes:hover { background: #00b471; color: #fff; }
.mq-btn-no  { background: rgba(255,90,90,.12); color: var(--red); }
.mq-btn-no:hover { background: var(--red); color: #fff; }
.section-outer .cat-cards-grid { padding: 0 18px 18px }
.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: 22px; height: 22px; border-radius: 0;
    background: transparent; border: none;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0
}
.section-icon-trend img { filter: brightness(0) invert(1); opacity: .75; }
.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: var(--font-display); 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: var(--font-display); 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 — square thumb horizontal layout */
.live-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; display: flex; flex-direction: column; }
.live-card:hover { background: var(--card2); border-color: var(--line2) }
/* Live card cover — full width banner for live carousel */
.live-card-cover { width: 100%; height: 130px; position: relative; overflow: hidden; background: #101218; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.live-card-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; display: block; }
.live-card-cover-grad { position: absolute; inset: 0; z-index: 2; background: linear-gradient(to bottom, transparent 30%, rgba(0,0,0,.7) 100%); pointer-events: none; }
.live-card-cover-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; z-index: 0; }
.live-card-cover-icon img { width: 44px; height: 44px; object-fit: contain; filter: brightness(0) invert(1); opacity: .2; }
.live-card-cover-no-img .live-card-cover-icon img { opacity: .32; }
.live-card-body { padding: 9px 12px 12px; flex: 1; }
/* legacy top row - hidden */
.live-card-top { display: none; }
.live-card-thumb { display: none; }
.live-card-info { display: none; }
.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: 6px; }
.live-card-chance-row { padding: 0 0 4px; display: flex; justify-content: space-between; align-items: center }
.live-card-prog { height: 3px; background: var(--red); border-radius: 2px; overflow: hidden; margin-bottom: 10px; }
.live-card-prog-fill { height: 100%; background: #00b471; border-radius: 2px }
.live-card-btns { display: flex; gap: 6px; }
.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(0,180,113,.15); color: #00b471 }
.live-card-btn-yes:hover { filter: brightness(1.15) }
.live-card-btn-no  { background: rgba(180,30,30,.22); color: var(--red) }
.live-card-btn-no:hover { filter: brightness(1.15) }
.live-card.ec {
    width: 460px;
    min-height: 184px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255,255,255,.03);
    border-color: rgba(255,255,255,.07);
}
.live-card.ec:hover {
    background: rgba(255,255,255,.06);
    border-color: rgba(255,255,255,.11);
}
.live-card.ec .ec-cover {
    width: 92px;
    height: 92px;
    border-radius: 12px;
}

/* CAT GRID */
.cat-cards-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px }
.cat-card { /* layout handled by .ec */ }

/* MULTI-SCROLL BAR */
.ec-multi-scroll { max-height: 170px; overflow-y: auto; overflow-x: hidden; padding-right: 0; display: flex; flex-direction: column; gap: 8px; margin-top: 12px; margin-bottom: 4px; scrollbar-width: none; -ms-overflow-style: none; }
.ec-multi-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 136px); gap: 10px; align-items: center }
.ec-multi-left { display: flex; align-items: center; gap: 8px; min-width: 0 }
.ec-multi-thumb { width: 26px; height: 26px; border-radius: 10px; overflow: hidden; flex-shrink: 0; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center }
.ec-multi-thumb img { width: 100%; height: 100%; object-fit: cover }
.ec-multi-name { font-size: 12px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.ec-multi-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; width: 136px }
.ec-multi-btn { padding: 6px 6px; font-size: 10.5px; justify-content: center; min-width: 0 }
.ec-multi-scroll::-webkit-scrollbar { display: none; }

@media(max-width:520px) {
    .ec-multi-row { grid-template-columns: minmax(0, 1fr) minmax(0, 136px) }
    .ec-multi-actions { width: 136px }
    .ec-multi-btn { font-size: 10px; padding: 6px 6px }
}

.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: 4; transition: all .15s; backdrop-filter: blur(4px); flex-shrink: 0 }
.ec-cover .fav-btn, .live-card-cover .fav-btn { z-index: 4; }
.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 — square thumb + horizontal layout ═══
   Usado por trend-card, cat-card, live-card, mob-card
════════════════════════════════════════════════════ */
.ec {
    background: rgba(255,255,255,.02);
    border-radius: 18px;
    padding: 18px 18px 16px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    display: flex; flex-direction: row; align-items: flex-start; gap: 14px;
    position: relative; overflow: hidden
}
.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,.03);
    border-color: rgba(255,255,255,.07)
}
.section-outer .ec:hover { background: rgba(255,255,255,.06) }

.ec-live { border-color: var(--line) }
.ec-live:hover { border-color: var(--line2) }

/* Square thumbnail — fixed square, card grows from padding */
.ec-cover {
    width: 92px; height: 92px; flex-shrink: 0; position: relative;
    border-radius: 12px; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    align-self: flex-start;
}
.ec-cover-img {
    position: absolute; inset: 0; width: 100%; height: 100%;
    object-fit: cover; z-index: 1; display: block; border-radius: 12px;
}
.ec-cover-grad { display: none; }
.ec-cover-icon {
    position: absolute; inset: 0; display: flex;
    align-items: center; justify-content: center; z-index: 0;
}
.ec-cover-icon img {
    width: 44px; height: 44px; object-fit: contain;
    filter: brightness(0) invert(1); opacity: .28;
}
.ec-cover-no-img .ec-cover-icon img { opacity: .38; }
.ec-cover-live-badge {
    position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); z-index: 3;
    display: inline-flex; align-items: center; gap: 3px;
    background: rgba(255,59,48,.85);
    border-radius: 4px; padding: 1px 5px;
    font-size: 7px; font-weight: 700; color: #fff;
    letter-spacing: .3px; text-transform: uppercase; white-space: nowrap;
}

/* Card body — takes remaining space */
.ec-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0; padding: 0; }

/* Top row — title + actions */
.ec-top {
    display: flex; align-items: flex-start; gap: 6px;
    margin-bottom: 10px; width: 100%
}
/* legacy thumb — hidden in new layout */
.ec-thumb { display: none; }

.ec-info { flex: 1; min-width: 0; overflow: hidden; }
.ec-title {
    font-size: 14px; font-weight: 700; line-height: 1.42; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
    word-break: break-word; margin-bottom: 6px;
    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: 6px
}
.ec-pct-yes {
    font-family: 'Syne',sans-serif; font-size: 16px; font-weight: 800; color: var(--text)
}
.ec-pct-no {
    font-family: 'Syne',sans-serif; font-size: 16px; font-weight: 800; color: var(--text)
}
.ec-pct-label { font-size: 10.5px; color: var(--text3) }

/* Progress bar — hardcoded yes/no colors, independent of primary_color */
.ec-prog {
    height: 4px; display: flex; border-radius: 3px; overflow: hidden;
    margin-bottom: 14px; background: rgba(255,255,255,.05)
}
.ec-prog-yes { background: #00b471; 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: 7px; }
.ec-btn {
    flex: 1; border: none; border-radius: 20px;
    padding: 8px 10px; 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: #00b471; border-radius: 20px }
.ec-btn-yes:hover { filter: brightness(1.15) }
.ec-btn-no  { background: rgba(180,30,30,.22); color: var(--red); border-radius: 20px }
.ec-btn-no:hover { filter: brightness(1.15) }

.ec-crypto {
    background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.015));
    border: 1px solid rgba(255,255,255,.06);
}
.ec-crypto-body { width: 100%; gap: 12px }
.ec-crypto-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px }
.ec-crypto-ident { display: flex; align-items: flex-start; gap: 10px; min-width: 0 }
.ec-crypto-thumb {
    width: 38px; height: 38px; border-radius: 12px; overflow: hidden; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08)
}
.ec-crypto-thumb img { width: 100%; height: 100%; object-fit: cover }
.ec-crypto-copy { min-width: 0 }
.ec-crypto-title {
    font-size: 13px; font-weight: 800; color: var(--text); line-height: 1.3;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden
}
.ec-crypto-symbol { font-size: 11px; color: var(--text3); margin-top: 4px }
.ec-crypto-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 180px); gap: 14px; align-items: center }
.ec-crypto-stack { min-width: 0 }
.ec-crypto-price-label { font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .4px; margin-bottom: 4px }
.ec-crypto-price { font-family: var(--font-display); font-size: 28px; font-weight: 800; color: #f8fafc; line-height: 1 }
.ec-crypto-change { font-size: 11px; font-weight: 700; margin-top: 6px; margin-bottom: 10px }
.ec-crypto-change.up { color: var(--green) }
.ec-crypto-change.down { color: var(--red) }
.ec-crypto-change.flat { color: var(--text3) }
.ec-crypto-chart-wrap {
    height: 56px; margin-bottom: 0; border-radius: 10px;
    background: linear-gradient(180deg, rgba(0,180,113,.10), rgba(16,18,24,.18));
    border: 1px solid rgba(255,255,255,.04); overflow: hidden
}
.ec-crypto-spark { width: 100%; height: 56px; display: block }

/* 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-hero { width: 98%; height: 260px; border-radius: 18px; overflow: hidden; position: relative; background: var(--card); margin: 8px 14px -72px }
.qd-hero-bg { position: absolute; inset: 0; background-size: cover; background-position: center }
.qd-hero-bg { background-repeat: no-repeat; background-position: var(--hero-x, 50%) var(--hero-y, 25%) }
.qd-hero-grad { position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(0,0,0,.06) 0%, rgba(13,14,16,.25) 55%, var(--bg) 100%) }
.qd-shell { background: var(--bg); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); position: relative; z-index: 2; padding: 18px 14px 18px }
.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-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: var(--font-display); 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; margin-right: 28px }
.qd-action-btn { width: 32px; height: 32px; border-radius: 8px; background: rgba(20,20,20,.34); border: 1px solid rgba(255,255,255,.14); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all .15s; box-shadow: 0 4px 14px rgba(0,0,0,.18) }
.qd-action-btn:hover { background: rgba(255,255,255,.10); color: #fff; border-color: rgba(255,255,255,.22) }
.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-multi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px }
.qd-multi-card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; transition: border-color .15s, background .15s }
.qd-multi-card:hover { background: var(--card2); border-color: var(--line2) }
.qd-multi-card.active { border-color: rgba(94,255,110,.35); box-shadow: 0 0 0 1px rgba(94,255,110,.18) inset }
.qd-multi-top { display: flex; align-items: center; gap: 10px; min-width: 0; margin-bottom: 10px }
.qd-multi-ava { width: 34px; height: 34px; border-radius: 12px; 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 }
.qd-multi-ava img { width: 100%; height: 100%; object-fit: cover }
.qd-multi-title { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0 }
.qd-multi-pcts { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px }
.qd-multi-pct { font-family: var(--font-display); font-size: 14px; font-weight: 900; color: var(--text) }
.qd-multi-chance { font-size: 10px; color: var(--text3) }
.qd-multi-bar { height: 4px; display: flex; overflow: hidden; border-radius: 3px; background: rgba(255,255,255,.06) }
.qd-multi-bar-yes { height: 100%; background: var(--green); border-radius: 3px 0 0 3px }
.qd-multi-bar-no  { height: 100%; background: var(--red); border-radius: 0 3px 3px 0 }
.qd-multi-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px }
.qd-multi-btn { border: none; border-radius: 20px; padding: 9px 8px; cursor: pointer; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; gap: 4px; font-family: inherit; white-space: nowrap; min-width: 0 }
.qd-multi-btn.yes { background: rgba(94,255,110,.12); color: var(--green) }
.qd-multi-btn.no  { background: rgba(255,77,77,.10); color: var(--red) }

.qd-chart { display: none }
.qd-chart-hdr { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px }
.qd-chart-title { font-weight: 800; color: var(--text); font-size: 13px }
.qd-chart-sub { font-size: 11px; color: var(--text3) }
.qd-chart canvas { width: 100%; height: 120px; max-height: 120px; display: block }

.crypto-panel { background: transparent; margin-top: 14px; margin-bottom: 12px }
.crypto-panel-head {
    display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
    margin-bottom: 14px
}
.crypto-panel-symbol {
    font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text); margin-top: 4px
}
.crypto-panel-countdown { font-size: 12px; font-weight: 700; color: var(--text2); white-space: nowrap; padding-top: 6px }
.crypto-panel-stats { display: flex; gap: 20px; margin-bottom: 16px; flex-wrap: wrap }
.crypto-stat { min-width: 120px }
.crypto-stat-label { display: block; font-size: 11px; color: var(--text3); margin-bottom: 4px }
.crypto-stat-value { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text) }
.crypto-stat-value.live { color: var(--green) }
.crypto-stat-delta { display: inline-block; margin-top: 3px; font-size: 12px; font-weight: 800 }
.crypto-stat-delta.up { color: var(--green) }
.crypto-stat-delta.down { color: var(--red) }
.crypto-stat-delta.flat { color: var(--text3) }
.crypto-panel-chart {
    min-height: 240px; border-radius: 14px;
    background: linear-gradient(180deg, rgba(5,12,9,.94), rgba(6,9,16,.86));
    border: 1px solid rgba(255,255,255,.05);
    padding: 10px 8px;
}
.crypto-panel-chart canvas { width: 100%; height: 240px; display: block }
.crypto-panel-strip {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
    margin-top: 14px; color: var(--text3)
}
.crypto-strip-pill {
    background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--text);
    border-radius: 16px; padding: 8px 14px; font-size: 12px; font-weight: 700; font-family: inherit
}
.crypto-strip-dots { display: flex; align-items: center; gap: 6px }
.cp-dot {
    width: 10px; height: 10px; border-radius: 50%; display: inline-block;
    background: rgba(255,255,255,.22)
}
.cp-dot.up { background: var(--green) }
.cp-dot.down { background: #ff6b6b }
.cp-dot.flat { background: #94a3b8 }
.crypto-strip-vol { font-size: 12px; color: var(--text2) }

@media(max-width:899px) {
    .qd-multi-grid { grid-template-columns: 1fr }
    .crypto-panel-chart { min-height: 210px }
    .crypto-panel-chart canvas { height: 210px }
    .qd-header-actions { margin-right: 0 }
}

.mob-bet-hero { position: sticky; top: 0; z-index: 0 }
.mob-bet-banner { width: 100%; height: 300px; background: var(--card); overflow: hidden; position: relative }
.mob-bet-banner img { width: 100%; height: 100%; object-fit: cover; object-position: var(--banner-x, 50%) var(--banner-y, 30%); display: block }
.mob-bet-nav { position: absolute; top: 0; left: 0; right: 0; padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; z-index: 3 }
.mob-bet-back { background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.18); color: #fff; border-radius: 12px; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; cursor: pointer; backdrop-filter: blur(10px) }
.overlay#mobBetSheet { align-items: stretch; justify-content: stretch; }
.overlay#mobBetSheet .sheet {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    max-height: 100vh;
    padding: 0;
    border-radius: 0;
    background: var(--bg);
    border-top: 0;
    overflow-y: auto;
}
#mobBetSheet.mini-bet { align-items: flex-end; justify-content: center; }
#mobBetSheet.mini-bet { background: rgba(0,0,0,.28) !important; }
#mobBetSheet.mini-bet .sheet {
    height: auto !important; /* override inline height:100% */
    max-height: 54vh;
    padding: 12px 14px calc(12px + env(safe-area-inset-bottom));
    border-radius: 18px 18px 0 0;
    background: var(--bg2);
    border-top: 1px solid var(--line);
}
#mobBetSheet.mini-bet #mobBetHero,
#mobBetSheet.mini-bet #mobBetSpecialView,
#mobBetSheet.mini-bet #mobBetGenericView,
#mobBetSheet.mini-bet #mobSpecialChoiceBar { display: none !important; }
#mobBetSheet.mini-bet .mob-bet-content {
    margin-top: 0;
    padding: 0;
    display: block;
    flex: 0 0 auto;
    background: transparent;
    border-top: 0;
    border-radius: 0;
}
#mobMiniHeader { display: none; }
#mobBetSheet.mini-bet #mobMiniHeader {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 0 0 10px;
    margin-bottom: 10px;
    border-bottom: 1px solid var(--line);
}
.overlay#mobBetSheet.mini-bet #mobBetAmount {
    padding: 12px 12px 12px 40px !important;
    font-size: 18px !important;
    border-radius: 12px !important;
}
.overlay#mobBetSheet.mini-bet #mobConfirmBtn {
    padding: 12px !important;
    border-radius: 12px !important;
    font-size: 15px !important;
}
.mob-mini-left {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.mob-mini-thumb {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mob-mini-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mob-mini-title {
    font-weight: 900;
    font-size: 14px;
    line-height: 1.2;
    color: var(--text);
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.mob-mini-pill {
    flex: 0 0 auto;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 950;
    letter-spacing: .2px;
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: var(--text);
}
.mob-mini-pill.yes { border-color: rgba(34,197,94,.28); background: rgba(34,197,94,.10); color: #00b471; }
.mob-mini-pill.no  { border-color: rgba(239,68,68,.28); background: rgba(239,68,68,.10); color: var(--red); }
#mobBetSheet #mobBetPctYes { color: #00b471 !important; }
#mobBetSheet #mobBetProg { background: #00b471 !important; }

.qd-mob-choicebar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: calc(60px + env(safe-area-inset-bottom) + 10px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    z-index: 95;
    pointer-events: auto;
}
@media(min-width:900px) {
    .qd-mob-choicebar { display: none !important; }
}
.mob-bet-nav-balance {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 8px 12px; border-radius: 16px;
    background: rgba(12,14,18,.82); border: 1px solid rgba(255,255,255,.08);
    color: #fff; backdrop-filter: blur(12px)
}
.mob-bet-nav-balance-plus {
    width: 30px; height: 30px; border-radius: 50%;
    border: 0; background: rgba(255,255,255,.12); color: #fff;
    display: inline-flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 18px
}
.mob-bet-nav-balance-copy { display:flex; flex-direction:column; align-items:flex-end; gap:2px; }
.mob-bet-nav-balance-label { font-size:11px; color:rgba(255,255,255,.6); line-height:1; }
.mob-bet-nav-balance-value { font-family:var(--font-display); font-size:14px; font-weight:900; color:#fff; line-height:1; }
.mob-bet-nav-title { font-weight: 800; font-size: 15px; color: #fff; text-shadow: 0 8px 24px rgba(0,0,0,.55) }
.mob-bet-content { margin-top: -84px; padding: 18px 18px 24px; flex: 1; display: flex; flex-direction: column; gap: 18px; background: var(--bg); border-radius: 22px 22px 0 0; border-top: 1px solid var(--line); position: relative; z-index: 2 }
.mob-bet-title { font-size: 20px; font-weight: 850; color: var(--text); line-height: 1.25 }
.mob-bet-hero.standard-market .mob-bet-banner { height: 332px; }
.mob-bet-hero.standard-market .mob-bet-content { margin-top: -116px; }
.mob-bet-hero.special-market .mob-bet-banner { height: 172px; }
.mob-bet-hero.special-market .mob-bet-banner img { filter: blur(8px) brightness(.42) saturate(.95); transform: scale(1.08); }
.mob-bet-hero.special-market .mob-bet-content { margin-top: -38px; }
.mob-generic-view { display:flex; flex-direction:column; }
.mob-generic-card {
    display:flex; flex-direction:column; gap:16px;
    background: linear-gradient(180deg, var(--card2), var(--card));
    border: 1px solid var(--line);
    border-radius: 28px; padding: 24px 14px 18px;
    box-shadow: 0 18px 42px rgba(0,0,0,.36)
}
.mob-generic-title { text-align:center; font-size:20px; line-height:1.35; }
.mob-generic-step {
    align-self:center; padding:10px 16px; border-radius:999px;
    background: rgba(255,255,255,.05); border:1px solid rgba(255,255,255,.06);
    color: var(--text2); font-size:12px; font-weight:800
}
.mob-generic-meta { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.mob-generic-meta-item { background:var(--card); border:1px solid var(--line); border-radius:14px; padding:12px; }
.mob-generic-meta-label { font-size:11px; color:var(--text3); text-transform:uppercase; font-weight:700; letter-spacing:.8px; }
.mob-generic-meta-value { font-size:14px; font-weight:800; color:var(--text); margin-top:4px; }
.mob-generic-oddsbox {
    background: rgba(255,255,255,.02); border:1px solid rgba(255,255,255,.06);
    border-radius: 24px; padding: 18px 16px 16px
}
.mob-generic-expiry { border-radius: 18px !important; }
.mob-generic-actions { margin-top: -2px; }
.mob-special-view { display:flex; flex-direction:column; gap:18px; }
.mob-special-top { display:flex; flex-direction:column; gap:18px; }
.mob-special-head { display:grid; grid-template-columns: 52px minmax(0,1fr) auto; gap:12px; align-items:center; }
.mob-special-thumb { width:52px; height:52px; border-radius:16px; background:var(--card); border:1px solid var(--line); overflow:hidden; display:flex; align-items:center; justify-content:center; }
.mob-special-thumb img { width:100%; height:100%; object-fit:cover; display:block; }
.mob-special-title { font-size:18px; font-weight:850; color:var(--text); line-height:1.25; }
.mob-special-time { font-family:var(--font-display); font-size:14px; font-weight:900; color:#ff6666; text-align:right; line-height:1.1; white-space:pre-line; }
.mob-special-stats { display:flex; gap:20px; flex-wrap:wrap; }
.mob-special-stat { min-width:120px; }
.mob-special-label { font-size:12px; color:var(--text3); margin-bottom:4px; }
.mob-special-value { font-family:var(--font-display); font-size:22px; font-weight:900; color:var(--text); line-height:1; }
.mob-special-value.live { color:#8b5cf6; }
.mob-special-delta { margin-top:6px; font-size:12px; font-weight:800; color:var(--red); }
.mob-special-visual { border-radius:16px; background:linear-gradient(180deg, rgba(5,12,9,.94), rgba(6,9,16,.86)); border:1px solid rgba(255,255,255,.05); overflow:hidden; }
.mob-special-visual canvas { width:100%; height:280px; display:block; }
.mob-special-traffic-frame { position:relative; min-height:220px; background:#0a0b0d; }
.mob-special-traffic-frame img { width:100%; min-height:220px; object-fit:cover; display:block; }
.mob-special-traffic-badge { position:absolute; right:12px; top:12px; background:rgba(255,59,48,.16); border:1px solid rgba(255,59,48,.28); color:#ff5b5b; border-radius:999px; padding:6px 10px; font-size:10px; font-weight:800; letter-spacing:.6px; }
.mob-special-strip { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.mob-special-pill { background:rgba(255,255,255,.04); border:1px solid rgba(255,255,255,.08); color:var(--text); border-radius:16px; padding:8px 14px; font-size:12px; font-weight:700; font-family:inherit; }
.mob-special-dots { display:flex; align-items:center; gap:6px; }
.mob-special-vol { font-size:12px; color:var(--text2); }
.mob-special-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.mob-special-action-btn { display:flex; align-items:center; justify-content:center; gap:8px; background:var(--card); border:1px solid var(--line); border-radius:12px; padding:12px; color:var(--text); font-weight:700; font-size:13px; font-family:inherit; cursor:pointer; }
.mob-special-activity { display:flex; flex-direction:column; gap:10px; }
.mob-special-activity-title { font-size:16px; font-weight:850; color:var(--text); }
.mob-special-act-item { display:flex; align-items:flex-start; gap:12px; padding:12px 0; border-bottom:1px solid rgba(255,255,255,.05); }
.mob-special-act-item:last-child { border-bottom:none; }
.mob-special-act-avatar { width:38px; height:38px; border-radius:50%; display:flex; align-items:center; justify-content:center; color:#fff; font-size:12px; font-weight:800; flex-shrink:0; }
.mob-special-act-body { flex:1; min-width:0; }
.mob-special-act-main { font-size:14px; color:var(--text2); line-height:1.4; }
.mob-special-act-name { color:var(--text); font-weight:700; }
.mob-special-act-sub { font-size:12px; color:var(--text3); margin-top:2px; }
.mob-special-act-time { font-size:12px; color:var(--text3); white-space:nowrap; margin-top:2px; }
.mob-special-choicebar { position:sticky; bottom:0; display:grid; grid-template-columns:1fr 1fr; gap:12px; padding-top:12px; padding-bottom:calc(8px + env(safe-area-inset-bottom)); background:linear-gradient(to top, var(--bg) 70%, rgba(13,14,16,0)); }
.mob-special-choice {
    border: 1px solid rgba(255,255,255,.10);
    background: rgba(255,255,255,.04);
    color: var(--text);
    border-radius: 16px;
    padding: 16px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 850;
    cursor: pointer;
    position: relative;
    transition: transform .12s, box-shadow .12s, background .12s, border-color .12s, filter .12s;
}
.mob-special-choice.yes i { color: #00b471; }
.mob-special-choice.no  i { color: var(--red); }
.mob-special-choice:active { transform: translateY(1px); }
.mob-special-choice.yes.active {
    background: linear-gradient(180deg, rgba(0,180,113,.92), rgba(0,180,113,.74));
    border-color: rgba(0,180,113,.40);
    color: #fff;
}
.mob-special-choice.no.active {
    background: linear-gradient(180deg, rgba(255,90,90,.92), rgba(255,90,90,.74));
    border-color: rgba(255,90,90,.40);
    color: #fff;
}
.mob-special-choice.yes.active i,
.mob-special-choice.no.active i { color: #fff; }
.mob-special-choice-main { display:flex; align-items:center; gap:8px; }
.mob-special-choice-main i { font-size:20px; }
.mob-special-choice-odd { background: rgba(0,0,0,.28); color: #fff; border-radius:999px; padding:4px 10px; font-size:12px; font-weight:900; border: 1px solid rgba(255,255,255,.12); }
.mob-special-choice.active {  transform: translateY(-1px); }
.mob-bet-desc { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: left }
.overlay#mobBetSheet.choicebar-mode #mobBetOptionsContainer { display: none !important; }
.overlay#mobBetSheet.choicebar-mode #mobBetBinaryStats { padding-bottom: 10px; }
.overlay#mobBetSheet #mobConfirmBtn { background: #00b471 !important; color: #050a05 !important; }
.mob-bet-desc-title { font-size: 13px; font-weight: 800; color: var(--text); margin-bottom: 8px }
.mob-bet-desc-text { font-size: 12px; color: var(--text2); line-height: 1.55; max-height: 86px; overflow: hidden }
.mob-bet-desc.expanded .mob-bet-desc-text { max-height: none }
.mob-bet-desc-toggle { width: 100%; margin-top: 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 9px 10px; color: var(--text2); font-weight: 700; font-size: 12px; font-family: inherit; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px }

@media(max-width:520px) {
    .mob-bet-banner { height: 256px; }
    .mob-bet-hero.standard-market .mob-bet-banner { height: 294px; }
    .mob-bet-hero.standard-market .mob-bet-content { margin-top: -100px; }
    .mob-bet-hero.special-market .mob-bet-banner { height: 148px; }
    .mob-generic-card { border-radius:24px; padding:22px 12px 16px; }
    .mob-special-head { grid-template-columns: 46px minmax(0,1fr) auto; gap:10px; }
    .mob-special-thumb { width:46px; height:46px; border-radius:14px; }
    .mob-special-title { font-size:16px; }
    .mob-generic-title { font-size:18px; }
    .mob-special-stats { gap:16px; }
    .mob-special-stat { min-width: 0; flex:1 1 calc(50% - 8px); }
    .mob-special-value { font-size:20px; }
    .mob-special-visual canvas { height:250px; }
    .mob-special-actions { grid-template-columns: 1fr 1fr; }
    .mob-special-choice { padding:15px 12px; font-size:14px; }
    .mob-special-choice-odd { padding:4px 8px; font-size:11px; }
}

@media (min-width: 980px) {
  .qd-hero { display: none }
  .qd-shell { background: transparent; border-top: 0; border-radius: 0; padding: 0 }
}
.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: #00b471 }
.qd-option-label.no  { color: var(--red) }
.qd-option-pct { font-family: var(--font-display); 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: #00b471; border-radius: 3px }
.qd-option-prog.no  { height: 100%; background: var(--red);   border-radius: 3px }
.qd-option-odds { font-family: var(--font-display); 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: #00b471; transition: width .5s }
.qd-big-prog-no  { background: var(--red); transition: width .5s; flex: 1 }
.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: var(--green-bg); 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: var(--font-display); 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: #00b471; 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: var(--font-display); 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: #00b471; 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: #00b471 }
.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: #00b471; background: rgba(0,180,113,.10); border: 1px solid rgba(0,180,113,.22);
    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: var(--font-display); 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: #00b471; color: #050a05; border-color: #00b471 }
.rpb-confirm {
    width: 100%; padding: 14px; border: none; border-radius: 10px;
    background: #00b471; 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: #00b471 }
.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: #00b471; 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: #00b471 }
.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: #00b471 }
.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: #00b471 }
.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: rgba(0,180,113,.10); border-color: rgba(0,180,113,.22) }
.rp-choice.yes-sel .rp-choice-label { color: #00b471 }
.rp-choice.yes-sel .rp-choice-odd { color: #00b471 }
.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: #00b471; font-family: var(--font-display) }
.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: var(--font-display); 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: #00b471; 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) } }

.overlay.fx { opacity: 0; pointer-events: none; transition: opacity .18s ease }
.overlay.fx.is-open { opacity: 1; pointer-events: auto }
.overlay.fx .sheet { animation: none; opacity: 0; transform: translateY(14px); transition: opacity .22s cubic-bezier(.22,1,.36,1), transform .22s cubic-bezier(.22,1,.36,1) }
.overlay.center.fx .sheet { transform: scale(.97) }
.overlay.fx.is-open .sheet { opacity: 1; transform: none }
.sheet-handle { width: 36px; height: 3px; border-radius: 2px; background: rgba(255,255,255,.10); margin: 0 auto 18px }
.modal-logo-row { display: flex; justify-content: center; margin: 2px 0 12px }
.modal-logo-row img { width: 150px; height: 100px; object-fit: contain; display: block; opacity: .95 }
.sheet-title { font-family: var(--font-display); 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) }
.auth-sheet { max-width: 420px; width: 100%; position: relative }
.auth-sheet .modal-close { float: none; position: absolute; top: 14px; right: 14px; margin: 0 }
.auth-head { display: flex; flex-direction: column; align-items: center; text-align: center; margin-top: 4px; margin-bottom: 16px }
.auth-logo { width: 160px; height: 100px; display: flex; align-items: center; justify-content: center; overflow: hidden; margin-bottom: 16px }
.auth-logo img { width: 100%; height: 100%; object-fit: contain; display: block }
.auth-title { font-family: var(--font-display); font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -.4px; line-height: 1.2 }
.auth-sub { margin-top: 6px; font-size: 12.5px; color: var(--text3); line-height: 1.5 }
.auth-sso-wrap { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px }
.auth-sso { width: 100%; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--text); padding: 12px 14px; font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-family: inherit }
.auth-sso.disabled { opacity: .55; cursor: not-allowed }
.auth-sso-ic { width: 26px; height: 26px; border-radius: 9px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center }
.auth-email-row { display: flex; gap: 10px; align-items: center }
.auth-inp { width: 100%; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; font-size: 13.5px; font-weight: 600; color: var(--text); background: rgba(255,255,255,.05); transition: border-color .18s, background .18s; font-family: inherit }
.auth-inp:focus { border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.07); outline: none }
.auth-inp::placeholder { color: rgba(255,255,255,.22) }
.auth-cta { padding: 12px 14px; border-radius: 12px; background: var(--green); border: 1px solid var(--green-border); color: #fff; font-size: 12.5px; font-weight: 800; cursor: pointer; font-family: inherit; white-space: nowrap }
.auth-cta:disabled { opacity: .4; cursor: not-allowed }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 16px 0 }
.auth-or span { flex: 1; height: 1px; background: rgba(255,255,255,.07) }
.auth-or b { font-size: 11px; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: 1px }
.auth-alt { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px }
.auth-alt-btn { width: 44px; height: 44px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); color: rgba(255,255,255,.8); display: flex; align-items: center; justify-content: center; cursor: pointer }
.auth-alt-btn.disabled { opacity: .55; cursor: not-allowed }
.auth-foot { font-size: 12px; color: var(--text3); text-align: center; line-height: 1.6 }
.auth-foot a { color: var(--green); font-weight: 800; text-decoration: none }
.auth-email-chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.04); color: var(--text2); font-size: 12.5px; font-weight: 600 }
.auth-link { border: none; background: transparent; color: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit }
.auth-login-btn { margin-top: 10px }
.auth-hero { border-radius: 16px; background: linear-gradient(135deg, rgba(17,17,17,.9) 0%, rgba(22,24,25,.96) 55%, rgba(12,12,12,.94) 100%); border: 1px solid rgba(255,255,255,.07); padding: 16px 16px; display: flex; align-items: center; justify-content: space-between; gap: 14px; position: relative; overflow: hidden }
.auth-hero::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 72% 45%, rgba(94,255,110,.18) 0%, transparent 58%) }
.auth-hero-left { position: relative; z-index: 1 }
.auth-hero-tag { font-size: 10px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px }
.auth-hero-ttl { font-family: var(--font-display); font-size: 20px; font-weight: 900; color: #fff; line-height: 1.1; letter-spacing: -.3px }
.auth-hero-ttl span { color: var(--green) }
.auth-hero-logo { width: 62px; height: 62px; border-radius: 18px; background: rgba(0,0,0,.18); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: center; position: relative; z-index: 1; overflow: hidden }
.auth-hero-logo img { width: 64%; height: 64%; object-fit: contain; display: block }
.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: #fff }
.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 */
.tex-card { background: var(--card); border-radius: var(--r); border: 1px solid var(--line); position: relative; overflow: hidden }
.tex-card::before { content: ''; position: absolute; inset: 0; background-image: url('/assets/images/texture.webp'), radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.12) 0%, transparent 55%), radial-gradient(ellipse at 85% 35%, rgba(94,255,110,.10) 0%, transparent 62%); background-repeat: repeat, no-repeat, no-repeat; background-size: 520px auto, 140% 140%, 160% 160%; background-position: center bottom, 20% 10%, 85% 35%; opacity: .30; mix-blend-mode: soft-light; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.14) 35%, rgba(0,0,0,.92) 100%); mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.14) 35%, rgba(0,0,0,.92) 100%) }
.tex-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 10%, rgba(255,255,255,.045) 0%, transparent 58%), linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,.08) 100%); pointer-events: none }
.tex-card > * { position: relative; z-index: 1 }
.tex-inset { position: relative; overflow: hidden }
.tex-inset::before { content: ''; position: absolute; inset: 0; background-image: url('/assets/images/texture.webp'), radial-gradient(ellipse at 30% 10%, rgba(255,255,255,.11) 0%, transparent 55%), radial-gradient(ellipse at 75% 30%, rgba(94,255,110,.10) 0%, transparent 62%); background-repeat: repeat, no-repeat, no-repeat; background-size: 520px auto, 160% 160%, 180% 180%; background-position: center bottom, 30% 10%, 75% 30%; opacity: .24; mix-blend-mode: soft-light; pointer-events: none; -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.12) 35%, rgba(0,0,0,.88) 100%); mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.12) 35%, rgba(0,0,0,.88) 100%) }
.tex-inset::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 12%, rgba(255,255,255,.05) 0%, transparent 60%); pointer-events: none; opacity: .7 }
.tex-inset > * { position: relative; z-index: 1 }
.port-card { padding: 16px; border-radius: 18px }
.port-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px }
.port-label { font-size: 12px; color: var(--text3); font-weight: 700; margin-bottom: 8px }
.port-value { font-family: var(--font-display); font-size: 34px; font-weight: 1000; color: #fff; letter-spacing: -.6px; line-height: 1 }
.port-delta { margin-top: 8px; font-size: 12px; font-weight: 800; letter-spacing: -.1px }
.port-delta.pos { color: var(--green) }
.port-delta.neg { color: var(--red) }
.port-ico-btn { width: 40px; height: 40px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: var(--text2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s, background .15s, color .15s; flex-shrink: 0 }
.port-ico-btn:hover { border-color: rgba(255,255,255,.14); background: rgba(255,255,255,.06); color: var(--text) }
.port-subgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px }
.port-sub { padding: 10px 10px; border-radius: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); min-width: 0 }
.port-sub-lbl { font-size: 10px; color: rgba(255,255,255,.45); font-weight: 800; text-transform: uppercase; letter-spacing: .6px }
.port-sub-val { margin-top: 6px; font-family: var(--font-display); font-size: 16px; font-weight: 900; color: #fff; letter-spacing: -.2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.port-sub-tag { display: inline-flex; align-items: center; justify-content: center; padding: 4px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,.10); background: rgba(255,255,255,.06); color: #fff; font-size: 10px; font-weight: 900; margin-top: 6px }
.port-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px }
.port-dot { width: 8px; height: 8px; border-radius: 999px; background: rgba(255,255,255,.20) }
.port-dot.active { background: #fff }

.bal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px }
.bal-title { font-size: 13px; font-weight: 800; color: rgba(255,255,255,.8) }
.bal-value { margin-top: 10px; font-family: var(--font-display); font-size: 30px; font-weight: 1000; color: var(--green); letter-spacing: -.5px }
.bal-sub { margin-top: 10px; font-size: 12px; color: var(--text3); font-weight: 700 }
.bal-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px }
.btn-lite { width: 100%; padding: 13px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.06); color: #fff; font-size: 13px; font-weight: 900; cursor: pointer; font-family: inherit; display: flex; align-items: center; justify-content: center; gap: 8px; transition: background .15s, border-color .15s, transform .12s }
.btn-lite:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.12); transform: translateY(-1px) }
.btn-lite:disabled { opacity: .35; cursor: not-allowed; transform: none }
.btn-lite.brand { background: linear-gradient(180deg, #ff641f 0%, #ff4d0a 100%); border-color: rgba(255,120,64,.45); color: #fff }
.btn-lite.brand:hover { background: linear-gradient(180deg, #ff7435 0%, #ff5a17 100%); border-color: rgba(255,140,88,.55) }
.btn-lite.dark { background: rgba(255,255,255,.03) }
.btn-lite.dark:hover { background: rgba(255,255,255,.05) }

@media(max-width:899px) {
    .port-subgrid { grid-template-columns: repeat(3, 1fr); gap: 8px }
    .port-value { font-size: 30px }
    .bal-value { font-size: 26px }
    .port-card { padding: 14px }
}
.prof-shell { display: flex; flex-direction: column; gap: 12px }
.prof-top { padding: 16px }
.prof-top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.prof-top-ident { display: flex; align-items: center; gap: 12px; min-width: 0 }
.prof-top-meta { min-width: 0 }
.prof-top-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 14px }
.prof-kpi { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 12px; padding: 10px 12px }
.prof-kpi-lbl { font-size: 9.5px; color: var(--text3); font-weight: 700; text-transform: uppercase; letter-spacing: .6px }
.prof-kpi-val { font-family: var(--font-display); font-size: 14px; font-weight: 800; margin-top: 4px; color: var(--text) }
.prof-kpi-val.accent { color: var(--green) }
.prof-top-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px }
.prof-icon-btn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: var(--text2); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: border-color .15s, background .15s, color .15s }
.prof-icon-btn:hover { border-color: rgba(255,255,255,.14); color: var(--text) }
.prof-icon-btn svg { width: 16px; height: 16px }
.prof-menu { display: flex; gap: 8px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06) }
.prof-menu-btn { flex: 1; padding: 10px 8px; border-radius: 12px; border: 1px solid transparent; background: transparent; color: rgba(255,255,255,.55); font-size: 12px; font-weight: 900; letter-spacing: .8px; text-transform: uppercase; cursor: pointer; transition: background .15s, border-color .15s, color .15s; font-family: inherit }
.prof-menu-btn.active { background: var(--green-bg); border-color: var(--green-border); color: var(--green) }
.prof-panels { display: flex; flex-direction: column; gap: 10px }
.prof-panel { padding: 16px }
.prof-panel-title { font-family: var(--font-display); font-size: 14px; font-weight: 900; color: var(--text); letter-spacing: -.2px; margin-bottom: 10px }
.prof-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px solid rgba(255,255,255,.06) }
.prof-row:first-of-type { border-top: none; padding-top: 0 }
.prof-row span { font-size: 12px; color: var(--text3); font-weight: 600 }
.prof-row b { font-size: 12.5px; color: var(--text); font-weight: 800 }
.hist-list { display: flex; flex-direction: column; gap: 10px }
.hist-item { display: flex; gap: 12px; align-items: center; padding: 12px 12px; border-radius: 16px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06) }
.hist-ic { width: 38px; height: 38px; border-radius: 14px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: rgba(255,255,255,.80) }
.hist-ic.dep { background: rgba(94,255,110,.10); border-color: rgba(94,255,110,.18); color: var(--green) }
.hist-ic.wit { background: rgba(255,77,77,.08); border-color: rgba(255,77,77,.14); color: var(--red) }
.hist-ic.yes { background: rgba(94,255,110,.10); border-color: rgba(94,255,110,.18); color: var(--green) }
.hist-ic.no { background: rgba(255,77,77,.08); border-color: rgba(255,77,77,.14); color: var(--red) }
.hist-mid { flex: 1; min-width: 0 }
.hist-title { font-size: 13px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.hist-sub { font-size: 11.5px; font-weight: 700; color: var(--text3); margin-left: 6px }
.hist-meta { margin-top: 4px; font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.hist-right { text-align: right; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-end; gap: 6px }
.hist-amt { font-size: 13px; font-weight: 900; letter-spacing: -.2px }
.hist-amt.pos { color: var(--green) }
.hist-amt.neg { color: var(--red) }
.hist-pill { padding: 3px 9px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .6px; text-transform: uppercase; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: rgba(255,255,255,.7) }
.hist-pill.ok { background: var(--green-bg); border-color: var(--green-border); color: var(--green) }
.hist-pill.rej { background: var(--red-bg); border-color: var(--red-border); color: var(--red) }
.hist-pill.pend { background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.18); color: var(--yellow) }
.hist-empty { padding: 26px 12px; text-align: center; color: var(--text3); font-size: 12px }

.portfolio-shell { display: flex; flex-direction: column; gap: 14px }
.portfolio-hero-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(280px, .95fr); gap: 14px }
.portfolio-hero, .portfolio-balance { padding: 22px; border-radius: 24px }
.portfolio-hero {
    border-color: rgba(255, 88, 27, .72);
    background:
        radial-gradient(circle at 88% 78%, rgba(255, 87, 34, .22) 0%, rgba(255, 87, 34, 0) 28%),
        radial-gradient(circle at 15% 8%, rgba(255,255,255,.05) 0%, transparent 28%),
        linear-gradient(180deg, rgba(10,11,16,.98) 0%, rgba(8,9,13,.98) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04), 0 0 0 1px rgba(255, 88, 27, .06);
}
.portfolio-balance { background: linear-gradient(180deg, rgba(10,11,16,.98) 0%, rgba(12,13,18,.98) 100%) }
.portfolio-hero-top, .portfolio-balance-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px }
.portfolio-hero-actions, .portfolio-balance-icons { display: flex; align-items: center; gap: 10px }
.portfolio-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 5px; border-radius: 999px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.05) }
.portfolio-toggle-btn { border: 0; background: transparent; color: rgba(255,255,255,.62); padding: 9px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; cursor: pointer; font-family: inherit; transition: background .15s, color .15s }
.portfolio-toggle-btn.active { background: #f3f4f6; color: #101114 }
.portfolio-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 26px }
.portfolio-metric { display: flex; flex-direction: column; gap: 8px; min-width: 0 }
.portfolio-metric span { font-size: 13px; color: #92a0bd; font-weight: 600 }
.portfolio-metric strong { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: #fff; letter-spacing: -.35px }
.portfolio-metric small { display: inline-flex; align-self: flex-start; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.08); color: #fff; font-size: 10px; font-weight: 800 }
.portfolio-balance-foot { margin-top: 14px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; color: var(--text3) }
.portfolio-balance-foot span { font-size: 12px; font-weight: 700 }
.portfolio-balance-foot strong { font-size: 15px; color: var(--text); font-weight: 900 }
.portfolio-balance-foot em { font-style: normal; font-size: 11px; color: var(--text3) }
.portfolio-strip { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px }
.portfolio-strip-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 16px; border: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.025) }
.portfolio-strip-icon { width: 34px; height: 34px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.06); flex-shrink: 0 }
.portfolio-strip-copy { min-width: 0; display: flex; flex-direction: column; gap: 2px }
.portfolio-strip-copy span { font-size: 11px; color: var(--text3); font-weight: 700; line-height: 1.2 }
.portfolio-strip-copy strong { font-size: 22px; font-weight: 900; color: rgba(255,255,255,.9); letter-spacing: -.3px }
.portfolio-board { padding: 20px; border-radius: 28px; min-height: 510px }
.portfolio-board-head { display: flex; align-items: center; justify-content: space-between; gap: 12px }
.portfolio-board-tabs { display: flex; gap: 10px }
.portfolio-tab { padding: 12px 18px; border-radius: 14px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.02); color: rgba(255,255,255,.68); font-size: 14px; font-weight: 800; cursor: pointer; transition: background .15s, color .15s, border-color .15s; font-family: inherit }
.portfolio-tab.active { background: linear-gradient(180deg, #ff641f 0%, #ff4d0a 100%); border-color: rgba(255,126,80,.52); color: #fff; box-shadow: 0 10px 24px rgba(255,93,29,.16) }
.portfolio-board-filters { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 12px; margin-top: 16px }
.portfolio-search { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 48px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.04); color: var(--text3) }
.portfolio-search input { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit }
.portfolio-search input::placeholder { color: rgba(255,255,255,.32) }
.portfolio-order { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 14px; height: 48px; border-radius: 14px; border: 1px solid rgba(255,255,255,.06); background: rgba(255,255,255,.04) }
.portfolio-order span { font-size: 13px; color: var(--text3); font-weight: 700 }
.portfolio-order select { flex: 1; min-width: 0; background: transparent; border: 0; outline: 0; color: #fff; font: inherit; text-align: right }
.portfolio-board-body { margin-top: 18px; display: flex; flex-direction: column; gap: 12px }
.portfolio-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 18px; border: 1px solid rgba(255,255,255,.05); background: rgba(255,255,255,.025) }
.portfolio-row-icon { width: 42px; height: 42px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.05); color: rgba(255,255,255,.82) }
.portfolio-row-icon.deposit, .portfolio-row-icon.yes { background: rgba(34,197,94,.10); border-color: rgba(34,197,94,.18); color: var(--green) }
.portfolio-row-icon.withdraw, .portfolio-row-icon.no { background: rgba(239,68,68,.10); border-color: rgba(239,68,68,.18); color: var(--red) }
.portfolio-row-main { flex: 1; min-width: 0 }
.portfolio-row-title { font-size: 14px; font-weight: 800; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.portfolio-row-title span { color: #8ea0c8; font-size: 12px; margin-left: 6px }
.portfolio-row-meta { margin-top: 4px; font-size: 11.5px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.portfolio-row-side { flex-shrink: 0; text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 7px }
.portfolio-row-value { font-size: 14px; font-weight: 900; color: #fff }
.portfolio-row-value.pos { color: var(--green) }
.portfolio-row-value.neg { color: var(--red) }
.portfolio-row-pill { padding: 4px 10px; border-radius: 999px; font-size: 10px; font-weight: 900; letter-spacing: .4px; text-transform: uppercase; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: rgba(255,255,255,.7) }
.portfolio-row-pill.ok { background: var(--green-bg); border-color: var(--green-border); color: var(--green) }
.portfolio-row-pill.rej { background: var(--red-bg); border-color: var(--red-border); color: var(--red) }
.portfolio-row-pill.pend { background: rgba(234,179,8,.08); border-color: rgba(234,179,8,.18); color: var(--yellow) }
.portfolio-empty { min-height: 330px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; color: var(--text3) }
.portfolio-empty-icon { width: 76px; height: 76px; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.06); color: rgba(255,255,255,.55); margin-bottom: 14px }
.portfolio-empty-title { font-size: 15px; color: #d3def8; font-weight: 800 }
.portfolio-empty-sub { margin-top: 6px; font-size: 12px; max-width: 280px }

@media(max-width:1100px) {
    .portfolio-hero-grid { grid-template-columns: 1fr }
    .portfolio-strip { grid-template-columns: repeat(3, minmax(0, 1fr)) }
}

@media(max-width:899px) {
    .portfolio-hero, .portfolio-balance, .portfolio-board { padding: 16px }
    .portfolio-metrics { grid-template-columns: 1fr; gap: 12px }
    .portfolio-strip { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .portfolio-board-filters { grid-template-columns: 1fr }
    .portfolio-board-head, .portfolio-board-tabs { display: flex; overflow-x: auto; padding-bottom: 2px }
    .portfolio-tab { white-space: nowrap }
    .portfolio-row { align-items: flex-start }
    .portfolio-row-side { min-width: 92px }
}
.prof-hero { background: var(--card); border-radius: var(--r); padding: 16px; margin-bottom: 10px; border: 1px solid var(--line) }
.prof-name { font-family: var(--font-display); 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: var(--font-display); 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 { padding: 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 12px }
.aff-head { display: flex; align-items: center; gap: 10px }
.aff-head-ic { width: 36px; height: 36px; border-radius: 14px; background: var(--green-bg); border: 1px solid var(--green-border); display: flex; align-items: center; justify-content: center; flex-shrink: 0 }
.aff-head-txt { min-width: 0 }
.aff-hero-title { font-family: var(--font-display); font-size: 16px; font-weight: 900; letter-spacing: -.2px; margin-bottom: 2px }
.aff-hero-sub { font-size: 12px; color: var(--text3); line-height: 1.4 }
.aff-metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px }
.aff-metric { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 12px 12px }
.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: var(--font-display); font-size: 16px; font-weight: 900; color: var(--text) }
.aff-metric-val.accent { color: var(--green) }
.aff-link-box { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 10px 12px; display: flex; align-items: center; gap: 10px }
.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: 12px; padding: 8px 12px; font-size: 12px; font-weight: 900; cursor: pointer; font-family: inherit; display: inline-flex; align-items: center; justify-content: center; gap: 7px; white-space: nowrap }
.aff-commission-rate-card { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px }
.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: var(--font-display); 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 }
.aff-balance-card { padding: 16px; margin-bottom: 10px; display: flex; flex-direction: column; gap: 10px }
.aff-balance-lbl { font-size: 10px; color: var(--text3); text-transform: uppercase; letter-spacing: .7px; font-weight: 900 }
.aff-balance-val { font-family: var(--font-display); font-size: 26px; font-weight: 1000; color: var(--green); letter-spacing: -.3px }
.aff-inv-card { padding: 14px; display: flex; flex-direction: column; gap: 10px }
.aff-inv-hdr { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 2px 2px 0 }
.aff-inv-title { font-family: var(--font-display); font-size: 13px; font-weight: 900; color: var(--text) }
.aff-inv-sub { font-size: 11px; color: var(--text3); margin-left: auto }
.aff-inv-list { display: flex; flex-direction: column; gap: 8px }
.aff-inv-item { background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 12px; display: flex; align-items: center; gap: 10px }
.aff-inv-ava { width: 34px; height: 34px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; background: var(--green-bg); border: 1px solid var(--green-border); font-family: var(--font-display); font-size: 13px; font-weight: 1000; color: var(--green) }
.aff-inv-mid { min-width: 0; flex: 1 }
.aff-inv-name { font-size: 12.5px; font-weight: 800; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.aff-inv-date { margin-top: 2px; font-size: 10.5px; color: var(--text3) }
.aff-inv-right { margin-left: auto; text-align: right; flex-shrink: 0 }
.aff-inv-status { font-size: 10.5px; color: var(--text3) }
.aff-inv-plus { font-family: var(--font-display); font-size: 12.5px; font-weight: 900; color: var(--green) }

.aff-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(300px, .9fr); gap: 12px; align-items: start }
.aff-main, .aff-side { display: flex; flex-direction: column; gap: 12px }
.aff-card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.015)); border: 1px solid rgba(255,255,255,.06); border-radius: 18px; padding: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.02) }
.aff-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 14px }
.aff-card-title { font-family: var(--font-display); font-size: 15px; font-weight: 900; color: var(--text) }
.aff-card-sub { margin-top: 3px; font-size: 11.5px; color: var(--text3); line-height: 1.45 }
.aff-kpi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px }
.aff-kpi { min-height: 118px; border-radius: 16px; padding: 14px; background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06); display: flex; flex-direction: column; justify-content: space-between }
.aff-kpi-highlight { background:
    radial-gradient(circle at top right, rgba(255,76,10,.16), transparent 44%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
    border-color: rgba(255,76,10,.42)
}
.aff-kpi-label, .aff-link-label { font-size: 10px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--text3) }
.aff-kpi-value { font-family: var(--font-display); font-size: 28px; font-weight: 900; color: var(--text); letter-spacing: -.5px; line-height: 1.05 }
.aff-kpi-highlight .aff-kpi-value { color: #ff6d2d }
.aff-kpi-note { font-size: 11.5px; color: var(--text2); line-height: 1.5 }
.aff-link-meta { min-width: 0; display: flex; flex-direction: column; gap: 6px }
.aff-link-box { justify-content: space-between; gap: 14px; padding: 14px 16px }
.aff-link-url { font-size: 12px; color: var(--text); font-weight: 600 }
.aff-chart-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 12px }
.aff-chart-card { min-height: 320px }
.aff-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 58px; padding: 7px 10px; border-radius: 999px; background: rgba(255,109,45,.1); border: 1px solid rgba(255,109,45,.28); color: #ff7a40; font-size: 11px; font-weight: 900 }
.aff-donut-wrap { position: relative; width: 220px; height: 220px; margin: 0 auto 18px }
.aff-donut { --aff-deposit-pct: 0%; width: 100%; height: 100%; border-radius: 50%; background:
    radial-gradient(circle at center, rgba(13,13,13,1) 0 53%, transparent 54%),
    conic-gradient(#ff5a14 0 var(--aff-deposit-pct), rgba(255,255,255,.08) var(--aff-deposit-pct) 100%);
    box-shadow: inset 0 0 0 10px rgba(255,255,255,.02), 0 18px 50px rgba(0,0,0,.24)
}
.aff-donut::after { content: ''; position: absolute; inset: 22px; border-radius: 50%; border: 1px solid rgba(255,255,255,.05) }
.aff-donut-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none }
.aff-donut-center span { font-family: var(--font-display); font-size: 34px; font-weight: 900; color: var(--text) }
.aff-donut-center small { margin-top: 3px; font-size: 11px; color: var(--text3); text-transform: uppercase; letter-spacing: .9px }
.aff-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 10px }
.aff-legend-item { padding: 12px; border-radius: 14px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.06); display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text2) }
.aff-legend-item strong { color: var(--text); font-size: 14px }
.aff-legend-dot { width: 9px; height: 9px; border-radius: 50% }
.aff-legend-dot.live { background: #ff5a14; box-shadow: 0 0 0 6px rgba(255,90,20,.12) }
.aff-legend-dot.idle { background: rgba(255,255,255,.35) }
.aff-bars { display: flex; flex-direction: column; gap: 16px; padding-top: 4px }
.aff-bar-item { display: flex; flex-direction: column; gap: 8px }
.aff-bar-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--text2) }
.aff-bar-top strong { color: var(--text); font-size: 12px }
.aff-bar-track { width: 100%; height: 12px; border-radius: 999px; background: rgba(255,255,255,.06); overflow: hidden }
.aff-bar-fill { height: 100%; border-radius: inherit; min-width: 6% }
.aff-bar-fill.green { background: linear-gradient(90deg, rgba(255,122,64,.85), #ff5a14) }
.aff-bar-fill.orange { background: linear-gradient(90deg, rgba(255,173,84,.8), #ff8b34) }
.aff-bar-fill.blue { background: linear-gradient(90deg, rgba(88,177,255,.65), rgba(88,177,255,.95)) }
.aff-bar-fill.muted { background: linear-gradient(90deg, rgba(255,255,255,.18), rgba(255,255,255,.32)) }
.aff-rate-card, .aff-summary-card, .aff-withdraw-card { position: sticky; top: 12px }
.aff-rate-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px }
.aff-rate-value { margin-top: 18px; font-family: var(--font-display); font-size: 40px; font-weight: 900; color: var(--green); line-height: 1 }
.aff-rate-value span { color: #ff7a40 }
.aff-withdraw-card { background:
    radial-gradient(circle at top right, rgba(255,90,20,.18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.015)) }
.aff-withdraw-value { margin: 8px 0 6px; font-family: var(--font-display); font-size: 34px; font-weight: 900; color: #ff7a40; letter-spacing: -.4px }
.aff-withdraw-hint { margin-bottom: 16px; font-size: 11.5px; color: var(--text2); line-height: 1.5 }
.aff-summary-list { display: flex; flex-direction: column; gap: 12px }
.aff-summary-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.06); font-size: 12px; color: var(--text2) }
.aff-summary-row:last-child { border-bottom: 0; padding-bottom: 0 }
.aff-summary-row strong { font-family: var(--font-display); font-size: 16px; color: var(--text) }
.aff-status-chip { display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px; padding: 5px 10px; border-radius: 999px; font-size: 10px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase }
.aff-status-chip.ok { background: rgba(255,90,20,.12); border: 1px solid rgba(255,90,20,.24); color: #ff7a40 }
.aff-status-chip.idle { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: var(--text2) }
.aff-inv-card { padding: 16px }
.aff-inv-list { gap: 10px }
.aff-inv-item { border-radius: 16px; padding: 14px; background: rgba(255,255,255,.022); border: 1px solid rgba(255,255,255,.06) }
.aff-inv-plus { font-size: 11.5px; color: var(--text2) }
@media(max-width:1199px) {
    .aff-grid, .aff-chart-grid { grid-template-columns: 1fr }
    .aff-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) }
    .aff-rate-card, .aff-summary-card, .aff-withdraw-card { position: static }
}
@media(max-width:899px) {
    .aff-kpi-grid, .aff-legend { grid-template-columns: 1fr }
    .aff-donut-wrap { width: 190px; height: 190px }
    .aff-donut-center span { font-size: 28px }
    .aff-card, .aff-hero { padding: 14px }
}

/* 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 }
.dep-close { position: absolute; top: 14px; right: 14px }
.dep-top { padding: 0 2px 0 }
.dep-top-title { font-family: var(--font-display); font-size: 18px; font-weight: 900; color: var(--text); letter-spacing: -.3px; display: flex; align-items: center; gap: 7px }
.dep-title-bar { display: inline-block; width: 2px; height: 15px; border-radius: 30px; background: var(--green); flex-shrink: 0 }
.dep-top-sub { margin-top: 3px; font-size: 12px; color: var(--text3) }
.dep-method { border-radius: 20px; background: var(--green-bg); border: 1px solid var(--green); padding: 14px 16px; display: flex; align-items: center; gap: 14px; margin-bottom: 14px; transition: background .12s }
.dep-method:hover { background: var(--card3) }
.dep-method-ic { width: 80px; flex-shrink: 0; display: flex; align-items: center; justify-content: center }
.dep-method-ic img { width: 60px; height: auto; object-fit: contain }
.dep-method-divider { width: 1px; height: 44px; background: rgba(255,255,255,.1); flex-shrink: 0 }
.dep-method-info { flex: 1; min-width: 0 }
.dep-method-name { font-size: 13px; font-weight: 700; color: var(--text); line-height: 1.1 }
.dep-method-sub { margin-top: 3px; font-size: 11px; color: var(--text3) }
.dep-method-badge { display: inline-flex; align-items: center; gap: 5px; background: rgba(255,255,255,.08); border-radius: 999px; padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--text2); white-space: nowrap; flex-shrink: 0 }
.dep-row { display: flex; align-items: center; justify-content: space-between; margin: 8px 2px 10px; gap: 10px }
.dep-row-lbl { font-size: 12px; font-weight: 700; color: var(--text2) }
.dep-row-rgt { font-size: 11px; font-weight: 600; color: var(--green) }
.dep-amount { border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; padding: 10px 12px; gap: 10px; margin-bottom: 12px }
.dep-amount-prefix { font-size: 12px; font-weight: 900; color: var(--text3) }
.dep-amount-inp { flex: 1; border: none; outline: none; background: transparent; color: var(--text); font-size: 18px; font-weight: 900; font-family: var(--font-display); min-width: 0 }
.dep-amount-suf { font-size: 11px; font-weight: 800; color: var(--text3); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); padding: 5px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px }
.dep-quick { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 4px 0 12px }
.dep-q { border-radius: 12px; padding: 10px 10px; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08); color: var(--text2); font-size: 12px; font-weight: 800; cursor: pointer; transition: border-color .12s, color .12s; font-family: inherit }
.dep-q:hover { border-color: rgba(255,255,255,.18) }
.dep-q.active { background: rgba(255,255,255,.04); border-color: var(--green); color: var(--green) }
.dep-min { margin: 6px 2px 12px; font-size: 11.5px; color: var(--green) }
.dep-cta { border-radius: 14px; margin-bottom: 24px }
.dep-cta:disabled { opacity: .35; cursor: not-allowed }

/* ═══ WITHDRAW MODAL ═══ */
.wit-handle-row { display: none }
.wit-overlay { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px) }
.wit-sheet {
    padding: 0; overflow: hidden;
    border-radius: 20px; max-width: 440px; width: 100%;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 40px 120px rgba(0,0,0,.8);
    position: relative;
}
.wit-body {
    padding: 22px 22px 28px;
    overflow-y: auto;
    overflow-x: hidden;
    max-height: calc(100dvh - 40px);
    overscroll-behavior: contain;
    position: relative;
}
.wit-step { padding: 0 }

.wit-step-hdr {
    display: flex; align-items: center; gap: 10px;
    padding: 2px 0 20px; position: relative;
}
.wit-hdr-bar {
    display: inline-block; width: 3px; height: 20px; border-radius: 0 3px 3px 0;
    background: var(--green); flex-shrink: 0;
}
.wit-hdr-title {
    flex: 1; font-size: 17px; font-weight: 700; color: var(--text);
    display: flex; align-items: center; gap: 6px;
}
.wit-back-btn {
    background: none; border: none; color: var(--text2); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; border-radius: 50%;
    transition: background .15s; flex-shrink: 0;
}
.wit-back-btn:hover { background: rgba(255,255,255,.07) }

/* Method cards */
.wit-method-card {
    display: flex; align-items: center; gap: 14px;
    background: var(--card2); border: 1px solid var(--line);
    border-radius: 14px; padding: 14px 16px;
    cursor: pointer; margin-bottom: 10px;
    transition: border-color .15s, background .15s;
}
.wit-method-card:hover { border-color: var(--line2); background: var(--card3); }
.wit-method-disabled {
    opacity: .45; cursor: not-allowed; pointer-events: none;
}
.wit-method-logo {
    width: 42px; height: 42px; border-radius: 12px;
    background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
    display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.wit-method-logo img { width: 26px; height: 26px; object-fit: contain }
.wit-method-logo-usdc { background: rgba(39,117,202,.15); border-color: rgba(39,117,202,.25) }
.wit-method-info { display: flex; flex-direction: column; gap: 3px; flex: 1 }
.wit-method-name { font-size: 14px; font-weight: 700; color: var(--text) }
.wit-method-sub { font-size: 12px; color: var(--text3) }
.wit-method-badge {
    background: var(--card3); border: 1px solid var(--line2);
    border-radius: 8px; padding: 4px 10px;
    font-size: 11px; font-weight: 600; color: var(--text2); white-space: nowrap;
}

/* Format warning cards */
.wit-fmt-card {
    background: var(--card2); border: 1px solid var(--line);
    border-radius: 14px; padding: 14px; display: flex;
    gap: 10px; align-items: flex-start; color: var(--text3);
}

/* Amount display */
.wit-amount-display {
    display: flex; flex-direction: column; align-items: center; gap: 4px;
    padding: 18px 0 16px; cursor: text;
}
.wit-amount-input-wrap {
    display: flex; align-items: baseline; gap: 4px; justify-content: center;
}
.wit-amount-prefix {
    font-size: 36px; font-weight: 800; color: var(--text);
    font-family: var(--font-display); line-height: 1; letter-spacing: -1px;
}
.wit-amount-inp {
    border: none; outline: none; background: transparent;
    font-size: 52px; font-weight: 800; color: var(--text);
    font-family: var(--font-display); line-height: 1; letter-spacing: -2px;
    width: 180px; text-align: center; min-width: 60px; max-width: 240px;
    -moz-appearance: textfield;
}
.wit-amount-inp::-webkit-outer-spin-button,
.wit-amount-inp::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0 }
.wit-amount-inp::placeholder { color: var(--text3) }
.wit-amount-label { font-size: 13px; color: var(--text3) }

/* Balance row */
.wit-balance-row {
    display: flex; align-items: center; justify-content: space-between;
    background: var(--card2); border: 1px solid var(--line);
    border-radius: 10px; padding: 9px 14px; margin-bottom: 14px;
    font-size: 12px; color: var(--text3);
}

/* PIX key input */
.wit-pix-key-wrap { margin-bottom: 14px }
.wit-pix-input {
    width: 100%; padding: 12px 14px;
    border: 1px solid var(--line2); border-radius: 12px;
    font-size: 14px; font-weight: 500; color: var(--text);
    background: var(--card2); font-family: inherit; outline: none;
    transition: border-color .18s;
}
.wit-pix-input:focus { border-color: var(--green) }

/* Preset amount buttons */
.wit-presets {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 8px; margin-bottom: 16px;
}
.wit-preset {
    background: var(--card2); border: 1px solid var(--line2);
    border-radius: 12px; padding: 11px 8px;
    font-size: 12px; font-weight: 700; color: var(--text2);
    cursor: pointer; font-family: inherit;
    transition: border-color .12s, color .12s, background .12s;
}
.wit-preset:hover { border-color: var(--line2); color: var(--text); background: var(--card3) }
.wit-preset.active { border-color: var(--green); color: var(--green); background: var(--green-soft) }

/* Terms checkbox */
.wit-terms {
    display: flex; align-items: flex-start; gap: 10px;
    margin-bottom: 14px; cursor: pointer;
}
.wit-terms input { display: none }
.wit-terms-check {
    width: 18px; height: 18px; border-radius: 5px; flex-shrink: 0;
    border: 1.5px solid rgba(255,255,255,.2); background: rgba(255,255,255,.04);
    display: flex; align-items: center; justify-content: center;
    transition: background .15s, border-color .15s; margin-top: 1px;
}
.wit-terms input:checked + .wit-terms-check {
    background: var(--green); border-color: var(--green);
}
.wit-terms input:checked + .wit-terms-check::after {
    content: ''; display: block; width: 10px; height: 6px;
    border-left: 2px solid #fff; border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}
.wit-terms-text { font-size: 12px; color: var(--text3); line-height: 1.5 }
.wit-terms-text a { color: var(--text2); text-decoration: underline }

/* Info tooltip */
.wit-info-btn {
    position: relative; display: inline-flex; align-items: center;
    color: var(--text3); cursor: pointer; margin-left: 4px;
}
.wit-tooltip {
    display: none; position: absolute; top: calc(100% + 8px); left: 0;
    background: #1e1e1e; border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px; padding: 10px 14px; font-size: 12px; color: var(--text2);
    white-space: normal; width: 230px; line-height: 1.5; z-index: 99;
    box-shadow: 0 8px 24px rgba(0,0,0,.6);
}
.wit-info-btn:hover .wit-tooltip,
.wit-info-btn.tip-open .wit-tooltip { display: block }

/* TICKER BAR */
.ticker-bar {
    width: 100%; height: 40px; overflow: hidden; position: relative;
    background: var(--topbar-bg); border-bottom: 1px solid var(--line);
    display: flex; align-items: center; flex-shrink: 0
}
@keyframes ticker-scroll {
    0%   { transform: translateX(0) }
    100% { transform: translateX(-50%) }
}
.ticker-track {
    display: inline-flex; align-items: center; height: 100%;
    animation: ticker-scroll 60s linear infinite;
    will-change: transform; white-space: nowrap
}
.ticker-bar:hover .ticker-track { animation-play-state: paused }
.ticker-fade-l, .ticker-fade-r {
    position: absolute; top: 0; width: 40px; height: 100%;
    z-index: 2; pointer-events: none; flex-shrink: 0
}
.ticker-fade-l { left: 0; background: linear-gradient(to right, var(--bg2,var(--bg)), transparent) }
.ticker-fade-r { right: 0; background: linear-gradient(to left, var(--bg2,var(--bg)), transparent) }
.ticker-item {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0 12px; height: 100%; cursor: pointer
}
.ticker-item:hover .ticker-title { color: var(--text) }
.ticker-badge {
    background: rgba(255,61,0,.12); color: #ff3d00;
    font-size: 9px; font-weight: 700; letter-spacing: .3px;
    text-transform: uppercase; padding: 2px 7px; border-radius: 999px;
    white-space: nowrap; flex-shrink: 0
}
.ticker-title {
    font-size: 12px; color: var(--text2); max-width: 220px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    transition: color .12s
}
.ticker-btn {
    background: var(--green); color: #fff; border: none; border-radius: 8px;
    padding: 4px 10px; font-size: 11px; font-weight: 600;
    cursor: pointer; font-family: inherit; white-space: nowrap;
    flex-shrink: 0; transition: opacity .12s
}
.ticker-btn:hover { opacity: .85 }
.ticker-sep { width: 1px; height: 16px; background: var(--line); flex-shrink: 0; margin-left: 4px }

/* 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); align-items: center; padding: 0 12px; gap: 8px; position: sticky; top: 0; z-index: 80; width: 100% }
.m-topbar-logo { display: flex; align-items: center; gap: 7px; flex-shrink: 0 }
.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: var(--font-display); font-size: 16px; font-weight: 800; color: var(--text) }
.m-topbar-logo-text span { color: var(--green) }
.m-topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 14px }
.m-topbar-bal { display: flex; flex-direction: column; align-items: flex-end; cursor: pointer; gap: 1px }
.m-topbar-bal-label { font-size: 10px; color: var(--text3); font-weight: 500; line-height: 1 }
.m-topbar-bal-val { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1 }
.m-topbar-dep { background: var(--green); color: #fff; border: none; border-radius: 10px; padding: 7px 14px; font-size: 13px; font-weight: 700; cursor: pointer; font-family: inherit; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center }
.m-topbar-hamburger { width: 36px; height: 36px; background: none; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text2); flex-shrink: 0; padding: 0 }
.m-topbar-auth-group { margin-left: auto; display: flex; gap: 5px; align-items: center }
.m-topbar-auth-group .btn-ghost-sm { background: transparent; color: var(--green); border: none; border-radius: 8px; padding: 7px 14px; font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit; white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: 6px }

/* MOBILE RIGHT SIDEBAR */
.mob-rsb { position: fixed; inset: 0; z-index: 200; background: transparent; display: flex; justify-content: flex-end }
.mob-rsb-panel { width: 100%; height: 100%; background: var(--bg); display: flex; flex-direction: column; overflow-y: auto; animation: rsbSlideIn .22s ease }
@keyframes rsbSlideIn { from { transform: translateX(100%) } to { transform: translateX(0) } }
.mob-rsb-header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line) }
.mob-rsb-back { width: 32px; height: 32px; background: rgba(128,128,128,.12); border: none; border-radius: 8px; color: var(--text2); cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0 }
.mob-rsb-title { font-size: 15px; font-weight: 700; color: var(--text) }
.mob-rsb-user { display: flex; align-items: center; gap: 12px; padding: 20px 16px 16px }
.mob-rsb-avatar { width: 46px; height: 46px; border-radius: 50%; overflow: hidden; flex-shrink: 0; background: var(--card) }
.mob-rsb-uname { font-size: 15px; font-weight: 700; color: var(--text) }
.mob-rsb-uid-wrap { display: inline-flex; align-items: center; gap: 5px; background: rgba(128,128,128,.12); border: 1px solid rgba(128,128,128,.15); border-radius: 6px; padding: 3px 7px; margin-top: 4px; cursor: pointer; color: var(--text3); transition: background .12s }
.mob-rsb-uid-wrap:hover { background: rgba(128,128,128,.2) }
.mob-rsb-uid { font-size: 11px; color: var(--text3); font-family: monospace; letter-spacing: .3px }
.mob-rsb-sep { height: 1px; background: var(--line); margin: 4px 16px }
.mob-rsb-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; color: var(--text2); font-size: 14px; font-weight: 500; cursor: pointer; transition: background .12s }
.mob-rsb-item:hover { background: var(--card) }
.mob-rsb-spacer { flex: 1 }
.mob-rsb-bottom { padding: 8px 16px; padding-bottom: calc(12px + env(safe-area-inset-bottom)) }
.mob-rsb-logout {
    width: 100%; border: none; border-radius: 16px; cursor: pointer;
    background: rgba(130,20,20,.55); color: #ef4444;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    padding: 16px 20px; font-size: 14px; font-weight: 600; font-family: inherit;
}
.mob-rsb-logout:hover { background: rgba(150,25,25,.65) }

.m-bal-pill {
    height: 34px;
    padding: 0 6px 0 6px;
    gap: 6px
}

.m-bal-pill .bal-pill-btn {
    width: 30px;
    height: 30px
}

/* 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: rgba(255,255,255,.38); font-size: 10px; font-weight: 600; cursor: pointer; font-family: inherit; flex-shrink: 0; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s }
.m-cattab.active { color: var(--green); border-bottom-color: var(--green) }
/* Inline SVGs: always dim white, never inherit primary color */
.m-cattab svg { color: rgba(255,255,255,.42); opacity: 1; flex-shrink: 0 }
.m-cattab.active svg { color: rgba(255,255,255,.85) }
/* <img> icons: force grayscale, control via opacity */
.m-cattab img { filter: brightness(0) invert(1); opacity: .42; flex-shrink: 0 }
.m-cattab.active img { opacity: .85 }
.m-cattab span { white-space: nowrap; max-width: 60px; overflow: hidden; text-overflow: ellipsis }
[data-theme="light"] .m-cattab { color: rgba(0,0,0,.4) }
[data-theme="light"] .m-cattab.active { color: var(--green) }
[data-theme="light"] .m-cattab svg { color: rgba(0,0,0,.38) }
[data-theme="light"] .m-cattab.active svg { color: rgba(0,0,0,.75) }
[data-theme="light"] .m-cattab img { filter: brightness(0); opacity: .38 }
[data-theme="light"] .m-cattab.active img { filter: brightness(0); opacity: .7 }
/* Ao Vivo live icon */
.m-cattab-live-svg {
    flex-shrink: 0; opacity: 1 !important;
    filter: none !important;
    animation: liveTabPulse 2s ease-in-out infinite;
}
@keyframes liveTabPulse {
    0%, 100% { opacity: 1 }
    50%       { opacity: .45 }
}

/* MOBILE CARD */
/* Mobile card — usa .ec styles, adiciona margin-bottom */
.mob-card { margin-bottom: 10px }
#mobCards { background: var(--bg) }

/* BOTTOM NAV */
.bnav { position: fixed; left: 0; bottom: 0; width: 100%; height: 60px; background: var(--bg); border-top: 1px solid rgba(255,255,255,.06); display: flex; align-items: center; z-index: 90; padding: 4px 10px calc(4px + env(safe-area-inset-bottom)) }
.bnav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 50px; gap: 4px; border: none; background: none; color: var(--bnav-ic-color); cursor: pointer; font-family: inherit; position: relative; transition: color .15s; border-radius: 8px }
.bnav-ic { width: 30px; min-height: 22px; display: flex; align-items: center; justify-content: center }
.bnav-lbl { font-size: 11px; font-weight: 500; letter-spacing: 0; text-transform: none; line-height: 1 }
.bnav-item.active { color: var(--green) }
.bnav-item.active .bnav-fill { fill: currentColor }

/* 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; margin: 0; border-radius: 0; overflow: visible }
    #content-area { flex-direction: column }
    #page-scroll { overflow: visible; padding-top: 0 }
    .banner-outer { padding: 8px 12px 4px }
    .market-ticker { margin: 0 12px 10px; }
    #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 }
    .section-outer { margin: 0 12px 12px }
    .section-outer .section-hdr { padding: 14px 12px 10px }
    .section-outer .trend-scroll { padding: 0 12px 12px }
    .section-outer .trend-scroll#liveGrid { padding: 0 12px 12px }
    .section-outer .cat-cards-grid { padding: 0 12px 12px }
    .cat-cards-grid { grid-template-columns: 1fr }
    .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: calc(68px + env(safe-area-inset-bottom)) }
    .bnav { display: flex }
    .overlay.center.auth-overlay { align-items: stretch; padding: 0 }
    .overlay.center.auth-overlay .auth-sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; padding: 64px 16px 22px; border: none; box-shadow: none; animation: none }
    .overlay.center.auth-overlay .auth-sheet .modal-close { top: 12px; right: 12px }
    .overlay.center.auth-overlay .auth-logo { width: 200px; height: 130px; margin-bottom: 18px }
    .dep-quick { grid-template-columns: repeat(2, 1fr) }
    #toast { bottom: calc(74px + env(safe-area-inset-bottom)) }
    .qd-hero-bg { width: 98%; }
}

@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 }
}

/* Mobile: /market/* (question detail) hides bottom nav and uses fixed bet bar instead */
@media(max-width:899px) {
    body.page-question { padding-bottom: 0 !important; }
    body.page-question .bnav { display: none !important; }
    body.page-question #toast { bottom: calc(18px + env(safe-area-inset-bottom)) !important; }
    body.page-question #pageQuestion { padding: 0 12px 120px !important; }
    body.page-question .qd-mob-choicebar { bottom: calc(env(safe-area-inset-bottom) + 10px) !important; }
}


/* ══ 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: var(--font-display) }

.dep-overlay { backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px) }
.dep-sheet {
    padding: 0;
    overflow: hidden;
    border-radius: 20px;
    max-width: 440px;
    border: 1px solid rgba(255,255,255,.08);
    box-shadow: 0 32px 100px rgba(0,0,0,.75);
    animation: popIn .22s cubic-bezier(.22,1,.36,1);
    max-height: 94vh
}

.dep-head {
    position: relative;
    height: 10px
}

.dep-head .sheet-handle {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    z-index: 3
}

.dep-body {
    padding: 16px 20px 0;
    position: relative;
    overflow-y: auto;
    max-height: calc(94vh - 10px)
}

.dep-banner-wrap {
    overflow: hidden;
    background: #111;
    border-radius: 14px;
    margin: 10px 0 16px
}

.dep-banner-media {
    width: 100%;
    aspect-ratio: 710/320;
    position: relative;
    overflow: hidden;
    background: #111
}

.dep-banner-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    object-position: 20% 45%
}

.dep-banner-grad {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 45%, rgba(13, 14, 16, .78) 100%)
}

.dep-banner-fallback {
    background: linear-gradient(135deg, #0f2218 0%, #0e1a2b 50%, #1a0e2b 100%);
    display: flex;
    align-items: center;
    justify-content: center
}

.dep-banner-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none
}

.dep-banner-orb.a {
    width: 260px;
    height: 260px;
    background: radial-gradient(circle, var(--green-bg) 0%, transparent 70%);
    top: -80px;
    left: -60px
}

.dep-banner-orb.b {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--green-soft) 0%, transparent 70%);
    bottom: -40px;
    right: 30px
}

.dep-banner-center {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center
}

.dep-banner-ic {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: var(--green-bg);
    border: 1px solid var(--green-border);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px
}

.dep-banner-ttl {
    font-size: 15px;
    font-weight: 800;
    color: #eceef2
}

.dep-banner-sub {
    font-size: 11.5px;
    color: #8b93a5
}

@media(max-width:899px) {
    .overlay:not(.center) {
        align-items: flex-end;
        justify-content: flex-start
    }

    .overlay:not(.center) .sheet {
        width: 100vw;
        max-width: 100vw;
        border-radius: 18px 18px 0 0
    }

    .overlay.dep-overlay { align-items: stretch; padding: 0 }
    .dep-sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: none; box-shadow: none; animation: slideUp .25s cubic-bezier(.22,1,.36,1) }

    .overlay.wit-overlay { align-items: stretch; padding: 0 }
    .wit-sheet { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; border-radius: 0; border: none; box-shadow: none; animation: slideUp .25s cubic-bezier(.22,1,.36,1) }
    .wit-body { padding: 12px 16px calc(24px + env(safe-area-inset-bottom)); max-height: 100dvh; overflow-y: auto }
    .wit-handle-row { display: block }
    .wit-presets { grid-template-columns: repeat(3, 1fr) }
    .wit-amount-inp { font-size: 44px }
    .wit-amount-prefix { font-size: 30px }
    .dep-body {
        padding: 16px 16px 0;
        max-height: calc(100dvh - 10px)
    }
    .dep-banner-wrap { border-radius: 12px; margin: 10px 0 14px }

    .dep-head .sheet-handle {
        top: 8px
    }

    #withdrawModal .sheet,
    #affWithdrawModal .sheet {
        padding: 16px 16px 22px
    }

    .dep-banner-media {
        aspect-ratio: auto;
        height: clamp(112px, 30vw, 150px)
    }
}
.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: #00b471 }
.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: #00b471; border-radius: 4px 0 0 4px; transition: width .5s }
.qd-full-prog-no  { background: var(--red);   border-radius: 0 4px 4px 0 }

@media(max-width:1100px) {
    .live-card.ec { width: 100% !important; flex: 1 1 100% !important }
}

@media(max-width:760px) {
    .cat-cards-grid { grid-template-columns: 1fr }
    .ec { padding: 14px; gap: 12px }
    .ec-cover { width: 78px; height: 78px }
    .ec-crypto-main { grid-template-columns: 1fr; gap: 10px }
    .ec-crypto-price { font-size: 24px }
    .ec-btns { flex-wrap: wrap }
    .ec-btn { min-width: calc(50% - 4px) }
}

.right-panel { position: relative; }
.right-panel.choice-yes .rpb-top { box-shadow: inset 0 1px 0 rgba(34,197,94,.06); }
.right-panel.choice-no .rpb-top { box-shadow: inset 0 1px 0 rgba(239,68,68,.06); }
.right-panel.choice-yes .rp-empty-step,
.right-panel.choice-yes .rpb-confirm { background: #00b471; border-color: #00b471; color: #050a05; }
.right-panel.choice-no .rp-empty-step,
.right-panel.choice-no .rpb-confirm { background: var(--red); border-color: var(--red); color: #fff; }
.right-panel.choice-yes .rpb-balance span,
.right-panel.choice-yes .rp-return-val { color: #00b471; }
.right-panel.choice-no .rpb-balance span,
.right-panel.choice-no .rp-return-val { color: var(--red); }
.right-panel.choice-yes .rpb-qa:hover,
.right-panel.choice-yes .rpb-qa.active { background: #00b471; color: #050a05; border-color: #00b471; }
.right-panel.choice-no .rpb-qa:hover,
.right-panel.choice-no .rpb-qa.active { background: var(--red); color: #fff; border-color: var(--red); }

@media(max-width:899px) {
    .qd-header-actions { margin-right: 0; }
}

.qd-back-row { padding: 16px 24px 12px }
.qd-header { padding: 0 24px 20px }
#qdOptionsGrid { padding: 0 24px }
#qdActivity { padding: 0 24px }
