/* ==========================================================================
   BB-Bet — Allpanel theme (crimson/charcoal exchange, BB-Bet brand)
   Mobile-first: base = phone, min-width queries scale up.
   Palette: primary crimson #DC2626, header gradient #7F1D1D -> #B91C1C,
   page #141414, surfaces #1F2937, cards #232323, rows #262626, text
   #F5F5F5 / muted #9CA3AF, accent #EF4444, back #72BBEF, lay #FAA9BA.
   Dark cards, radius 12-16px.
   Loaded AFTER main.css / bb-polish.css / bb-premium.css, so these win.
   ========================================================================== */

:root {
    --ap-blue: #DC2626;
    --ap-blue-dark: #B91C1C;
    --ap-navy: #F5F5F5;
    --ap-bg: #141414;
    --ap-border: #262626;
    --ap-muted: #9CA3AF;
    --ap-back: #72BBEF;
    --ap-lay: #FAA9BA;
    --ap-empty: #262626;
    --ap-radius: 14px;
}

/* Page surface: Diamond is a light theme home regardless of dark toggle. */
body.bb-page-surface {
    background: var(--ap-bg);
    padding-bottom: 92px; /* room for the floating bottom nav */
}

/* ------------------------------------------------------------------ header */
.ap-header-wrap {
    background: linear-gradient(90deg, #7F1D1D, #B91C1C);
    border-bottom: 1px solid #7F1D1D;
    position: sticky;
    top: 0;
    z-index: 1030;
}

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

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

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

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

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

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

.ap-header__logo-text span { color: #FCA5A5; }

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

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

.ap-header__nav-link:hover,
.ap-header__nav-link.active {
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.12);
}

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

.ap-btn-login,
.ap-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: 8px;
    text-decoration: none;
    white-space: nowrap;
    transform: skewX(-8deg);
}

.ap-btn-login span,
.ap-btn-signup span { transform: skewX(8deg); }

.ap-btn-login {
    color: var(--ap-navy);
    background: #1F2937;
    border: 1.5px solid var(--ap-navy);
}

