/* ==========================================================================
   BB-Bet — Jack theme (jackpotexch-style user theme, minimal + proper)
   Mobile-first: base = phone, min-width queries scale up.
   Palette (pixel-sampled from the jackpotexch99.club reference, 2026-11-10):
   top/group bars #444444, top strip #646464, content bg #F6F8F8,
   runner rows #F1F1F1, BACK cells #B2E7FF, LAY cells #FFB1B4,
   gold accent #C3871E, alert red #FF072F, scoreboard #303030,
   bottom nav #262626 with yellow active tab.
   Loaded AFTER main.css / bb-polish.css / bb-premium.css, so these win.
   Fonts: system sans (the layout already loads Inter; the reference is a
   plain Arial/Helvetica look — Inter renders the same way here).
   ========================================================================== */

:root {
    --jk-bar: #444444;
    --jk-strip: #646464;
    --jk-bg: #F6F8F8;
    --jk-row: #F1F1F1;
    --jk-back: #B2E7FF;
    --jk-lay: #FFB1B4;
    --jk-gold: #C3871E;
    --jk-gold-bright: #FACC15;
    --jk-red: #FF072F;
    --jk-score: #303030;
    --jk-green: #16A34A;
    --jk-ink: #111111;
    --jk-muted: #6B7280;
    --jk-border: #E5E7EB;
    --jk-nav: #262626;
    --jk-radius: 6px;
}

/* Page surface: pale grey like the reference content area. */
body.bb-page-surface {
    background: var(--jk-bg);
    padding-bottom: 64px; /* room for the fixed bottom nav */
}

/* ------------------------------------------------------------------ header */
.jk-header-wrap {
    background: #fff;
    border-bottom: 1px solid var(--jk-border);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.jk-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 8px 12px;
    background: #fff;
}

.jk-header__left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.jk-header__burger {
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--jk-ink);
    padding: 4px;
}

.jk-header__logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.jk-header__logo-img {
    max-height: 34px;
    width: auto;
    display: block;
}

.jk-header__logo-text {
    font-weight: 800;
    font-size: 1.35rem;
    letter-spacing: -0.5px;
    color: var(--jk-ink);
    font-style: italic;
}

.jk-header__logo-text span { color: var(--jk-gold); }

.jk-header__nav {
    align-items: center;
    gap: 4px;
}