.ap-btn-login:hover { color: #FFFFFF; background: #EF4444; border-color: #EF4444; }

.ap-btn-signup {
    color: #fff;
    background: #EF4444;
    border: 1.5px solid #EF4444;
    box-shadow: 0 2px 8px rgba(220, 38, 38, 0.35);
}

.ap-btn-signup:hover { background: #DC2626; color: #fff; }

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

/* ------------------------------------------------------------------ announce */
.ap-announce {
    background: #1F2937;
    color: #F5F5F5;
    font-size: 0.82rem;
    font-weight: 600;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

/* ------------------------------------------------------------- category row */
.ap-category-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin: 12px 0 4px;
}

.ap-category-tile {
    background: #1F2937;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ap-category-tile__img {
    display: block;
    aspect-ratio: 16 / 10;
    background-size: cover;
    background-position: center;
    background-color: #262626;
}

.ap-category-tile__name {
    display: block;
    text-align: center;
    font-weight: 700;
    font-size: 0.78rem;
    color: var(--ap-navy);
    padding: 7px 4px 9px;
}

/* ------------------------------------------------------------------ hero */
.ap-hero {
    margin-top: 10px;
}

.ap-hero .slider,
.ap-hero img {
    border-radius: var(--ap-radius);
}

/* ------------------------------------------------------- rail + tile grid */
.ap-games {
    display: flex;
    gap: 10px;
    margin-top: 12px;
    align-items: flex-start;
}

.ap-rail {
    flex: 0 0 86px;
    background: #1F2937;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    overflow: hidden;
    position: sticky;
    top: 64px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ap-rail__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    width: 100%;
    padding: 12px 4px 10px;
    background: #1F2937;
    border: 0;
    border-bottom: 1px solid var(--ap-border);
    color: var(--ap-navy);
    font-size: 0.72rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
}

.ap-rail__item:last-child { border-bottom: 0; }

.ap-rail__item img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.ap-rail__item:hover { color: var(--ap-blue); }

.ap-rail__item.active {
    background: var(--ap-blue);
    color: #fff;
}

.ap-tiles {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.ap-tile-card {
    position: relative;
    display: block;
    border-radius: 16px;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    text-decoration: none;
    background: var(--ap-blue);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.ap-tile-card__img {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-color: #1F2937;
}

.ap-tile-card__img--all {
    background: linear-gradient(135deg, #DC2626, #7F1D1D);
}

.ap-tile-card__overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    padding: 10px 6px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0) 55%);
}

.ap-tile-card__badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #DC2626;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.5px;
    padding: 2px 7px;
    border-radius: 20px;
}

.ap-tile-card__name {
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.5px;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.ap-tile-card__tag {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 1px;
}

.ap-tile-card--all .ap-tile-card__overlay {
    justify-content: center;
    background: rgba(0, 0, 0, 0.25);
}

/* -------------------------------------------------------------- live games */
.ap-live {
    margin-top: 18px;
}

.ap-live .live-now-rail {
    margin-bottom: 0;
}

.ap-live .sports-visual-rail__title {
    color: var(--ap-navy);
    font-weight: 800;
}

.ap-live .live-now-card {
    background: #1F2937;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.ap-live .live-now-card__name,
.ap-live .live-now-card__league {
    color: var(--ap-navy);
}

/* -------------------------------------------------------------- match feed */
.ap-match-feed .match-filter-toolbar {
    background: #1F2937;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
}

.ap-match-feed .match-tab-btn {
    border: 1px solid var(--ap-border);
    background: #1F2937;
    color: var(--ap-navy);
    border-radius: 8px;
    font-weight: 600;
}

.ap-match-feed .match-tab-btn.active {
    background: var(--ap-blue);
    border-color: var(--ap-blue);
    color: #fff;
}

.ap-category-head {
    background: #1F2937;
    border: 1px solid var(--ap-border);
    border-left: 4px solid var(--ap-blue);
    border-radius: 10px;
    padding: 8px 12px;
}

.ap-league-head {
    background: #1F2937;
    border: 1px solid var(--ap-border);
    border-radius: 10px;
}

/* Team-name row: left light text, right crimson (via the shared summary block). */
.ap-match-row .sports-card {
    background: #1F2937;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    overflow: hidden;
}

/* Match-team band — Allpanel style: dark row band, team names split left
   (white) / right (crimson), league + meta in slate. The old navy-gradient
   band never painted (a theme rule reset its background) and left white
   text on a white background — unreadable. The !important flags below are
   deliberate: they beat the competing theme rules that bleached this band. */
.home-page .ap-match-row .exchange-fixture-summary,
.ap-match-row .exchange-fixture-summary {
    background: #262626 !important;
    background-image: none !important;
    border-radius: 10px 10px 0 0;
    padding: 9px 12px;
}

.home-page .ap-match-row .exchange-fixture-summary__teams,
.ap-match-row .exchange-fixture-summary__teams {
    display: flex !important;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    text-transform: none !important;
    font-size: .92rem;
}

.home-page .ap-match-row .exchange-fixture-summary__teams span,
.ap-match-row .exchange-fixture-summary__teams span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-page .ap-match-row .exchange-fixture-summary__teams span:first-child,
.ap-match-row .exchange-fixture-summary__teams span:first-child {
    color: #FFFFFF !important;
    text-align: left;
}

.home-page .ap-match-row .exchange-fixture-summary__teams span:last-child,
.ap-match-row .exchange-fixture-summary__teams span:last-child {
    color: #EF4444 !important;
    text-align: right;
}

.home-page .ap-match-row .exchange-fixture-summary__versus,
.ap-match-row .exchange-fixture-summary__versus {
    display: none !important;
}

.home-page .ap-match-row .exchange-fixture-summary__league,
.ap-match-row .exchange-fixture-summary__league,
.home-page .ap-match-row .exchange-fixture-summary__meta,
.ap-match-row .exchange-fixture-summary__meta {
    color: #9CA3AF !important;
}

.home-page .ap-match-row .btn-pin-game,
.ap-match-row .btn-pin-game {
    color: #9CA3AF !important;
}

.ap-match-row .btn-pin-game.active .pin-star-icon {
    color: #EF4444 !important;
}

/* Odds boxes: back = light blue, lay = light pink, empty = grey. */
.ap-match-row .oddBtn,
.ap-match-row .btn-back,
.ap-odds-box {
    border-radius: 8px;
    font-weight: 700;
}

.ap-match-row .oddBtn.btn-back,
.ap-match-row .btn-back,
.ap-odds-box.ap-back {
    background: var(--ap-back);
    border-color: #4A8FBF;
    color: #141414;
}

.ap-match-row .oddBtn.btn-back:hover {
    background: #4A8FBF;
}

.ap-match-row .oddBtn.btn-lay,
.ap-odds-box.ap-lay {
    background: var(--ap-lay);
    border-color: #D98BA0;
    color: #141414;
}

.ap-match-row .oddBtn:disabled,
.ap-match-row .oddBtn.disabled,
.ap-odds-box.ap-empty {
    background: var(--ap-empty);
    border-color: #52525B;
    color: var(--ap-muted);
}

.ap-match-row .exchange-depth-placeholder {
    background: var(--ap-empty);
    border-radius: 8px;
    color: var(--ap-muted);
}

.ap-match-row .exchange-market-grid__column--back { color: var(--ap-back); }
.ap-match-row .exchange-market-grid__column--lay { color: var(--ap-lay); }

/* ==========================================================================
   Allpanel match rows (shared by home + in-play list). Moved here from
   live_matches.blade.php so both pages use one definition.
   - Dark band, sport icon, teams split left white / right crimson.
   - The whole band is a link to the markets page (no separate "All
     Markets" line); the star sits inline left of the odds.
   - Odds: back = light blue, lay = light pink, empty = grey. The
     !important flags beat the theme rule that bleached .oddBtn white.
   - Volumes: none shown — the feed carries no real volume data.
   ========================================================================== */
.ap-match-list { display: flex; flex-direction: column; gap: 10px; }
.ap-match { background: #1F2937; border: 1px solid #262626; border-radius: 12px; overflow: hidden; }
a.ap-match__head {
    display: grid;
    grid-template-columns: 28px 1fr auto 1fr;
    align-items: center;
    gap: 6px;
    background: #262626;
    padding: 9px 12px;
    text-decoration: none;
    color: inherit;
}
.ap-match__head:hover { text-decoration: none; }
.ap-match__sport { color: #EF4444; font-size: 1.1rem; display: inline-flex; align-items: center; justify-content: center; }
.ap-match__team { font-weight: 700; font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ap-match__team--home { color: #FFFFFF; text-align: left; }
.ap-match__team--away { color: #EF4444; text-align: right; }
.ap-match__league { color: #9CA3AF; font-size: .7rem; font-weight: 600; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 110px; }
.ap-match__body { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 10px 12px; }
.ap-match__body .ap-pin { background: none; border: 0; padding: 4px; color: #9CA3AF; font-size: 1.15rem; line-height: 1; cursor: pointer; }
.ap-match__body .ap-pin.active { color: #EF4444; }
.ap-match__body .ap-pin.active .pin-star-icon { font-weight: 900; }
.ap-pinned-badge { grid-column: 1 / -1; justify-self: start; font-size: .62rem; }
.ap-odds { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.ap-odd {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 0;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 800;
    color: #FFFFFF;
    cursor: pointer;
    padding: 4px 2px;
}
.ap-odd .odd-rate { font-size: .95rem; }
html[data-theme="light"] .ap-match .ap-odd--back,
html[data-theme="dark"] .ap-match .ap-odd--back {
    background: #72BBEF !important;
    border-color: #4A8FBF !important;
    color: #141414 !important;
}
html[data-theme="light"] .ap-match .ap-odd--lay,
html[data-theme="dark"] .ap-match .ap-odd--lay {
    background: #FAA9BA !important;
    border-color: #D98BA0 !important;
    color: #141414 !important;
}
.ap-odd--empty { background: #262626 !important; color: #9CA3AF !important; cursor: default; }

/* Popular / tabs helpers (shared with other Diamond pages). */
.ap-popular {
    background: #1F2937;
    border: 1px solid var(--ap-border);
    border-radius: var(--ap-radius);
}

.ap-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
}

.ap-tabs .match-tab-btn { flex: 0 0 auto; }

/* -------------------------------------------------------------- bottom nav */
.ap-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1040;
    display: flex;
    background: #1F2937;
    border-top: 1px solid var(--ap-border);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.08);
    padding-bottom: env(safe-area-inset-bottom);
}

.ap-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    padding: 7px 0 6px;
    background: transparent;
    border: 0;
    color: var(--ap-muted);
    font-size: 0.68rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.ap-bottom-nav__item i {
    font-size: 1.35rem;
    line-height: 1;
}

.ap-bottom-nav__item:hover { color: var(--ap-blue); }

.ap-bottom-nav__item--active,
.ap-bottom-nav__item.is-active {
    color: #fff;
    background: var(--ap-blue);
    border-radius: 10px 10px 0 0;
}

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

/* ------------------------------------------------------------------ desktop */
@media (min-width: 768px) {
    .ap-header { padding: 10px 20px; }

    .ap-header__logo-img { max-height: 40px; }

    .ap-category-row { gap: 12px; }

    .ap-rail { flex-basis: 110px; }

    .ap-rail__item { font-size: 0.8rem; padding: 14px 6px 12px; }

    .ap-rail__item img { width: 42px; height: 42px; }

    .ap-tiles { grid-template-columns: repeat(3, 1fr); gap: 12px; }

    .ap-tile-card__name { font-size: 1.05rem; }
}

@media (min-width: 1024px) {
    .ap-tiles { grid-template-columns: repeat(4, 1fr); }

    .ap-bottom-nav { display: none; }

    body.bb-page-surface { padding-bottom: 0; }
}

/* ==========================================================================
   FIX 2026-11-10 (founder review) — mobile polish, Allpanel spacing.
   ========================================================================== */

/* Allpanel rows on phones: league hidden, head 3 columns, odds ~48px tall
   with 4–6px gaps, 10px between rows (ap-match-list gap). */
@media (max-width: 575.98px) {
    .ap-match__league { display: none; }
    a.ap-match__head { grid-template-columns: 26px 1fr 1fr; padding: 9px 12px; }
    .ap-match__body { padding: 8px 10px; gap: 6px; }
    .ap-odds { gap: 4px; }
    .ap-odd { min-height: 44px; font-size: .85rem; }
    .ap-odd .odd-rate { font-size: .85rem; }
}

/* Hero slider: show the artwork at its natural aspect instead of cropping
   the baked-in copy off (bb-premium forces 150px height + object-fit cover
   at .home-page specificity — the override below must match that
   specificity to win). */
.home-page #bbHeroShowcase .hero-banner-image {
    aspect-ratio: auto !important;
    object-fit: contain !important;
    object-position: center !important;
    height: auto !important;
    max-height: none !important;
    background: #1F2937 !important;
}
.home-page #bbHeroShowcase .hero-slides-wrapper,
.home-page #bbHeroShowcase .hero-slide,
.home-page #bbHeroShowcase .hero-slide-link {
    height: auto !important;
    max-height: none !important;
}

/* Game tiles: stronger bottom scrim so the label never fights the artwork's
   baked-in game name; slightly smaller label. */
.ap-tile-card__overlay {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.88) 0%, rgba(0, 0, 0, 0.45) 55%, rgba(0, 0, 0, 0) 100%) !important;
}
.ap-tile-card__name { font-size: 0.88rem; }

/* Cookie banner: a full-width bottom sheet covered the bottom nav. Diamond
   restyle — floats above the nav, inset from the edges, compact, dismissible. */
.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; }

/* Chatbot FAB: shrunk to a 44px circle on phones so it never overlaps
   team names or banner text while scrolling. While the cookie card is up,
   lift it above the card (the card sits at bottom: 78px, ~140px tall). */
@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;
    }
}

/* Bet Slip FAB: icon + count only on phones so the floating pill covers
   as little content as possible while scrolling. */
@media (max-width: 575.98px) {
    .bb-betslip-fab {
        height: 40px !important;
        padding: 0 12px !important;
        gap: 6px !important;
        bottom: 78px !important;
    }
    .bb-betslip-fab > span:not(.bb-betslip-fab__count) { display: none !important; }
}

/* ==========================================================================
   ROUND 2 — 2026-11-10: scrolling game-category bar + desktop column.
   ========================================================================== */

/* Category bar above the in-play list (mobile + desktop): horizontal
   scroll row of all sport categories, tap a chip to filter the list. */
.ap-catbar { display: flex; align-items: center; gap: 6px; margin: 2px 0 12px; }
.ap-catbar__scroll {
    display: flex; gap: 8px; overflow-x: auto; flex: 1 1 auto; min-width: 0;
    padding: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth; scroll-snap-type: x proximity;
}
.ap-catbar__scroll::-webkit-scrollbar { display: none; }
.ap-cat-chip {
    flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
    background: #1F2937; border: 1px solid var(--ap-border); border-radius: 999px;
    padding: 7px 13px; font-weight: 700; font-size: .83rem; color: var(--ap-navy);
    cursor: pointer; white-space: nowrap; scroll-snap-align: start;
}
.ap-cat-chip__icon { color: var(--ap-blue); font-size: 1.05rem; display: inline-flex; line-height: 1; }
.ap-cat-chip:hover { border-color: var(--ap-blue); }
.ap-cat-chip.is-active { background: var(--ap-blue); border-color: var(--ap-blue); color: #fff; }
.ap-cat-chip.is-active .ap-cat-chip__icon { color: #fff; }
.ap-catbar__arrow {
    flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%;
    border: 1px solid var(--ap-border); background: #1F2937; color: var(--ap-blue);
    font-size: 1rem; line-height: 1; cursor: pointer; display: none;
    align-items: center; justify-content: center;
}
.ap-catbar__arrow:disabled { opacity: .35; cursor: default; }
.ap-catbar-empty { background: #1F2937; border: 1px solid var(--ap-border); border-radius: 12px; text-align: center; padding: 28px 20px; color: #9CA3AF; margin-bottom: 12px; }
.ap-catbar-empty i { font-size: 2rem; opacity: .5; display: block; margin-bottom: 6px; }
.ap-catbar-empty p { margin: 0 0 12px; }

/* Desktop: category arrows on; content column centred at ~1080px.
   (bb-premium caps .sports-body flex at 992-1199px, so this binds at
   >=1200px where the free space exceeds 1080px. At 1280px nothing
   changes — the column already fits. The bet-slip drawer keeps its
   330px; the bottom nav stays hidden >=1024px, header nav serves desktop.) */
@media (min-width: 1024px) {
    .ap-catbar__arrow { display: inline-flex; }
}
@media (min-width: 1200px) {
    .home-page > .sports-body {
        max-width: 1080px;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
    }
}

/* ==========================================================================
   AP ADDITIONS — crimson/charcoal exchange. Appended after the mapped Diamond
   base; these rules win on equal specificity (later in the file).
   Palette: page #141414, surface #1F2937, card #232323, row #262626, primary
   #DC2626, primary dark #7F1D1D, header bar #7F1D1D -> #B91C1C, back #72BBEF,
   lay #FAA9BA, deeper back #1F2937, deeper lay #232323, unavailable
   #374151 / #4B5563, flash #DC2626, in-play #22C55E, cashout #22C55E,
   suspended red #F87171, tiles crimson #DC2626 / #B91C1C / #EF4444.
   ========================================================================== */

/* ---- crimson header gradient, white logo + white accents ---- */
.ap-header-wrap { background: linear-gradient(90deg, #7F1D1D, #B91C1C) !important; border-bottom: 2px solid #7F1D1D; }
.ap-header { background: transparent !important; }
.ap-header__burger { color: #FFFFFF !important; }
.ap-header__logo-text { color: #FFFFFF !important; font-weight: 800; letter-spacing: .06em; }
.ap-header__logo-text span { color: #FCA5A5 !important; }
.ap-header__nav-link { color: #F5F5F5 !important; }
.ap-header__nav-link:hover, .ap-header__nav-link.active { color: #FFFFFF !important; background: rgba(255, 255, 255, 0.12) !important; }
.ap-header .btn-theme-toggle { color: #FFFFFF !important; }
.ap-header__balance { background: #1F2937 !important; color: #fff !important; border: 1px solid #EF4444 !important; }
.ap-header__balance strong { color: #F5F5F5 !important; }
.ap-btn-login { color: #FFFFFF !important; border-color: #FFFFFF !important; background: transparent !important; }
.ap-btn-login:hover { background: #EF4444 !important; color: #fff !important; }
.ap-btn-signup { background: #EF4444 !important; color: #fff !important; border-color: #EF4444 !important; }
.ap-btn-signup:hover { background: #DC2626 !important; color: #fff !important; }
.ap-header .user-wallet-btn { background: #262626 !important; color: #fff !important; border: 1px solid #3F3F46 !important; }
.ap-header .user-profile-btn { color: #fff !important; }
.ap-header .dropdown-menu { background: #1F2937 !important; border: 1px solid #262626 !important; }
.ap-header .dropdown-menu .dropdown-item { color: #F5F5F5 !important; }
.ap-header .dropdown-menu .dropdown-item:hover { background: #262626 !important; color: #EF4444 !important; }

/* ---- theme preset bar (very top) ---- */
.ap-themebar { background: #141414; border-bottom: 1px solid #262626; display: flex; align-items: center; gap: 2px; overflow-x: auto; padding: 6px 10px; scrollbar-width: none; }
.ap-themebar::-webkit-scrollbar { display: none; }
.ap-themebar__label { color: #9CA3AF; font-size: .68rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-right: 6px; white-space: nowrap; }
.ap-themebar__item { flex: 0 0 auto; color: #9CA3AF; font-size: .8rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; }
.ap-themebar__item:hover { color: #EF4444; text-decoration: none; }
.ap-themebar__item.is-active { background: #DC2626; color: #fff; border-color: #EF4444; }
.ap-themebar__soon { font-size: .6rem; font-weight: 800; color: #9CA3AF; border: 1px solid #3F3F46; border-radius: 999px; padding: 0 5px; margin-left: 4px; text-transform: uppercase; }

/* ---- sport nav (scrollable, crimson-dot separators) ---- */
.ap-sportnav { background: #141414; display: flex; align-items: center; overflow-x: auto; padding: 8px 10px; gap: 0; scrollbar-width: none; border-bottom: 1px solid #262626; }
.ap-sportnav::-webkit-scrollbar { display: none; }
.ap-sportnav__item { flex: 0 0 auto; color: #F5F5F5; font-size: .85rem; font-weight: 700; padding: 4px 10px; text-decoration: none; white-space: nowrap; }
.ap-sportnav__item:hover { color: #EF4444; text-decoration: none; }
.ap-sportnav__item.is-active { color: #EF4444; box-shadow: inset 0 -2px 0 #DC2626; }
.ap-sportnav__dot { flex: 0 0 auto; color: #EF4444; font-size: .6rem; padding: 0 2px; }
.ap-sportnav__count { display: inline-block; flex: 0 0 auto; margin-left: 5px; padding: 1px 6px; border-radius: 999px; background: #DC2626; color: #FFFFFF; font-size: .62rem; font-weight: 800; line-height: 1.5; vertical-align: middle; }

/* ---- scrolling announcement marquee ---- */
.announcement-strip { background: #141414 !important; border-bottom: 1px solid #262626; }
.announcement-strip .badge-brand { background: #DC2626 !important; color: #fff !important; }
.announcement-strip .announcement-text { display: inline-block; color: #EF4444 !important; padding-left: 100%; animation: ap-marquee 36s linear infinite; will-change: transform; }
@keyframes ap-marquee { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .announcement-strip .announcement-text { animation: none; padding-left: 0; } }

/* ---- odds cells: dark text on light blue / pink (beats the mapped white) ---- */
html[data-theme="light"] .ap-match .ap-odd--back,
html[data-theme="dark"] .ap-match .ap-odd--back,
.ap-match-row .oddBtn.btn-back { background: #72BBEF !important; border-color: #4A8FBF !important; color: #000 !important; }
html[data-theme="light"] .ap-match .ap-odd--lay,
html[data-theme="dark"] .ap-match .ap-odd--lay,
.ap-match-row .oddBtn.btn-lay { background: #FAA9BA !important; border-color: #D98BA0 !important; color: #000 !important; }
.ap-odd { color: #000 !important; }
.ap-odd--empty { background: #262626 !important; color: #9CA3AF !important; }
.ap-match-row .oddBtn.btn-back:hover { background: #4A8FBF !important; }
.ap-match-row .oddBtn.btn-lay:hover { background: #F59EAF !important; }
/* deeper shades (fancy / depth rows reuse these when present) */
.ap-odd--back-deep { background: #1F2937 !important; color: #72BBEF !important; }
.ap-odd--lay-deep { background: #232323 !important; color: #FAA9BA !important; }
.ap-odd--unavailable { background: #374151 !important; color: #9CA3AF !important; }
.ap-odd--unavailable-lay { background: #4B5563 !important; color: #9CA3AF !important; }
/* price-change flash: crimson with white text */
.odds-flash-up, .odds-flash-down { background: #DC2626 !important; color: #fff !important; }
.odds-flash-up .odd-rate, .odds-flash-down .odd-rate { color: #fff !important; }

/* ---- match band: dark row, crimson away team ---- */
a.ap-match__head { background: #262626 !important; }
.ap-match { background: #1F2937 !important; border-color: #262626 !important; }
.ap-match__team--home { color: #FFFFFF !important; }
.ap-match__team--away { color: #EF4444 !important; }
.ap-match__league { color: #9CA3AF !important; }
.ap-match__sport { color: #EF4444 !important; }
.ap-match__body .ap-pin { color: #9CA3AF !important; }
.ap-match__body .ap-pin.active, .ap-match-row .btn-pin-game.active .pin-star-icon { color: #EF4444 !important; }
.ap-match-row .sports-card { background: #1F2937 !important; border-color: #262626 !important; }
.ap-category-head, .ap-league-head { background: #1F2937 !important; border-color: #262626 !important; color: #fff !important; }
.ap-category-head { border-left-color: #EF4444 !important; }
.ap-match-feed .match-filter-toolbar { background: #1F2937 !important; border-color: #262626 !important; }
.ap-match-feed .match-tab-btn { background: #262626 !important; border-color: #262626 !important; color: #fff !important; }
.ap-match-feed .match-tab-btn.active { background: #DC2626 !important; border-color: #EF4444 !important; color: #fff !important; }
.ap-match-feed .match-search-input { background: #262626 !important; border-color: #262626 !important; color: #fff !important; }
.ap-match-feed .match-search-input::placeholder { color: #9CA3AF !important; }

/* ---- gradient category tile grid (CSS-built, no photos) ---- */
.ap-gradtiles { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.ap-gradtile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 92px; border-radius: 14px; color: #fff !important; text-decoration: none; font-weight: 800; font-size: .9rem; text-align: center; padding: 12px 6px; }
.ap-gradtile:hover { color: #fff !important; text-decoration: none; filter: brightness(1.15); }
.ap-gradtile i { font-size: 1.7rem; line-height: 1; }
.ap-gradtile--purple { background: linear-gradient(135deg, #7F1D1D, #450A0A); }
.ap-gradtile--cyan { background: linear-gradient(135deg, #1F2937, #111827); }
.ap-gradtile--orange { background: linear-gradient(135deg, #B91C1C, #7F1D1D); }
.ap-gradtile--crimson { background: linear-gradient(135deg, #DC2626, #7F1D1D); color: #fff !important; }
.ap-gradtile--crimson:hover { color: #fff !important; }
.ap-gradtile--green { background: linear-gradient(135deg, #22C55E, #15803D); }
.ap-gradtile--pink { background: linear-gradient(135deg, #EF4444, #7F1D1D); }
@media (max-width: 767.98px) { .ap-gradtiles { grid-template-columns: repeat(5, 1fr); gap: 6px; } .ap-gradtile { min-height: 74px; font-size: .72rem; } .ap-gradtile i { font-size: 1.35rem; } }

/* ---- home dashboard strip: charcoal stat cells (2 mobile / 4 desktop) ---- */
.ap-dash { display: flex; flex-wrap: wrap; background: #1F2937; border-left: 3px solid #DC2626; border-radius: 12px; overflow: hidden; margin: 10px 0; }
.ap-dash__cell { flex: 0 0 50%; max-width: 50%; display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; text-decoration: none; color: inherit; }
.ap-dash__cell:hover, .ap-dash__cell:focus { text-decoration: none; }
.ap-dash__cell:hover .ap-dash__label, .ap-dash__cell:focus .ap-dash__label { color: #E5E7EB; }
.ap-dash__cell:hover .ap-dash__value, .ap-dash__cell:focus .ap-dash__value { color: #FFFFFF; }
.ap-dash__label { color: #9CA3AF; font-size: .62rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2; }
.ap-dash__value { color: #F5F5F5; font-size: .95rem; font-weight: 800; line-height: 1.2; }
@media (min-width: 768px) { .ap-dash__cell { flex: 0 0 25%; max-width: 25%; padding: 10px 14px; } .ap-dash__value { font-size: 1.05rem; } }

/* ---- racing strip ---- */
.ap-racing { display: flex; align-items: center; gap: 10px; background: #1F2937; border: 1px solid #262626; border-radius: 14px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; }
.ap-racing::-webkit-scrollbar { display: none; }
.ap-racing__label { flex: 0 0 auto; color: #EF4444; font-weight: 800; font-size: .85rem; letter-spacing: .05em; text-transform: uppercase; }
.ap-racing__race { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; background: #262626; color: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .82rem; text-decoration: none; }
.ap-racing__race:hover { color: #EF4444; text-decoration: none; }
.ap-racing__flag { font-size: 1rem; line-height: 1; }
.ap-racing__all { flex: 0 0 auto; margin-left: auto; color: #EF4444; font-weight: 700; font-size: .82rem; white-space: nowrap; }

/* ---- category chips: active = crimson pill, white text ---- */
.ap-cat-chip { background: #262626 !important; border-color: #262626 !important; color: #fff !important; }
.ap-cat-chip__icon { color: #EF4444 !important; }
.ap-cat-chip:hover { border-color: #EF4444 !important; }
.ap-cat-chip.is-active { background: #DC2626 !important; border-color: #EF4444 !important; color: #fff !important; }
.ap-cat-chip.is-active .ap-cat-chip__icon { color: #fff !important; }
.ap-catbar__arrow { background: #262626 !important; border-color: #262626 !important; color: #EF4444 !important; }
.ap-catbar-empty { background: #1F2937 !important; border-color: #262626 !important; color: #9CA3AF !important; }

/* ---- in-play header / popular ---- */
.ap-inplay-head__title { color: #EF4444 !important; }
.ap-inplay-head__boost { background: #DC2626 !important; color: #fff !important; }
.ap-inplay-head__hint { color: #EF4444 !important; }
.ap-sport-title { color: #fff !important; }
.ap-sport-title__icon { color: #EF4444 !important; }
.ap-sport-title__count { background: #22C55E !important; color: #fff !important; }
.ap-popular-head span { background: #DC2626 !important; color: #fff !important; }
.ap-popular-tab { background: #262626 !important; border-color: #262626 !important; color: #fff !important; }
.ap-popular-tab.active { background: #DC2626 !important; border-color: #EF4444 !important; color: #fff !important; }
.ap-empty { background: #1F2937 !important; border-color: #262626 !important; color: #9CA3AF !important; }
.ap-btn { background: #DC2626 !important; color: #fff !important; }
.ap-btn:hover { background: #B91C1C !important; color: #fff !important; }

/* ---- floating bottom nav: dark grey rounded bar, WhatsApp centre ---- */
.ap-bottom-nav { left: 12px !important; right: 12px !important; bottom: 12px !important; background: #1F2937 !important; border: 1px solid #374151 !important; border-radius: 999px !important; box-shadow: 0 6px 24px rgba(0,0,0,.55) !important; padding: 4px 6px !important; }
.ap-bottom-nav__item { color: #9CA3AF !important; }
.ap-bottom-nav__item:hover { color: #EF4444 !important; }
.ap-bottom-nav__item--active, .ap-bottom-nav__item.is-active { color: #FFFFFF !important; background: #DC2626 !important; border-radius: 999px !important; }
.ap-bottom-nav__wa { flex: 0 0 auto !important; width: 52px; height: 52px; margin-top: -26px; border-radius: 50% !important; background: #DC2626 !important; color: #fff !important; border: 3px solid #1F2937 !important; box-shadow: 0 4px 14px rgba(0,0,0,.5); align-items: center; justify-content: center; padding: 0 !important; }
.ap-bottom-nav__wa i { font-size: 1.7rem !important; }
.ap-bottom-nav__wa:hover { color: #fff !important; background: #B91C1C !important; }
@media (min-width: 1024px) { .ap-bottom-nav { display: none !important; } }

/* ---- floating chrome sits above the floating nav ---- */
.cookies-card { background: #1F2937 !important; color: #F5F5F5 !important; border: 1px solid #DC2626 !important; bottom: 92px !important; }
.cookies-card .cookies-card__content { color: #F5F5F5 !important; }
@media (max-width: 767.98px) {
    .bb-chatbot-container { bottom: 92px !important; }
    body:has(.cookies-card:not(.d-none):not(.hide)) .bb-chatbot-container { bottom: 240px !important; }
}
@media (max-width: 575.98px) { .bb-betslip-fab { bottom: 140px !important; } }

/* ---- Allpanel footer ---- */
.ap-footer { background: #1F2937; border-top: 2px solid #DC2626; color: #F5F5F5; padding: 26px 16px 12px; }
.ap-footer__logo img { max-height: 44px; }
.ap-footer__logo-text { color: #EF4444; font-weight: 800; font-size: 1.4rem; letter-spacing: .06em; }
.ap-footer__about { color: #9CA3AF; font-size: .85rem; }
.ap-footer__title { color: #EF4444; font-weight: 800; letter-spacing: .06em; font-size: .85rem; text-transform: uppercase; margin-bottom: 12px; }
.ap-footer__link { color: #F5F5F5; font-size: .88rem; text-decoration: none; display: block; padding: 3px 0; }
.ap-footer__link:hover { color: #EF4444; text-decoration: none; }
.ap-footer .social-list__icon { background: #262626; color: #EF4444; }
.ap-footer-bottom { background: #141414; color: #9CA3AF; border-top: 1px solid #262626; padding: 12px 16px 100px; font-size: .78rem; }
@media (min-width: 1024px) { .ap-footer-bottom { padding-bottom: 16px; } }

/* ---- desktop column cap (same as Diamond) ---- */
@media (min-width: 1200px) {
    .home-page > .sports-body { max-width: 1080px; margin-left: auto; margin-right: auto; padding-left: 16px; padding-right: 16px; }
}

/* ---- live-now rail on dark ---- */
.ap-live .live-now-card { background: #1F2937 !important; border: 1px solid #262626 !important; }
.ap-live .live-now-card__name, .ap-live .live-now-card__league { color: #fff !important; }
.ap-live .sports-visual-rail__title { color: #fff !important; }
.ap-live .live-now-card__odd { background: #262626 !important; color: #EF4444 !important; }

/* ==========================================================================
   FIX 2026-11-11 — beat the base theme's light-theme rules (live QC).
   The blade @push('style') block loads BEFORE bb-premium/custom.css, so
   equal-specificity rules there lose; these live in allpanel.css (loads last)
   with equal-or-higher specificity. Same defect class Jack hit on the
   market bar (bb-premium forced #0A5FBF). The page also sits on
   data-theme="light" by default, so html[data-theme="light"] rules in
   custom.css must be matched selector-for-selector.
   ========================================================================== */
html[data-theme="light"] body.bb-page-surface,
html[data-theme="dark"] body.bb-page-surface { background: #141414 !important; }
html[data-theme="light"] .home-page,
html[data-theme="dark"] .home-page { background: #141414 !important; }
html[data-theme="light"] .home-page .sports-body,
html[data-theme="dark"] .home-page .sports-body { background: #141414 !important; }
html[data-theme="light"] .announcement-strip,
html[data-theme="dark"] .announcement-strip,
html:not([data-theme="dark"]) .announcement-strip { background: #141414 !important; border-bottom: 1px solid #262626 !important; }
html[data-theme="light"] .announcement-strip .announcement-text,
html[data-theme="dark"] .announcement-strip .announcement-text,
html:not([data-theme="dark"]) .announcement-strip .announcement-text { color: #EF4444 !important; }
html[data-theme="light"] .announcement-strip .badge-brand,
html[data-theme="dark"] .announcement-strip .badge-brand { background: #DC2626 !important; color: #fff !important; }
/* Market header bar: beat bb-premium .home-page .market-accordion .accordion-button (#0A5FBF). */
.home-page .market-accordion .accordion-button.ap-mkt-bar { background: linear-gradient(90deg, #7F1D1D, #B91C1C) !important; color: #fff !important; }
.home-page .market-accordion .accordion-button.ap-mkt-bar::after { filter: none !important; }
.ap-mkt-bar .badge { background: #141414 !important; color: #FFFFFF !important; border: 1px solid rgba(255, 255, 255, 0.5) !important; }
/* Market table: beat bb-premium .home-page .col-head-pill--* (#A5D9FE / #F8D0CE). */
.home-page .col-head-pill--back { background: #72BBEF !important; color: #000 !important; }
.home-page .col-head-pill--lay { background: #FAA9BA !important; color: #000 !important; }
.home-page .ap-market-table td.cell-back,
.home-page .ap-market-table td.cell-lay { background: #262626 !important; }
.home-page .ap-market-table .ap-mkt-head th { background: #262626 !important; color: #fff !important; border-color: #262626 !important; }
html[data-theme="light"] .ap-market-table .runner-name,
html[data-theme="dark"] .ap-market-table .runner-name { color: #fff !important; }
/* Scoreboard team names: beat custom.css html:not([data-theme="dark"]) h4. */
html[data-theme="light"] .ap-scoreboard h4.ap-team-name,
html[data-theme="dark"] .ap-scoreboard h4.ap-team-name { color: #fff !important; }
/* Scoreboard blue (Bootstrap text-primary) labels -> crimson. */
.ap-scoreboard .text-primary, .ap-live-strip .text-primary { color: #EF4444 !important; }
/* League + category headers: dark strip, white text, crimson count. */
.ap-league-head, .ap-category-head { background: #1F2937 !important; border-color: #262626 !important; }
.ap-league-head .exchange-league-header__sport,
.ap-league-head .league-group-heading__name,
.ap-category-head .exchange-category-header__name { color: #fff !important; }
.ap-league-head .league-group-heading__count,
.ap-category-head .exchange-category-header__count { background: #DC2626 !important; color: #fff !important; }
.ap-category-head .exchange-category-header__all { color: #EF4444 !important; }
/* In-play sport titles: white on black (blade rule lost to base h5). */
.ap-sport-title { color: #fff !important; }
/* 1-click bar + market filter tabs: dark, active = crimson pill. */
.ap-oneclick-bar { background: #1F2937 !important; border-color: #262626 !important; }
.ap-oneclick-bar .form-check-label { color: #fff !important; }
.market-filter-tabs .market-tab { background: #262626 !important; color: #fff !important; border-color: #262626 !important; }
.market-filter-tabs .market-tab.active { background: #DC2626 !important; color: #fff !important; border-color: #EF4444 !important; }
/* Open-bets / tracker cards: dark, light text. */
.ap-open-bets { background: #1F2937 !important; border-color: #262626 !important; color: #F5F5F5 !important; }
.ap-open-bets td, .ap-open-bets th { color: #F5F5F5 !important; }
.ap-tracker-box, .ap-details-box { background: #1F2937 !important; border-color: #262626 !important; }

/* FIX 2026-11-11 (round 2) — two stragglers from the re-QC: the scoreboard
   live labels and the market filter tabs still showed the base theme's
   colours. Escalated selectors below. */
html[data-theme="light"] .ap-scoreboard .text-primary,
html[data-theme="dark"] .ap-scoreboard .text-primary,
html[data-theme="light"] .ap-live-strip .text-primary,
html[data-theme="dark"] .ap-live-strip .text-primary,
#liveScoreSituation { color: #EF4444 !important; }
.home-page .market-filter-tabs .market-tab { background: #262626 !important; color: #fff !important; border-color: #262626 !important; }
.home-page .market-filter-tabs .market-tab.active { background: #DC2626 !important; color: #fff !important; border-color: #EF4444 !important; }

/* FIX 2026-11-11 (round 3) — filter tabs: the competitor is bb-premium
   html[data-theme="light"] .home-page .market-tab.active (0,4,1). Match
   the selector shape so allpanel.css (loads last) wins the tie. */
html[data-theme="light"] .home-page .market-filter-tabs .market-tab,
html[data-theme="dark"] .home-page .market-filter-tabs .market-tab { background: #262626 !important; color: #fff !important; border-color: #262626 !important; }
html[data-theme="light"] .home-page .market-filter-tabs .market-tab.active,
html[data-theme="dark"] .home-page .market-filter-tabs .market-tab.active { background: #DC2626 !important; color: #fff !important; border-color: #EF4444 !important; }

/* FIX 2026-11-11 (round 4) — CDP cascade diagnosis:
   - badge: bb-premium `.home-page .market-accordion .accordion-button .badge`
     (0,4,0) beat allpanel.css `.ap-mkt-bar .badge` (0,2,0); both !important.
   - runner td: bb-premium `.table tbody td` sets
     `background: var(--bb-table-td-bg) !important` (white in light theme);
     allpanel.css only overrode td.cell-back / td.cell-lay, leaving the runner
     column white with white text.
   - stake pill: bb-polish light rule (#F1F5F9) and bb-premium active rule
     (#0A5FBF) beat the blade's `.quick-stake-pill` rules. */
.home-page .market-accordion .accordion-button.ap-mkt-bar .badge { background: #141414 !important; color: #FFFFFF !important; border: 1px solid rgba(255, 255, 255, 0.5) !important; }
.home-page .ap-market-table tbody td,
.table.ap-market-table tbody td { background: #262626 !important; color: #F5F5F5 !important; }
.home-page .ap-market-table tbody td.ap-suspended-cell { background: rgba(31, 41, 55, 0.92) !important; }
html[data-theme="light"] .quick-stake-pill,
html[data-theme="dark"] .quick-stake-pill { background: #262626 !important; color: #fff !important; border-color: #262626 !important; }
html[data-theme="light"] .quick-stake-pill.active,
html[data-theme="dark"] .quick-stake-pill.active { background: #DC2626 !important; color: #fff !important; border-color: #EF4444 !important; }

/* ==========================================================================
   FIX 2026-11-11 (Allpanel round) — reference-fidelity appendix, ap-diff.md.
   All rules Allpanel-owned in allpanel.css (loads last). No shared file touched.
   ========================================================================== */

/* #2 Desktop left sports sidebar: charcoal, white text, crimson active.
   Competitor: bb-premium.css:124-129 `.home-page .sports-category,
   .sports-category { background: var(--bbp-surface) !important; }`
   (0,2,0) — same specificity, allpanel.css loads last so this wins. */
.home-page .sports-category { background: #1F2937 !important; }
.home-page .sports-category .sports-category__link { color: #fff !important; }
.home-page .sports-category .sports-category__link:hover { background: #262626 !important; color: #fff !important; }
.home-page .sports-category .sports-category__link.active { background: #DC2626 !important; color: #fff !important; }
.home-page .sports-category .sports-category__link.active .sports-category__icon { color: #fff !important; }

/* #3 Desktop right Bet Slip column: dark, crimson tab + Place Bet.
   Competitor: bb-premium `.bb-page-surface .btn--base
   { background: var(--bbp-accent) !important; }` (0,2,0). */
body .betslip { background: #1F2937 !important; }
body .betslip .betslip-header { background: #141414 !important; }
body .betslip .bet-type__btn span { background: #262626 !important; color: #fff !important; }
body .betslip .bet-type__btn:has(input:checked) span,
body .betslip .bet-type__btn input:checked + span { background: #DC2626 !important; color: #fff !important; }
body .betslip .btn--base { background: #DC2626 !important; border-color: #EF4444 !important; color: #fff !important; }
body .betslip .quick-stake-btn { background: #262626 !important; color: #fff !important; border-color: #262626 !important; }
body .betslip .quick-stake-btn.active { background: #DC2626 !important; color: #fff !important; border-color: #EF4444 !important; }
body .betslip .betslip-balance-bar { background: #1F2937 !important; color: #fff !important; }
body .betslip .betslip-add-points-btn { background: #262626 !important; color: #EF4444 !important; }

/* #4 Home sport section headers: dark, never the shared blue bar.
   Competitor: bb-premium.css:4836 `.home-page .exchange-category-header
   { background: #0A5FBF !important; }` (0,2,0) — (0,3,0) here wins. */
.home-page .exchange-category-header.ap-category-head { background: #1F2937 !important; border: 1px solid #262626 !important; }
.home-page .exchange-category-header.ap-category-head .exchange-category-header__name { color: #fff !important; }
.home-page .exchange-category-header.ap-category-head .exchange-category-header__count { background: #DC2626 !important; color: #fff !important; }
.home-page .exchange-category-header.ap-category-head .exchange-category-header__all { color: #EF4444 !important; }

/* #14 Footer: the `.footer--light` wrapper rendered a white card around
   the already charcoal Allpanel footer. */
body .footer.footer--light { background: #141414 !important; }
body .footer .footer-bottom { background: #141414 !important; }

/* #16 Active-tab guard: bb-premium.css:4658 forces blue on
   `.home-page .match-tab-btn.active, .home-page .market-tab.active`. */
html[data-theme="light"] .home-page .match-tab-btn.active,
html[data-theme="dark"] .home-page .match-tab-btn.active,
html[data-theme="light"] .home-page .market-tab.active,
html[data-theme="dark"] .home-page .market-tab.active { background: #DC2626 !important; border-color: #EF4444 !important; color: #fff !important; }

/* #17 Blue accent leaks on the casino lobby (Basic fallback view):
   LIVE ARENA pill (cyan gradient), Launch Crash Games (btn-primary blue),
   Help & Guide FAB (blue gradient). Crimson/charcoal instead. */
.casino-live-badge { background: #DC2626 !important; background-image: none !important; color: #fff !important; box-shadow: none !important; }
.casino-hero-cta.btn-primary { background: #DC2626 !important; border-color: #EF4444 !important; color: #fff !important; }
.bb-chatbot-btn { background: #DC2626 !important; background-image: none !important; color: #fff !important; box-shadow: 0 6px 18px rgba(220, 38, 38, 0.28) !important; }
.bb-chatbot-btn .bb-chatbot-btn-text { color: #fff !important; }

/* #6 Empty/unavailable odds cells: greyed back #374151, greyed lay #4B5563
   (the .ap-odd--unavailable* classes at allpanel.css:890-891 were defined
   but never emitted). Home/live rows carry the side class on
   the empty button; market tables get it from the cell context. */
.ap-odd--back.ap-odd--empty { background: #374151 !important; color: #9CA3AF !important; }
.ap-odd--lay.ap-odd--empty { background: #4B5563 !important; color: #9CA3AF !important; }
.home-page .ap-market-table tbody td.cell-back .ap-odd--empty { background: #374151 !important; }
.home-page .ap-market-table tbody td.cell-lay .ap-odd--empty { background: #4B5563 !important; }
.home-page .ap-market-table tbody td.ap-depth-empty { background: #1F2937 !important; }
/* FANCY BALL RUNNING cell must keep its greyed suspended fill: allpanel.css
   round-4 `td.ap-suspended-cell` (0,3,1) ties the pushed-style ballrunning
   rule and loads last, so re-assert it here at higher specificity. */
.home-page .ap-market-table tbody td.ap-suspended-cell.ap-fancy-ballrunning { background: rgba(31, 41, 55, 0.92) !important; }
.home-page .ap-market-table tbody td.ap-suspended-cell.ap-fancy-ballrunning .ap-suspended-faint { color: #9CA3AF !important; }
.home-page .ap-market-table tbody td.ap-suspended-cell.ap-fancy-ballrunning .ap-suspended-text { color: #F87171 !important; }

/* Event breadcrumb (ap-diff #9) + header Liability/Balance pills (#22). */
.ap-breadcrumb { display: flex; flex-wrap: wrap; gap: 2px 8px; align-items: center; font-size: .8rem; color: #9CA3AF; padding: 2px 2px 10px; }
.ap-breadcrumb a { color: #EF4444; font-weight: 700; text-decoration: none; }
.ap-breadcrumb__start { margin-left: auto; color: #fff; font-weight: 600; }
@media (max-width: 575.98px) {
    .ap-breadcrumb { font-size: .72rem; }
    .ap-breadcrumb__start { margin-left: 0; }
}
.ap-header__pill { background: #1F2937; border: 1px solid #DC2626; color: #fff; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700; display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; }
.ap-header__pill strong { color: #EF4444; }

/* Section-bar / market-bar stars sit on the crimson gradient: white, not
   crimson (A crimson star only reads on the dark fancy rows). */
.ap-section-bar .ap-mkt-star,
.ap-mkt-bar .ap-mkt-star { color: #fff !important; }

/* FIX 2026-11-11 (Allpanel round, specificity round 2) — CDP cascade diagnosis:
   the diff's assumed competitors were wrong; the live winners are
   `html[data-theme="light"] ...` rules at (0,2,1) and
   `.bb-page-surface .btn.btn--base` at (0,3,0). Match those shapes here
   (allpanel.css loads last, so ties go to Allpanel). */
html:not([data-theme="dark"]) .sports-category,
html[data-theme="light"] .sports-category,
html[data-theme="dark"] .sports-category { background: #1F2937 !important; }
html[data-theme="light"] .betslip,
html[data-theme="dark"] .betslip { background: #1F2937 !important; }
html[data-theme="light"] .bb-page-surface .betslip .btn--base,
html[data-theme="dark"] .bb-page-surface .betslip .btn--base { background: #DC2626 !important; border-color: #EF4444 !important; color: #fff !important; }
html[data-theme="light"] .betslip .quick-stake-btn,
html[data-theme="dark"] .betslip .quick-stake-btn { background: #262626 !important; color: #fff !important; border-color: #262626 !important; }
html[data-theme="light"] .ap-match .ap-odd--back.ap-odd--empty,
html[data-theme="dark"] .ap-match .ap-odd--back.ap-odd--empty { background: #374151 !important; color: #9CA3AF !important; }
html[data-theme="light"] .ap-match .ap-odd--lay.ap-odd--empty,
html[data-theme="dark"] .ap-match .ap-odd--lay.ap-odd--empty { background: #4B5563 !important; color: #9CA3AF !important; }

/* Racing countdown chips (ap-diff #23): real next-fixture times only. */
.ap-racing__chip { display: inline-flex; align-items: center; gap: 4px; background: #262626 !important; color: #EF4444 !important; border: 1px solid #262626; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 700; white-space: nowrap; text-decoration: none; }
.ap-racing__chip:hover { border-color: #EF4444; color: #EF4444 !important; }

/* ==========================================================================
   FIX 2026-11-11 (Allpanel exact-match round) — event-page gaps.
   Allpanel-owned rules; allpanel.css loads last, so equal-specificity ties go to Allpanel.
   ========================================================================== */

/* CRR/RRR badge pairs under BOTH scoreboard sides. The blade renders the
   honest "CRR: 0.0" / "RRR: 0.0" placeholders (the feed supplies no run
   rates in this build); the /api/live-stream poll overwrites them only
   when real values arrive. Crimson on charcoal = Allpanel's palette. */
.ap-scoreboard .ap-score-rates { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ap-scoreboard .ap-score-rates--end { justify-content: flex-end; }
.ap-scoreboard .ap-badge-crr,
.ap-scoreboard .ap-badge-rrr {
    background: #1F2937 !important;
    color: #EF4444 !important;
    border: 1px solid #DC2626 !important;
    font-weight: 800;
    font-size: .72rem;
    letter-spacing: .02em;
}

/* Fancy NO / YES cells: reference pink / blue. Scoped as
   `.table tbody td.ap-fancy-*` (0,2,2) and `.home-page ...` (0,3,2) to
   beat the shared `.table tbody td` bleach (0,1,2) AND Allpanel's own
   `.home-page .ap-market-table td.cell-back/cell-lay` (0,3,1). The
   price buttons inside are recoloured to match so the whole cell reads
   as NO/YES, not just a coloured border. */
.table tbody td.ap-fancy-no,
.home-page .ap-market-table tbody td.ap-fancy-no { background: #FAA9BA !important; }
.table tbody td.ap-fancy-yes,
.home-page .ap-market-table tbody td.ap-fancy-yes { background: #72BBEF !important; }
.home-page .ap-market-table tbody td.ap-fancy-no .oddBtn,
.home-page .ap-market-table tbody td.ap-fancy-no .oddBtn:hover,
.home-page .ap-market-table tbody td.ap-fancy-no .oddBtn.active { background: #FAA9BA !important; border-color: #FAA9BA !important; color: #7F1D1D !important; text-shadow: none !important; }
.home-page .ap-market-table tbody td.ap-fancy-yes .oddBtn,
.home-page .ap-market-table tbody td.ap-fancy-yes .oddBtn:hover,
.home-page .ap-market-table tbody td.ap-fancy-yes .oddBtn.active { background: #72BBEF !important; border-color: #72BBEF !important; color: #0C4A6E !important; text-shadow: none !important; }
.home-page .ap-market-table tbody td.ap-fancy-no .oddBtn .odd-val,
.home-page .ap-market-table tbody td.ap-fancy-no .oddBtn .odd-vol { color: #7F1D1D !important; }
.home-page .ap-market-table tbody td.ap-fancy-yes .oddBtn .odd-val,
.home-page .ap-market-table tbody td.ap-fancy-yes .oddBtn .odd-vol { color: #0C4A6E !important; }

/* Display-only CASH OUT pills (one in MATCH ODDS, one in BOOKMAKER):
   green with black text, no pointer, no action. */
.ap-section-bar .ap-cashout-pill,
.ap-cashout-pill.ap-cashout-pill--display {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    background: #22C55E !important;
    color: #000 !important;
    border: 1px solid #16A34A !important;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .03em;
    padding: 3px 10px;
    cursor: default;
    white-space: nowrap;
}

/* SUSPENDED / BALL RUNNING merged overlay cells. The shared
   `.table tbody td` bleach is (0,1,2); these (0,2,2)/(0,3,2) win. */
.table tbody td.ap-suspended-cell,
.home-page .ap-market-table tbody td.ap-suspended-cell {
    background: rgba(31, 41, 55, 0.92) !important;
    vertical-align: middle;
    text-align: center;
}
.home-page .ap-market-table tbody td.ap-suspended-cell.ap-fancy-ballrunning {
    background: rgba(31, 41, 55, 0.92) !important;
}
.ap-suspended-text {
    display: block;
    color: #F87171 !important;
    font-weight: 800;
}
.home-page .ap-market-table tbody td.ap-suspended-cell.ap-fancy-ballrunning .ap-suspended-text {
    color: #F87171 !important;
}
.ap-suspended-faint { display: block; color: #9CA3AF; font-size: .72rem; font-weight: 600; }

/* ==== moved from templates/allpanel/live_matches.blade.php (theme separation 2026-11-12) ==== */
        /* Allpanel in-play list — .ap-* only; allpanel.css untouched. */
        .ap-inplay-head { display: flex; align-items: center; gap: 10px; padding: 10px 2px 12px; flex-wrap: wrap; }
        .ap-inplay-head__title { color: #EF4444; font-weight: 800; font-size: 1.05rem; letter-spacing: .04em; }
        .ap-inplay-head__boost { margin-left: auto; margin-right: auto; background: #DC2626; color: #fff; font-weight: 700; font-size: .85rem; padding: 7px 22px; transform: skewX(-18deg); display: inline-block; }
        .ap-inplay-head__hint { color: #EF4444; font-weight: 600; font-size: .85rem; }
        .ap-sport-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; font-weight: 800; color: #fff; margin: 14px 0 8px; }
        .ap-sport-title__icon { color: #EF4444; font-size: 1.15rem; display: inline-flex; }
        .ap-sport-title__count { margin-left: auto; background: #22C55E; color: #fff; font-size: .68rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
        /* .ap-match rows moved to allpanel.css 2026-11-10 (shared with home). */
        .ap-popular-head { margin: 22px 0 10px; }
        .ap-popular-head span { display: inline-block; background: #DC2626; color: #fff; font-weight: 800; letter-spacing: .06em; font-size: 1rem; padding: 8px 34px 8px 18px; clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
        .ap-popular-tabs { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
        .ap-popular-tab { border: 1px solid #262626; background: #262626; color: #fff; font-weight: 800; font-size: .82rem; letter-spacing: .03em; padding: 8px 18px; border-radius: 6px; cursor: pointer; transform: skewX(-12deg); }
        .ap-popular-tab.active { background: #DC2626; border-color: #EF4444; color: #fff; }
        .ap-empty { background: #1F2937; border: 1px solid #262626; border-radius: 12px; text-align: center; padding: 36px 20px; color: #9CA3AF; }
        .ap-empty i { font-size: 2.2rem; opacity: .5; display: block; margin-bottom: 8px; }
        .ap-empty p { margin: 0 0 14px; }
        .ap-btn { display: inline-block; background: #DC2626; color: #fff; font-weight: 700; font-size: .85rem; padding: 8px 18px; border-radius: 8px; text-decoration: none; }
        .ap-btn:hover { background: #B91C1C; color: #fff; }
        @media (max-width: 575.98px) {
            .ap-inplay-head__boost { order: 3; margin: 0; }
            .ap-inplay-head__hint { margin-left: auto; }
        }
    

/* ==== moved from templates/allpanel/markets.blade.php (theme separation 2026-11-12) ==== */
        /* Allpanel markets (exchange-style tables) — .ap-* only; allpanel.css untouched. */
        .ap-scoreboard { background: #1F2937; border: 1px solid #262626; border-radius: 12px; }
        .ap-badge-cat { background: #DC2626; color: #fff; }
        .ap-badge-league { background: #262626; color: #fff; border: 1px solid #262626; }
        .ap-badge-live { background: #22C55E; color: #fff; }
        .ap-badge-crr { background: #262626; color: #EF4444; }
        .ap-badge-rrr { background: #262626; color: #72BBEF; border: 1px solid #262626; }
        .ap-badge-scheduled { background: #262626; color: #fff; border: 1px solid #262626; }
        .ap-badge-fancy { background: #DC2626; color: #fff; }
        .ap-team-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; background: #262626; }
        /* !important: custom.css sets html:not([data-theme="dark"]) h4
           (0,1,2) to near-black, which beats a plain class rule — the
           team names were unreadable on the dark scoreboard. */
        .ap-scoreboard .ap-team-name { color: #FFFFFF !important; font-weight: 800; font-size: 1.1rem; }
        .ap-vs-badge { background: #262626; color: #9CA3AF; border: 1px solid #262626; border-radius: 999px; padding: 4px 10px; font-size: .8rem; }
        .ap-live-strip { background: #1F2937; border: 1px solid #262626; }
        .ap-strip-team { color: #FFFFFF; }
        .ap-details-box { background: #1F2937; border: 1px solid #262626; border-radius: 12px; padding: 10px 14px; }
        .ap-details-box summary { cursor: pointer; font-weight: 700; color: #fff; }
        .ap-tracker-box { background: #1F2937; border: 1px solid #262626; }
        .ap-tracker-empty { padding: 8px 4px; }
        .ap-action-banner { background: #262626; border: 1px solid #72BBEF; border-radius: 8px; padding: 8px 12px; font-size: .85rem; color: #fff; }
        .ap-oneclick-bar { background: #1F2937; border: 1px solid #262626; flex-wrap: wrap; gap: 8px; }
        .ap-oneclick-bar .xsm-text { white-space: nowrap; }
        .ap-ball-running { background: #2A1215; border: 1px solid #EF4444; border-radius: 8px; padding: 10px 16px; display: flex; align-items: center; color: #fff; }
        /* Market header bar: crimson gradient, star + name + MAX + BACK/LAY.
           gap: long titles + justify-content-between left the Min/Max
           text touching the title (no space between the flex groups). */
        .ap-mkt-bar { background: linear-gradient(90deg, #7F1D1D, #B91C1C) !important; color: #fff !important; border-radius: 12px 12px 0 0; gap: 12px; }
        .ap-mkt-bar::after { filter: none; }
        .ap-mkt-star { color: #fff; font-size: 1rem; line-height: 1; }
        .ap-mkt-max { color: #F5F5F5; font-size: .7rem; font-weight: 700; letter-spacing: .04em; white-space: nowrap; }
        .ap-market-table { background: #1F2937; }
        .ap-market-table .ap-mkt-head th { background: #262626; color: #fff; border-color: #262626; font-size: .8rem; }
        .ap-market-table .col-head-pill { display: inline-block; font-weight: 800; font-size: .75rem; letter-spacing: .06em; padding: 2px 14px; border-radius: 4px; }
        .ap-market-table .col-head-pill--back { background: #72BBEF; color: #000; }
        .ap-market-table .col-head-pill--lay { background: #FAA9BA; color: #000; }
        .ap-market-table td.cell-back { background: #262626; }
        .ap-market-table td.cell-lay { background: #262626; }
        .ap-market-table .oddBtn { border-radius: 6px; border: 0; padding: 8px 4px; }
        .ap-market-table .oddBtn.odd-back { background: #72BBEF; color: #000; }
        .ap-market-table .oddBtn.odd-lay { background: #FAA9BA; color: #000; }
        .ap-market-table .oddBtn .odd-val { font-weight: 800; font-size: .95rem; display: block; }
        .ap-market-table .cell-empty .depth-none { color: #52525B; }
        .ap-market-table .btn-locked { background: #262626; color: #9CA3AF; border: 0; }
        /* Suspended rows: dark price cells + red SUSPENDED badge on the runner. */
        .ap-market-table tr.ap-row-suspended td { background: #262626; }
        .ap-market-table tr.ap-row-suspended td.cell-back,
        .ap-market-table tr.ap-row-suspended td.cell-lay { background: #1F2937; }
        .ap-market-table tr.ap-row-suspended .btn-locked { background: #1F2937; color: #F87171; }
        .ap-suspended-badge { font-size: .65rem; }
        .fancy-state--live { color: #22C55E; font-weight: 700; font-size: .75rem; }
        .fancy-state__dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #22C55E; margin-right: 4px; }
        .ap-open-bets { background: #1F2937; border: 1px solid #262626; border-radius: 12px; overflow: hidden; }
        .ap-modal { background: #1F2937; color: #fff; border: 1px solid #262626; }
        .ap-modal-band { background: #262626; border: 1px solid #262626; }
        .ap-modal-note { background: #1F2937; border: 1px solid #72BBEF; }
        /* Behaviour hooks the copied script relies on. */
        .odd-list__body-content.ball-suspended .oddBtn { opacity: 0.45 !important; pointer-events: none !important; cursor: not-allowed !important; filter: grayscale(40%); }
        .odds-flash-up { background: #DC2626 !important; color: #fff !important; outline: 2px solid #DC2626 !important; }
        .odds-flash-down { background: #DC2626 !important; color: #fff !important; outline: 2px solid #DC2626 !important; }
        .btn-submitting { opacity: 0.6; pointer-events: none; position: relative; }
        .quick-stake-pill { background: #262626; color: #fff; border: 1px solid #262626; border-radius: 4px; padding: 2px 8px; font-size: 0.75rem; font-weight: 600; transition: all 0.2s; }
        .quick-stake-pill.active { background: #DC2626; color: #fff; border-color: #EF4444; }
        .bb-inline-bet { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #1F2937; border: 1px solid #72BBEF; border-radius: 8px; padding: 8px 10px; }
        .bb-inline-bet__name { font-weight: 700; color: #FFFFFF; }
        .bb-inline-bet__odds, .bb-inline-bet__side { font-size: .8rem; color: #EF4444; font-weight: 700; }
        .bb-inline-bet__input { flex: 1 1 120px; border: 1px solid #262626; border-radius: 6px; padding: 6px 8px; background: #262626; color: #fff; }
        .bb-inline-bet__return { font-size: .8rem; color: #9CA3AF; }
        .bb-inline-bet__place { background: #DC2626; color: #fff; border: 0; border-radius: 6px; padding: 6px 14px; font-weight: 700; }
        .bb-inline-bet__place:disabled { opacity: .5; }
        .bb-inline-bet__close { background: none; border: 0; font-size: 1.2rem; color: #9CA3AF; }
        .cricket-ball { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; border-radius: 50%; background: #262626; border: 1px solid #262626; font-size: .7rem; font-weight: 700; color: #fff; padding: 0 4px; }
        .cricket-ball.four { background: #262626; border-color: #72BBEF; color: #72BBEF; }
        .cricket-ball.six { background: #14532D; border-color: #22C55E; color: #4ADE80; }
        .cricket-ball.wicket { background: #450A0A; border-color: #EF4444; color: #F87171; }
        .cricket-ball.active { outline: 2px solid #DC2626; }
        /* FIX 2026-11-10 (founder review): fancy odds must stay blue/pink even
           when a theme !important rule bleaches .oddBtn white; the IN PLAY
           badge must not wrap mid-badge; the 1-click bar must not wrap its
           label; market tabs must not cut off at the right edge; the ball-
           running banner must clear the floating Bet Slip pill; the open-bets
           table must fit all six columns on a 390px screen. */
        .ap-market-table .oddBtn.odd-back { background: #72BBEF !important; border-color: #4A8FBF !important; color: #000 !important; }
        .ap-market-table .oddBtn.odd-lay { background: #FAA9BA !important; border-color: #D98BA0 !important; color: #000 !important; }
        .fancy-cell__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
        .fancy-cell__title .runner-name { font-size: .9rem; }
        .fancy-state--live, .fancy-state { white-space: nowrap; }
        .ap-oneclick-bar .form-check-label { white-space: nowrap; }
        .one-click-stakes { overflow-x: auto; flex-wrap: nowrap !important; scrollbar-width: none; }
        .one-click-stakes::-webkit-scrollbar { display: none; }
        .one-click-stakes .quick-stake-pill { flex-shrink: 0; }
        .market-filter-tabs .market-tab { flex-shrink: 0; }
        .market-filter-tabs { flex-wrap: nowrap !important; }
        @media (max-width: 575.98px) {
            .ap-team-name { font-size: .95rem; }
            .ap-ev-title__name { font-size: .72rem; letter-spacing: .02em; }
            .ap-ball-running { padding-right: 92px !important; }
            .ap-open-bets table { font-size: .72rem !important; }
            .ap-open-bets th, .ap-open-bets td { padding: 6px 3px !important; }
            .ap-market-table .oddBtn { padding: 6px 2px; }
            .ap-market-table .oddBtn .odd-val { font-size: .85rem; }
        }
        /* Event view (reference): balance bar, title bar, MARKET/TV/BETS tabs,
           suspended merged cell. One structure for every sport and casino game. */
        .ap-ev-balance { background: #1F2937; color: #fff; font-size: .8rem; font-weight: 700; display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border: 1px solid #262626; border-bottom: 0; }
        .ap-ev-balance span:first-child { color: #EF4444; }
        .ap-ev-balance span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ap-ev-title { display: flex; align-items: center; gap: 4px; background: #1F2937; border: 1px solid #262626; border-top: 0; padding: 7px 10px; }
        .ap-ev-title__burger { background: none; border: 0; font-size: 1.25rem; line-height: 1; color: #EF4444; padding: 2px 6px; cursor: pointer; }
        .ap-ev-title__name { flex: 1; text-align: center; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
        .ap-ev-title__spacer { width: 30px; flex-shrink: 0; }
        .ap-ev-tabs { display: flex; background: #1F2937; border: 1px solid #262626; border-top: 0; }
        .ap-ev-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 6px; background: #1F2937; border: 0; border-right: 1px solid #262626; color: #9CA3AF; font-size: .72rem; font-weight: 800; letter-spacing: .05em; cursor: pointer; }
        .ap-ev-tab:last-child { border-right: 0; }
        .ap-ev-tab i { font-size: 1.3rem; line-height: 1; }
        .ap-ev-tab.active { color: #EF4444; box-shadow: inset 0 -3px 0 #DC2626; }
        .ap-market-table td.ap-suspended-cell { background: rgba(31, 41, 55, 0.92); vertical-align: middle; text-align: center; }
        .ap-suspended-faint { display: block; color: #9CA3AF; font-size: .72rem; font-weight: 600; }
        .ap-suspended-text { display: block; color: #F87171; font-weight: 800; font-size: .95rem; letter-spacing: .05em; }
        .ap-market-table .oddBtn .odd-vol { display: block; font-size: .68rem; color: #9CA3AF; }
        @media (max-width: 575.98px) {
            .ap-ev-balance { font-size: .72rem; padding: 6px 8px; }
            .ap-ev-tab { font-size: .65rem; }
        }
        /* Event refinement 2026-11-11 (reference = jackpotexch client
           event page): section bars, CASH OUT pills, flat FANCY table,
           BALL RUNNING overlay, photo scoreboard, position line. */
        .ap-section-bar { background: linear-gradient(90deg, #7F1D1D, #B91C1C) !important; color: #fff; font-weight: 800; font-size: .95rem; letter-spacing: .03em; text-transform: uppercase; padding: 9px 12px; margin: 14px 0 10px; border-radius: 10px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
        .ap-section-bar:first-child { margin-top: 0; }
        .ap-section-bar:has(+ .ap-fancy-table-wrap) { border-radius: 10px 10px 0 0; margin-bottom: 0; }
        .ap-section-bar .ap-mkt-max { color: rgba(255, 255, 255, 0.85); font-size: .75rem; font-weight: 800; letter-spacing: .04em; white-space: nowrap; }
        .ap-section-bar .ap-cashout-pill { margin-left: auto; }
        .ap-cashout-pill { background: #22C55E; color: #000; border: 0; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .03em; padding: 3px 10px; cursor: pointer; white-space: nowrap; box-shadow: 0 1px 2px rgba(0,0,0,.18); }
        .ap-cashout-pill:hover { filter: brightness(.95); }
        .ap-cashout-pill:disabled { opacity: .6; cursor: wait; }
        .ap-cashout-pill .ap-cashout-val { font-weight: 700; }
        .ap-sec-empty { color: #9CA3AF; font-size: .85rem; }
        .bb-announcement-line + .ap-section-bar { margin-top: 0; }
        .ap-fancy-filters { background: #1F2937; border-radius: 0 0 10px 10px; overflow: hidden; }
        .ap-fancy-filter { flex: 1; background: #1F2937; color: #fff; border: 0; border-right: 1px solid #262626; padding: 9px 4px; font-size: .8rem; font-weight: 800; letter-spacing: .04em; cursor: pointer; white-space: nowrap; }
        .ap-fancy-filter:last-child { border-right: 0; }
        .ap-fancy-filter.active { background: #DC2626; color: #fff; }
        .ap-fancy-filter:hover { background: #262626; }
        .ap-fancy-filter.active:hover { background: #DC2626; }
        .ap-market-table.ap-fancy-table thead th { background: #262626 !important; color: #fff !important; border-color: #262626 !important; font-size: .8rem; font-weight: 800; letter-spacing: .05em; }
        .ap-fancy-table col.col-fancy-name { width: 52%; }
        .ap-fancy-table col.col-fancy-info { width: 30px; }
        .ap-fancy-table col.col-fancy-side { width: 22%; }
        .ap-fancy-table .ap-fancy-info { width: 30px; text-align: center; }
        .ap-fancy-table thead th.ap-fancy-info-head { width: 30px; }
        .ap-fancy-table .fancy-cell__title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
        button.ap-mkt-ladder { background: none; border: 0; padding: 0; cursor: pointer; color: #72BBEF; }
        .ap-mkt-info { color: #9CA3AF; }
        .ap-mkt-b { display: inline-flex; align-items: center; justify-content: center; min-width: 16px; height: 16px; padding: 0 3px; background: #141414; color: #FFFFFF; font-size: .62rem; font-weight: 800; line-height: 1; border-radius: 4px; }
        .ap-mkt-gear { color: #9CA3AF; font-size: .95rem; line-height: 1; }
        .ap-fancy-empty { background: #1F2937; border: 1px solid #262626; border-top: 0; border-radius: 0 0 10px 10px; }
        td.ap-suspended-cell.ap-fancy-ballrunning { background: rgba(31, 41, 55, 0.92) !important; }
        td.ap-suspended-cell.ap-fancy-ballrunning .ap-suspended-faint { color: #9CA3AF !important; }
        td.ap-suspended-cell.ap-fancy-ballrunning .ap-suspended-text { color: #F87171 !important; font-weight: 800; letter-spacing: .08em; }
        .ap-scoreboard--photo { background: linear-gradient(rgba(8, 12, 18, 0.16), rgba(8, 12, 18, 0.28)), url('/assets/templates/allpanel/images/match-cricket-bg-bright.webp') center 30%/cover no-repeat #0B1220 !important; }
        /* TV pane: shared bb-premium hides .match-details-box entirely, so
           the TV tab rendered as an empty 0-height pane. The tracker
           disclosure carries only honest empty states (no invented
           commentary/scores), so it must be visible. */
        #evPaneTv .match-details-box { display: block !important; }
        .ap-scoreboard .ap-team-name { text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.55); }
        .ap-scoreboard .text-muted { color: #9CA3AF !important; }
        .ap-position-line { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 2px 2px 10px; font-size: .92rem; color: #fff; }
        .ap-scoreboard__note { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, 0.15); font-size: .85rem; color: #F5F5F5; }
        .ap-score-runs { color: #fff; font-weight: 800; font-size: 1.25rem; text-shadow: 0 1px 5px rgba(0, 0, 0, 0.75), 0 0 2px rgba(0, 0, 0, 0.55); }
        .ap-score-overs { color: #F5F5F5; font-size: .85rem; }
        .ap-score-line:empty { display: none; }
        .ap-badge-crr:empty, .ap-badge-rrr:empty { display: none; }
        .ap-market-table .ap-odd--empty { background: #262626 !important; color: #9CA3AF !important; }
        .ap-market-table td.ap-depth-empty { background: #1F2937; }
        .ap-market-table col.col-prices { width: 9%; }
        .ap-market-table col.col-runner { width: 40%; }
        .ap-market-table .ap-mkt-head th { white-space: nowrap; }
        @media (max-width: 575.98px) {
            .ap-section-bar { font-size: .82rem; padding: 8px 10px; }
            .ap-fancy-filter { font-size: .68rem; padding: 8px 2px; }
            .ap-market-table .oddBtn .odd-val { font-size: .8rem; }
        }
    

/* ==== moved from templates/allpanel/partials/login.blade.php (theme separation 2026-11-12) ==== */
        .form-check-input {
            margin-top: 0px;
        }
    

/* ==== moved from templates/allpanel/partials/register.blade.php (theme separation 2026-11-12) ==== */
        .form-group {
            margin: 8px 0;
        }
    

/* ==== moved from templates/allpanel/partials/social_login.blade.php (theme separation 2026-11-12) ==== */
    .social-login-btn{
        border: 1px solid #374151;
    }
    .social-login-btn:hover{
        border: 1px solid hsl(var(--base));
    }

/* ==== moved from templates/allpanel/user/transactions.blade.php (theme separation 2026-11-12) ==== */
        .select2-container {
            width: 100% !important;
        }
    

/* ==== moved from templates/allpanel/user/auth/register.blade.php (theme separation 2026-11-12) ==== */
        .form-disabled {
            overflow: hidden;
            position: relative;
        }


        .form-disabled::after {
            content: "";
            position: absolute;
            height: 100%;
            width: 100%;
            background-color: rgba(255, 255, 255, 0.2);
            top: 0;
            left: 0;
            backdrop-filter: blur(2px);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            z-index: 99;
        }

        .form-disabled-text {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            z-index: 991;
            font-size: 24px;
            height: auto;
            width: 100%;
            text-align: center;
            color: hsl(var(--dark-600));
            font-weight: 800;
            line-height: 1.2;
        }

/* ==========================================================================
   AP EVENT FIX 2026-11-12 — Jack-model single BACK/LAY, fancy no-wrap,
   BALL RUNNING overlay, FAB left, cookie clearance.
   Appended last so these win on equal specificity over the earlier Allpanel
   event-refinement rules and over bb-premium.css / bb-polish.css.
   Allpanel palette unchanged: page #141414, surface #1F2937, primary crimson
   #DC2626 / #B91C1C, header bar gradient #7F1D1D -> #B91C1C, back #72BBEF,
   lay #FAA9BA, rows #262626 / #232323, in-play #22C55E, suspended #F87171.
   ========================================================================== */

/* 1. Fancy row: icon row never wraps; market name clamps to 2 lines. */
.ap-fancy-table .fancy-cell__title {
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px 6px;
}
.ap-fancy-table .fancy-cell__title .runner-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-width: 0;
    flex: 1 1 auto;
}
.ap-fancy-table .fancy-cell__title > span:not(.runner-name),
.ap-fancy-table .fancy-cell__title > button {
    flex: 0 0 auto;
    white-space: nowrap;
}

/* 2. Fancy header: FANCY at the left edge, MARKET towards the name column's
   right. Background/text stay the existing #262626 / white. */
.ap-market-table.ap-fancy-table thead th:first-child {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.ap-fancy-head__fancy,
.ap-fancy-head__market { white-space: nowrap; }

/* 3. Market accordion bar: black B badge, black gear/ladder icons, the name
   truncates in one line and the bar groups never wrap. The Bootstrap
   collapse chevron (::after) stays visible. */
.home-page .market-accordion .accordion-button.ap-mkt-bar .ap-mkt-b {
    background: #141414 !important;
    color: #fff !important;
    border: 1px solid rgba(255, 255, 255, .45);
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: .68rem;
    font-weight: 800;
    line-height: 1;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
}
.home-page .market-accordion .accordion-button.ap-mkt-bar .ap-mkt-gear,
.home-page .market-accordion .accordion-button.ap-mkt-bar .ap-mkt-ladder {
    color: #fff;
    font-size: 1rem;
    line-height: 1;
    flex: 0 0 auto;
}
.ap-mkt-bar .ap-mkt-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
}
.home-page .market-accordion .accordion-button.ap-mkt-bar > .d-flex {
    min-width: 0;
    flex: 1 1 auto;
    flex-wrap: nowrap;
}

/* 4. Regular 3-column table: runner + back + lay (was the 6-box 40/9/9). */
.ap-market-table col.col-prices { width: 22%; }
.ap-market-table col.col-runner { width: 56%; }
.ap-market-table .cell-back .oddBtn,
.ap-market-table .cell-lay .oddBtn { min-height: 44px; }

/* 5. Fancy NO/YES small label may hold an outcome name (wraps to 2 lines). */
.ap-fancy-table .fancy-side-cell .oddBtn .odd-vol {
    display: block;
    font-size: .68rem;
    line-height: 1.25;
    white-space: normal;
}
.ap-fancy-table .fancy-side-cell .oddBtn .odd-val {
    display: block;
    font-size: .95rem;
    line-height: 1.2;
}

/* 6. BALL RUNNING merged cell (fancy): faint disabled prices behind an
   absolutely-positioned overlay. Old td.ap-suspended-cell rules for regular
   markets are untouched. */
td.ap-fancy-overlay-cell,
.home-page .ap-market-table tbody td.ap-fancy-overlay-cell {
    position: relative !important;
    padding: 0 !important;
    background: rgba(31, 41, 55, 0.92) !important;
}
.ap-ballrunning-faint { display: flex; }
.ap-ballrunning-faint .oddBtn { opacity: .35; min-height: 44px; }
.ap-ballrunning-overlay {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(20, 20, 20, 0.55);
    color: #F87171;
    font-weight: 800;
    font-size: .95rem;
    letter-spacing: .08em;
    text-align: center;
    pointer-events: none;
}
.ap-ballrunning-overlay .ap-suspended-text { color: #F87171 !important; }

/* 7. Bet-slip FAB: left gutter on phones so it never covers an odds cell;
   lifted while the cookie card is up. Desktop is untouched. */
@media (max-width: 767.98px) {
    .bb-betslip-fab.has-selections {
        left: 14px !important;
        right: auto !important;
        bottom: 140px !important;
    }
    body:has(.cookies-card:not(.d-none):not(.hide)) .bb-betslip-fab {
        bottom: 240px !important;
    }
}

/* 8. Fixed-chrome clearance for the floating bottom nav + cookie banner. */
@media (max-width: 1023.98px) {
    main.home-page,
    .home-page { padding-bottom: 96px !important; }
    body:has(.cookies-card:not(.d-none):not(.hide)) .home-page {
        padding-bottom: 200px !important;
    }
}

/* 9. Announcement strip: badge holds its width, clip never widens it. */
.announcement-strip .ap-announce-badge { flex-shrink: 0; }
.announcement-strip .ap-announce-clip {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
}
.announcement-strip .announcement-text { white-space: nowrap; }

/* Event-page announcement (2026-11-17): static wrapped text, NOT the
   marquee — the scrolling copy clipped at 390px. The .ap-announce-wrap
   class is set on the markets strip only; the layout strip keeps the
   theme marquee. Two lines on mobile, strip colours unchanged. */
.announcement-strip.ap-announce-wrap { align-items: flex-start !important; }
.announcement-strip.ap-announce-wrap .ap-announce-badge { margin-top: 1px; }
.announcement-strip.ap-announce-wrap .ap-announce-clip {
    white-space: normal !important;
    overflow: visible !important;
    -webkit-mask-image: none !important;
    mask-image: none !important;
}
.announcement-strip.ap-announce-wrap .announcement-text {
    white-space: normal !important;
    animation: none !important;
    padding-left: 0 !important;
    line-height: 1.35;
}

/* Odd/Even live-parity badge on Fancy rows (2026-11-17). Real live total
   only; the badge is hidden (d-none) when no live total exists. */
.ap-parity-badge { background: #2563EB; color: #fff; font-size: .65rem; font-weight: 800; letter-spacing: .04em; }
.ap-parity-badge.ap-parity--odd { background: #7C3AED; }
.ap-parity-badge.ap-parity--even { background: #059669; }

/* 10. Header at 390px: logo fully visible, no wrap/overflow, readable
    LOGIN / SIGN UP / theme toggle. */
@media (max-width: 575.98px) {
    .ap-header {
        gap: 6px !important;
        padding: 8px 8px !important;
        flex-wrap: nowrap !important;
        overflow-x: hidden;
    }
    .ap-header__left,
    .ap-header__right { flex-wrap: nowrap !important; }
    .ap-header__right { flex: 0 0 auto; gap: 6px !important; }
    .ap-header__logo { min-width: 0; }
    .ap-header__logo-img { max-height: 30px !important; max-width: 100%; }
    .ap-header__burger { padding: 0 4px !important; }
    .ap-header .btn-theme-toggle {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
    }
    .ap-btn-login,
    .ap-btn-signup,
    .ap-btn-demo {
        padding: 6px 8px !important;
        font-size: .75rem !important;
        white-space: nowrap !important;
    }
}

/* 11. Scoreboard placeholder until a real live feed supplies scores. */
#liveScorePlaceholder.ap-scoreboard__placeholder {
    margin-top: 10px;
    padding: 10px 12px;
    border: 1px dashed rgba(255, 255, 255, .3);
    border-radius: 8px;
    color: #F5F5F5;
    font-size: .85rem;
    text-align: center;
    background: rgba(0, 0, 0, .25);
}

/* 12. Guest Demo button: compact crimson-outline twin of .ap-btn-login. */
form:has(> .ap-btn-demo) {
    display: inline-flex;
    margin: 0;
}
.ap-btn-demo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.4px;
    line-height: 1.2;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1.5px solid #FFFFFF;
    background: transparent;
    color: #FFFFFF;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
}
.ap-btn-demo:hover {
    background: #EF4444;
    color: #fff;
}

/* 13. Desktop clearance for the fixed cookie card (380x185 at bottom: 92px). */
@media (min-width: 1024px) {
    body:has(.cookies-card:not(.d-none):not(.hide)) .home-page {
        padding-bottom: 280px !important;
    }
}

/* ==========================================================================
   FIX 2026-11-13 — light-mode cascade (site_theme = 'light').
   ========================================================================== */

/* 14. Header: the frosted-glass light rule
   `html[data-theme="light"] .header-primary` (0,2,1) in custom.css beat the
   plain `.ap-header-wrap` (0,1,0) and painted a white bar. This selector is
   (0,3,1) and lives in the file that loads last, so the crimson gradient wins.
   Nav links keep their white colour (`.ap-header__nav-link`, not
   `.header-nav-link`). */
html[data-theme="light"] .header-primary.ap-header-wrap {
    background: linear-gradient(90deg, #7F1D1D, #B91C1C) !important;
    border-bottom: 2px solid #7F1D1D !important;
}

/* 15. Per-market X on the crimson market bar: the blade button had no
   rule, so it rendered with the browser-default grey face. */
.ap-mkt-bar .ap-mkt-x {
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 1.15rem;
    line-height: 1;
    font-weight: 700;
    padding: 0 4px;
    border-radius: 4px;
    cursor: pointer;
    flex: 0 0 auto;
}
.ap-mkt-bar .ap-mkt-x:hover { background: rgba(255, 255, 255, 0.18); color: #fff; }


/* ==========================================================================
   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).
   Accent: var(--ap-blue, #DC2626), white text.
   ========================================================================== */
.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(--ap-blue, #DC2626);
    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: stake 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 .form-control {
    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;
}
.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;
    background: var(--ap-blue, #DC2626) !important;
    border-color: var(--ap-blue, #DC2626) !important;
    color: #fff !important;
}
/* Selection rows: event / market / selection / rate never clip. */
.betslip .betslip-item-market__label {
    min-width: 0 !important;
    overflow-wrap: break-word !important;
}
.betslip .betslip-item-market__score {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}
.betslip .betslip-item-team__name {
    overflow-wrap: anywhere !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.ap-suspended-cell { background: #7F1D1D !important; }
#marketsContainer .ap-suspended-text { color: #FF6B6B !important; font-size: 1.05rem !important; letter-spacing: .08em !important; }
#marketsContainer .ap-suspended-faint { color: #FECACA !important; font-size: .75rem !important; }
#marketsContainer .ap-ballrunning-overlay { background: #7F1D1D !important; color: #FF6B6B !important; font-size: 1.05rem !important; letter-spacing: .08em !important; }
#marketsContainer .ap-ballrunning-overlay span { color: #FF6B6B !important; }
#marketsContainer .ap-ballrunning-overlay .ap-suspended-text { color: #FF6B6B !important; }
#marketsContainer .ap-mkt-max { 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; }
}
.ap-obm-band { flex: 0 1 200px; background: #7F1D1D; border-radius: 4px; padding: 6px 8px; text-align: center; }
.ap-obm-band__faint { display: block; color: #FECACA; font-size: .72rem; font-weight: 600; }
.ap-obm-band__text { display: block; color: #FF6B6B; font-weight: 800; font-size: .95rem; letter-spacing: .06em; }

/* MOBILE VISIBILITY FIX 2026-11-16 (founder screenshots, Jack pattern
   replicated): the floating chatbot FAB and bet-slip FAB overlap content
   on phones — the chatbot covered team names/market headers and the
   bet-slip FAB covered BACK/LAY cells. Fix: hide BOTH floating FABs on
   mobile (<1024px, where the bottom nav shows) and use the chrome that
   already exists — the bottom-nav Bet Slip button opens the bet slip
   (with a live selection-count badge), and the drawer HELP & SUPPORT item
   opens the chatbot. Desktop (>=1024px) keeps the floating FABs. */
@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; }
}
/* Nav selection-count badge (2026-11-16 mobile fix): mirror the floating
   bet-slip FAB's count on the bottom-nav Bet Slip button. It reuses
   .bb-betslip-fab__count so the existing bet-slip JS updates it; hidden
   when the count is 0 (JS toggles it). */
.ap-bottom-nav__icon-wrap { position: relative; display: inline-flex; align-items: center; justify-content: center; }
.ap-bottom-nav__count {
    position: absolute;
    top: -6px;
    right: -14px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--ap-blue);
    color: #ffffff;
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}
.ap-bottom-nav__count:empty { display: none; }

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

/* BUG 4 — Ticker flex fix (proven on Jack's event page). The .ap-announce-
   clip class existed but was only wired on the event page; the layout
   strip viewport is a plain w-100 div. Both get flex:1 + min-width:0 so
   the viewport takes only the width left after the LIVE UPDATE badge,
   plus the right-edge fade mask. Duration already 36s (ap-marquee). */
.announcement-strip > .badge { flex-shrink: 0 !important; }
.announcement-strip .ap-announce-clip { 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%); }
.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. Root cause: shared
   custom.css dark-mode rule `html[data-theme="dark"] .oddBtn .odd-val {
   color: #FFFFFF !important; }` forces the number white, while Allpanel's
   own market-table rules force LIGHT fills (#72BBEF / #FAA9BA) in both
   modes — the button-level dark colour never reaches the span. Fix:
   explicit dark .odd-val on light BACK/LAY cells. :not(.active)
   preserves the selected state (dark accent bg + white text). */
.ap-market-table .oddBtn.odd-back:not(.active) .odd-val,
.ap-market-table .oddBtn.odd-lay:not(.active) .odd-val,
.ap-market-table .oddBtn.btn-back:not(.active) .odd-val,
.ap-market-table .oddBtn.btn-lay:not(.active) .odd-val { color: #000 !important; }