.jk-header__nav-link {
    color: var(--jk-ink);
    font-weight: 600;
    font-size: 0.9rem;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.jk-header__nav-link:hover,
.jk-header__nav-link.active {
    color: var(--jk-gold);
    background: #FAF6EE;
}

.jk-header__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

.jk-btn-login,
.jk-btn-signup {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    padding: 8px 16px;
    border-radius: 6px;
    text-decoration: none;
    white-space: nowrap;
}

.jk-btn-login {
    color: var(--jk-ink);
    background: #fff;
    border: 1.5px solid var(--jk-ink);
}

.jk-btn-login:hover { color: var(--jk-gold); border-color: var(--jk-gold); }

.jk-btn-signup {
    color: #fff;
    background: var(--jk-gold);
    border: 1.5px solid var(--jk-gold);
}

.jk-btn-signup:hover { background: #A87418; color: #fff; }

.jk-header__balance {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--jk-ink);
    text-decoration: none;
    font-size: 0.85rem;
    background: var(--jk-bg);
    border: 1px solid var(--jk-border);
    border-radius: 20px;
    padding: 5px 10px;
    white-space: nowrap;
}

/* Announcement strip: grey like the reference top bar. */
.announcement-strip {
    background: var(--jk-strip) !important;
    color: #fff !important;
}
.announcement-strip .badge-brand {
    background: var(--jk-gold) !important;
    color: #fff !important;
}
.announcement-strip .announcement-text { color: #fff !important; }

/* ------------------------------------------------------- sport icon bar
   Dark grey strip, sport icons with green count bubbles, scrolls sideways.
   Tapping a chip filters the list in place (JS in the page); "All" resets. */
.jk-sportbar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 10px;
    background: var(--jk-bar);
}
.jk-sportbar__scroll {
    display: flex;
    align-items: stretch;
    gap: 0;
    overflow-x: auto;
    flex: 1 1 auto;
    min-width: 0;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
}
.jk-sportbar__scroll::-webkit-scrollbar { display: none; }
.jk-sport-chip {
    flex: 0 0 auto;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    min-width: 56px;
    padding: 7px 10px 6px;
    background: transparent;
    border: 0;
    border-bottom: 3px solid transparent;
    color: #E5E7EB;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    cursor: pointer;
    white-space: nowrap;
    text-transform: uppercase;
}
.jk-sport-chip__icon { font-size: 1.25rem; line-height: 1; display: inline-flex; }
.jk-sport-chip__count {
    display: inline-block;
    background: #22C55E;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1;
    padding: 2px 6px;
    border-radius: 999px;
    margin-top: 2px;
}
.jk-sport-chip__count--zero { background: #6B7280; }
.jk-sport-chip:hover { color: #fff; }
.jk-sport-chip.is-active {
    color: #fff;
    background: #555555;
    border-bottom-color: var(--jk-gold-bright);
}
.jk-sportbar__arrow {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid #6B7280;
    background: transparent;
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    margin: 0 4px;
}
.jk-sportbar__arrow:disabled { opacity: 0.35; cursor: default; }
.jk-sportbar-empty {
    background: #fff;
    border: 1px solid var(--jk-border);
    border-radius: 8px;
    text-align: center;
    padding: 28px 20px;
    color: var(--jk-muted);
    margin-bottom: 12px;
}
.jk-sportbar-empty i { font-size: 2rem; opacity: 0.5; display: block; margin-bottom: 6px; }
.jk-sportbar-empty p { margin: 0 0 12px; }

/* ------------------------------------------------------------- group bars
   Dark grey bars with white bold uppercase sport names, like the reference. */
.jk-group-bar {
    background: var(--jk-bar);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 9px 12px;
    margin: 14px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.jk-group-bar:first-child { margin-top: 0; }
.jk-group-bar__icon { color: #fff; font-size: 1.1rem; display: inline-flex; }
.jk-group-bar__count {
    margin-left: auto;
    background: #22C55E;
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 999px;
}

/* -------------------------------------------------------------- match list
   Plain white full-width rows, hairline dividers, no odds columns — the
   odds live inside the event page, exactly like the reference. */
.jk-match-list {
    display: flex;
    flex-direction: column;
    background: #fff;
}
.jk-match {
    display: block;
    border-bottom: 1px solid var(--jk-border);
    background: #fff;
}
.jk-match:last-child { border-bottom: 0; }
a.jk-match__row {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    text-decoration: none;
    color: inherit;
}
a.jk-match__row:hover { background: #FAFAFA; text-decoration: none; }
.jk-match__lock { color: var(--jk-green); font-size: 1.15rem; line-height: 1; display: inline-flex; }
.jk-match__main { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.jk-match__date { color: var(--jk-muted); font-size: 0.72rem; line-height: 1.2; }
.jk-match__name {
    color: var(--jk-ink);
    font-weight: 700;
    font-size: 0.92rem;
    line-height: 1.25;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jk-match__league { color: var(--jk-muted); font-size: 0.72rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jk-match__badges { display: inline-flex; align-items: center; gap: 6px; }
.jk-match__live-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #22C55E;
    display: inline-block;
}
.jk-match__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 20px;
    padding: 0 5px;
    border: 1px solid #9CA3AF;
    border-radius: 3px;
    background: #fff;
    color: var(--jk-ink);
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
}

/* Empty states + generic Jack button. */
.jk-empty {
    background: #fff;
    border: 1px solid var(--jk-border);
    border-radius: 8px;
    text-align: center;
    padding: 36px 20px;
    color: var(--jk-muted);
}
.jk-empty i { font-size: 2.2rem; opacity: 0.5; display: block; margin-bottom: 8px; }
.jk-empty p { margin: 0 0 14px; }
.jk-btn {
    display: inline-block;
    background: var(--jk-gold);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 18px;
    border-radius: 6px;
    text-decoration: none;
}
.jk-btn:hover { background: #A87418; color: #fff; }

/* -------------------------------------------------------------- bottom nav
   Dark bar, 4 items, active tab yellow — like the reference. */
.jk-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    background: var(--jk-nav);
    border-top: 1px solid #000;
    padding-bottom: env(safe-area-inset-bottom);
}
.jk-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 0 6px;
    background: transparent;
    border: 0;
    color: #D1D5DB;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    text-transform: uppercase;
}
.jk-bottom-nav__item i { font-size: 1.35rem; line-height: 1; }
.jk-bottom-nav__item:hover { color: #fff; }
.jk-bottom-nav__item--active,
.jk-bottom-nav__item.is-active { color: var(--jk-gold-bright); }
/* MULTI count badge (2026-11-16 mobile fix): the floating bet-slip FAB is
   hidden on mobile, so its selection count moves here. A gold dot with a
   dark number; hidden when the count is 0 (JS toggles it via the shared
   .bb-betslip-fab__count text update + .has-selections on the FAB). */
.jk-bottom-nav__icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.jk-bottom-nav__count {
    position: absolute;
    top: -6px;
    right: -14px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--jk-gold-bright);
    color: #111111;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}
.jk-bottom-nav__count:empty { display: none; }

/* Hide the basic bottom app-nav while Jack's nav is in use. */
.jk-bottom-nav ~ .app-nav,
body:has(.jk-bottom-nav) .app-nav {
    display: none;
}

/* ------------------------------------------------------------------ desktop */
@media (min-width: 768px) {
    .jk-header { padding: 10px 20px; }
    .jk-header__logo-img { max-height: 40px; }
}

@media (min-width: 1024px) {
    .jk-sportbar__arrow { display: inline-flex; }
    .jk-bottom-nav { display: none; }
    body.bb-page-surface { padding-bottom: 0; }
}

/* Desktop: centre column caps at 1080px, like Diamond. Fidelity fix #4
   (2026-11-11): at desktop the reference is a single full-width board, so
   the left category sidebar is hidden and the right bet-slip panel becomes
   a fixed drawer (same treatment as the 992–1199px rule in bb-premium.css
   §11) opened by the Bet Slip FAB; the sports-body takes the full 1080px
   cap. The bottom nav stays hidden >=1024px. */
@media (min-width: 1200px) {
    .home-page > .sports-body {
        max-width: 1080px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
        width: 100% !important;
    }
    .home-page > .sports-category { display: none !important; }
    .home-page > .betslip {
        position: fixed !important;
        top: var(--header-h, 60px) !important;
        right: 0 !important;
        bottom: 0 !important;
        left: auto !important;
        width: min(380px, 94vw) !important;
        max-width: min(380px, 94vw) !important;
        min-width: 0 !important;
        height: calc(100dvh - var(--header-h, 60px)) !important;
        flex: none !important;
        display: flex !important;
        flex-direction: column !important;
        overflow: hidden !important;
        z-index: 10500 !important;
        background: var(--bbp-surface) !important;
        border-left: 1px solid var(--bbp-line) !important;
        box-shadow: -18px 0 40px rgba(16, 24, 40, 0.16) !important;
        transform: translateX(102%) !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease !important;
    }
    .open-betslip .home-page > .betslip {
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
    }
}

/* ------------------------------------------------------- floating elements
   Same fixes as Diamond: cookie card floats above the bottom nav,
   chatbot FAB shrinks on phones, bet-slip FAB is icon + count only. */
.cookies-card {
    left: 12px !important;
    right: 12px !important;
    bottom: 78px !important;
    width: auto !important;
    max-width: 560px;
    margin: 0 auto;
    padding: 14px 16px !important;
    border-radius: 12px !important;
}
.cookies-card .cookies-card__content { font-size: 12.5px !important; }
.cookies-card .cookies-card__icon { display: none !important; }

/* MOBILE VISIBILITY FIX 2026-11-16 (founder screenshots): the floating
   chatbot FAB and bet-slip FAB overlap content on phones — the chatbot
   covered the "MONEYLINE" header (read "ONEYLINE") and the bet-slip FAB
   covered the "Afghanistan" team name. Both were docked LEFT (2026-11-12)
   to avoid the BACK/LAY cells on the right, but the left column holds the
   team names and market headers, so they cover those instead. A fixed FAB
   over a full-width table ALWAYS covers something while scrolling. Fix:
   hide BOTH floating FABs on mobile (<1024px, where the bottom nav shows)
   and use the chrome that already exists — the bottom nav MULTI button
   opens the bet slip (with a count badge), and the drawer HELP & SUPPORT
   item opens the chatbot. Nothing is removed: both entry points stay,
   just inside the nav/drawer instead of floating over the odds table.
   Desktop (>=1024px) keeps the floating FABs because the bottom nav is
   hidden there and the centred 1080px column leaves margin space. */
@media (max-width: 1023.98px) {
    .bb-betslip-fab.bb-betslip-fab { display: none !important; }
    /* Hide ONLY the floating trigger button, NOT the whole container:
       the chat window lives inside this container, and the drawer HELP &
       SUPPORT item opens it by clicking the (hidden) toggle. Hiding the
       container would make the window unreachable on mobile. */
    #bbChatbotWidget #bbChatbotToggle { display: none !important; }
}
@media (max-width: 767.98px) {
    .bb-chatbot-container { bottom: 76px !important; right: 12px !important; }
    .bb-chatbot-btn {
        padding: 0 !important;
        width: 44px;
        height: 44px;
        min-height: 44px !important;
        border-radius: 50% !important;
        justify-content: center;
    }
    .bb-chatbot-btn-inner { gap: 0 !important; justify-content: center; }
    .bb-chatbot-btn .bb-chatbot-avatar { margin: 0 !important; }
    body:has(.cookies-card:not(.d-none):not(.hide)) .bb-chatbot-container {
        bottom: 226px !important;
    }
}

@media (max-width: 575.98px) {
    .bb-betslip-fab {
        height: 40px !important;
        padding: 0 12px !important;
        gap: 6px !important;
        bottom: 140px !important;
    }
    .bb-betslip-fab > span:not(.bb-betslip-fab__count) { display: none !important; }
    a.jk-match__row { padding: 8px 10px; gap: 8px; }
    .jk-match__name { font-size: 0.85rem; }
}

/* ------------------------------------------------- odds-by-market rows
   (AJAX partial, injected into the markets page). Back sky blue, lay
   salmon pink, suspended dark with red text — like the reference. */
.jk-obm-row { background: #fff; }
.jk-obm-name { color: #111; }
.jk-obm-box {
    flex: 0 0 96px;
    border: 0;
    border-radius: 4px;
    padding: 6px 4px;
    font-weight: 800;
    color: #111;
    cursor: pointer;
}
.jk-obm-box .odd-val { font-size: .95rem; display: block; }
.jk-obm-box .odd-vol { font-size: .68rem; display: block; color: #444; font-weight: 600; }
.jk-obm-box--back { background: #B2E7FF !important; }
.jk-obm-box--lay { background: #FFB1B4 !important; }
.jk-obm-suspended {
    flex: 0 0 200px;
    background: #7F1D1D;
    border-radius: 4px;
    padding: 6px 8px;
    text-align: center;
}

/* Jack: market group headers are dark grey #444444 (reference), not the
   blue bar inherited from Diamond's bb-premium.css copy. That file's
   `.home-page .market-accordion .accordion-button` rule (3 classes,
   !important) beats the blade's `.jk-mkt-bar` (1 class), so this 4-class
   rule in jack.css (loaded last) wins it back. Same for the icon colours:
   bb-premium forces `.accordion-button i` white. */
.home-page .market-accordion .accordion-button.jk-mkt-bar,
.home-page .market-accordion .accordion-button.jk-mkt-bar:not(.collapsed),
html[data-theme="dark"] .home-page .market-accordion .accordion-button.jk-mkt-bar,
html[data-theme="dark"] .home-page .market-accordion .accordion-button.jk-mkt-bar:not(.collapsed) {
    background: #444444 !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}
.home-page .market-accordion .accordion-button.jk-mkt-bar .jk-mkt-star { color: #FACC15 !important; }
.home-page .market-accordion .accordion-button.jk-mkt-bar .jk-mkt-gear i { color: #D1D5DB !important; }
.home-page .market-accordion .accordion-button.jk-mkt-bar .jk-mkt-ladder i { color: #FACC15 !important; }
.home-page .market-accordion .accordion-button.jk-mkt-bar::after { filter: invert(1) !important; }

/* ==========================================================================
   Fidelity fixes — Jack round (2026-11-11, fidelity/jack-diff.md).
   All overrides are Jack-owned, in this file (loads last), so equal
   specificity beats shared custom.css / bb-premium.css. Shared files
   untouched. */

/* #1: group-bar sport name was dark-on-dark (#0F172A on #444444) —
   bb-premium.css `body h5 { color: var(--bbp-ink) !important; }` beats
   `.jk-group-bar { color: #fff }`. Same target, jack.css loads last. */
body h5.jk-group-bar { color: #fff !important; }

/* #2: scoreboard team names were dark-on-dark (#0F172A on #303030). The
   pushed Blade style loses to shared custom.css
   `html:not([data-theme="dark"]) h4 { color: #0F172A !important; }`
   (same specificity, custom.css loads after the inline <style>), so the
   override lives here in jack.css, which loads last. */
body h4.jk-team-name { color: #fff !important; }

/* #3: announcement strip was pale blue (#F0F9FF / #0369A1) — custom.css
   `html:not([data-theme="dark"]) .announcement-strip` (0,2,1 + !important)
   beats jack.css (0,1,0). Same selector here, jack.css loads last. */
html:not([data-theme="dark"]) .announcement-strip,
html[data-theme="light"] .announcement-strip {
    background: #646464 !important;
    border-bottom: 1px solid #555555 !important;
    color: #fff !important;
}
html:not([data-theme="dark"]) .announcement-text,
html[data-theme="light"] .announcement-text {
    color: #fff !important;
}

/* #9: announcement scrolls like the reference marquee (BB-Bet's own copy).
   The strip's overflow-hidden wrapper clips the span as it travels. */
@keyframes jk-marquee {
    0% { transform: translateX(100%); }
    100% { transform: translateX(-100%); }
}
.announcement-text {
    display: inline-block;
    white-space: nowrap;
    animation: jk-marquee 36s linear infinite;
}

/* #14: the Help & Guide FAB overlapped the odds table's right edge on
   event pages. Lift it clear of the table and the bet-slip FAB there. */
body:has(.jk-scoreboard) .bb-chatbot-container { bottom: 150px !important; right: 20px !important; }
@media (min-width: 768px) {
    body:has(.jk-scoreboard) .bb-chatbot-container { bottom: 120px !important; right: 24px !important; }
}

/* #16: body background was #F8FAFC (shared custom.css variables); the
   spec is #F6F8F8. One-line override, imperceptible either way. */
html:not([data-theme="dark"]) body.bb-page-surface { background: var(--jk-bg) !important; }

/* #4 (follow-up): the Bet Slip FAB is `display: none` at desktop by
   default (bb-premium.css shows it only below 1200px, where the slip was
   already a drawer). With the slip now a drawer at >=1200px too, the FAB
   must show there or the slip is unreachable. Same pill as the 992–1199px
   rule in bb-premium.css §11; it fades out while the drawer is open. */
@media (min-width: 1200px) {
    .bb-betslip-fab {
        position: fixed;
        right: 18px;
        bottom: 22px;
        z-index: 10450;
        display: inline-flex !important;
        align-items: center;
        gap: 8px;
        height: 46px;
        padding: 0 16px;
        border: 1px solid var(--bbp-accent);
        border-radius: 999px;
        background: var(--bbp-accent);
        color: #FFFFFF;
        font-size: 0.82rem;
        font-weight: 700;
        letter-spacing: 0.01em;
        cursor: pointer;
        box-shadow: 0 10px 24px rgba(11, 99, 214, 0.28);
    }
    .open-betslip .bb-betslip-fab { opacity: 0; pointer-events: none; }
}


/* ---- theme preset bar (very top): 9-theme switcher ---- */
.jk-theme-bar { background: #444444; border-bottom: 1px solid #5A5A5A; display: flex; align-items: center; gap: 2px; overflow-x: auto; padding: 6px 10px; scrollbar-width: none; }
.jk-theme-bar::-webkit-scrollbar { display: none; }
.jk-theme-bar__label { color: #B8B8B8; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; white-space: nowrap; }
.jk-theme-bar__item { flex: 0 0 auto; color: #E5E5E5; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.jk-theme-bar__item:hover { color: #FACC15; background: rgba(255,255,255,.08); text-decoration: none; }
.jk-theme-bar__item.is-active { background: #C3871E; color: #FFFFFF; border-color: #C3871E; }

/* ==========================================================================
   JACK REBUILD — jackpotexch99.club client reference (2026-11-15).
   Founder order: match the reference layout/structure, keep Jack's own
   colours + BB-Bet branding. Real data only — no volumes, no scores,
   no invented rows. All rules are .jk-* / Jack-scoped; other themes
   untouched. jack.css loads last, so these win at equal specificity.
   ========================================================================== */

/* ---- Home balance bar (reference top bar): AVL BAL / username / EXP.
   Same look as the event-page balance bar; auth only. ---- */
.jk-balance-bar {
    background: var(--jk-strip);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    padding: 7px 12px;
    margin: 0 0 10px;
}
.jk-balance-bar span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 575.98px) {
    .jk-balance-bar { font-size: 0.72rem; padding: 6px 8px; }
}

/* ---- Casino strip (reference): horizontal scroller of game tiles.
   Our own casino artwork; every tile links to the casino lobby. ---- */
.jk-casino-strip { margin: 0 0 12px; }
.jk-casino-strip__scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 2px 0 6px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.jk-casino-strip__scroll::-webkit-scrollbar { display: none; }
.jk-casino-strip__tile {
    flex: 0 0 auto;
    width: 148px;
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--jk-border);
    text-decoration: none;
    color: var(--jk-ink);
}
.jk-casino-strip__tile img {
    width: 100%;
    height: 84px;
    object-fit: cover;
    display: block;
    background: var(--jk-bar);
}
.jk-casino-strip__tile span {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    padding: 6px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.jk-casino-strip__tile:hover { text-decoration: none; border-color: var(--jk-gold); }

/* ---- Race scrollers (reference NEXT HORSE / GREYHOUND RACE):
   horizontal cards — flag icon + bold time + race name. Only races that
   really exist in the feed render; an empty category hides its scroller. ---- */
.jk-race-scroll { margin: 0 0 12px; }
.jk-race-scroll__head {
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--jk-ink);
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}
.jk-race-scroll__head i { color: var(--jk-gold); font-size: 1rem; }
.jk-race-scroll__row {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}
.jk-race-scroll__row::-webkit-scrollbar { display: none; }
.jk-race-card {
    flex: 0 0 auto;
    min-width: 132px;
    max-width: 190px;
    background: #fff;
    border: 1px solid var(--jk-border);
    border-radius: 6px;
    padding: 8px 10px;
    text-decoration: none;
    color: var(--jk-ink);
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.jk-race-card:hover { text-decoration: none; border-color: var(--jk-gold); }
.jk-race-card__time { font-weight: 800; font-size: 0.85rem; display: flex; align-items: center; gap: 5px; }
.jk-race-card__time i { color: var(--jk-gold); }
.jk-race-card__name {
    font-size: 0.72rem;
    color: var(--jk-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ---- FEATURED EVENTS header (reference): same dark bar as the sport
   group bars, sits above the sport match lists. ---- */
.jk-featured-bar {
    background: var(--jk-bar);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 9px 12px;
    margin: 4px 0 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.jk-featured-bar i { color: var(--jk-gold-bright); }

/* ---- Match list: its own scroll area (reference compact board), so a
   long sport list never pushes the page. Compact rows: tighter padding,
   smaller date/league, name one line. ---- */
.jk-match-list {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
@media (min-width: 768px) {
    .jk-match-list { max-height: 520px; }
}
a.jk-match__row { padding: 7px 12px; gap: 8px; }
.jk-match__date { font-size: 0.68rem; }
.jk-match__name { font-size: 0.88rem; }
.jk-match__league { font-size: 0.68rem; }
@media (max-width: 575.98px) {
    a.jk-match__row { padding: 6px 10px; }
    .jk-match__name { font-size: 0.82rem; }
}

/* ---- Event: flat market tables (reference). No accordion chrome — the
   section bar IS the header, the table follows directly with a BACK/LAY
   column header. The wrapper carries data-market-type/title for JS. ---- */
.jk-market-flat {
    background: #fff;
    border-radius: 0 0 6px 6px;
    overflow: hidden;
    margin-bottom: 14px;
    border: 1px solid var(--jk-border);
    border-top: 0;
}
.jk-market-flat .jk-market-table { margin-bottom: 0; }
.jk-market-flat .jk-market-table .jk-mkt-head th {
    background: #fff;
    color: var(--jk-bar);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--jk-border);
}
/* A section with several markets: each market after the first gets a
   small title line so the tables stay identifiable. */
.jk-market-flat__title {
    background: #fff;
    color: var(--jk-ink);
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 8px 12px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}
.jk-market-flat__title .jk-mkt-star { color: var(--jk-gold-bright); }
/* Compact event rows: less vertical padding than the old accordion body. */
.jk-market-flat .jk-market-table td { padding-top: 6px !important; padding-bottom: 6px !important; }
.jk-market-flat .jk-market-table .oddBtn { padding: 7px 4px; }
.jk-market-flat .jk-market-table .oddBtn .odd-val { font-size: 0.9rem; }

/* ---- Event scoreboard, compact (reference): teams + score + CRR/RRR,
   nothing else. The detailed strip (batters/bowler/recent balls) is
   gone — it only ever showed "Not available yet" (no live feed). ---- */
.jk-scoreboard { padding: 12px 14px !important; }
/* Scoreboard date/time (2026-11-16 polish): light grey on the dark
   scoreboard — the old text-muted grey was near-unreadable on phones.
   The text-shadow keeps it readable over the bright cricket photo
   background (the photo overlay is only 28-42% dark). */
.jk-scoreboard__datetime { color: #D1D5DB !important; font-weight: 600; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7); }
body h4.jk-team-name { font-size: 1rem; }
.jk-team-logo { width: 36px; height: 36px; }
.jk-score-runs { font-size: 1.1rem; }
@media (max-width: 575.98px) {
    body h4.jk-team-name { font-size: 0.88rem; }
    .jk-team-logo { width: 30px; height: 30px; }
}

/* ---- BETS pane (reference): MATCHED / UN-MATCHED / FANCY sub-tabs +
   Runner / Rate / Stake / Profit-Loss / Date-Time table. ---- */
.jk-bets-subtabs {
    display: flex;
    background: #fff;
    border: 1px solid var(--jk-border);
    border-bottom: 0;
    border-radius: 6px 6px 0 0;
    overflow: hidden;
}
.jk-bets-subtab {
    flex: 1;
    background: #fff;
    color: var(--jk-ink);
    border: 0;
    border-right: 1px solid var(--jk-border);
    padding: 9px 4px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    cursor: pointer;
    white-space: nowrap;
}
.jk-bets-subtab:last-child { border-right: 0; }
.jk-bets-subtab.active { background: var(--jk-bar); color: #fff; }
.jk-bets-table { background: #fff; border: 1px solid var(--jk-border); border-radius: 0 0 6px 6px; overflow: hidden; }
.jk-bets-table table { margin-bottom: 0; }
.jk-bets-table thead th {
    background: var(--jk-bar) !important;
    color: #fff !important;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-color: #555555 !important;
    white-space: nowrap;
}
.jk-bets-table td { font-size: 0.82rem; vertical-align: middle; }
@media (max-width: 575.98px) {
    .jk-bets-table td, .jk-bets-table thead th { font-size: 0.7rem; padding: 6px 4px !important; }
    .jk-bets-subtab { font-size: 0.68rem; }
}

/* ---- Bet slip bottom sheet (reference): light-blue panel, runner +
   odds on top, RATE / STAKE steppers, 8 quick-stake chips (2x4),
   CANCEL + PLACE BET, MIN/MAX line. All hooks (.investAmount,
   .bet-return-amount, .quick-stake-btn, .betPlaceBtn, .deleteAll,
   [name=total_invest], .betslip-item-stake/.betslip-item-return) kept. ---- */
.betslip { background: #EAF4FB !important; }
.betslip-header { background: #fff; border-bottom: 1px solid var(--jk-border); }
.betslip-balance-bar {
    background: #fff;
    border-bottom: 1px solid var(--jk-border);
    padding: 10px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}
.betslip-balance-pts { margin-left: auto; }
.betslip-close-btn {
    background: none;
    border: 0;
    font-size: 1.1rem;
    color: var(--jk-muted);
    cursor: pointer;
    padding: 2px 6px;
    margin-left: 4px;
}
.betslip__body { background: #EAF4FB; }
/* Selection card: runner name + odds cell on top. */
.betslip-item {
    background: #fff;
    border: 1px solid #D6E8F5;
    border-radius: 8px;
    margin: 10px 10px 0;
    padding: 0 0 10px;
    list-style: none;
}
.betslip-item-header { padding: 8px 12px 0; }
.betslip-item-league__name { font-size: 0.75rem; color: var(--jk-muted); }
.betslip-item-selection {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px 0;
}
.betslip-item-selection__name { font-weight: 800; font-size: 0.92rem; color: var(--jk-ink); min-width: 0; }
.betslip-item-selection__market { font-size: 0.72rem; color: var(--jk-muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.betslip-item-selection__odds {
    flex: 0 0 auto;
    background: var(--jk-back);
    color: var(--jk-ink);
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 4px;
    padding: 6px 12px;
    min-width: 64px;
    text-align: center;
}
/* RATE / STAKE rows: label left, stepper box right. */
.betslip-item-rate,
.betslip-item-stake__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 12px 0;
}
.betslip-item-stake { padding: 0; }
.betslip-item-rate__label,
.betslip-item-stake__label {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: var(--jk-muted);
    text-transform: uppercase;
    flex: 0 0 auto;
}
.betslip-item-rate__value {
    background: var(--jk-back);
    color: var(--jk-ink);
    font-weight: 800;
    font-size: 0.95rem;
    border-radius: 4px;
    padding: 6px 12px;
    min-width: 64px;
    text-align: center;
}
.jk-stepper { display: inline-flex; align-items: stretch; gap: 0; }
.jk-stepper__btn {
    width: 34px;
    background: #fff;
    border: 1px solid #CBD5E1;
    color: var(--jk-ink);
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    padding: 6px 0;
}
.jk-stepper__btn:first-child { border-radius: 6px 0 0 6px; }
.jk-stepper__btn:last-child { border-radius: 0 6px 6px 0; }
.jk-stepper__btn:hover { background: #F1F5F9; }
.jk-stepper .investAmount {
    width: 96px;
    text-align: center;
    font-weight: 800;
    border: 1px solid #CBD5E1;
    border-left: 0;
    border-right: 0;
    border-radius: 0;
    padding: 6px 4px;
    margin: 0;
}
.jk-stepper .investAmount:focus { outline: none; border-color: #2563EB; box-shadow: none; }
.betslip-item-stake .validation-msg { display: block; font-size: 0.7rem; padding: 2px 12px 0; }
.betslip-item-return { padding: 6px 12px 0; }
.betslip-item-return__text { margin: 0; font-size: 0.82rem; color: var(--jk-muted); }
/* Footer: bet-type segmented control, 8 chips (2 rows x 4), CANCEL +
   PLACE BET, MIN/MAX. The total-stake input is hidden in Single mode
   (per-item stakes drive it); it shows in Multi mode. */
.betslip__footer { background: #EAF4FB; border-top: 1px solid #D6E8F5; padding: 10px 12px 14px; }
.betslip-select { margin-bottom: 10px; }
.betslip-select .form-select {
    background-color: #fff;
    border: 1px solid #CBD5E1;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 7px 10px;
}
.betslip__footer .quick-stake-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin: 8px 0 10px;
}
.betslip__footer .quick-stake-btn {
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    color: var(--jk-ink);
    font-weight: 800;
    font-size: 0.8rem;
    padding: 8px 2px;
    cursor: pointer;
    white-space: nowrap;
}
.betslip__footer .quick-stake-btn:hover { border-color: var(--jk-gold); }
.betslip__footer .quick-stake-btn.active { background: var(--jk-gold); border-color: var(--jk-gold); color: #fff; }
.betslip__footer .quick-stake-btn.max-btn { background: var(--jk-bar); border-color: var(--jk-bar); color: #fff; }
.betslip__footer [name=total_invest] {
    width: 100%;
    background: #fff;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-weight: 800;
    padding: 8px 10px;
    text-align: center;
}
.betslip.is-single .betslip__footer [name=total_invest] { display: none; }
.betslip__footer-bottom { display: flex; gap: 8px; }
.jk-slip-cancel {
    flex: 1;
    background: #fff;
    color: #2563EB;
    border: 1px solid #CBD5E1;
    border-radius: 6px;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 0;
    cursor: pointer;
}
.jk-slip-cancel:hover { background: #F1F5F9; }
.betslip__footer .betPlaceBtn {
    flex: 1;
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #fff !important;
    font-weight: 800;
    font-size: 0.9rem;
    padding: 10px 0;
    border-radius: 6px;
}
.betslip__footer .betPlaceBtn:hover { background: #1D4ED8 !important; }
.jk-slip-minmax {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--jk-muted);
    margin: 8px 0 0;
    letter-spacing: 0.03em;
}
.betslip__footer .freeplay-disclaimer-pill { background: #fff; border: 1px solid #D6E8F5; }

/* ---- Drawer account menu (reference): dark grey #444444 panel, logo
   top, plain menu rows, logout in red. Replaces the sports accordion.
   MOBILE VISIBILITY FIX 2026-11-16 (founder screenshots): the drawer
   rendered WHITE with white (invisible) text on his phone, even though
   this rule existed. Root cause, proven: the rule used the `background`
   SHORTHAND with a var() — `background: var(--jk-bar)` — while Bootstrap's
   `.offcanvas` sets the LONGHAND `background-color: var(--bs-offcanvas-bg)`
   (#fff). The `color: #fff` from this same rule DID apply (text was white /
   invisible) but the `background` shorthand did not, so Bootstrap's white
   won and the drawer came out white-on-white. Fix: hard LITERAL
   `background-color` (longhand, no var()) with `!important` on the
   offcanvas AND its body AND its logo header, so no Bootstrap rule can
   beat it. Do not revert to `background: var(...)` here. ---- */
#sportsDrawer.sports-drawer-offcanvas,
#sportsDrawer.sports-drawer-offcanvas .offcanvas-body,
#sportsDrawer.sports-drawer-offcanvas .jk-drawer-logo {
    background-color: #444444 !important;
    color: #ffffff !important;
}
#sportsDrawer .jk-drawer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 16px 12px;
    border-bottom: 1px solid #555555;
}
#sportsDrawer .jk-drawer-logo img { max-height: 40px; width: auto; }
#sportsDrawer .jk-drawer-logo__text {
    font-weight: 800;
    font-size: 1.4rem;
    font-style: italic;
    letter-spacing: -0.5px;
    color: #fff;
}
#sportsDrawer .jk-drawer-logo__text span { color: var(--jk-gold-bright); }
#sportsDrawer .jk-drawer-menu { padding: 6px 0; }
#sportsDrawer .jk-drawer-item {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 18px;
    background: transparent;
    border: 0;
    border-bottom: 1px solid #555555;
    color: #ffffff !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}
#sportsDrawer .jk-drawer-item:hover { background: #555555 !important; color: #ffffff !important; text-decoration: none; }
#sportsDrawer .jk-drawer-item i { font-size: 1.15rem; color: #D1D5DB !important; width: 22px; text-align: center; }
#sportsDrawer .jk-drawer-item--logout { color: #FCA5A5 !important; }
#sportsDrawer .jk-drawer-item--logout i { color: #FF072F !important; }
#sportsDrawer .jk-drawer-item--logout:hover { background: #5A2A2A !important; }
#sportsDrawer .jk-drawer-item__user { margin-left: auto; font-size: 0.75rem; color: #FACC15 !important; font-weight: 800; }
#sportsDrawer .drawer-close-btn { color: #ffffff !important; filter: invert(1) !important; opacity: 1 !important; }
#sportsDrawer .jk-drawer-logo__text { color: #ffffff !important; }

/* ---- Profit & Loss page (reference): dark header bar, SPORT +
   DURATION dropdowns, EVENT / TOTAL / INFO table + Total row. ---- */
.jk-pl-head {
    background: var(--jk-bar);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    padding: 9px 12px;
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.jk-pl-head__burger { background: none; border: 0; font-size: 1.25rem; line-height: 1; color: #fff; padding: 2px 6px; cursor: pointer; flex-shrink: 0; }
.jk-pl-filters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.jk-pl-filters .form-select {
    flex: 1 1 160px;
    background-color: #fff;
    border: 1px solid #CBD5E1;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 10px;
    border-radius: 6px;
}
.jk-pl-table { background: #fff; border: 1px solid var(--jk-border); border-radius: 6px; overflow: hidden; }
.jk-pl-table table { margin-bottom: 0; }
.jk-pl-table thead th {
    background: var(--jk-bar) !important;
    color: #fff !important;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-color: #555555 !important;
}
.jk-pl-table td { font-size: 0.85rem; vertical-align: middle; }
.jk-pl-table tfoot td { font-weight: 800; background: #F1F1F1; }
.jk-pl-total--neg { color: #DC2626; }
.jk-pl-total--pos { color: #16A34A; }

/* ==========================================================================
   Bet-slip reshape 2026-11-16 (founder reference panel)
   Accent header ("Bet Slip" + X), full-width Amount, additive + chips with
   Clear, full-width Place Bet. This file loads last, so these win over
   bb-premium.css (which also uses !important — matched below).
   Header accent: Jack dark-grey chrome var(--jk-bar, #444444), white text.
   Place Bet keeps Jack's established blue #2563EB (existing .betPlaceBtn
   rule below) — only its width changes here.
   ========================================================================== */
.betslip .betslip-panel-header {
    flex: 0 0 auto;
    position: sticky;
    top: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    background: var(--jk-bar, #444444);
    color: #fff;
    padding: 10px 12px;
}
.betslip .betslip-panel-header__title {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #fff;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.betslip .betslip-panel-header .betslip-close-btn {
    flex: 0 0 30px;
    width: 30px;
    height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, .45);
    border-radius: 6px;
    background: transparent;
    color: #fff;
    cursor: pointer;
}
.betslip .betslip-panel-header .betslip-close-btn:hover,
.betslip .betslip-panel-header .betslip-close-btn:focus-visible {
    background: rgba(255, 255, 255, .18);
    color: #fff;
    border-color: rgba(255, 255, 255, .7);
}
/* Amount input: full-width, readable. */
.betslip .betslip__footer input.amount {
    width: 100% !important;
}
/* Clear chip: outlined red, distinct from the value chips. */
.betslip .quick-stake-btn.quick-stake-clear-btn {
    border-color: #DC2626 !important;
    color: #DC2626 !important;
}
.betslip .quick-stake-btn.quick-stake-clear-btn:hover {
    background: #DC2626 !important;
    color: #fff !important;
    border-color: #DC2626 !important;
}
/* Footer: Cancel + Clear All row on top, Place Bet full-width below. */
.betslip .betslip__footer-bottom {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 8px !important;
    justify-content: flex-start !important;
}
.betslip.is-single .betslip__footer-bottom {
    justify-content: flex-start !important;
}
.betslip .betslip__footer-bottom-row {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    min-width: 0 !important;
}
.betslip .betslip__footer-bottom-row .jk-slip-cancel {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
.betslip .betslip__footer-bottom .delete-btn.deleteAll {
    flex: 0 0 auto !important;
    width: auto !important;
    height: 42px !important;
    padding: 0 12px !important;
    gap: 6px !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    border: 1px solid var(--jk-border, #E5E7EB) !important;
    border-radius: 6px !important;
    background: #fff !important;
    color: var(--jk-muted, #6B7280) !important;
    cursor: pointer !important;
}
.betslip .betslip__footer-bottom .delete-btn.deleteAll:hover {
    border-color: #DC2626 !important;
    color: #DC2626 !important;
}
.betslip .betslip__footer-btn.bet-place-btn.betslip-place-bet--full {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 46px !important;
    font-size: 15px !important;
}
/* Jack selection rows: selection / market / rate never clip. */
.betslip .betslip-item-selection__name {
    min-width: 0 !important;
    overflow-wrap: break-word !important;
}
.betslip .betslip-item-selection__odds,
.betslip .betslip-item-rate__value {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}
@media (max-width: 767.98px) {
    .betslip .betslip-panel-header { padding: 10px 12px; }
    .betslip .quick-stake-btn { min-width: 44px !important; }
}

/* ==========================================================================
   SUSPENDED BAND + section Min/Max + odds boxes (2026-11-16).
   Founder reference pattern: a suspended row/market shows a FULL-WIDTH
   maroon band across both odds columns with bold bright-red SUSPENDED text
   centred and large. Section-bar Min/Max are the REAL general_settings
   single-bet limits (markets.blade.php $evBetMin/$evBetMax) - never
   reference numbers. Scoped to #marketsContainer (event page only); the
   home page is untouched. No volumes, no reference branding, no logic
   changes. Appended last: the #marketsContainer ID beats the theme's own
   suspended rules on equal !important.
   ========================================================================== */
#marketsContainer td.jk-suspended-cell { background: #7F1D1D !important; }
#marketsContainer .jk-suspended-text { color: #FF6B6B !important; font-size: 1.05rem !important; letter-spacing: .08em !important; }
#marketsContainer .jk-suspended-faint { color: #FECACA !important; font-size: .75rem !important; }
#marketsContainer .jk-ballrunning-overlay { background: #7F1D1D !important; color: #FF6B6B !important; font-size: 1.05rem !important; letter-spacing: .08em !important; }
#marketsContainer .jk-ballrunning-overlay span { color: #FF6B6B !important; }
#marketsContainer .jk-ballrunning-overlay .jk-suspended-text { color: #FF6B6B !important; }
#marketsContainer .jk-mkt-max { color: #FFFFFF !important; font-size: .78rem !important; }
#marketsContainer .oddBtn .odd-val { font-size: 1.1rem !important; }
#marketsContainer .oddBtn { padding-top: 10px !important; padding-bottom: 10px !important; }
@media (max-width: 575.98px) {
    #marketsContainer .oddBtn .odd-val { font-size: 1rem !important; }
}
.jk-obm-suspended .jk-suspended-faint { color: #FECACA !important; }
.jk-obm-suspended .jk-suspended-text { color: #FF6B6B !important; font-size: 1.05rem !important; }

/* ==========================================================================
   BUG FIXES 2026-11-16 (REA-FULL-TEST + founder screenshot 14:02 IST)
   ========================================================================== */

/* BUG 4 — Ticker flex fix on the LAYOUT strip (home/live pages). The event
   page already has it (jack/markets.blade.php, 36s + fade mask). Same
   pattern here: the layout viewport is a w-100 div in a flex row with the
   LIVE UPDATE badge; flex:1 + min-width:0 takes only the width left after
   the badge. Duration already 36s (jk-marquee, above). */
.announcement-strip > .badge { flex-shrink: 0 !important; }
.announcement-strip > div.overflow-hidden.w-100 { flex: 1 1 auto; min-width: 0; -webkit-mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%); mask-image: linear-gradient(to right, #000 0%, #000 88%, transparent 100%); }

/* NEW BUG — Odds number unreadable on BACK/LAY cells (founder screenshot:
   BACK 6.50 white on light-blue #B2E7FF, Jack event page). Root cause:
   shared custom.css dark-mode rule `html[data-theme="dark"] .oddBtn
   .odd-val { color: #FFFFFF !important; }` forces the number white, while
   the event table forces LIGHT fills (#B2E7FF / #FFB1B4) in both modes —
   the button-level #111 never reaches the span (markets.blade.php:1750
   sets it without !important, so it loses). Fix: explicit dark .odd-val
   on light BACK/LAY cells. :not(.active) preserves the selected state
   (dark accent bg + white text). */
.jk-market-table .oddBtn.odd-back:not(.active) .odd-val,
.jk-market-table .oddBtn.odd-lay:not(.active) .odd-val,
.jk-market-table .oddBtn.btn-back:not(.active) .odd-val,
.jk-market-table .oddBtn.btn-lay:not(.active) .odd-val { color: #111 !important; }
