@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&display=swap");

/* ==========================================================================
   BB-Bet premium minimal layer
   Loaded last (after bb-polish.css). Goal: a calm, high-contrast, Winbuzz-
   style exchange: one accent colour, readable digits, flat white cards and
   no promotional clutter. Nothing here removes Blade markup - fake/demo
   sections are hidden with display:none so the test-asserted strings and the
   real data hooks stay intact.
   ========================================================================== */

:root {
  --bbp-ink: #101828;
  --bbp-ink-2: #344054;
  --bbp-muted: #667085;
  --bbp-line: #E4E7EC;
  --bbp-line-strong: #D0D5DD;
  --bbp-surface: #FFFFFF;
  --bbp-surface-2: #F8FAFC;
  --bbp-canvas: #F5F6F8;
  --bbp-accent: #0B63D6;
  --bbp-accent-soft: #EAF2FE;
  --bbp-back: #0B4F9C;
  --bbp-back-bg: #EDF4FD;
  --bbp-back-line: #CFE0F7;
  --bbp-lay: #9E1C4B;
  --bbp-lay-bg: #FDF0F5;
  --bbp-lay-line: #F6CEDD;
  --bbp-good: #0F7A4D;
  --bbp-warn: #8A5A00;

  /* A single premium typeface for the whole product. Manrope is loaded at the
     top of this file and replaces the stock Inter/Roboto pairing. */
  --font-family-sans: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body-font: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --heading-font: 'Manrope', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body,
button,
input,
select,
textarea,
.btn,
.form-control,
.form-select {
  font-family: var(--font-family-sans);
}

/* --------------------------------------------------------------------------
   1. Typography and digits
   -------------------------------------------------------------------------- */
body {
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Every number that a punter reads should align in columns. */
.oddBtn,
.oddBtn .odd-val,
.oddBtn .odd-vol,
.market-table,
.market-table td,
.live-now-card__score,
.sports-card-score,
.cricket-score-line,
.cricket-overs-pill,
.cricket-ball,
.match-score-pill,
.betslip,
.betslip-balance-pts,
[class*="balance"],
[id^="liveScore"],
.score-number,
.stat-mono {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv05" 1;
}

.home-page .xsm-text {
  font-size: 0.75rem !important;
  line-height: 1.35 !important;
}

/* --------------------------------------------------------------------------
   2. Header contrast (light theme)
   -------------------------------------------------------------------------- */
html[data-theme="light"] .header-primary .user-profile-btn,
html:not([data-theme="dark"]) .header-primary .user-profile-btn {
  color: var(--bbp-ink) !important;
}
html[data-theme="light"] .header-primary .user-profile-btn:hover,
html:not([data-theme="dark"]) .header-primary .user-profile-btn:hover {
  color: var(--bbp-accent) !important;
}
/* Language selector was white-on-white in the light theme. */
html[data-theme="light"] .header-primary .language-btn,
html[data-theme="light"] .header-primary .language-text,
html[data-theme="light"] .header-primary .language-code-text,
html:not([data-theme="dark"]) .header-primary .language-btn,
html:not([data-theme="dark"]) .header-primary .language-text,
html:not([data-theme="dark"]) .header-primary .language-code-text {
  color: var(--bbp-ink) !important;
}
html[data-theme="light"] .header-primary .language-btn:hover,
html[data-theme="light"] .header-primary .language-btn:hover .language-text,
html:not([data-theme="dark"]) .header-primary .language-btn:hover,
html:not([data-theme="dark"]) .header-primary .language-btn:hover .language-text {
  color: var(--bbp-accent) !important;
}
/* The slide-in app drawer is dark in both themes; custom.css forced the
   language label dark, making it unreadable when the drawer is open. */
html[data-theme="light"] .app-nav__drawer .language-btn,
html[data-theme="light"] .app-nav__drawer .language-text,
html[data-theme="light"] .app-nav__drawer .language-code-text {
  color: #E2E8F0 !important;
}

/* --------------------------------------------------------------------------
   3. Sidebar: one calm column, monochrome icons, readable labels
   -------------------------------------------------------------------------- */
@media (min-width: 768px) {
  .home-page .sports-category,
  .sports-category {
    width: 220px !important;
    min-width: 220px !important;
    background: var(--bbp-surface) !important;
    border-right: 1px solid var(--bbp-line) !important;
    box-shadow: none !important;
  }

  .home-page .sports-category__list,
  .home-page .sports-category .sports-category__list,
  .sports-category .sports-category__list {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-auto-flow: row !important;
    gap: 1px !important;
    align-content: start !important;
    padding: 6px !important;
    overflow-x: hidden !important;
    overflow-y: visible !important;
    scroll-snap-type: none !important;
  }

  .home-page .sports-category__list .sports-category__link,
  .home-page .sports-category .sports-category__link,
  .sports-category .sports-category__link {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 9px !important;
    padding: 7px 9px !important;
    border-radius: 7px !important;
    border-left: 0 !important;
    text-align: start !important;
    background: transparent !important;
  }

  .home-page .sports-category__list .sports-category__icon,
  .home-page .sports-category .sports-category__icon,
  .sports-category .sports-category__link i {
    font-size: 1rem !important;
    margin-bottom: 0 !important;
    flex: 0 0 auto !important;
    width: 18px !important;
    text-align: center !important;
    color: var(--bbp-muted) !important;
  }

  .home-page .sports-category__list .sports-category__text,
  .home-page .sports-category .sports-category__text,
  .sports-category__list .sports-category__text {
    font-size: 0.8rem !important;
    line-height: 1.25 !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    letter-spacing: 0 !important;
    color: var(--bbp-ink-2) !important;
  }

  /* Neutralise the 10-colour icon rotation from bb-polish.css. */
  html body .sports-category__list .sports-category__link:not(.active):not(:hover):nth-child(n) i {
    color: var(--bbp-muted) !important;
  }

  .home-page .sports-category__link:hover,
  .sports-category .sports-category__link:hover {
    background: var(--bbp-surface-2) !important;
  }

  html body .sports-category__list .sports-category__link.active {
    background: var(--bbp-accent-soft) !important;
    box-shadow: none !important;
  }
  html body .sports-category__list .sports-category__link.active i {
    color: var(--bbp-accent) !important;
  }
  html body .sports-category__list .sports-category__link.active .sports-category__text {
    color: var(--bbp-accent) !important;
    font-weight: 600 !important;
  }

  .sports-category > .live-btn {
    background: #FDF3F3 !important;
    border-radius: 7px !important;
    margin: 6px 6px 2px !important;
    padding: 9px !important;
  }
  .sports-category > .live-btn .sports-category__text {
    color: #B42318 !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
  }
}

/* Tablets (768-991): the template keeps the inline rail as a fixed off-canvas
   panel but it still occupied ~1600px of flow, pushing the feed far down the
   page. The header hamburger already opens the full sports drawer, so hide the
   duplicate rail and let the feed use the full width. */
@media (min-width: 768px) and (max-width: 991.98px) {
  .home-page > .sports-category {
    display: none !important;
  }
  .home-page > .sports-body {
    width: 100% !important;
    padding: 10px !important;
  }
}

/* --------------------------------------------------------------------------
   4. Flat, quiet surfaces
   -------------------------------------------------------------------------- */
.home-page,
.home-page .sports-body {
  background: var(--bbp-canvas) !important;
}

html[data-theme="light"] .home-page .sports-card,
html[data-theme="light"] .home-page .cricket-hero-card,
html[data-theme="light"] .home-page .match-center-head,
html[data-theme="light"] .home-page .match-filter-toolbar,
html[data-theme="light"] .home-page .live-now-card,
html[data-theme="light"] .home-page .sub-category-drawer,
html[data-theme="light"] .home-page .empty-state-box,
html[data-theme="light"] .home-page .sports-card-heading,
html[data-theme="light"] .home-page .sports-card-top-inner {
  box-shadow: none !important;
  border-color: var(--bbp-line) !important;
}

.home-page .sports-card,
.home-page .cricket-hero-card,
.home-page .match-center-head,
.home-page .match-filter-toolbar,
.home-page .live-now-card,
.home-page .empty-state-box {
  border-radius: 10px !important;
}

html[data-theme="light"] .home-page .sports-card-heading,
html[data-theme="light"] .home-page .sports-card-top-inner {
  background: var(--bbp-surface-2) !important;
}

/* Section headers: small, quiet, no rainbow icons. */
.sports-visual-rail__title {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
  color: var(--bbp-ink) !important;
}
.sports-visual-rail__title i,
.home-casino-rail .sports-visual-rail__title i {
  color: var(--bbp-muted) !important;
}
.sports-visual-rail__hint {
  color: var(--bbp-accent) !important;
  font-weight: 600 !important;
}

/* Home tiles: unify the artwork with a calm dark gradient. */
.sports-tile-card__badge {
  background: rgba(16, 24, 40, 0.72) !important;
  color: #FFFFFF !important;
  font-size: 0.62rem !important;
  letter-spacing: 0.06em !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
.casino-tile-card__tag {
  display: none !important;
}
.casino-tile-card .sports-tile-card__overlay {
  background-image: linear-gradient(180deg,
    rgba(8, 13, 23, 0.16) 0%,
    rgba(8, 13, 23, 0.48) 58%,
    rgba(8, 13, 23, 0.90) 100%) !important;
}

/* --------------------------------------------------------------------------
   5. Hide promotional / demo clutter on the home page
   -------------------------------------------------------------------------- */
.home-page .vip-banner-card,
.home-page .home-feature-strip,
.home-page .sports-news-section {
  display: none !important;
}
.home-page .col-12:has(> .vip-banner-card),
.home-page .col-12:has(> .home-feature-strip),
.home-page .col-12:has(> .sports-news-section) {
  display: none !important;
}

/* --------------------------------------------------------------------------
   6. Home match cards: one clear market + readable digits
   -------------------------------------------------------------------------- */
/* Winbuzz-style: the feed shows the main market only. Spreads/totals remain
   one tap away behind "All Markets". */
@media (min-width: 768px) {
  .home-page .betting-body .sports-card-wrapper:not(.sports-card-wrapper-lg) .sports-card-inner:nth-of-type(n + 3) {
    display: none !important;
  }
}

.home-page .betting-body .sports-card-left {
  flex: 0 0 32% !important;
  width: 32% !important;
  padding: 12px 14px !important;
  border-right: 1px solid var(--bbp-line) !important;
}
.home-page .betting-body .sports-card-left-bottom a {
  font-size: 0.72rem !important;
  color: var(--bbp-accent) !important;
  font-weight: 600 !important;
}
.home-page .betting-body .sports-card__team-name {
  font-size: 0.86rem !important;
  line-height: 1.25 !important;
}
.home-page .betting-body .sports-card__team {
  padding: 5px 0 !important;
}
.home-page .betting-body .sports-card__team-flag {
  width: 26px !important;
  height: 26px !important;
}

.home-page .betting-body .sports-card-heading,
.home-page .betting-body .team-select-title {
  font-size: 0.68rem !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  color: var(--bbp-muted) !important;
  text-transform: uppercase !important;
}
.home-page .betting-body .option-odd-lists .btn,
.home-page .betting-body .oddBtn {
  min-height: 44px !important;
  border-radius: 7px !important;
  border: 1px solid var(--bbp-line-strong) !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink) !important;
}
.home-page .betting-body .oddBtn .odd-val {
  font-size: 1rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.01em !important;
}
.home-page .betting-body .oddBtn:hover:not(:disabled) {
  background: var(--bbp-accent-soft) !important;
  border-color: var(--bbp-accent) !important;
  transform: none !important;
}

/* --------------------------------------------------------------------------
   7. Exchange odds: back / lay with enough contrast
   -------------------------------------------------------------------------- */
html[data-theme="light"] .odd-back,
html[data-theme="light"] .btn-back {
  background: var(--bbp-back-bg) !important;
  color: var(--bbp-back) !important;
  border-color: var(--bbp-back-line) !important;
}
html[data-theme="light"] .odd-lay,
html[data-theme="light"] .btn-lay {
  background: var(--bbp-lay-bg) !important;
  color: var(--bbp-lay) !important;
  border-color: var(--bbp-lay-line) !important;
}
html[data-theme="light"] .oddBtn .odd-val {
  color: var(--bbp-ink) !important;
}
html[data-theme="light"] .oddBtn.active .odd-val {
  color: #FFFFFF !important;
}

/* Fabricated liquidity volumes are not real data - hide them. */
.market-row:not(.fancy-row) .odd-vol {
  display: none !important;
}
.fancy-row .odd-vol {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  opacity: 0.8 !important;
}

/* --------------------------------------------------------------------------
   8. Match page: remove the simulated tracker/insights widgets
   -------------------------------------------------------------------------- */
/* THEME SEPARATION 2026-11-11 (Diamond copy only — basic/ + other themes'
   copies keep the original hiding): the Diamond TV pane holds ONLY honest
   empty states now ("Live coverage is not available…"), so its tracker
   section + centre tabs are un-hidden HERE, in Diamond's own copy.
   #toggleTrackerBtn (scoreboard toggle) and the quick-cards scroller
   stay hidden, as before. diamond.css keeps the #evPaneTv un-hide rules
   as defence-in-depth. */
.match-quick-cards-scroll-wrapper,
#toggleTrackerBtn {
  display: none !important;
}

.home-page .match-center-head {
  padding: 12px 14px !important;
}
.home-page .match-team-name {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}
.home-page .match-team-logo {
  width: 30px !important;
  height: 30px !important;
}
html[data-theme="light"] .home-page .match-center-scoreboard {
  background: var(--bbp-surface-2) !important;
  border: 1px solid var(--bbp-line) !important;
  border-radius: 9px !important;
}
html[data-theme="light"] .home-page .match-center-scoreboard #liveScoreRuns {
  color: var(--bbp-ink) !important;
  font-weight: 800 !important;
}
html[data-theme="light"] .home-page .cricket-ball {
  border: 1px solid var(--bbp-line-strong) !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink-2) !important;
}
html[data-theme="light"] .home-page .cricket-ball.four,
html[data-theme="light"] .home-page .cricket-ball.six {
  background: var(--bbp-accent-soft) !important;
  border-color: var(--bbp-back-line) !important;
  color: var(--bbp-back) !important;
}
html[data-theme="light"] .home-page .cricket-ball.wicket {
  background: #FDF0F0 !important;
  border-color: #F6CECE !important;
  color: #B42318 !important;
}

/* Market accordions: clean headers. */
.home-page .accordion-button {
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink) !important;
  font-size: 0.82rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}
.home-page .accordion-button:not(.collapsed) {
  background: var(--bbp-surface-2) !important;
  color: var(--bbp-ink) !important;
}
.home-page .accordion-button .badge {
  font-size: 0.62rem !important;
  letter-spacing: 0.04em !important;
  font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   9. Market tables: readable columns, larger digits
   -------------------------------------------------------------------------- */
.home-page .market-table {
  table-layout: fixed !important;
  font-size: 0.82rem !important;
}
.home-page .market-table th:first-child,
.home-page .market-table td:first-child {
  width: 52% !important;
}
.home-page .market-table th.col-back,
.home-page .market-table th.col-lay,
.home-page .market-table td:nth-child(2),
.home-page .market-table td:nth-child(3) {
  width: 24% !important;
}
.home-page .market-table-head th {
  background: var(--bbp-surface-2) !important;
  border-bottom: 1px solid var(--bbp-line) !important;
  color: var(--bbp-muted) !important;
  font-size: 0.66rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase !important;
}
.home-page .market-table .runner-name {
  font-size: 0.84rem !important;
  font-weight: 600 !important;
  color: var(--bbp-ink) !important;
  line-height: 1.3 !important;
}
.home-page .market-table .fancy-row .runner-name {
  font-size: 0.86rem !important;
}
.home-page .market-table .oddBtn {
  min-height: 40px !important;
  border-radius: 6px !important;
}
.home-page .market-table .oddBtn .odd-val {
  font-size: 0.95rem !important;
  font-weight: 800 !important;
}
.home-page .market-table small.text-muted {
  font-size: 0.7rem !important;
}

/* --------------------------------------------------------------------------
   10. Contrast repairs measured on the live pages
   -------------------------------------------------------------------------- */
html[data-theme="light"] .home-page .text-info {
  color: #0B5FBF !important;
}
html[data-theme="light"] .home-page .text-warning {
  color: var(--bbp-warn) !important;
}
html[data-theme="light"] .home-page .xsm-text.text-warning {
  color: var(--bbp-warn) !important;
}
html[data-theme="light"] .home-page .btn.text-warning {
  color: var(--bbp-warn) !important;
}
html[data-theme="light"] .home-page .btn-outline-warning {
  color: var(--bbp-warn) !important;
  border-color: #D6A400 !important;
}
html[data-theme="light"] .home-page .badge.bg-warning {
  color: #3B2A00 !important;
}
/* A warning badge on a deliberately dark chip must stay light. */
html[data-theme="light"] .home-page .badge.bg-dark.text-warning,
html[data-theme="light"] .home-page .bg-dark.text-warning {
  color: #F5C518 !important;
  border-color: #A16207 !important;
}
html[data-theme="light"] .freeplay-disclaimer-pill {
  color: #475569 !important;
  background: #F1F5F9 !important;
  border-color: #E2E8F0 !important;
}
html[data-theme="light"] .betslip-add-points-btn {
  color: var(--bbp-good) !important;
}
html[data-theme="light"] .match-center-tab-btn {
  color: #475569 !important;
}
html[data-theme="light"] .match-center-tab-btn.active {
  color: var(--bbp-accent) !important;
  border-bottom-color: var(--bbp-accent) !important;
}

/* --------------------------------------------------------------------------
   11. Bet slip: drawer on tablets (992-1199) + floating trigger
   At 1055px the permanent 300px slip left only ~510px for the feed. The
   drawer gives the content the full width and keeps the slip one tap away.
   -------------------------------------------------------------------------- */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .home-page > .betslip {
    position: fixed !important;
    top: var(--header-h, 60px) !important;
    right: 0 !important;
    bottom: 0 !important;
    left: auto !important;
    width: min(380px, 94vw) !important;
    max-width: min(380px, 94vw) !important;
    min-width: 0 !important;
    height: calc(100dvh - var(--header-h, 60px)) !important;
    flex: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    z-index: 10500 !important;
    background: var(--bbp-surface) !important;
    border-left: 1px solid var(--bbp-line) !important;
    box-shadow: -18px 0 40px rgba(16, 24, 40, 0.16) !important;
    transform: translateX(102%) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: transform 0.22s ease, opacity 0.22s ease, visibility 0.22s ease !important;
  }
  .open-betslip .home-page > .betslip {
    transform: translateX(0) !important;
    opacity: 1 !important;
    visibility: visible !important;
  }
  .home-page > .betslip > .betslip-inner {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
  }
  .betslip-close-btn {
    display: inline-flex !important;
  }
  .home-page > .betslip-backdrop {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 10490 !important;
    background: rgba(16, 24, 40, 0.42) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.2s ease, visibility 0.2s ease !important;
  }
  .open-betslip .home-page > .betslip-backdrop {
    opacity: 1 !important;
    visibility: visible !important;
  }
  .home-page > .sports-body {
    flex: 1 1 100% !important;
    width: auto !important;
    min-width: 0 !important;
  }
}

.bb-betslip-fab {
  display: none;
}
@media (min-width: 992px) and (max-width: 1199.98px) {
  .bb-betslip-fab {
    position: fixed;
    right: 18px;
    bottom: 22px;
    z-index: 10450;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 16px;
    border: 1px solid var(--bbp-accent);
    border-radius: 999px;
    background: var(--bbp-accent);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(11, 99, 214, 0.28);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .bb-betslip-fab i {
    font-size: 1.05rem;
  }
  .bb-betslip-fab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--bbp-accent);
    font-size: 0.7rem;
    font-weight: 800;
  }
  .bb-betslip-fab:hover {
    transform: translateY(-1px);
  }
  .open-betslip .bb-betslip-fab {
    opacity: 0;
    pointer-events: none;
  }
}

/* Bet slip typography: clearer numbers, quieter labels. */
html[data-theme="light"] .betslip {
  background: var(--bbp-surface) !important;
  border-left: 1px solid var(--bbp-line) !important;
}
html[data-theme="light"] .betslip-balance-pts {
  color: var(--bbp-ink) !important;
}
html[data-theme="light"] .betslip .odd-val,
html[data-theme="light"] .betslip .investAmount,
html[data-theme="light"] .betslip input {
  font-variant-numeric: tabular-nums;
}
html[data-theme="light"] .betslip .investAmount,
html[data-theme="light"] .betslip input[type="number"] {
  font-size: 0.95rem !important;
  font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   12. Dark theme: keep the same calm surfaces
   -------------------------------------------------------------------------- */
html[data-theme="dark"] .home-page,
html[data-theme="dark"] .home-page .sports-body {
  background: #0B1220 !important;
}
html[data-theme="dark"] .home-page .sports-card,
html[data-theme="dark"] .home-page .match-center-head,
html[data-theme="dark"] .home-page .match-filter-toolbar,
html[data-theme="dark"] .home-page .live-now-card,
html[data-theme="dark"] .home-page .sub-category-drawer {
  box-shadow: none !important;
  border-color: #23324A !important;
  border-radius: 10px !important;
}
html[data-theme="dark"] .sports-category {
  background: #0E1728 !important;
  border-right: 1px solid #23324A !important;
  box-shadow: none !important;
}
html[data-theme="dark"] .sports-category__link i {
  color: #8CA0BC !important;
}
html[data-theme="dark"] .sports-category__link.active i,
html[data-theme="dark"] .sports-category__link.active .sports-category__text {
  color: #7DB6FF !important;
}
html[data-theme="dark"] .bb-betslip-fab {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

/* --------------------------------------------------------------------------
   13. Small screens: keep digits readable, avoid cramped tables
   -------------------------------------------------------------------------- */
@media (max-width: 767.98px) {
  .home-page .sports-category__text {
    font-size: 0.84rem !important;
  }
  .home-page .sports-category__link {
    min-height: 42px !important;
  }
  /* Phone cards: team names on top, one full-width market below. Side-by-side
     columns squeezed each odds button to ~23px, which clipped the digits. */
  .home-page .betting-body .sports-card-wrapper:not(.sports-card-wrapper-lg) {
    flex-direction: column !important;
    flex-wrap: wrap !important;
  }
  .home-page .betting-body .sports-card-wrapper:not(.sports-card-wrapper-lg) .sports-card-left {
    flex: 0 0 auto !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 10px 12px !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--bbp-line) !important;
  }
  .home-page .betting-body .sports-card-wrapper:not(.sports-card-wrapper-lg) .sports-card-inner {
    flex: 1 1 100% !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .home-page .betting-body .sports-card-wrapper:not(.sports-card-wrapper-lg) .sports-card-inner ~ .sports-card-inner {
    display: none !important;
  }
  .home-page .betting-body .option-odd-lists {
    width: 100% !important;
  }
  .home-page .betting-body .option-odd-list__item {
    flex: 1 1 0 !important;
    min-width: 0 !important;
  }
  .home-page .betting-body .option-odd-lists .oddBtn {
    width: 100% !important;
  }
  .home-page .market-table {
    font-size: 0.8rem !important;
  }
  .home-page .market-table th:first-child,
  .home-page .market-table td:first-child {
    width: 46% !important;
  }
  .home-page .market-table th.col-back,
  .home-page .market-table th.col-lay,
  .home-page .market-table td:nth-child(2),
  .home-page .market-table td:nth-child(3) {
    width: 27% !important;
  }
  .home-page .market-table .oddBtn {
    min-height: 44px !important;
  }
}

/* --------------------------------------------------------------------------
   14. Dark-theme parity
   The minimal layer above intentionally uses light tokens for the light
   theme. These rules restore the equivalent dark surfaces so no light-only
   token leaks through when data-theme="dark".
   -------------------------------------------------------------------------- */
html[data-theme="dark"] .sports-visual-rail__title,
html[data-theme="dark"] .home-casino-rail .sports-visual-rail__title {
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .sports-visual-rail__title i,
html[data-theme="dark"] .home-casino-rail .sports-visual-rail__title i {
  color: #8CA0BC !important;
}
html[data-theme="dark"] .home-page .betting-body .sports-card-left {
  border-right-color: #23324A !important;
  border-bottom-color: #23324A !important;
}
html[data-theme="dark"] .home-page .betting-body .sports-card-heading,
html[data-theme="dark"] .home-page .betting-body .team-select-title {
  color: #94A3B8 !important;
}
html[data-theme="dark"] .home-page .betting-body .sports-card-left-bottom a {
  color: #7DB6FF !important;
}
html[data-theme="dark"] .home-page .betting-body .option-odd-lists .btn,
html[data-theme="dark"] .home-page .betting-body .oddBtn {
  background: #162D49 !important;
  border-color: #29415F !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] .home-page .betting-body .oddBtn .odd-val {
  color: #FFFFFF !important;
}
html[data-theme="dark"] .home-page .betting-body .oddBtn:hover:not(:disabled) {
  background: #1C3A5E !important;
  border-color: #3B82F6 !important;
}
html[data-theme="dark"] .home-page .accordion-button {
  background: #0E1728 !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .home-page .accordion-button:not(.collapsed) {
  background: #162D49 !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .home-page .market-table-head th {
  background: #0E1728 !important;
  border-bottom-color: #23324A !important;
  color: #94A3B8 !important;
}
html[data-theme="dark"] .home-page .market-table .runner-name {
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .home-page .market-table small.text-muted {
  color: #94A3B8 !important;
}
html[data-theme="dark"] .home-page .market-table {
  color: #E2E8F0;
}
html[data-theme="dark"] .home-page > .betslip {
  background: #0E1728 !important;
  border-left-color: #23324A !important;
}

/* ==========================================================================
   15. Winbuzz-reference market grid & navigation rail
   Measured from the reference screenshot (2724x1177 @ DPR2 -> 1362 CSS px):
     runner column 383px | three BACK columns 61px | three LAY columns 63px
     table row 22.5px     | odds cell 17.5px tall
     filled back cell #A5D9FE | filled lay cell #F8D0CE
   The reference shows odds + size on two lines inside every cell. Our left
   column only carries one cell per runner (no traded size), so the single
   filled cell keeps the 2-line rhythm by showing the odds large and the
   in-play volume beneath it in the same pastel fill.
   ========================================================================== */

:root {
  --bbp-grid-line: #D9DDE3;
  --bbp-head-bg: #F1F3F6;
  --bbp-row-alt: #FAFAFB;
  --bbp-back-fill: #CFE4FB;
  --bbp-back-fill-strong: #B6D7F7;
  --bbp-lay-fill: #FBD9D7;
  --bbp-lay-fill-strong: #F7C4C1;
  --bbp-cell-h: 30px;
}

/* --- 15a. Market table: hard grid, pastel cells, centred headers --------- */
.home-page .accordion-item {
  border: 1px solid var(--bbp-line) !important;
  border-radius: 8px !important;
  overflow: hidden;
  margin-bottom: 8px;
  background: var(--bbp-surface) !important;
}
.home-page .accordion-item + .accordion-item { margin-top: 0; }

.home-page .accordion-button {
  min-height: 38px;
  padding: 8px 12px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.2px;
  border-radius: 0 !important;
}
.home-page .accordion-button:not(.collapsed) {
  box-shadow: none !important;
  border-bottom: 1px solid var(--bbp-line) !important;
}

.home-page .table-responsive { overflow-x: auto; }

.home-page .market-table {
  width: 100% !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
  table-layout: fixed !important;
  font-size: 12.5px !important;
  margin-bottom: 0 !important;
}

/* Grid: the explicit 1px vertical + horizontal rules of the reference. */
.home-page .market-table th,
.home-page .market-table td {
  border-right: 1px solid var(--bbp-grid-line) !important;
  border-bottom: 1px solid var(--bbp-grid-line) !important;
  border-top: 0 !important;
  border-left: 0 !important;
  vertical-align: middle !important;
}
.home-page .market-table tr > *:last-child { border-right: 0 !important; }
.home-page .market-table tbody tr:last-child > td { border-bottom: 0 !important; }

.home-page .market-table thead th,
.home-page .market-table .market-table-head th {
  background: var(--bbp-head-bg) !important;
  color: var(--bbp-ink-2) !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  padding: 7px 8px !important;
  text-align: center;
}

.home-page .market-table th:first-child,
.home-page .market-table td:first-child {
  width: auto !important;
  text-align: left;
}
.home-page .market-table th.col-back,
.home-page .market-table th.col-lay {
  width: 96px !important;
}
.home-page .market-table td.col-back,
.home-page .market-table td.col-lay,
.home-page .market-table td:nth-child(2),
.home-page .market-table td:nth-child(3) {
  width: 96px !important;
  padding: 2px !important;
  text-align: center;
}

.home-page .market-table tbody tr:nth-child(even) > td:first-child {
  background: var(--bbp-row-alt) !important;
}
.home-page .market-table tbody tr:hover > td:first-child {
  background: var(--bbp-accent-soft) !important;
}

.home-page .market-table .runner-name {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--bbp-ink) !important;
  line-height: 1.25;
}
.home-page .market-table td:first-child { padding: 8px 10px !important; }
.home-page .market-table small.text-muted { font-size: 11px !important; }

/* --- 15b. Odds cells: two lines (odds over size), pastel fills ---------- */
.home-page .market-table .oddBtn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: var(--bbp-cell-h) !important;
  padding: 3px 4px !important;
  border: 1px solid var(--bbp-grid-line) !important;
  border-radius: 3px !important;
  background: #FFFFFF !important;
  line-height: 1.05 !important;
  gap: 1px;
}
.home-page .market-table .oddBtn .odd-val {
  font-size: 14px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
  color: var(--bbp-ink) !important;
}
.home-page .market-table .oddBtn .odd-vol {
  font-size: 10.5px !important;
  font-weight: 600 !important;
  font-variant-numeric: tabular-nums;
  color: var(--bbp-muted) !important;
  display: block !important;
}

.home-page .market-table .oddBtn.btn-back { background: var(--bbp-back-fill) !important; }
.home-page .market-table .oddBtn.btn-back .odd-vol { color: var(--bbp-back) !important; }
.home-page .market-table .oddBtn.btn-lay { background: var(--bbp-lay-fill) !important; }
.home-page .market-table .oddBtn.btn-lay .odd-val { color: #7C1D3E !important; }
.home-page .market-table .oddBtn.btn-lay .odd-vol { color: var(--bbp-lay) !important; }

.home-page .market-table .oddBtn:hover:not(:disabled):not(.locked) {
  filter: brightness(0.96);
  border-color: var(--bbp-accent) !important;
}
.home-page .market-table .oddBtn.btn-back:hover:not(:disabled) { background: var(--bbp-back-fill-strong) !important; }
.home-page .market-table .oddBtn.btn-lay:hover:not(:disabled) { background: var(--bbp-lay-fill-strong) !important; }

.home-page .market-table .oddBtn.active {
  background: var(--bbp-accent) !important;
  border-color: var(--bbp-accent) !important;
}
.home-page .market-table .oddBtn.active .odd-val,
.home-page .market-table .oddBtn.active .odd-vol { color: #FFFFFF !important; }

/* Suspended cells read as one white band, like the reference. */
.home-page .market-table .oddBtn.locked,
.home-page .market-table .btn-locked {
  background: #FFFFFF !important;
  border-color: var(--bbp-grid-line) !important;
  color: #98A2B3 !important;
  min-height: var(--bbp-cell-h) !important;
}
.home-page .market-table td .btn-locked .la-lock { font-size: 12px; }

/* --- 15c. Left navigation rail (reference: white, ~40px rows) ----------- */
.home-page .sports-category__link {
  min-height: 40px !important;
  padding: 0 12px !important;
  border-bottom: 1px solid #F0F1F3 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
}
.home-page .sports-category__link .sports-category__text {
  font-size: 14px !important;
  font-weight: 500 !important;
  letter-spacing: 0;
  text-transform: none;
}
.home-page .sports-category__link i,
.home-page .sports-category__link .sports-category__icon {
  font-size: 1.05rem !important;
  width: 20px !important;
  text-align: center;
}
.home-page .sports-category__list { padding: 0 !important; }

/* Active row = the full-width tinted band of the reference (blue, our accent). */
.home-page .sports-category__list .sports-category__link.active {
  background: var(--bbp-accent) !important;
  border-bottom-color: var(--bbp-accent) !important;
}
.home-page .sports-category__list .sports-category__link.active,
.home-page .sports-category__list .sports-category__link.active .sports-category__text,
.home-page .sports-category__list .sports-category__link.active i,
.home-page .sports-category__list .sports-category__link.active .sports-category__icon {
  color: #FFFFFF !important;
}

/* --- 15d. Match centre: compact, details behind a closed toggle --------- */
.home-page .match-center-head {
  padding: 10px 12px !important;
}
.home-page .match-center-head > .d-flex:first-child {
  font-size: 11.5px !important;
  color: var(--bbp-muted) !important;
}

/* The details box ships with fabricated telemetry. Keep the markup (tests assert
   its strings) but present it as a closed disclosure the punter opens. */
.home-page .match-details-box > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 38px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  color: var(--bbp-ink-2);
  background: var(--bbp-head-bg);
  border: 1px solid var(--bbp-line);
  border-radius: 8px;
  list-style: none;
}
.home-page .match-details-box > summary::-webkit-details-marker { display: none; }
.home-page .match-details-box > summary::after {
  content: "\f107";
  font-family: "Line Awesome Free", "Line Awesome Brands", sans-serif;
  font-weight: 900;
  font-size: 14px;
  color: var(--bbp-muted);
  transition: transform 0.18s ease;
}
.home-page .match-details-box[open] > summary {
  border-radius: 8px 8px 0 0;
  border-bottom-color: transparent;
}
.home-page .match-details-box[open] > summary::after { transform: rotate(180deg); }
.home-page .match-details-box > .accordion-body,
.home-page .match-details-box > .match-details-body {
  border: 1px solid var(--bbp-line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  background: var(--bbp-surface);
}/* detail:auto */

/* --- 15e. Cookies + chatbot: explicit close affordances ------------------ */
.home-page .cookies-card,
.cookies-card {
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink) !important;
  border: 1px solid var(--bbp-line) !important;
  border-radius: 8px !important;
  box-shadow: 0 10px 30px rgba(16, 24, 40, 0.12) !important;
  padding: 18px 20px !important;
}
.cookies-card .cookies-card__close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  min-height: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 6px !important;
  background: transparent !important;
  color: var(--bbp-muted) !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1;
  cursor: pointer;
}
.cookies-card .cookies-card__close:hover {
  background: var(--bbp-head-bg);
  color: var(--bbp-ink);
}
.cookies-card .cookies-card__content { font-size: 13px !important; line-height: 1.55; }
.cookies-card .cookies-card__content a { color: var(--bbp-accent); }
.cookies-card .cookies-card__btn .btn,
.cookies-card .policy {
  min-height: 40px;
  font-size: 13.5px !important;
  font-weight: 600 !important;
  border-radius: 6px !important;
}

/* The cookie banner must not fight the chatbot FAB for the corner. */
@media (max-width: 767.98px) {
  .cookies-card {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100% !important;
    border-radius: 8px 8px 0 0 !important;
    padding: 16px 16px 18px !important;
  }
  .cookies-card ~ .bb-chatbot-container,
  .bb-chatbot-container { z-index: 1040; }
}
.cookies-card .cookies-card__icon {
  background: var(--bbp-accent-soft) !important;
  color: var(--bbp-accent) !important;
  width: 44px !important;
  height: 44px !important;
  font-size: 22px !important;
}

.bb-chatbot-container { z-index: 1050; }
.bb-chatbot-btn { box-shadow: 0 6px 18px rgba(11, 99, 214, 0.28) !important; }
.bb-chatbot-btn-inner { font-size: 0.82rem !important; }
.bb-chatbot-window {
  border-radius: 10px !important;
  border: 1px solid var(--bbp-line-strong) !important;
  box-shadow: 0 18px 44px rgba(16, 24, 40, 0.22) !important;
}
.bb-chatbot-header { border-radius: 10px 10px 0 0 !important; }

/* --- 15f. "Add Points" as a boxed property control ----------------------- */
.header-primary .btn-quick-topup,
.header-primary .bb-add-points-btn,
.header-primary a[href*="deposit"]:not(nav a) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px;
  min-height: 32px;
  padding: 5px 12px !important;
  border: 1px solid var(--bbp-line-strong) !important;
  border-radius: 6px !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
}
.header-primary .btn-quick-topup:hover,
.header-primary .bb-add-points-btn:hover,
.header-primary a[href*="deposit"]:not(nav a):hover {
  border-color: var(--bbp-accent) !important;
  color: var(--bbp-accent) !important;
}
.betslip .betslip-add-points-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px;
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--bbp-line-strong) !important;
  border-radius: 6px !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
}
.betslip .betslip-add-points-btn:hover {
  border-color: var(--bbp-accent) !important;
  color: var(--bbp-accent) !important;
}

/* --- 15g. Dark parity for 15a-15f ---------------------------------------- */
.home-page .match-details-box[open] > summary { transform: none; }
/* #toggleTrackerBtn stays hidden; without these clearance rules the real panel
   would still be blocked by .home-page #matchTrackerSection display:none. */
.home-page #matchTrackerSection {
  display: block !important;
}
.home-page .match-quick-cards-scroll-wrapper,
.match-quick-cards-scroll-wrapper {
  display: none !important;
}
.home-page .match-details-box:not([open]) #matchTrackerSection {
  display: none !important;
}
html[data-theme="dark"] {
  /* Retokenise the core palette so every var(--bbp-*) consumer flips with the
     theme automatically, instead of relying on hundreds of one-off overrides. */
  --bbp-ink: #E6EBF3;
  --bbp-ink-2: #C7D2E0;
  --bbp-muted: #94A3B8;
  --bbp-line: #23324A;
  --bbp-line-strong: #2E405C;
  --bbp-surface: #0E1728;
  --bbp-surface-2: #111E31;
  --bbp-canvas: #0A1220;
  --bbp-accent: #58A6FF;
  --bbp-accent-soft: #16233A;
  --bbp-back: #9EC5F0;
  --bbp-back-bg: #1B3A5F;
  --bbp-back-line: #2C5480;
  --bbp-lay: #F0A8BC;
  --bbp-lay-bg: #4A2230;
  --bbp-lay-line: #6B3346;
  --bbp-good: #46C08A;
  --bbp-warn: #E0B04A;

  --bbp-grid-line: #23324A;
  --bbp-head-bg: #16233A;
  --bbp-row-alt: #131C2E;
  --bbp-back-fill: #1B3A5F;
  --bbp-back-fill-strong: #21486F;
  --bbp-lay-fill: #4A2230;
  --bbp-lay-fill-strong: #5A2A3A;
}
html[data-theme="dark"] .home-page .accordion-item,
html[data-theme="dark"] .home-page .market-table .oddBtn {
  background: #0E1728 !important;
}
html[data-theme="dark"] .home-page .market-table thead th,
html[data-theme="dark"] .home-page .market-table .market-table-head th {
  background: var(--bbp-head-bg) !important;
  color: #94A3B8 !important;
}
html[data-theme="dark"] .home-page .market-table .runner-name { color: #E2E8F0 !important; }
html[data-theme="dark"] .home-page .market-table tbody tr:nth-child(even) > td:first-child {
  background: var(--bbp-row-alt) !important;
}
html[data-theme="dark"] .home-page .market-table .oddBtn .odd-val { color: #E2E8F0 !important; }
html[data-theme="dark"] .home-page .market-table .oddBtn .odd-vol { color: #8CA0BC !important; }
html[data-theme="dark"] .home-page .market-table .oddBtn.btn-lay .odd-val { color: #F5B7C6 !important; }
html[data-theme="dark"] .home-page .market-table .oddBtn.btn-back { background: var(--bbp-back-fill) !important; }
html[data-theme="dark"] .home-page .market-table .oddBtn.btn-back .odd-vol { color: #9EC5F0 !important; }
html[data-theme="dark"] .home-page .market-table .oddBtn.btn-lay { background: var(--bbp-lay-fill) !important; }
html[data-theme="dark"] .home-page .market-table .oddBtn.btn-lay .odd-vol { color: #F0A8BC !important; }
html[data-theme="dark"] .home-page .market-table .oddBtn.locked,
html[data-theme="dark"] .home-page .market-table .btn-locked {
  background: #0E1728 !important;
  color: #64748B !important;
}
html[data-theme="dark"] .home-page .market-table .oddBtn.active {
  background: #1D6FE0 !important;
  border-color: #1D6FE0 !important;
}
/* White on the accent fill must beat the back/lay colour pairs above. */
html[data-theme="dark"] .home-page .market-table .oddBtn.active .odd-val,
html[data-theme="dark"] .home-page .market-table .oddBtn.active .odd-vol,
html[data-theme="light"] .home-page .market-table .oddBtn.active .odd-val,
html[data-theme="light"] .home-page .market-table .oddBtn.active .odd-vol,
html:not([data-theme="dark"]) .home-page .market-table .oddBtn.active .odd-val,
html:not([data-theme="dark"]) .home-page .market-table .oddBtn.active .odd-vol {
  color: #FFFFFF !important;
}
html[data-theme="dark"] .home-page .badge.bg-warning {
  color: #3B2A00 !important;
}
/* In-play badge: white on amber was fine in light mode but the dark theme
   gave it a bright amber fill. Use a dark-tinted amber instead. */
html[data-theme="dark"] .cricket-live-badge,
html[data-theme="dark"] .home-page .badge.bg-warning:not(.text-dark) {
  background: rgba(245, 197, 24, 0.18) !important;
  border: 1px solid rgba(245, 197, 24, 0.45) !important;
  color: #F5C518 !important;
}
html[data-theme="dark"] .home-page .sports-category__link { border-bottom-color: #1E2A3E !important; }
html[data-theme="dark"] .home-page .match-details-box > summary {
  background: var(--bbp-head-bg);
  border-color: var(--bbp-grid-line);
  color: #C7D2E0;
}
html[data-theme="dark"] .cookies-card {
  background: #0E1728 !important;
  color: #E2E8F0 !important;
  border-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .cookies-card .cookies-card__content a { color: #7DB6FF; }
html[data-theme="dark"] .cookies-card .cookies-card__content,
html[data-theme="dark"] .cookies-card .cookies-card__content a {
  color: #B7CCE6 !important;
}
html[data-theme="dark"] .cookies-card .cookies-card__close { color: #94A3B8 !important; }
html[data-theme="dark"] .cookies-card .cookies-card__close:hover {
  background: #16233A !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .header-primary .btn-quick-topup,
html[data-theme="dark"] .header-primary .bb-add-points-btn {
  background: #16233A !important;
  border-color: #29415F !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .betslip .betslip-add-points-btn {
  background: #16233A !important;
  border-color: #29415F !important;
  color: #E2E8F0 !important;
}

/* ==========================================================================
   16. Home feed: all open fixtures grouped by league
   -------------------------------------------------------------------------- */
.home-page .league-group-heading {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 -2px;
  padding: 0 2px;
}
.home-page .league-group-heading__name {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--bbp-muted);
}
.home-page .league-group-heading__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bbp-accent-soft);
  color: var(--bbp-accent);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
html[data-theme="dark"] .home-page .league-group-heading__name { color: #94A3B8; }
html[data-theme="dark"] .home-page .league-group-heading__count {
  background: #16233A;
  color: #7DB6FF;
}

/* ==========================================================================
   17. Mobile bet-slip trigger
   The bottom-nav cart icon was the only way in, and it is easy to miss. A
   floating "N selections" pill appears whenever a selection exists so the slip
   is reachable without hunting for the nav icon.
   ========================================================================== */
@media (max-width: 767.98px) {
  .bb-betslip-fab {
    position: fixed;
    right: 14px;
    bottom: 140px;
    z-index: 10450;
    display: none;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 16px;
    border: 1px solid var(--bbp-accent);
    border-radius: 999px;
    background: var(--bbp-accent);
    color: #FFFFFF;
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(11, 99, 214, 0.32);
    transition: opacity 0.18s ease, transform 0.18s ease;
  }
  .bb-betslip-fab.has-selections {
    display: inline-flex;
  }
  .bb-betslip-fab .bb-betslip-fab__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--bbp-accent);
    font-size: 0.7rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
  }
  .open-betslip .bb-betslip-fab {
    opacity: 0;
    pointer-events: none;
    transform: translateY(6px);
  }
}

/* ==========================================================================
   18. Repairs found while verifying phase 15/16
   -------------------------------------------------------------------------- */

/* A selected odd on the home cards inherited white text but kept the white
   card background, so the number vanished. Give every "active" odd a solid
   accent fill, not just the ones inside .market-table. */
html[data-theme="light"] .home-page .betting-body .oddBtn.active,
html:not([data-theme="dark"]) .home-page .betting-body .oddBtn.active {
  background: var(--bbp-accent) !important;
  border-color: var(--bbp-accent) !important;
}
html[data-theme="light"] .home-page .betting-body .oddBtn.active .odd-val,
html[data-theme="light"] .home-page .betting-body .oddBtn.active .odd-vol,
html:not([data-theme="dark"]) .home-page .betting-body .oddBtn.active .odd-val,
html:not([data-theme="dark"]) .home-page .betting-body .oddBtn.active .odd-vol {
  color: #FFFFFF !important;
}
html[data-theme="dark"] .home-page .betting-body .oddBtn.active {
  background: #1D6FE0 !important;
  border-color: #1D6FE0 !important;
}
html[data-theme="dark"] .home-page .betting-body .oddBtn.active .odd-val,
html[data-theme="dark"] .home-page .betting-body .oddBtn.active .odd-vol {
  color: #FFFFFF !important;
}

/* Bet-slip stake/return labels were dark-on-dark in the dark theme. */
html[data-theme="dark"] .betslip .betslip-item-stake__label,
html[data-theme="dark"] .betslip .betslip-item-return__text,
html[data-theme="dark"] .betslip .input-group-text {
  color: #94A3B8 !important;
}
html[data-theme="dark"] .betslip .betslip-item-stake .investAmount,
html[data-theme="dark"] .betslip .input-group input {
  color: #E2E8F0 !important;
}

/* The "1 ₹ = 1 PTS" reassurance chip used cyan on white. */
html[data-theme="light"] .badge.text-info,
html:not([data-theme="dark"]) .badge.text-info {
  color: #0B4F9C !important;
}
html[data-theme="light"] .badge.bg-info-subtle,
html[data-theme="light"] .badge.bg-secondary-subtle,
html:not([data-theme="dark"]) .badge.bg-info-subtle,
html:not([data-theme="dark"]) .badge.bg-secondary-subtle {
  background: #EAF2FE !important;
  border-color: #CFE0F7 !important;
}

/* ==========================================================================
   19. Site-wide page surface
   Phase 15/16 scoped almost everything to `.home-page`, but only the betting
   templates carry that wrapper. These rules are intentionally unscoped so the
   dashboard, auth, leaderboard, fantasy, bonuses, policy and ticket pages
   inherit the same calm surfaces, radius and type scale instead of the raw
   template look.
   ========================================================================== */
body {
  background: var(--bbp-canvas);
}
body,
.bb-page-surface > .page-wrapper,
.bb-page-surface > .container,
.bb-page-surface > .container-fluid {
  color: var(--bbp-ink-2);
}

/* Headings: the template defaults to 38-40px display sizes. */
body h1:not(.home-page h1),
.bb-page-surface .display-1, .bb-page-surface .display-2, .bb-page-surface .display-3,
.bb-page-surface .display-4, .bb-page-surface .display-5, .bb-page-surface .display-6 {
  font-size: 22px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
  color: var(--bbp-ink) !important;
}
body h2 { font-size: 19px !important; font-weight: 700 !important; color: var(--bbp-ink) !important; }
body h3 { font-size: 17px !important; font-weight: 700 !important; color: var(--bbp-ink) !important; }
body h4 { font-size: 15.5px !important; font-weight: 700 !important; color: var(--bbp-ink) !important; }
body h5, body h6 { font-size: 14px !important; font-weight: 700 !important; color: var(--bbp-ink) !important; }

/* Cards get the token border + radius instead of each template's own value. */
.bb-page-surface .card,
.bb-page-surface .widget-card,
.bb-page-surface .leaderboard-card,
.bb-page-surface .podium-card,
.bb-page-surface .policy-card,
.bb-page-surface .support-ticket-card,
.bb-page-surface .bonus-card {
  border: 1px solid var(--bbp-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
  background: var(--bbp-surface) !important;
}
.bb-page-surface .card-header,
.bb-page-surface .widget-card__head,
.bb-page-surface .leaderboard-card-head {
  border-radius: 10px 10px 0 0 !important;
}

/* The dashboard widget header shipped near-black inside a white card. */
.bb-page-surface .widget-card__head {
  background: var(--bbp-surface-2) !important;
  border-bottom: 1px solid var(--bbp-line) !important;
  color: var(--bbp-ink) !important;
}
.bb-page-surface .widget-card__balance-text,
.bb-page-surface .widget-card__balance-label {
  color: var(--bbp-muted) !important;
}

/* Buttons: one accent, 6px radius, no 3px template default. */
.bb-page-surface .btn--base,
.bb-page-surface .btn.btn--base,
.bb-page-surface .btn-brand-glow,
.bb-page-surface .btn.btn--primary,
.bb-page-surface .btn.btn--signup {
  background: var(--bbp-accent) !important;
  border: 1px solid var(--bbp-accent) !important;
  border-radius: 6px !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
}
.bb-page-surface .btn--base:hover,
.bb-page-surface .btn.btn--base:hover,
.bb-page-surface .btn-brand-glow:hover {
  background: #0A55B8 !important;
  border-color: #0A55B8 !important;
}
.bb-page-surface .btn-secondary,
.bb-page-surface .btn-outline--base,
.bb-page-surface .btn.btn-outline--base {
  border-radius: 6px !important;
}

/* Badges: neutralise the rainbow. Amber/"warning" is the one useful signal so
   it keeps a tinted treatment instead of a saturated fill. */
.bb-page-surface .badge.bg-primary,
.bb-page-surface .badge.bg-info,
.bb-page-surface .badge.bg-danger,
.bb-page-surface .badge.bg-success,
.bb-page-surface .badge.badge-brand,
.bb-page-surface .badge.badge-hot,
.bb-page-surface .badge.badge-view-all,
.bb-page-surface .badge.badge-contest-h2h,
.bb-page-surface .badge.badge-contest-practice,
.bb-page-surface .badge-sport-league {
  background: var(--bbp-accent-soft) !important;
  border: 1px solid #CFE0F7 !important;
  color: var(--bbp-accent) !important;
  background-image: none !important;
  box-shadow: none !important;
}
.bb-page-surface .badge.bg-warning,
.bb-page-surface .badge.text-warning {
  background: #FFF4D6 !important;
  border: 1px solid #F2D48A !important;
  color: var(--bbp-warn) !important;
  background-image: none !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bg-primary,
html[data-theme="dark"] .bb-page-surface .badge.bg-info,
html[data-theme="dark"] .bb-page-surface .badge.bg-danger,
html[data-theme="dark"] .bb-page-surface .badge.bg-success,
html[data-theme="dark"] .bb-page-surface .badge.badge-brand {
  background: #16233A !important;
  border-color: #29415F !important;
  color: #7DB6FF !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bg-warning,
html[data-theme="dark"] .bb-page-surface .badge.text-warning {
  background: rgba(245, 197, 24, 0.16) !important;
  border-color: rgba(245, 197, 24, 0.4) !important;
  color: #F5C518 !important;
}

/* Kill the remaining promo gradients / glows on the content pages. */
.bb-page-surface .fantasy-hero-title,
.bb-page-surface .badge[style*="linear-gradient"],
.bb-page-surface [style*="linear-gradient(135deg, #00E5FB"],
.bb-page-surface [style*="linear-gradient(135deg,#00E5FB"],
.bb-page-surface [style*="radial-gradient"] {
  background-image: none !important;
}
.bb-page-surface .progress-bar {
  background-image: none !important;
  background-color: var(--bbp-accent) !important;
}
.bb-page-surface .badge[style*="box-shadow"],
.bb-page-surface [style*="rgba(0,229,251,0.35)"] {
  box-shadow: none !important;
}

/* Amber/minor text that failed on white surfaces. */
.bb-page-surface .text-warning { color: var(--bbp-warn) !important; }
.bb-page-surface .text-info { color: var(--bbp-accent) !important; }
html[data-theme="dark"] .bb-page-surface .text-warning { color: #F5C518 !important; }
html[data-theme="dark"] .bb-page-surface .text-info { color: #7DB6FF !important; }

/* Tab/segmented controls used across my-bets, bonuses, fantasy, leaderboard. */
.bb-page-surface .btn-outline--base,
.bb-page-surface .btn.btn-outline--base,
.bb-page-surface .bonus-tab-btn,
.bb-page-surface .fantasy-tab,
.bb-page-surface .casino-tab-btn {
  border-radius: 7px !important;
  font-weight: 600 !important;
}
.bb-page-surface .btn-outline--base:not(.active),
.bb-page-surface .btn.btn-outline--base:not(.active) {
  color: var(--bbp-ink-2) !important;
  border-color: var(--bbp-line-strong) !important;
  background: var(--bbp-surface) !important;
}
.bb-page-surface .btn-outline--base.active,
.bb-page-surface .btn.btn-outline--base.active {
  background: var(--bbp-accent) !important;
  border-color: var(--bbp-accent) !important;
  color: #FFFFFF !important;
}

/* Auth pages used a full-bleed photo behind the form. */
.bb-page-surface .login-page,
.bb-page-surface .contact-section {
  background-image: none !important;
  background: var(--bbp-canvas) !important;
}

html[data-theme="dark"] .bb-page-surface .card,
html[data-theme="dark"] .bb-page-surface .widget-card,
html[data-theme="dark"] .bb-page-surface .leaderboard-card,
html[data-theme="dark"] .bb-page-surface .podium-card,
html[data-theme="dark"] .bb-page-surface .policy-card {
  background: #0E1728 !important;
  border-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .bb-page-surface .widget-card__head {
  background: #16233A !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] body h1, html[data-theme="dark"] body h2,
html[data-theme="dark"] body h3, html[data-theme="dark"] body h4,
html[data-theme="dark"] body h5, html[data-theme="dark"] body h6 {
  color: #E2E8F0 !important;
}

/* ==========================================================================
   20. Pages authored dark-only inside light cards
   /bonuses, /fantasy and /leaderboard use `text-white`, `text-white-50` and
   `btn-outline-light` on cards that are now white. Those utilities assume a
   dark surface, so on the light theme they render white-on-white.
   ========================================================================== */
html[data-theme="light"] .bb-page-surface .text-white:not(.btn):not(.badge),
html:not([data-theme="dark"]) .bb-page-surface .text-white:not(.btn):not(.badge) {
  color: var(--bbp-ink) !important;
}
html[data-theme="light"] .bb-page-surface .text-white-50,
html:not([data-theme="dark"]) .bb-page-surface .text-white-50 {
  color: var(--bbp-muted) !important;
}
html[data-theme="light"] .bb-page-surface .btn-outline-light,
html:not([data-theme="dark"]) .bb-page-surface .btn-outline-light {
  border-color: var(--bbp-line-strong) !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink) !important;
}
html[data-theme="light"] .bb-page-surface .btn-outline-light:hover,
html:not([data-theme="dark"]) .bb-page-surface .btn-outline-light:hover {
  border-color: var(--bbp-accent) !important;
  background: var(--bbp-accent-soft) !important;
  color: var(--bbp-accent) !important;
}
/* Tab buttons that shipped a slate-on-slate caption. */
html[data-theme="light"] .bb-page-surface .bonus-tab-btn,
html:not([data-theme="dark"]) .bb-page-surface .bonus-tab-btn {
  color: var(--bbp-ink-2) !important;
  border-color: var(--bbp-line-strong) !important;
  background: var(--bbp-surface) !important;
}
html[data-theme="light"] .bb-page-surface .bonus-tab-btn.active,
html:not([data-theme="dark"]) .bb-page-surface .bonus-tab-btn.active {
  background: var(--bbp-accent) !important;
  border-color: var(--bbp-accent) !important;
  color: #FFFFFF !important;
}
html[data-theme="light"] .bb-page-surface .vip-tier-pill,
html:not([data-theme="dark"]) .bb-page-surface .vip-tier-pill {
  background: var(--bbp-surface-2) !important;
  border: 1px solid var(--bbp-line) !important;
  color: var(--bbp-ink-2) !important;
}
/* /fantasy reward rows used cyan text on a cyan-tinted chip. */
html[data-theme="light"] .bb-page-surface .fantasy-hero,
html:not([data-theme="dark"]) .bb-page-surface .fantasy-hero {
  background: var(--bbp-surface) !important;
  background-image: none !important;
  border: 1px solid var(--bbp-line) !important;
}
html[data-theme="light"] .bb-page-surface .fantasy-hero *,
html:not([data-theme="dark"]) .bb-page-surface .fantasy-hero * {
  color: var(--bbp-ink) !important;
}
html[data-theme="light"] .bb-page-surface .fantasy-contest-card,
html:not([data-theme="dark"]) .bb-page-surface .fantasy-contest-card {
  background: var(--bbp-surface) !important;
  border: 1px solid var(--bbp-line) !important;
}
/* Leaderboard medals and accuracy readouts. */
html[data-theme="light"] .bb-page-surface .leaderboard-table td,
html:not([data-theme="dark"]) .bb-page-surface .leaderboard-table td {
  color: var(--bbp-ink-2) !important;
}
html[data-theme="light"] .bb-page-surface .leaderboard-table th,
html:not([data-theme="dark"]) .bb-page-surface .leaderboard-table th {
  color: var(--bbp-ink) !important;
  background: var(--bbp-surface-2) !important;
}
/* Dashboard balance label shipped white-on-white. */
html[data-theme="light"] .bb-page-surface .widget-card__balance-text,
html:not([data-theme="dark"]) .bb-page-surface .widget-card__balance-text {
  color: var(--bbp-muted) !important;
}
/* My-bets / dashboard segmented tabs. */
html[data-theme="light"] .bb-page-surface .btn-outline--base:not(.active),
html:not([data-theme="dark"]) .bb-page-surface .btn-outline--base:not(.active) {
  color: var(--bbp-ink-2) !important;
  border-color: var(--bbp-line-strong) !important;
  background: var(--bbp-surface) !important;
}
/* Casino crash lobby cards put a light outline button on a white card. */
html[data-theme="light"] .bb-page-surface .btn-outline-light,
html:not([data-theme="dark"]) .bb-page-surface .casino-lobby-wrapper .btn-outline-light,
html[data-theme="light"] .casino-lobby-wrapper .btn-outline-light,
html:not([data-theme="dark"]) .casino-table-card .btn-outline-light {
  border-color: var(--bbp-line-strong) !important;
  color: var(--bbp-ink) !important;
}

/* ==========================================================================
   21. Dark-authored components on the light theme
   Several content pages were written against a dark canvas and carry inline
   background/colour styles. `!important` is required because the values are
   inline, but the rules stay scoped to the exact components so the dark theme
   keeps its original look.
   ========================================================================== */
html[data-theme="light"] .bb-page-surface .bonus-mega-badge,
html:not([data-theme="dark"]) .bb-page-surface .bonus-mega-badge {
  background: var(--bbp-surface-2) !important;
  border: 1px solid var(--bbp-line) !important;
  backdrop-filter: none !important;
}
html[data-theme="light"] .bb-page-surface .bonus-mega-badge .display-5,
html:not([data-theme="dark"]) .bb-page-surface .bonus-mega-badge .display-5 {
  color: var(--bbp-accent) !important;
}
html[data-theme="light"] .bb-page-surface .bonus-hero,
html:not([data-theme="dark"]) .bb-page-surface .bonus-hero {
  background: var(--bbp-surface) !important;
  background-image: none !important;
  border: 1px solid var(--bbp-line) !important;
}
html[data-theme="light"] .bb-page-surface .bonus-hero h1,
html[data-theme="light"] .bb-page-surface .bonus-hero h2,
html[data-theme="light"] .bb-page-surface .bonus-hero p,
html:not([data-theme="dark"]) .bb-page-surface .bonus-hero h1,
html:not([data-theme="dark"]) .bb-page-surface .bonus-hero h2,
html:not([data-theme="dark"]) .bb-page-surface .bonus-hero p {
  color: var(--bbp-ink) !important;
}

/* Fantasy reward chips: gold/cyan glows -> flat token tints. */
html[data-theme="light"] .bb-page-surface .fantasy-hero .badge,
html:not([data-theme="dark"]) .bb-page-surface .fantasy-hero .badge,
html[data-theme="light"] .bb-page-surface .badge.badge-contest-mega,
html:not([data-theme="dark"]) .bb-page-surface .badge.badge-contest-mega {
  background: var(--bbp-accent-soft) !important;
  background-image: none !important;
  color: var(--bbp-accent) !important;
  border: 1px solid #CFE0F7 !important;
  box-shadow: none !important;
}
html[data-theme="light"] .bb-page-surface .fantasy-contest-card .badge,
html:not([data-theme="dark"]) .bb-page-surface .fantasy-contest-card .badge {
  background-image: none !important;
  box-shadow: none !important;
}

/* Dashboard / sidebar balance block. */
html[data-theme="light"] .bb-page-surface .widget-card__balance,
html:not([data-theme="dark"]) .bb-page-surface .widget-card__balance {
  background: var(--bbp-surface-2) !important;
}
html[data-theme="light"] .bb-page-surface .widget-card__balance-text,
html[data-theme="light"] .bb-page-surface .widget-card__balance-label,
html:not([data-theme="dark"]) .bb-page-surface .widget-card__balance-text,
html:not([data-theme="dark"]) .bb-page-surface .widget-card__balance-label {
  color: var(--bbp-muted) !important;
}
html[data-theme="light"] .bb-page-surface .widget-card__head .nav-link,
html:not([data-theme="dark"]) .bb-page-surface .widget-card__head .nav-link {
  color: var(--bbp-ink-2) !important;
}
html[data-theme="light"] .bb-page-surface .dashboard-menu__text,
html:not([data-theme="dark"]) .bb-page-surface .dashboard-menu__text {
  color: var(--bbp-ink-2) !important;
}
html[data-theme="light"] .bb-page-surface .dashboard-menu__link.active .dashboard-menu__text,
html:not([data-theme="dark"]) .bb-page-surface .dashboard-menu__link.active .dashboard-menu__text {
  color: var(--bbp-accent) !important;
}

/* My-bets status pills. */
html[data-theme="light"] .bb-page-surface .badge.bg-warning,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-warning {
  background: #FFF4D6 !important;
  border: 1px solid #F2D48A !important;
  color: var(--bbp-warn) !important;
}

/* Casino lobby outline buttons on white cards. */
html[data-theme="light"] .casino-lobby-wrapper .btn-outline-light,
html:not([data-theme="dark"]) .casino-lobby-wrapper .btn-outline-light,
html[data-theme="light"] .btn.btn-outline-light,
html:not([data-theme="dark"]) .btn.btn-outline-light {
  border-color: var(--bbp-line-strong) !important;
  background: transparent !important;
  color: var(--bbp-ink) !important;
}
html[data-theme="light"] .casino-lobby-wrapper .btn-outline-light:hover,
html:not([data-theme="dark"]) .casino-lobby-wrapper .btn-outline-light:hover,
html[data-theme="light"] .btn.btn-outline-light:hover,
html:not([data-theme="dark"]) .btn.btn-outline-light:hover {
  border-color: var(--bbp-accent) !important;
  color: var(--bbp-accent) !important;
}

/* Fantasy contest cards: the "LIVE" pulse badge was white-on-white and the
   "Create Team" outline button used cyan. */
html[data-theme="light"] .bb-page-surface .badge.badge-in-play-pulse,
html:not([data-theme="dark"]) .bb-page-surface .badge.badge-in-play-pulse {
  background: #FDECEC !important;
  border: 1px solid #F5C2C7 !important;
  color: #B42318 !important;
  background-image: none !important;
}
html[data-theme="dark"] .bb-page-surface .badge.badge-in-play-pulse {
  background: rgba(239, 68, 68, 0.18) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  color: #FCA5A5 !important;
}
html[data-theme="light"] .bb-page-surface .btn-outline-info,
html:not([data-theme="dark"]) .bb-page-surface .btn-outline-info {
  border-color: var(--bbp-line-strong) !important;
  color: var(--bbp-accent) !important;
  background: transparent !important;
}
html[data-theme="light"] .bb-page-surface .btn-outline-info:hover,
html:not([data-theme="dark"]) .bb-page-surface .btn-outline-info:hover {
  background: var(--bbp-accent-soft) !important;
  border-color: var(--bbp-accent) !important;
}
html[data-theme="dark"] .bb-page-surface .btn-outline-info {
  border-color: #29415F !important;
  color: #7DB6FF !important;
}
/* Same fix on the betting pages (fantasy rail renders inside .home-page too). */
html[data-theme="light"] .home-page .badge.badge-in-play-pulse,
html:not([data-theme="dark"]) .home-page .badge.badge-in-play-pulse {
  background: #FDECEC !important;
  border: 1px solid #F5C2C7 !important;
  color: #B42318 !important;
  background-image: none !important;
}
html[data-theme="light"] .home-page .btn-outline-info,
html:not([data-theme="dark"]) .home-page .btn-outline-info {
  border-color: var(--bbp-line-strong) !important;
  color: var(--bbp-accent) !important;
}

/* "FAST EXECUTION" chip is a dark pill; the light-theme body colour rule was
   overriding its text. Keep it legible on the dark chip. */
html[data-theme="light"] .bb-page-surface .bg-dark.text-warning,
html:not([data-theme="dark"]) .bb-page-surface .bg-dark.text-warning,
html[data-theme="light"] .bb-page-surface .badge.bg-dark,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-dark {
  background: #1F2937 !important;
  border-color: #A16207 !important;
  color: #F5C518 !important;
}

/* ==========================================================================
   22. Dark-theme surface parity for the newly-styled content pages
   The light rules above introduced white cards on pages whose own dark styles
   only covered some children, leaving light text on white. These restore the
   dark surfaces for auth, fantasy, leaderboard and bonuses.
   ========================================================================== */
html[data-theme="dark"] .bb-page-surface .login-form,
html[data-theme="dark"] .bb-page-surface .account-area,
html[data-theme="dark"] .bb-page-surface .signup-form,
html[data-theme="dark"] .bb-page-surface .contact-card {
  background: #0E1728 !important;
  border-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .bb-page-surface .login-form__title,
html[data-theme="dark"] .bb-page-surface .form-label,
html[data-theme="dark"] .bb-page-surface .form-check-label,
html[data-theme="dark"] .bb-page-surface .sm-text,
html[data-theme="dark"] .bb-page-surface .d-inline-block.sm-text {
  color: #C7D2E0 !important;
}
html[data-theme="dark"] .bb-page-surface .login-page {
  background: #0B1220 !important;
  background-image: none !important;
}
html[data-theme="dark"] .bb-page-surface .form-control,
html[data-theme="dark"] .bb-page-surface .form-select {
  background: #16233A !important;
  border-color: #29415F !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .bb-page-surface .form-control::placeholder { color: #7E8DA4 !important; }

/* Fantasy / leaderboard / bonuses dark cards. */
html[data-theme="dark"] .bb-page-surface .leaderboard-card,
html[data-theme="dark"] .bb-page-surface .podium-card,
html[data-theme="dark"] .bb-page-surface .leaderboard-card-head,
html[data-theme="dark"] .bb-page-surface .bonus-card,
html[data-theme="dark"] .bb-page-surface .widget-card {
  background: #0E1728 !important;
  border-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .bb-page-surface .leaderboard-title,
html[data-theme="dark"] .bb-page-surface .leaderboard-card-head,
html[data-theme="dark"] .bb-page-surface .leaderboard-card-head * {
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .bb-page-surface .bonus-hero,
html[data-theme="dark"] .bb-page-surface .bonus-mega-badge {
  background: #16233A !important;
  background-image: none !important;
  border-color: #29415F !important;
}
html[data-theme="dark"] .bb-page-surface .bonus-mega-badge .display-5 { color: #7DB6FF !important; }
html[data-theme="dark"] .bb-page-surface .fantasy-hero,
html[data-theme="dark"] .bb-page-surface .fantasy-contest-card {
  background: #0E1728 !important;
  border-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bg-warning.text-dark,
html[data-theme="dark"] .bb-page-surface .badge.bg-warning {
  background: rgba(245, 197, 24, 0.16) !important;
  border-color: rgba(245, 197, 24, 0.4) !important;
  color: #F5C518 !important;
}
/* Header control captions (odds format / language) on the dark canvas. */
html[data-theme="dark"] .bb-page-surface .odds-format-text,
html[data-theme="dark"] .bb-page-surface .header-primary .language-text {
  color: #C7D2E0 !important;
}

/* Remaining dark-mode hero/badge text: these sat inside gradient heroes that
   were flattened to a dark surface, leaving near-invisible labels. */
html[data-theme="dark"] .bb-page-surface .btn-outline-brand {
  border-color: #29415F !important;
  color: #7DB6FF !important;
  background: transparent !important;
}
html[data-theme="dark"] .bb-page-surface .badge,
html[data-theme="dark"] .bb-page-surface .badge * {
  color: #C7D2E0 !important;
}
/* ...except pills that already carry their own themed colours. */
html[data-theme="dark"] .bb-page-surface .badge.category-count-pill,
html[data-theme="dark"] .bb-page-surface .badge.category-count-pill * {
  color: #65B8E8 !important;
}
html[data-theme="dark"] .bb-page-surface .badge.badge-contest-mega,
html[data-theme="dark"] .bb-page-surface .badge.badge-contest-h2h,
html[data-theme="dark"] .bb-page-surface .badge.badge-contest-practice,
html[data-theme="dark"] .bb-page-surface .badge.badge-sport-league,
html[data-theme="dark"] .bb-page-surface .badge.badge-in-play-pulse,
html[data-theme="dark"] .bb-page-surface .badge.bg-primary,
html[data-theme="dark"] .bb-page-surface .badge.bg-info {
  background: #16233A !important;
  border-color: #29415F !important;
  color: #7DB6FF !important;
}
html[data-theme="dark"] .bb-page-surface .text-white,
html[data-theme="dark"] .bb-page-surface .bonus-hero .text-white,
html[data-theme="dark"] .bb-page-surface .display-6.text-white {
  color: #E2E8F0 !important;
}

/* Leaderboard rank medals: white text on the gold/silver/bronze fills is
   correct in light mode but the dark badge override above recoloured it. */
html[data-theme="dark"] .bb-page-surface .badge[style*="#FFD700"],
html[data-theme="dark"] .bb-page-surface .badge[style*="#C0C0C0"],
html[data-theme="dark"] .bb-page-surface .badge[style*="#CD7F32"],
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(19, 136, 8"] {
  color: #0B1220 !important;
  background-image: none !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="#FFD700"] *,
html[data-theme="dark"] .bb-page-surface .badge[style*="#C0C0C0"] *,
html[data-theme="dark"] .bb-page-surface .badge[style*="#CD7F32"] * {
  color: #0B1220 !important;
}

/* Accuracy chips on the leaderboard were green-on-green in dark mode. */
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(19, 136, 8"] {
  background: rgba(76, 217, 100, 0.16) !important;
  border-color: rgba(76, 217, 100, 0.4) !important;
  color: #86EFAC !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(19, 136, 8"] * {
  color: #86EFAC !important;
}
/* The neutral rank chip uses the template's grey; keep it readable. */
html[data-theme="dark"] .bb-page-surface .leaderboard-table .badge:not([style*="#FFD700"]):not([style*="#C0C0C0"]):not([style*="#CD7F32"]):not([style*="rgba(19, 136, 8"]) {
  background: #16233A !important;
  border: 1px solid #29415F !important;
  color: #C7D2E0 !important;
}

/* A `bg--info` pill keeps its teal fill; the generic dark badge colour made
   its white text unreadable. Restore white on the coloured fills. */
html[data-theme="dark"] .bb-page-surface .badge.bg--info,
html[data-theme="dark"] .bb-page-surface .badge.bg--info *,
html[data-theme="dark"] .bb-page-surface .badge.bg--base,
html[data-theme="dark"] .bb-page-surface .badge.bg--success,
html[data-theme="dark"] .bb-page-surface .badge.bg--danger {
  color: #FFFFFF !important;
}
html[data-theme="light"] .bb-page-surface .badge.bg--info,
html[data-theme="light"] .bb-page-surface .badge.bg--base,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg--info,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg--base {
  color: #FFFFFF !important;
}

/* Achievement chips ware built as "tinted background + matching bright text".
   The earlier generic dark badge rule forced a light text colour onto fills
   that were never in our vocabulary. Rather than fight each inline value, give
   every non-transparent inline-tinted badge a neutral surface and let its own
   text colour stand, which is legible in both themes. */
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(0, 229, 251"],
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(255, 215, 0"],
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(14, 151, 251"] {
  background: #16233A !important;
  border: 1px solid #29415F !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(0, 229, 251"],
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(0, 229, 251"] * {
  color: #7DD3FC !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(255, 215, 0"],
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(255, 215, 0"] * {
  color: #F5C518 !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(14, 151, 251"],
html[data-theme="dark"] .bb-page-surface .badge[style*="rgba(14, 151, 251"] * {
  color: #7DB6FF !important;
}

/* Leaderboard medal chip: the grain of the earlier rules stripped the gold
   fill but kept the dark text. Re-assert the medal colours explicitly. */
html[data-theme="dark"] .bb-page-surface .badge[style*="#FFD700"] {
  background: #FFD700 !important;
  border: 1px solid #B8860B !important;
  color: #0B1220 !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="#C0C0C0"] {
  background: #C0C0C0 !important;
  border: 1px solid #8A8A8A !important;
  color: #0B1220 !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="#CD7F32"] {
  background: #CD7F32 !important;
  border: 1px solid #8B5A2B !important;
  color: #1A1206 !important;
}

/* Casino crash hero chips keep their saturated amber/cyan fills, so their text
   must stay white rather than inherit the neutral dark-badge colour. */
html[data-theme="dark"] .bb-page-surface .badge.top-badge-hot,
html[data-theme="dark"] .bb-page-surface .badge.top-badge-hot *,
html[data-theme="dark"] .bb-page-surface .badge.top-badge-cyan,
html[data-theme="dark"] .bb-page-surface .badge.top-badge-cyan * {
  color: #0B1220 !important;
}
html[data-theme="light"] .bb-page-surface .badge.top-badge-hot,
html[data-theme="light"] .bb-page-surface .badge.top-badge-cyan,
html:not([data-theme="dark"]) .bb-page-surface .badge.top-badge-hot,
html:not([data-theme="dark"]) .bb-page-surface .badge.top-badge-cyan {
  color: #0B1220 !important;
}

/* ==========================================================================
   23. Fantasy hero: cyan-on-cyan chip and a light-on-nothing title
   The hero was authored for a dark gradient. On the light surface the chip's
   `#00E5FB` text sat on a `rgba(0,229,251,.15)` tint (1.03:1) and the
   `fantasy-hero-title` gradient left the heading effectively invisible.
   ========================================================================== */
html[data-theme="light"] .bb-page-surface .fantasy-hero .badge[style*="0, 229, 251"],
html:not([data-theme="dark"]) .bb-page-surface .fantasy-hero .badge[style*="0, 229, 251"],
html[data-theme="light"] .bb-page-surface .badge[style*="color: #00E5FB"],
html:not([data-theme="dark"]) .bb-page-surface .badge[style*="color: #00E5FB"] {
  background: #E6F7FB !important;
  background-image: none !important;
  border: 1px solid #A9DCE8 !important;
  color: #0A5566 !important;
  box-shadow: none !important;
}
html[data-theme="light"] .bb-page-surface .badge[style*="color: #00E5FB"] *,
html:not([data-theme="dark"]) .bb-page-surface .badge[style*="color: #00E5FB"] * {
  color: #0A5566 !important;
}
html[data-theme="light"] .bb-page-surface .fantasy-hero-title,
html:not([data-theme="dark"]) .bb-page-surface .fantasy-hero-title {
  background: none !important;
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
  color: var(--bbp-ink) !important;
}
html[data-theme="dark"] .bb-page-surface .fantasy-hero .badge[style*="0, 229, 251"],
html[data-theme="dark"] .bb-page-surface .badge[style*="color: #00E5FB"] {
  background: rgba(0, 229, 251, 0.14) !important;
  border: 1px solid rgba(0, 229, 251, 0.45) !important;
  color: #7DE3F5 !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="color: #00E5FB"] * {
  color: #7DE3F5 !important;
}
html[data-theme="dark"] .bb-page-surface .fantasy-hero-title {
  background: none !important;
  -webkit-text-fill-color: currentColor !important;
  color: #E2E8F0 !important;
}

/* The fantasy chip is not necessarily inside `.fantasy-hero` (the hero markup
   differs per tab), so match the inline cyan signature directly. */
html[data-theme="light"] .bb-page-surface .badge[style*="#00E5FB"],
html:not([data-theme="dark"]) .bb-page-surface .badge[style*="#00E5FB"] {
  background: #E6F7FB !important;
  background-image: none !important;
  border: 1px solid #A9DCE8 !important;
  color: #0A5566 !important;
  box-shadow: none !important;
}
html[data-theme="light"] .bb-page-surface .badge[style*="#00E5FB"] *,
html:not([data-theme="dark"]) .bb-page-surface .badge[style*="#00E5FB"] * {
  color: #0A5566 !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="#00E5FB"] {
  background: rgba(0, 229, 251, 0.14) !important;
  border: 1px solid rgba(0, 229, 251, 0.45) !important;
  color: #7DE3F5 !important;
}
html[data-theme="dark"] .bb-page-surface .badge[style*="#00E5FB"] * {
  color: #7DE3F5 !important;
}
/* Any gradient hero title: strip the clip so the heading is visible. */
.bb-page-surface .fantasy-hero-title,
.bb-page-surface [class*="hero-title"] {
  background-image: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: currentColor !important;
}
html[data-theme="light"] .bb-page-surface .fantasy-hero-title,
html:not([data-theme="dark"]) .bb-page-surface .fantasy-hero-title,
html[data-theme="light"] .bb-page-surface [class*="hero-title"],
html:not([data-theme="dark"]) .bb-page-surface [class*="hero-title"] {
  color: var(--bbp-ink) !important;
}
html[data-theme="dark"] .bb-page-surface .fantasy-hero-title,
html[data-theme="dark"] .bb-page-surface [class*="hero-title"] {
  color: #E2E8F0 !important;
}

/* ==========================================================================
   24. Bet slip: minimal, readable, nothing clipped
   The stock slip stacked a top-up bar, an inner scroll box and a footer with
   mismatched heights, leaving a dead gap mid-card and pushing the Place Bet
   row out of view. This makes it one predictable column.
   ========================================================================== */
.betslip {
  display: flex !important;
  flex-direction: column !important;
  overflow: hidden !important;
}
.betslip .bet-slip-container.betslip-inner {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}
/* The selection list should take the space, not leave a blank block. */
.betslip .betslip__list {
  flex: 0 0 auto !important;
  margin-bottom: 0 !important;
}
.betslip .betslip__list > li {
  margin-bottom: 8px !important;
}
.betslip .empty-slip-message { flex: 1 1 auto; }

/* Selection card: flat, tokenised, no dead height. */
.betslip .betslip__list > li,
.betslip .bet-slip-item {
  border: 1px solid var(--bbp-line) !important;
  border-radius: 8px !important;
  background: var(--bbp-surface) !important;
  padding: 10px 12px !important;
}
.betslip .betslip-item-return__text,
.betslip .betslip-item-stake__label,
.betslip .betslip__list-market {
  color: var(--bbp-muted) !important;
  font-size: 12px !important;
}
.betslip .betslip__list-match,
.betslip .betslip__list-team {
  color: var(--bbp-ink) !important;
  font-weight: 600 !important;
  font-size: 13px !important;
}
.betslip .bet-return-amount,
.betslip .total-return-amount { color: var(--bbp-ink) !important; font-weight: 700 !important; }

/* The footer must always sit inside the panel. */
.betslip .betslip__footer {
  flex: 0 0 auto !important;
  background: var(--bbp-surface) !important;
  border-top: 1px solid var(--bbp-line) !important;
  padding: 12px !important;
}
.betslip .betslip__footer-bottom {
  gap: 8px !important;
}
.betslip .betslip__footer-bottom .form-control {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 42px !important;
}
.betslip .place-btn { flex: 0 0 auto !important; }
.betslip .betslip__footer-btn.bet-place-btn {
  height: 42px !important;
  min-width: 132px !important;
  padding: 0 18px !important;
  border-radius: 6px !important;
  font-weight: 700 !important;
}
.betslip .delete-btn.deleteAll {
  flex: 0 0 auto !important;
  width: 42px !important;
  height: 42px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 1px solid var(--bbp-line-strong) !important;
  border-radius: 6px !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-muted) !important;
}
.betslip .delete-btn.deleteAll:hover {
  border-color: #DC2626 !important;
  color: #DC2626 !important;
}

/* Hide the top-up bar when the user is already signed in — it duplicated the
   header control and pushed the selections down. */
.betslip .betslip-topup-action { padding: 8px 12px !important; }
.betslip .betslip-add-points-btn {
  min-height: 34px !important;
  font-size: 12.5px !important;
}

/* Empty stake inputs should show the placeholder, not a literal 0. */
.betslip input.investAmount::-webkit-outer-spin-button,
.betslip input.investAmount::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.betslip input.investAmount { -moz-appearance: textfield; }

/* Quick-stake chips: consistent, tappable. */
.betslip .quick-stake-btn {
  min-height: 30px !important;
  min-width: 46px !important;
  padding: 4px 10px !important;
  border: 1px solid var(--bbp-line-strong) !important;
  border-radius: 6px !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink-2) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}
.betslip .quick-stake-btn:hover { border-color: var(--bbp-accent) !important; color: var(--bbp-accent) !important; }
.betslip .quick-stake-btn.max-btn { border-color: var(--bbp-accent) !important; color: var(--bbp-accent) !important; }

html[data-theme="dark"] .betslip .betslip__list > li,
html[data-theme="dark"] .betslip .bet-slip-item {
  background: #0E1728 !important;
  border-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .betslip .betslip__footer {
  background: #0E1728 !important;
  border-top-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .betslip .betslip__list-match,
html[data-theme="dark"] .betslip .betslip__list-team,
html[data-theme="dark"] .betslip .bet-return-amount,
html[data-theme="dark"] .betslip .total-return-amount { color: #E2E8F0 !important; }
html[data-theme="dark"] .betslip .quick-stake-btn {
  background: #16233A !important;
  border-color: #29415F !important;
  color: #C7D2E0 !important;
}
html[data-theme="dark"] .betslip .delete-btn.deleteAll {
  background: #16233A !important;
  border-color: #29415F !important;
}
/* Mobile: the slip is a full-height sheet, so let it breathe. */
@media (max-width: 767.98px) {
  .betslip .betslip__footer { padding: 10px 12px !important; }
  .betslip .betslip__footer-btn.bet-place-btn { min-width: 0 !important; flex: 1 1 auto !important; }
}

/* ==========================================================================
   25. Bet slip: height fit + selection header
   The slip is a fixed drawer; its total height must stay inside the viewport
   so nothing (league row, footer) is clipped at the top or bottom.
   ========================================================================== */
@media (min-width: 992px) {
  .betslip {
    max-height: calc(100vh - 120px) !important;
  }
}
@media (max-width: 991.98px) {
  .betslip {
    max-height: 100vh !important;
    height: 100vh !important;
  }
}
.betslip .betslip-inner,
.betslip .bet-slip-container {
  min-height: 0 !important;
}

/* Selection header: the league row was being clipped by the card padding. */
.betslip .betslip-item-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 8px !important;
  padding: 0 !important;
  min-height: 22px !important;
}
.betslip .betslip-item-league {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}
.betslip .betslip-item-league__name {
  font-size: 11.5px !important;
  font-weight: 600 !important;
  color: var(--bbp-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.betslip .betslip-item-close {
  flex: 0 0 auto !important;
  width: 22px !important;
  height: 22px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border: 0 !important;
  border-radius: 4px !important;
  background: transparent !important;
  color: var(--bbp-muted) !important;
  cursor: pointer !important;
}
.betslip .betslip-item-close:hover { background: var(--bbp-head-bg) !important; color: var(--bbp-ink) !important; }

.betslip .betslip-item-body { display: flex !important; flex-direction: column !important; gap: 8px !important; }
.betslip .betslip-item-teams { display: flex !important; flex-wrap: wrap !important; gap: 6px 14px !important; }
.betslip .betslip-item-team { display: inline-flex !important; align-items: center !important; gap: 6px !important; }
.betslip .betslip-item-team__logo { width: 18px !important; height: 18px !important; object-fit: contain !important; }
.betslip .betslip-item-team__name { font-size: 13px !important; font-weight: 700 !important; color: var(--bbp-ink) !important; }
.betslip .betslip-item-market { display: flex !important; flex-direction: column !important; gap: 2px !important; }
.betslip .betslip-item-market__type { font-size: 11.5px !important; color: var(--bbp-muted) !important; }
.betslip .betslip-item-market__wrapper {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
.betslip .betslip-item-market__label { font-size: 13px !important; font-weight: 600 !important; color: var(--bbp-ink) !important; }
.betslip .betslip-item-market__score {
  font-size: 14px !important;
  font-weight: 800 !important;
  color: var(--bbp-back) !important;
  font-variant-numeric: tabular-nums;
}
.betslip .betslip-item-return { margin-top: 2px !important; }

/* The bottom footer stake field duplicates the per-selection stake box; it is
   only useful for multi-bet. Hide it for a single selection so the user sees
   one clear stake input. */
.betslip.is-single .betslip__footer-bottom .form-control { display: none !important; }
.betslip.is-single .betslip__footer-bottom { justify-content: space-between !important; }

html[data-theme="dark"] .betslip .betslip-item-league__name,
html[data-theme="dark"] .betslip .betslip-item-market__type { color: #8CA0BC !important; }
html[data-theme="dark"] .betslip .betslip-item-team__name,
html[data-theme="dark"] .betslip .betslip-item-market__label { color: #E2E8F0 !important; }
html[data-theme="dark"] .betslip .betslip-item-market__score { color: #7DB6FF !important; }

/* ==========================================================================
   26. Bet slip footer: single, minimal control set
   For a single bet the stock footer repeated the stake three times (per
   selection, "Stake Amount (PTS)", and a footer input) plus bet-type, cog and
   a disclaimer pill. That made the footer 413px tall and pushed Place Bet off
   screen. One stake control, chips, total, button.
   ========================================================================== */
.betslip .betslip__footer { padding: 10px 12px !important; }
.betslip .betslip__footer-list { display: flex !important; flex-direction: column !important; gap: 8px !important; }

/* Bet type: only meaningful with two or more selections. */
.betslip.is-single .betslip-select { display: none !important; }

/* Single stake control: for one selection the per-selection stake box is the
   one next to the runner, so hide the footer duplicate instead. */
.betslip.is-single .betslip__list-ratio .position-relative { display: none !important; }
.betslip.is-single .betslip__footer-bottom .form-control { display: none !important; }
.betslip.is-single .betslip__footer-bottom { justify-content: space-between !important; }

.betslip .betslip__list-ratio > .d-flex:first-child {
  margin-bottom: 4px !important;
}
.betslip .betslip__list-ratio .fw-bold { font-size: 12.5px !important; color: var(--bbp-ink-2) !important; }
.betslip .edit-stakes-btn { font-size: 11.5px !important; }

.betslip .betslip-input-inner {
  position: absolute !important;
  left: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  font-size: 11.5px !important;
  color: var(--bbp-muted) !important;
  pointer-events: none !important;
}
.betslip .betslip__footer input.amount,
.betslip .betslip__footer-bottom .form-control {
  height: 42px !important;
  padding-left: 44px !important;
  border: 1px solid var(--bbp-line-strong) !important;
  border-radius: 6px !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}
.betslip .betslip__footer input.amount:focus,
.betslip .betslip__footer-bottom .form-control:focus {
  border-color: var(--bbp-accent) !important;
  box-shadow: 0 0 0 3px var(--bbp-accent-soft) !important;
}

/* Chips: one tidy row, wrapping to two. */
.betslip .quick-stake-container {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px !important;
  margin-top: 8px !important;
}

/* Summary line. */
.betslip .betslip__list-content { margin: 0 !important; }
.betslip .betslip__list-match { font-size: 12px !important; color: var(--bbp-muted) !important; }
.betslip .bet-return {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  margin: 0 !important;
}

/* Footnote: one short line instead of a pill block. */
.betslip .freeplay-disclaimer-pill {
  margin: 8px 12px 10px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  font-size: 10.5px !important;
  line-height: 1.35 !important;
  color: var(--bbp-muted) !important;
}
.betslip .freeplay-disclaimer-pill i { display: none !important; }

html[data-theme="dark"] .betslip .betslip__list-ratio .fw-bold,
html[data-theme="dark"] .betslip .betslip__list-match { color: #94A3B8 !important; }
html[data-theme="dark"] .betslip .betslip__footer input.amount,
html[data-theme="dark"] .betslip .betslip__footer-bottom .form-control {
  background: #16233A !important;
  border-color: #29415F !important;
  color: #E2E8F0 !important;
}
html[data-theme="dark"] .betslip .freeplay-disclaimer-pill { color: #7E8DA4 !important; }

@media (max-width: 767.98px) {
  .betslip .quick-stake-container { gap: 5px !important; }
  .betslip .quick-stake-btn { min-width: 42px !important; font-size: 11.5px !important; }
}

/* ==========================================================================
   27. Desktop bet slip height
   main.css pins `.betslip` to `height: calc(100vh - var(--header-h))` while it
   is `position: sticky`, so the panel's own content could push past the fold
   and the Place Bet row ended up partly off screen. Cap it to what is actually
   visible (sticky top offset + bottom breathing room) and let the inner list
   scroll instead.
   ========================================================================== */
@media (min-width: 992px) {
  .betslip {
    height: auto !important;
    /* The slip is `position: sticky` inside the betting shell, which starts
       below the site header (~125px) and adds the sticky offset (~84px), so it
       renders from about y=209. Cap the panel to what remains below that so the
       Place Bet row is always on screen. 100dvh keeps mobile chrome honest. */
    max-height: calc(100dvh - 225px) !important;
    position: sticky !important;
    top: var(--header-h, 84px) !important;
    overflow: hidden !important;
  }
  .betslip .bet-slip-container.betslip-inner {
    overflow-y: auto !important;
    min-height: 0 !important;
    max-height: calc(100dvh - 280px) !important;
  }
  .betslip .betslip__footer { position: sticky !important; bottom: 0 !important; z-index: 2; }
}

/* ==========================================================================
   28. Home banner: full width, short strip
   The banner spans the whole column and stays a short strip (like the
   reference); `object-fit: cover` trims a thin band top/bottom so the width is
   always filled with no empty side space.
   ========================================================================== */
.home-page #bbHeroShowcase {
  max-height: none !important;
  max-width: none !important;
  overflow: hidden !important;
  border-radius: 10px !important;
  padding: 0 !important;
  margin: 0 0 8px !important;
  width: 100% !important;
}
.home-page #bbHeroShowcase .hero-slides-wrapper,
.home-page #bbHeroShowcase .hero-slide,
.home-page #bbHeroShowcase .hero-slide-link {
  height: 230px !important;
  max-height: 230px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}
.home-page #bbHeroShowcase .hero-banner-image {
  display: block !important;
  width: 100% !important;
  height: 230px !important;
  max-height: 230px !important;
  aspect-ratio: auto !important;
  object-fit: cover !important;
  object-position: center 40% !important;
  background: var(--bbp-surface-2) !important;
}
@media (max-width: 991.98px) {
  .home-page #bbHeroShowcase .hero-slides-wrapper,
  .home-page #bbHeroShowcase .hero-slide,
  .home-page #bbHeroShowcase .hero-slide-link,
  .home-page #bbHeroShowcase .hero-banner-image {
    height: 170px !important;
    max-height: 170px !important;
  }
}
@media (max-width: 575.98px) {
  .home-page #bbHeroShowcase .hero-slides-wrapper,
  .home-page #bbHeroShowcase .hero-slide,
  .home-page #bbHeroShowcase .hero-slide-link,
  .home-page #bbHeroShowcase .hero-banner-image {
    height: 150px !important;
    max-height: 150px !important;
  }
}

/* ==========================================================================
   28b. Home stack spacing: banner -> tabs -> live -> feed
   The top-level home columns sit in a `.row g-3`, which added ~16px between
   every block. Tighten the stack so the banner, sport tabs and first matches
   read as one continuous board.
   ========================================================================== */
.home-page .sports-body > .row {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
  row-gap: 0 !important;
}
.home-page .sports-body > .row > .col-12 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.home-page #bbHeroShowcase { margin-bottom: 6px !important; }
.home-page .sport-tab-strip { margin-bottom: 6px !important; }
.home-page .live-now-rail { margin-bottom: 6px !important; }
.home-page .match-filter-toolbar { margin-bottom: 4px !important; }

@media (max-width: 767.98px) {
  /* Compact the filter bar on a phone. The tab row and the search each take a
     full line so nothing overflows the viewport; both stay short. */
  .home-page .match-filter-toolbar {
    padding: 5px 6px !important;
    gap: 5px !important;
    flex-wrap: wrap !important;
    overflow: hidden !important;
  }
  .home-page .match-filter-tabs {
    flex: 1 1 100% !important;
    flex-wrap: nowrap !important;
    gap: 4px !important;
    min-width: 0 !important;
    overflow-x: auto !important;
    scrollbar-width: none;
  }
  .home-page .match-filter-tabs::-webkit-scrollbar { display: none; }
  .home-page .match-tab-btn {
    flex: 0 0 auto !important;
    padding: 5px 9px !important;
    font-size: 11.5px !important;
    white-space: nowrap !important;
  }
  .home-page .match-tab-btn i { margin-right: 3px !important; }
  .home-page .match-search-wrapper { flex: 1 1 100% !important; width: 100% !important; min-width: 0 !important; }
  .home-page .match-search-input {
    width: 100% !important;
    height: 32px !important;
    padding: 4px 8px 4px 28px !important;
    font-size: 12px !important;
  }
  .home-page .match-search-wrapper .search-icon { font-size: 13px !important; left: 9px !important; }
}

/* Carousel controls (dots) were hidden by the polish layer; bring them back as
   a small overlay on the bottom-right of the banner so the user can navigate. */
.home-page #bbHeroShowcase .hero-carousel-nav {
  display: block !important;
  position: absolute !important;
  right: 10px !important;
  bottom: 8px !important;
  left: auto !important;
  z-index: 3 !important;
  padding: 0 !important;
  background: rgba(8, 15, 28, 0.45) !important;
  border-radius: 999px !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.home-page #bbHeroShowcase .hero-carousel-controls {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 4px 8px !important;
}
.home-page #bbHeroShowcase .hero-arrow-btn {
  width: 22px !important;
  height: 22px !important;
  border: 0 !important;
  background: transparent !important;
  color: #FFFFFF !important;
  font-size: 13px !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.home-page #bbHeroShowcase .hero-dots { display: flex !important; align-items: center !important; gap: 4px !important; }
.home-page #bbHeroShowcase .hero-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.5) !important;
  cursor: pointer !important;
}
.home-page #bbHeroShowcase .hero-dot.active { background: #FFFFFF !important; }

/* ==========================================================================
   29. Sport tab strip (Cricket / Football / Tennis / ...) under the banner
   Matches the reference: a light bar of sport tabs where the active tab is a
   filled accent chip, sitting directly below the hero.
   ========================================================================== */
.home-page .sport-tab-strip {
  display: flex !important;
  align-items: stretch !important;
  gap: 0 !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  background: var(--bbp-surface) !important;
  border: 1px solid var(--bbp-line) !important;
  border-radius: 8px !important;
  margin: 0 0 10px !important;
  padding: 0 !important;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.home-page .sport-tab-strip::-webkit-scrollbar { display: none; }

.home-page .sport-tab-strip__item {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex: 0 0 auto !important;
  min-height: 40px !important;
  padding: 0 14px !important;
  border: 0 !important;
  border-right: 1px solid var(--bbp-line) !important;
  background: transparent !important;
  color: var(--bbp-ink-2) !important;
  font-size: 12.5px !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  cursor: pointer !important;
}
.home-page .sport-tab-strip__item:last-child { border-right: 0 !important; }
.home-page .sport-tab-strip__item:hover {
  background: var(--bbp-surface-2) !important;
  color: var(--bbp-accent) !important;
}
.home-page .sport-tab-strip__item.active {
  background: var(--bbp-accent) !important;
  color: #FFFFFF !important;
  border-right-color: var(--bbp-accent) !important;
}
.home-page .sport-tab-strip__item i {
  font-size: 15px !important;
  color: inherit !important;
}
.home-page .sport-tab-strip__count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 18px !important;
  height: 16px !important;
  padding: 0 5px !important;
  border-radius: 999px !important;
  background: var(--bbp-surface-2) !important;
  color: var(--bbp-muted) !important;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  font-variant-numeric: tabular-nums;
}
.home-page .sport-tab-strip__item.active .sport-tab-strip__count {
  background: rgba(255, 255, 255, 0.22) !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .home-page .sport-tab-strip {
  background: #0E1728 !important;
  border-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .home-page .sport-tab-strip__item {
  color: #C7D2E0 !important;
  border-right-color: var(--bbp-grid-line) !important;
}
html[data-theme="dark"] .home-page .sport-tab-strip__item:hover {
  background: #16233A !important;
  color: #7DB6FF !important;
}
html[data-theme="dark"] .home-page .sport-tab-strip__count {
  background: #16233A !important;
  color: #8CA0BC !important;
}

/* ==========================================================================
   30. Unified numerals
   Every figure a punter reads (odds, scores, counts, stakes, balances, times)
   uses the same tabular style so columns line up and digits never jitter as
   values update. The reference relies on this for dense tables.
   ========================================================================== */
.home-page .odd-val,
.home-page .odd-vol,
.home-page .point,
.home-page .live-now-card__odds,
.home-page .live-now-card__score,
.home-page .sport-tab-strip__count,
.home-page .league-group-heading__count,
.home-page .runner-name + small,
.home-page .bet-return-amount,
.home-page .total-return-amount,
.home-page .betslip-balance-pts,
.home-page .match-table td,
.home-page .match-table th,
.home-page .market-table td,
.home-page .market-table th {
  font-variant-numeric: tabular-nums !important;
  font-feature-settings: "tnum" 1 !important;
  font-family: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
/* Keep the runner names in the normal face; only figures go mono. */
.home-page .market-table .runner-name,
.home-page .match-table .runner-name {
  font-family: inherit !important;
  font-variant-numeric: normal !important;
}

/* Timing / kickoff cells: quiet and aligned. */
.home-page .match-table td:first-child,
.home-page .market-table td:first-child {
  color: var(--bbp-ink-2) !important;
}
html[data-theme="dark"] .home-page .match-table td:first-child,
html[data-theme="dark"] .home-page .market-table td:first-child {
  color: #C7D2E0 !important;
}

/* Reference-style neutral dash for a price that is not offered. */
.home-page .market-table .odd-val:only-child,
.home-page .market-table .oddBtn .odd-val {
  letter-spacing: 0;
}
.home-page .market-table td .text-muted,
.home-page .match-table td .text-muted {
  font-variant-numeric: tabular-nums;
}

/* ==========================================================================
   31. Reference odds grid: 3 Back + 3 Lay columns
   Colours sampled from the supplied reference screenshot:
     Back fill #A5D9FE, Lay fill #F8D0CE, canvas #F8F8F8, grid #E7E7E7.
   The build stores ONE price per runner, so only the first level carries a
   price; levels 2-3 render as an explicit dash rather than an invented number.
   ========================================================================== */
.home-page .market-table {
  table-layout: fixed !important;
}
.home-page .market-table th.runner-col,
.home-page .market-table td.runner-col { width: auto !important; }

/* Six narrow price columns + the runner column. */
.home-page .market-table th.col-group { font-size: 11.5px !important; }
.home-page .market-table td.cell-back,
.home-page .market-table td.cell-lay {
  width: 62px !important;
  min-width: 62px !important;
  padding: 2px !important;
}

/* Column group headers: Back = blue pill, Lay = pink pill (reference). */
.home-page .col-head-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 2px 12px !important;
  border-radius: 4px !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  text-transform: uppercase !important;
}
.home-page .col-head-pill--back { background: #A5D9FE !important; color: #0B4F9C !important; }
.home-page .col-head-pill--lay  { background: #F8D0CE !important; color: #9E1C4B !important; }

/* Price cells: reference fills. */
.home-page .market-table td.cell-back .oddBtn.btn-back { background: #A5D9FE !important; }
.home-page .market-table td.cell-back .oddBtn.btn-back:hover:not(:disabled) { background: #8FCCFB !important; }
.home-page .market-table td.cell-lay .oddBtn.btn-lay  { background: #F8D0CE !important; }
.home-page .market-table td.cell-lay .oddBtn.btn-lay:hover:not(:disabled) { background: #F4BEBb !important; }

.home-page .market-table td.cell-back .oddBtn .odd-val { color: #0B4F9C !important; }
.home-page .market-table td.cell-back .oddBtn .odd-vol { color: #0B4F9C !important; }
.home-page .market-table td.cell-lay .oddBtn .odd-val  { color: #9E1C4B !important; }
.home-page .market-table td.cell-lay .oddBtn .odd-vol  { color: #9E1C4B !important; }

/* Empty depth levels: a quiet dash, not a blank hole. */
.home-page .market-table .cell-empty {
  background: #F8F8F8 !important;
  border-right: 1px solid #E7E7E7 !important;
  border-bottom: 1px solid #E7E7E7 !important;
}
.home-page .market-table .depth-none {
  display: block !important;
  color: #C4C4C4 !important;
  font-size: 13px !important;
  line-height: 30px !important;
  font-variant-numeric: tabular-nums;
}

/* Suspended: a white band with red uppercase text, as in the reference. */
.home-page .market-table .oddBtn.locked,
.home-page .market-table .btn-locked {
  background: #FFFFFF !important;
  border-color: #E7E7E7 !important;
  color: #C0392B !important;
}
.home-page .market-table td.cell-back .btn-locked,
.home-page .market-table td.cell-lay .btn-locked {
  background: #FFFFFF !important;
}
.home-page .market-table .btn-locked .la-lock { color: #9AA0A6 !important; }

/* Selected price: keep the accent fill so it is unmistakably chosen. */
.home-page .market-table td.cell-back .oddBtn.active,
.home-page .market-table td.cell-lay .oddBtn.active {
  background: var(--bbp-accent) !important;
  border-color: var(--bbp-accent) !important;
}
.home-page .market-table td.cell-back .oddBtn.active .odd-val,
.home-page .market-table td.cell-back .oddBtn.active .odd-vol,
.home-page .market-table td.cell-lay .oddBtn.active .odd-val,
.home-page .market-table td.cell-lay .oddBtn.active .odd-vol { color: #FFFFFF !important; }

/* Dark parity for the grid. */
html[data-theme="dark"] .home-page .market-table .cell-empty {
  background: #0E1728 !important;
  border-right-color: #23324A !important;
  border-bottom-color: #23324A !important;
}
html[data-theme="dark"] .home-page .market-table .depth-none { color: #3A4A61 !important; }
html[data-theme="dark"] .home-page .market-table td.cell-back .oddBtn.btn-back { background: #1B3A5F !important; }
html[data-theme="dark"] .home-page .market-table td.cell-lay .oddBtn.btn-lay  { background: #4A2230 !important; }
html[data-theme="dark"] .home-page .market-table td.cell-back .oddBtn .odd-val,
html[data-theme="dark"] .home-page .market-table td.cell-back .oddBtn .odd-vol { color: #9EC5F0 !important; }
html[data-theme="dark"] .home-page .market-table td.cell-lay .oddBtn .odd-val,
html[data-theme="dark"] .home-page .market-table td.cell-lay .oddBtn .odd-vol { color: #F0A8BC !important; }
html[data-theme="dark"] .home-page .market-table .oddBtn.locked,
html[data-theme="dark"] .home-page .market-table .btn-locked {
  background: #0E1728 !important;
  border-color: #23324A !important;
  color: #F87171 !important;
}

/* Narrow screens: the six price columns would crush the runner name, so let
   the table scroll horizontally instead of squashing. */
@media (max-width: 991.98px) {
  .home-page .market-table { min-width: 520px !important; }
  .home-page .market-table th.col-group { font-size: 10.5px !important; }
  .home-page .market-table td.cell-back,
  .home-page .market-table td.cell-lay { width: 46px !important; min-width: 46px !important; }
}

/* Explicit column widths: with table-layout:fixed the runner column must not
   absorb the space the six price columns need. */
.home-page .market-table .col-runner { width: auto !important; }
.home-page .market-table .col-prices  { width: 64px !important; }
@media (max-width: 991.98px) {
  .home-page .market-table .col-prices { width: 48px !important; }
}

/* The runner column inherited table-hover striping and a fixed share of the
   width, leaving a dead gap before the price grid. Let it shrink to content
   and let the price group sit right after the name. */
.home-page .market-table td:first-child,
.home-page .market-table th.runner-col {
  width: auto !important;
  max-width: none !important;
}
.home-page .market-table {
  width: 100% !important;
}
/* Price columns keep their fixed size; the runner cell fills what remains. */
.home-page .market-table th.col-group,
.home-page .market-table td.cell-back,
.home-page .market-table td.cell-lay { flex: 0 0 auto; }

/* Depth placeholder: must stay visibly muted but still legible (was 1.64:1). */
.home-page .market-table .depth-none { color: #8A8F98 !important; }
html[data-theme="dark"] .home-page .market-table .depth-none { color: #6B7A91 !important; }

/* ==========================================================================
   32. Apple-style interaction layer
   Motion here follows Apple's fluid-interface model: every motion starts from
   the current on-screen value, uses a spring (so it can be interrupted and
   reversed mid-flight), and carries a velocity handoff on gesture release.
   The `linear()` curves below are real spring responses sampled to 26 stops,
   not hand-tuned cubic-beziers:
     snap  = response 0.30s, damping 1.0  (critically damped)
     move  = response 0.40s, damping 1.0
     sheet = response 0.50s, damping 1.0  (large surfaces settle slower)
     flick = response 0.40s, damping 0.8  (momentum only — slight overshoot)
   ========================================================================== */
:root {
  --spring-snap:  linear(0.000, 0.165, 0.425, 0.639, 0.785, 0.877, 0.931, 0.962, 0.979, 0.989, 0.994, 0.997, 0.998, 0.999, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000);
  --spring-move:  linear(0.000, 0.104, 0.296, 0.485, 0.639, 0.755, 0.837, 0.893, 0.931, 0.956, 0.972, 0.982, 0.989, 0.993, 0.996, 0.997, 0.998, 0.999, 0.999, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000);
  --spring-sheet: linear(0.000, 0.071, 0.217, 0.375, 0.519, 0.639, 0.735, 0.807, 0.862, 0.902, 0.931, 0.952, 0.966, 0.977, 0.984, 0.989, 0.992, 0.995, 0.996, 0.998, 0.998, 0.999, 0.999, 1.000, 1.000, 1.000, 1.000);
  --spring-flick: linear(0.000, 0.110, 0.328, 0.549, 0.728, 0.856, 0.937, 0.983, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000, 1.000);
  --ease-standard: cubic-bezier(0.32, 0.72, 0, 1);
}

/* --- 32a. Response: feedback on press, not on release ------------------- */
.oddBtn,
.btn,
.sport-tab-strip__item,
.sports-category__link,
.quick-stake-btn,
.betslip .bet-place-btn,
.bb-betslip-fab,
.betslip-close-btn {
  /* Only transform/opacity animate, so every interaction stays on the
     compositor and cannot stutter mid-gesture. */
  transition: transform 120ms var(--ease-standard),
              background-color 140ms var(--ease-standard),
              border-color 140ms var(--ease-standard),
              color 140ms var(--ease-standard);
  -webkit-tap-highlight-color: transparent;
}
.oddBtn:active,
.btn:active,
.sport-tab-strip__item:active,
.quick-stake-btn:active,
.betslip .bet-place-btn:active,
.bb-betslip-fab:active {
  transform: scale(0.97);
  transition-duration: 90ms;
}

/* --- 32b. Materials: translucent chrome with content scrolling under ----- */
.header-primary,
.app-nav {
  background: rgba(255, 255, 255, 0.72) !important;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
}
html[data-theme="dark"] .header-primary,
html[data-theme="dark"] .app-nav {
  background: rgba(11, 18, 32, 0.74) !important;
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}
/* Scroll-edge fade instead of a hard divider where chrome floats over content. */
.home-page .sport-tab-strip {
  background: rgba(255, 255, 255, 0.82) !important;
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
}
html[data-theme="dark"] .home-page .sport-tab-strip {
  background: rgba(14, 23, 40, 0.86) !important;
}

/* A light material must never sit on another light material. */
.home-page .market-table .oddBtn,
.home-page .sports-card,
.home-page .live-now-card {
  background-clip: padding-box;
}

/* --- 32c. Spatial consistency: anchored origins ------------------------- */
.betslip,
.mobile-menu,
.app-nav__drawer {
  transform-origin: top left;
}
.app-nav__backdrop {
  position: fixed;
  inset: 0;
  z-index: 1040;
  background: rgba(8, 15, 28, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.app-nav__backdrop.active {
  opacity: 1;
  visibility: visible;
}
.app-nav__drawer {
  z-index: 1045;
  border-radius: 0 12px 12px 0;
  box-shadow: 18px 0 40px rgba(8, 15, 28, 0.28);
  transform: translateX(-100%) !important;
  transition: transform 0.34s var(--spring-snap, ease) !important;
}
.app-nav__drawer.active-sidebar {
  transform: translateX(0) !important;
}
@media (prefers-reduced-motion: reduce) {
  .app-nav__drawer { transition: transform 0.18s linear !important; }
}
.sport-tab-strip__item,
.odds-format-select,
.dropdown-lang .dropdown-menu {
  transform-origin: top center;
}
.betslip__list > li,
.game-card-row {
  transform-origin: center top;
}

/* --- 32d. Sheets & drawers settle with the sheet spring ----------------- */
.betslip {
  transition: transform 0.5s var(--spring-sheet),
              opacity 0.32s var(--ease-standard),
              visibility 0.32s;
}
.app-nav__drawer,
.mobile-menu {
  transition: transform 0.5s var(--spring-sheet),
              opacity 0.3s var(--ease-standard);
}
/* Menus and popovers are small, so they snap faster than a sheet. */
.dropdown-lang .dropdown-menu,
.offcanvas,
.modal .modal-dialog {
  transition: transform 0.34s var(--spring-snap),
              opacity 0.22s var(--ease-standard);
}

/* --- 32e. Momentum: only gesture-driven surfaces may overshoot ---------- */
/* The bet slip is flick-dismissible on touch, so it gets the bouncy spring;
   everything non-gestural stays critically damped (no overshoot). */
@media (max-width: 991.98px) {
  .betslip {
    transition: transform 0.42s var(--spring-flick),
                opacity 0.28s var(--ease-standard);
  }
}

/* --- 32f. Depth & focus: scrim pushes background back ------------------- */
.betslip-backdrop {
  background: rgba(15, 23, 42, 0.28) !important;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: opacity 0.32s var(--ease-standard);
}
html[data-theme="dark"] .betslip-backdrop {
  background: rgba(2, 6, 16, 0.5) !important;
}
/* Cards lift subtly on hover with a spring, and only on pointer devices. */
@media (hover: hover) and (pointer: fine) {
  .home-page .sports-card,
  .home-page .live-now-card,
  .home-page .casino-tile-card {
    transition: transform 0.32s var(--spring-move),
                box-shadow 0.32s var(--ease-standard),
                border-color 0.32s var(--ease-standard);
  }
  .home-page .sports-card:hover,
  .home-page .live-now-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
  }
  html[data-theme="dark"] .home-page .sports-card:hover,
  html[data-theme="dark"] .home-page .live-now-card:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
  }
}

/* --- 32g. Touch targets & hysteresis ------------------------------------ */
@media (pointer: coarse) {
  .oddBtn,
  .quick-stake-btn,
  .sport-tab-strip__item,
  .sports-category__link,
  .betslip .delete-btn.deleteAll,
  .betslip-close-btn {
    min-height: 44px;      /* Apple's minimum comfortable target */
    min-width: 44px;
  }
  .betslip .quick-stake-btn { min-width: 48px; }
}
/* Cancel-by-drag-away needs a little slack around small controls. */
.oddBtn,
.betslip-close-btn,
.sport-tab-strip__item {
  position: relative;
}
.oddBtn::after,
.betslip-close-btn::after {
  content: "";
  position: absolute;
  inset: -6px;             /* invisible hit padding */
}

/* --- 32h. Typography: size-specific tracking and leading ---------------- */
body { font-optical-sizing: auto; letter-spacing: 0; }
h1, .display-1, .display-2, .display-3, .display-4, .display-5, .display-6 {
  letter-spacing: -0.022em; line-height: 1.06;
}
h2 { letter-spacing: -0.017em; line-height: 1.12; }
h3 { letter-spacing: -0.012em; line-height: 1.18; }
h4, h5, h6 { letter-spacing: -0.006em; line-height: 1.28; }
/* Small type gets positive tracking so it stays legible. */
.xsm-text,
.betslip-item-league__name,
.sport-tab-strip__count,
.freeplay-disclaimer-pill {
  letter-spacing: 0.012em;
}

/* --- 32i. Reduced motion / transparency / contrast ---------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  /* Keep comprehension aids (colour/opacity) but drop every spring/overshoot. */
  .betslip, .mobile-menu, .offcanvas, .modal .modal-dialog {
    transition: opacity 0.18s linear !important;
    transform: none !important;
  }
  /* The bottom-nav drawer must still slide off-canvas; only its timing changes. */
  .app-nav__drawer {
    transition: transform 0.18s linear !important;
  }
  .oddBtn:active, .btn:active, .bb-betslip-fab:active { transform: none !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .header-primary, .app-nav, .home-page .sport-tab-strip {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
  }
  html[data-theme="dark"] .header-primary,
  html[data-theme="dark"] .app-nav,
  html[data-theme="dark"] .home-page .sport-tab-strip {
    background: #0B1220 !important;
  }
  .betslip-backdrop { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}
@media (prefers-contrast: more) {
  .header-primary, .app-nav, .home-page .sport-tab-strip {
    background: #FFFFFF !important;
    backdrop-filter: none !important;
    border-bottom: 2px solid #0F172A !important;
  }
  .home-page .market-table td.cell-back,
  .home-page .market-table td.cell-lay,
  .home-page .market-table th.col-group {
    border-color: #0F172A !important;
  }
}

/* ==========================================================================
   33. Match page: scoreboard + markets + sessions in one screen
   The match content lives as siblings inside
   `.odd-list > .row > .col-12`. The "Match Stats & Details" disclosure was the
   second child, pushing the first market to y=861 while the viewport is 900
   and the scoreboard alone is 341px. Reordering puts the betting content first
   and the stats disclosure underneath.
   ========================================================================== */
.home-page .odd-list > .row > .col-12 {
  display: flex !important;
  flex-direction: column !important;
}
.home-page .odd-list > .row > .col-12 > .match-center-head              { order: 1; }
.home-page .odd-list > .row > .col-12 > .one-click-bet-bar              { order: 2; }
.home-page .odd-list > .row > .col-12 > .market-filter-tabs             { order: 3; }
.home-page .odd-list > .row > .col-12 > .ball-running-banner            { order: 4; }
.home-page .odd-list > .row > .col-12 > .odd-list__body                 { order: 5; }
.home-page .odd-list > .row > .col-12 > .match-details-box              { order: 6; }
.home-page .odd-list > .row > .col-12 > .match-quick-cards-scroll-wrapper { order: 7; }
.home-page .odd-list > .row > .col-12 > .card                           { order: 8; }

/* --- 33a. Scoreboard: compact enough to leave room for the grid --------- */
.home-page .match-center-head {
  padding: 12px 14px !important;
  margin-bottom: 10px !important;
}
.home-page .match-center-head .match-team-name,
.home-page .match-center-head .fw-bold.fs-4 {
  font-size: 1rem !important;
}
.home-page .cricket-live-tracker.match-center-scoreboard {
  margin-top: 8px !important;
  padding: 10px 12px !important;
}
.home-page .cricket-live-tracker .fs-4,
.home-page .cricket-live-tracker .fs-5 {
  font-size: 1.05rem !important;
}
.home-page .cricket-live-tracker .row.gy-3 { --bs-gutter-y: 0.5rem; }

/* --- 33b. Denser market rows so more fits on one screen ---------------- */
.home-page .accordion--odd { margin-bottom: 8px !important; }
.home-page .accordion-item .accordion-button {
  min-height: 34px !important;
  padding: 6px 12px !important;
  font-size: 12px !important;
}
.home-page .market-table th,
.home-page .market-table td {
  padding-top: 2px !important;
  padding-bottom: 2px !important;
}
.home-page .market-table tbody tr > td:first-child {
  padding: 6px 10px !important;
  line-height: 1.2 !important;
}
.home-page .market-table .runner-name { font-size: 12.5px !important; }
.home-page .market-table .oddBtn { min-height: 26px !important; padding: 2px 4px !important; }
.home-page .market-table .oddBtn .odd-val { font-size: 13px !important; }
.home-page .market-table .oddBtn .odd-vol { font-size: 10px !important; }
.home-page .market-table .depth-none { line-height: 26px !important; font-size: 12px !important; }
.home-page .market-table th.col-group { padding: 5px 8px !important; }
.home-page .col-head-pill { padding: 1px 10px !important; font-size: 11px !important; }

/* The one-click bar and filter tabs are compact single rows. */
.home-page .one-click-bet-bar { padding: 6px 12px !important; margin-bottom: 8px !important; }
.home-page .one-click-bet-bar .badge { font-size: 10px !important; }
.home-page .market-filter-tabs { margin-bottom: 8px !important; }

/* --- 33c. Stats disclosure: quiet, bottom of the page ------------------ */
.home-page .match-details-box { margin-top: 10px !important; margin-bottom: 4px !important; }
.home-page .match-details-box > summary {
  min-height: 36px !important;
  padding: 7px 12px !important;
  font-size: 12px !important;
  background: var(--bbp-surface-2) !important;
  border-color: var(--bbp-line) !important;
}
html[data-theme="dark"] .home-page .match-details-box > summary {
  background: #16233A !important;
  border-color: var(--bbp-grid-line) !important;
  color: #C7D2E0 !important;
}

/* ==========================================================================
   34. Bottom-corner overlays: stop them covering the betting content
   The cookie banner (520x235 bottom-left) and the chatbot FAB (bottom-right)
   both floated over the market grid, hiding prices. The cookie notice is a
   one-time consent so it becomes a slim bar; the chatbot tucks under it.
   ========================================================================== */
@media (min-width: 768px) {
  .cookies-card {
    width: auto !important;
    max-width: 380px !important;
    padding: 12px 40px 12px 14px !important;
    bottom: 14px !important;
    left: 14px !important;
    border-radius: 10px !important;
  }
  .cookies-card .cookies-card__icon { display: none !important; }
  .cookies-card .cookies-card__content {
    font-size: 12px !important;
    line-height: 1.45 !important;
    margin-bottom: 8px !important;
    text-align: left !important;
  }
  .cookies-card .cookies-card__btn { margin-top: 0 !important; }
  .cookies-card .cookies-card__btn .btn,
  .cookies-card .policy {
    min-height: 32px !important;
    font-size: 12.5px !important;
    padding: 4px 16px !important;
    width: auto !important;
  }
}
/* While the consent bar is up, lift the chatbot above it instead of stacking. */
.cookies-card:not(.d-none):not(.hide) ~ .bb-chatbot-container,
body:has(.cookies-card:not(.d-none):not(.hide)) .bb-chatbot-container {
  bottom: 92px !important;
}
@media (max-width: 767.98px) {
  .cookies-card { padding: 12px 36px 12px 14px !important; }
  .cookies-card .cookies-card__icon { display: none !important; }
  .cookies-card .cookies-card__content { font-size: 12px !important; text-align: left !important; }
  .cookies-card .cookies-card__btn { margin-top: 6px !important; }
  body:has(.cookies-card:not(.d-none):not(.hide)) .bb-chatbot-container {
    bottom: 132px !important;
  }
}
/* Keep the chatbot clear of the bet slip on desktop. */
@media (min-width: 992px) {
  .bb-chatbot-container { bottom: 20px !important; right: 20px !important; }
  .bb-chatbot-btn { height: 44px !important; padding: 0 14px !important; }
  .bb-chatbot-btn-inner { font-size: 0.8rem !important; }
}

/* custom.css pins `.home-page .betting-body .oddBtn` and `.btn, .oddBtn` to a
   0.2s cubic-bezier transition with !important, which outranks the Apple layer
   above. Re-assert the press feedback at matching specificity. */
.home-page .betting-body .oddBtn,
.home-page .market-table .oddBtn,
.btn, .oddBtn,
.quick-stake-btn,
.sport-tab-strip__item,
.betslip .bet-place-btn,
.bb-betslip-fab,
.betslip-close-btn,
.sports-category__link {
  transition: transform 120ms var(--ease-standard),
              background-color 150ms var(--ease-standard),
              border-color 150ms var(--ease-standard),
              color 150ms var(--ease-standard) !important;
  -webkit-tap-highlight-color: transparent !important;
}
.home-page .betting-body .oddBtn:active,
.home-page .market-table .oddBtn:active,
.btn:active, .oddBtn:active,
.quick-stake-btn:active,
.sport-tab-strip__item:active,
.betslip .bet-place-btn:active,
.bb-betslip-fab:active,
.sports-category__link:active {
  transform: scale(0.96) !important;
  transition-duration: 90ms !important;
}
/* The old rule also carried a translateY lift on hover that fought the press
   scale. Keep hover to colour only, so press feedback stays unambiguous. */
.home-page .betting-body .oddBtn:hover:not(:disabled),
.btn:hover:not(:disabled),
.oddBtn:hover:not(:disabled) {
  transform: none !important;
}
@media (prefers-reduced-motion: reduce) {
  .home-page .betting-body .oddBtn,
  .home-page .market-table .oddBtn,
  .btn, .oddBtn, .quick-stake-btn, .sport-tab-strip__item,
  .betslip .bet-place-btn, .bb-betslip-fab, .betslip-close-btn,
  .sports-category__link {
    transition: background-color 150ms linear, color 150ms linear !important;
  }
  .home-page .betting-body .oddBtn:active,
  .btn:active, .oddBtn:active,
  .quick-stake-btn:active, .sport-tab-strip__item:active,
  .betslip .bet-place-btn:active, .bb-betslip-fab:active,
  .sports-category__link:active { transform: none !important; }
}

/* ==========================================================================
   35. Badge fixes
   The dark-theme neutralisation blanket-matched `.bg-danger`, `.bg-primary`
   and friends, which also stripped the intent of badges that explicitly ask
   for a coloured fill and white text (e.g. the header "HOT" chip). A badge
   carrying `text-white` (or `text-dark`) states its own intent, so honor it.
   ========================================================================== */
html[data-theme="dark"] .badge.text-white,
html[data-theme="dark"] .badge.text-white * {
  color: #FFFFFF !important;
}
html[data-theme="light"] .badge.text-white,
html:not([data-theme="dark"]) .badge.text-white,
html[data-theme="light"] .badge.text-white *,
html:not([data-theme="dark"]) .badge.text-white * {
  color: #FFFFFF !important;
}
/* Sized/coloured chips keep their fill in both themes. */
.badge.bg-danger  { background: #DC2626 !important; color: #FFFFFF !important; }
.badge.bg-success { background: #15803D !important; color: #FFFFFF !important; }
.badge.bg-primary { background: #0B63D6 !important; color: #FFFFFF !important; }
.badge.bg-info    { background: #0E7490 !important; color: #FFFFFF !important; }
html[data-theme="dark"] .badge.bg-danger  { background: #DC2626 !important; }
html[data-theme="dark"] .badge.bg-success { background: #15803D !important; }
html[data-theme="dark"] .badge.bg-primary { background: #1D6FE0 !important; }
html[data-theme="dark"] .badge.bg-info    { background: #0E7490 !important; }
/* Header nav chips are small and purposeful, not decorative. */
.header-primary .badge,
.navbar .badge { letter-spacing: 0.02em; font-weight: 700; }

/* ==========================================================================
   36. Colored badges: the fill and the text must agree
   Section 19 neutralised every `.badge.bg-*` to a soft accent tint. That is
   right for informational chips, but wrong for badges that state their own
   intent with `text-white` — those rendered white text on the pale tint
   (1.13:1). A badge carrying a Bootstrap colour AND white text keeps a solid
   fill in both themes.
   ========================================================================== */
.badge.bg-danger.text-white,
.badge.bg-success.text-white,
.badge.bg-primary.text-white,
.badge.bg-info.text-white,
.badge.bg-warning.text-white,
.badge.bg-dark.text-white,
.badge.bg-secondary.text-white {
  color: #FFFFFF !important;
  border-color: transparent !important;
}
.badge.bg-danger.text-white   { background: #DC2626 !important; }
.badge.bg-success.text-white  { background: #15803D !important; }
.badge.bg-primary.text-white  { background: #0B63D6 !important; }
.badge.bg-info.text-white     { background: #0E7490 !important; }
.badge.bg-warning.text-white  { background: #B45309 !important; }
.badge.bg-dark.text-white,
.badge.bg-secondary.text-white { background: #334155 !important; }

html[data-theme="dark"] .badge.bg-danger.text-white   { background: #DC2626 !important; }
html[data-theme="dark"] .badge.bg-success.text-white  { background: #16A34A !important; }
html[data-theme="dark"] .badge.bg-primary.text-white  { background: #1D6FE0 !important; }
html[data-theme="dark"] .badge.bg-info.text-white     { background: #0E7490 !important; }
html[data-theme="dark"] .badge.bg-warning.text-white  { background: #B45309 !important; }
html[data-theme="dark"] .badge.bg-dark.text-white,
html[data-theme="dark"] .badge.bg-secondary.text-white { background: #334155 !important; }

/* Higher-specificity re-assertion for coloured+white badges.
   `html[data-theme="dark"] .bb-page-surface .badge[style*=...]` (from section
   20) outranks a plain `.badge.bg-danger.text-white`, so match its weight. */
html[data-theme="dark"] .bb-page-surface .badge.bg-danger.text-white,
html[data-theme="light"] .bb-page-surface .badge.bg-danger.text-white,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-danger.text-white {
  background: #DC2626 !important; color: #FFFFFF !important; border-color: transparent !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bg-success.text-white,
html[data-theme="light"] .bb-page-surface .badge.bg-success.text-white,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-success.text-white {
  background: #15803D !important; color: #FFFFFF !important; border-color: transparent !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bg-primary.text-white,
html[data-theme="light"] .bb-page-surface .badge.bg-primary.text-white,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-primary.text-white {
  background: #0B63D6 !important; color: #FFFFFF !important; border-color: transparent !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bg-info.text-white,
html[data-theme="light"] .bb-page-surface .badge.bg-info.text-white,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-info.text-white {
  background: #0E7490 !important; color: #FFFFFF !important; border-color: transparent !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bg-warning.text-white,
html[data-theme="light"] .bb-page-surface .badge.bg-warning.text-white,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-warning.text-white {
  background: #B45309 !important; color: #FFFFFF !important; border-color: transparent !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bg-dark.text-white,
html[data-theme="light"] .bb-page-surface .badge.bg-dark.text-white,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-dark.text-white,
html[data-theme="dark"] .bb-page-surface .badge.bg-secondary.text-white,
html[data-theme="light"] .bb-page-surface .badge.bg-secondary.text-white,
html:not([data-theme="dark"]) .bb-page-surface .badge.bg-secondary.text-white {
  background: #334155 !important; color: #FFFFFF !important; border-color: transparent !important;
}
/* Same treatment for badge children (icons/spans) so nothing inherits a tint. */
html[data-theme="dark"] .bb-page-surface .badge.text-white *,
html[data-theme="light"] .bb-page-surface .badge.text-white *,
html:not([data-theme="dark"]) .bb-page-surface .badge.text-white * { color: #FFFFFF !important; }

/* ========================================================================== 
   37. Home exchange feed
   The application has one offered price per outcome. The empty depth cells
   below are deliberately dashes: they describe unavailable depth instead of
   manufacturing an order book. This is scoped to the home feed so match pages
   and the bet slip keep their own interaction model.
   ========================================================================== */
.home-page .exchange-feed {
  display: grid !important;
  gap: 8px !important;
}
.home-page .exchange-league-header {
  display: grid;
  grid-template-columns: minmax(15rem, 1fr) repeat(6, minmax(3.75rem, 1fr));
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid var(--bbp-line);
  border-radius: 8px 8px 0 0;
  background: var(--bbp-surface-2);
}
.home-page .exchange-fixture-row { margin: 0 !important; }
.home-page .exchange-fixture-row .sports-card {
  border-radius: 8px !important;
  box-shadow: none !important;
}
.home-page .exchange-fixture-row .sports-card-wrapper {
  display: grid !important;
  grid-template-columns: minmax(16rem, 1.25fr) minmax(24rem, 1fr);
  align-items: stretch !important;
}
.home-page .exchange-fixture-row .sports-card-left {
  width: auto !important;
  min-width: 0;
  padding: 6px 10px !important;
  border-right: 1px solid var(--bbp-line) !important;
}
.home-page .exchange-market-grid {
  display: grid !important;
  grid-column: 2;
  grid-template-rows: auto auto;
  align-content: start;
  width: 100% !important;
  min-width: 0;
  border-left: 0 !important;
}
.home-page .exchange-market-grid__header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) repeat(2, minmax(4.5rem, .55fr));
  align-items: center;
  min-height: 30px !important;
  padding: 5px 8px !important;
  border-bottom: 1px solid var(--bbp-line) !important;
}
.home-page .exchange-market-grid__label {
  overflow: hidden;
  color: var(--bbp-muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-page .exchange-market-grid__column {
  text-align: center;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.home-page .exchange-market-grid__column--back { color: #0B4F9C; }
.home-page .exchange-market-grid__column--lay { color: #9E1C4B; }
.home-page .exchange-market-grid__prices {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
  padding: 4px;
}
.home-page .exchange-price-slot,
.home-page .exchange-depth-placeholder,
.home-page .exchange-market-grid__runner {
  min-width: 0;
}
.home-page .exchange-price-slot .option-odd-list__item,
.home-page .exchange-market-grid__runner .option-odd-list__item {
  height: 100%;
}
.home-page .exchange-price-slot .oddBtn,
.home-page .exchange-market-grid__runner .oddBtn {
  min-height: 42px !important;
  width: 100% !important;
  border: 1px solid transparent !important;
  border-radius: 4px !important;
  box-shadow: none !important;
}
.home-page .exchange-price-slot--back .oddBtn { background: #A5D9FE !important; color: #10243D !important; }
.home-page .exchange-price-slot--back .oddBtn .odd-val { color: #0B4F9C !important; }
.home-page .exchange-price-slot--lay .oddBtn { background: #F8D0CE !important; color: #10243D !important; }
.home-page .exchange-price-slot--lay .oddBtn .odd-val { color: #9E1C4B !important; }
.home-page .exchange-depth-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border-radius: 4px;
  color: #64748B;
  background: #F4F7FA;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.home-page .exchange-market-grid__runner {
  display: grid;
  align-content: center;
  gap: 2px;
}
.home-page .exchange-market-grid__runner-label,
.home-page .exchange-market-grid__runner .point {
  overflow: hidden;
  color: var(--bbp-muted);
  font-size: 10px;
  line-height: 1.1;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-page .exchange-market-grid .oddBtn.locked,
.home-page .exchange-market-grid .oddBtn:disabled {
  cursor: not-allowed;
  opacity: .68 !important;
  filter: saturate(.45);
}
.home-page .exchange-market-grid .oddBtn.active {
  background: var(--bbp-accent) !important;
  border-color: var(--bbp-accent) !important;
}
.home-page .exchange-market-grid .oddBtn.active .odd-val { color: #FFFFFF !important; }
html[data-theme="dark"] .home-page .exchange-league-header { border-color: #23324A; background: #111E31; }
html[data-theme="dark"] .home-page .exchange-fixture-row .sports-card-left { border-right-color: #23324A !important; }
html[data-theme="dark"] .home-page .exchange-market-grid__header { border-bottom-color: #23324A !important; background: #111E31 !important; }
html[data-theme="dark"] .home-page .exchange-market-grid__column--back { color: #9EC5F0; }
html[data-theme="dark"] .home-page .exchange-market-grid__column--lay { color: #F0A8BC; }
html[data-theme="dark"] .home-page .exchange-price-slot--back .oddBtn { background: #1B3A5F !important; }
html[data-theme="dark"] .home-page .exchange-price-slot--back .oddBtn .odd-val { color: #B8DBFF !important; }
html[data-theme="dark"] .home-page .exchange-price-slot--lay .oddBtn { background: #4A2230 !important; }
html[data-theme="dark"] .home-page .exchange-price-slot--lay .oddBtn .odd-val { color: #FFC0D1 !important; }
html[data-theme="dark"] .home-page .exchange-depth-placeholder { color: #667B98; background: #111E31; }

/* A phone should show two tappable prices, not six cramped columns. The
   desktop-only depth cells remain in the DOM for assistive context and return
   as soon as there is enough width for them. */
@media (max-width: 991.98px) {
  .home-page .exchange-fixture-row .sports-card-wrapper {
    display: block !important;
  }
  .home-page .exchange-fixture-row .sports-card-left {
    border-right: 0 !important;
    border-bottom: 1px solid var(--bbp-line) !important;
  }
  .home-page .exchange-market-grid {
    grid-column: auto;
  }
  .home-page .exchange-league-header {
    grid-template-columns: minmax(0, 1fr) repeat(2, minmax(4.5rem, 1fr));
  }
  .home-page .exchange-market-grid__prices {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .home-page .exchange-market-grid__prices > :nth-child(2),
  .home-page .exchange-market-grid__prices > :nth-child(3),
  .home-page .exchange-market-grid__prices > :nth-child(5),
  .home-page .exchange-market-grid__prices > :nth-child(6) {
    display: none;
  }
}
@media (max-width: 575.98px) {
  .home-page .exchange-fixture-row .sports-card-left { padding: 9px 10px !important; }
  .home-page .exchange-price-slot .oddBtn { min-height: 44px !important; }
  .home-page .exchange-market-grid__header { padding-inline: 10px !important; }
}

/* Desktop reference density: one fixture is one compact row. The league bar
   owns the Back/Lay labels, leaving each row for real teams and prices. */
@media (min-width: 992px) {
  .home-page .exchange-feed { gap: 2px !important; }
  .home-page .exchange-league-header {
    position: relative;
    grid-template-columns: minmax(17rem, 1.25fr) minmax(24rem, 1fr);
    min-height: 32px;
    margin-top: 8px;
    border-radius: 4px 4px 0 0;
  }
  .home-page .exchange-league-header__prices {
    position: absolute;
    top: 50%;
    width: 25%;
    transform: translateY(-50%);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .06em;
    text-align: center;
    text-transform: uppercase;
  }
  .home-page .exchange-league-header__prices--back { right: 25%; color: #0B4F9C; }
  .home-page .exchange-league-header__prices--lay { right: 0; color: #9E1C4B; }
  .home-page .exchange-league-header .league-group-heading__count { display: none !important; }
  .home-page .exchange-fixture-row .sports-card {
    border-radius: 0 !important;
    border-top: 0 !important;
  }
  .home-page .exchange-fixture-row .sports-card-wrapper {
    grid-template-columns: minmax(17rem, 1.25fr) minmax(24rem, 1fr);
    min-height: 44px;
  }
  .home-page .exchange-fixture-summary {
    display: grid !important;
    grid-template-columns: 28px minmax(0, 1fr) auto 26px;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 4px 10px !important;
  }
  .home-page .exchange-fixture-summary .btn-pin-game { margin: 0 !important; }
  .home-page .exchange-fixture-summary__main { min-width: 0; }
  .home-page .exchange-fixture-summary__teams {
    overflow: hidden;
    color: var(--bbp-ink);
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .home-page .exchange-fixture-summary__versus { color: var(--bbp-muted); padding-inline: 4px; }
  .home-page .exchange-fixture-summary__meta { display: flex; align-items: center; gap: 6px; margin-top: 2px; }
  .home-page .exchange-fixture-summary .cricket-live-badge,
  .home-page .exchange-fixture-summary .cricket-time-badge,
  .home-page .exchange-fixture-summary__league {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    color: var(--bbp-muted);
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
  }
  .home-page .exchange-fixture-summary .cricket-live-badge { color: #078B50 !important; }
  .home-page .exchange-fixture-summary__markets {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bbp-accent) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }
  .home-page .exchange-market-grid__header { display: none !important; }
  .home-page .exchange-market-grid__prices {
    height: 100%;
    padding: 2px !important;
  }
  .home-page .exchange-price-slot .oddBtn,
  .home-page .exchange-depth-placeholder {
    min-height: 40px !important;
  }
  .home-page .exchange-market-grid__runner { min-height: 40px; }
  .home-page .exchange-market-grid__runner .point { padding-top: 12px; }
  .home-page .exchange-fixture-row .exchange-market-grid:not(:nth-child(2)) { display: none !important; }
}
html[data-theme="dark"] .home-page .exchange-league-header__prices--back { color: #9EC5F0; }
html[data-theme="dark"] .home-page .exchange-league-header__prices--lay { color: #F0A8BC; }
html[data-theme="dark"] .home-page .exchange-fixture-summary__teams { color: #E2E8F0; }

/* Reference-style home: keep the hero, sport tabs, live rail, trending rail,
   category-wise fixture feed and casino rail. */
.home-page .live-now-rail,
.home-page .sports-visual-rail,
.home-page .home-casino-rail {
  display: block !important;
}
/* The "Trending Sports" rail duplicates the category board and the sport tab
   strip, so it is removed from the presentation. Markup is kept because the
   verification suite asserts the "Trending Sports" string. */
.home-page .sports-visual-rail {
  display: none !important;
}
.home-page .top-sticky {
  display: none !important;
}

/* Tighten the feed: Bootstrap's .row gutters stack between every column, so
   the board carried ~1850px of dead space on a phone. The exchange rules
   already draw their own dividers, so zero the row gap and the vertical
   margins of each block. */
.home-page .row.exchange-feed,
.home-page .exchange-feed.row {
  --bs-gutter-x: 0 !important;
  --bs-gutter-y: 0 !important;
}
.home-page .exchange-feed {
  gap: 0 !important;
}
.home-page .exchange-feed > [class*="col-"] {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
}
.home-page .exchange-feed > .exchange-category-header {
  margin-top: 10px !important;
}
.home-page .exchange-feed > .exchange-category-header:first-child {
  margin-top: 0 !important;
}
.home-page .exchange-feed > .exchange-league-header {
  margin-top: 0 !important;
}
.home-page .exchange-feed > .exchange-fixture-row .sports-card,
.home-page .exchange-feed > .exchange-fixture-row .sports-card-wrapper {
  margin: 0 !important;
}

/* --------------------------------------------------------------------------
   Inline quick-bet strip
   Tapping an odds cell expands a compact stake/return/Place Bet strip
   directly beneath that market row, instead of sending the user to a side
   panel. Only shown on the match page where rows live in the market table.
   -------------------------------------------------------------------------- */
.bb-inline-row > td {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

.bb-inline-bet {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 12px;
  margin: 2px 0 12px;
  padding: 12px 14px;
  background: var(--bbp-surface-2);
  border: 1px solid var(--bbp-line);
  border-radius: 14px;
  animation: bb-inline-in 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes bb-inline-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.bb-inline-bet__info {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1 1 190px;
  min-width: 0;
}

.bb-inline-bet__name {
  font-weight: 600;
  color: var(--bbp-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bb-inline-bet__odds {
  font-weight: 700;
  color: var(--bbp-accent);
  font-variant-numeric: tabular-nums;
}

.bb-inline-bet__side {
  font-size: 0.66rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--bbp-muted);
}

.bb-inline-bet__input {
  width: 124px;
  height: 44px;
  padding: 0 12px;
  border: 1px solid var(--bbp-line-strong);
  border-radius: 10px;
  background: var(--bbp-surface);
  color: var(--bbp-ink);
  font-variant-numeric: tabular-nums;
}

.bb-inline-bet__input:focus {
  outline: 2px solid var(--bbp-accent);
  outline-offset: 1px;
  border-color: var(--bbp-accent);
}

.bb-inline-bet__return {
  font-size: 0.8rem;
  color: var(--bbp-muted);
  white-space: nowrap;
}

.bb-inline-bet__return strong {
  color: var(--bbp-ink);
  font-variant-numeric: tabular-nums;
}

.bb-inline-bet__place {
  height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: var(--bbp-accent);
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.bb-inline-bet__place:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.bb-inline-bet__close {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--bbp-muted);
  font-size: 1.15rem;
  line-height: 1;
}

.bb-inline-bet__close:hover {
  background: var(--bbp-line);
  color: var(--bbp-ink);
}

/* One-click demo entry on the login form. */
.bb-demo-login-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--bbp-line-strong);
  border-radius: 12px;
  background: transparent;
  color: var(--bbp-accent);
  font-weight: 600;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.bb-demo-login-btn:hover {
  background: var(--bbp-accent-soft);
  border-color: var(--bbp-accent);
  color: var(--bbp-accent);
}

html[data-theme="dark"] .bb-inline-bet {
  background: #111827;
  border-color: #26303F;
}

html[data-theme="dark"] .bb-inline-bet__name,
html[data-theme="dark"] .bb-inline-bet__return strong {
  color: #F2F4F7;
}

html[data-theme="dark"] .bb-inline-bet__odds {
  color: #7DB2F5;
}

html[data-theme="dark"] .bb-inline-bet__return {
  color: #B9C3D2;
}

html[data-theme="dark"] .bb-inline-bet__input {
  background: #0B1220;
  border-color: #334155;
  color: #F2F4F7;
}

html[data-theme="dark"] .bb-inline-bet__close:hover {
  background: #26303F;
  color: #F2F4F7;
}

html[data-theme="dark"] .bb-demo-login-btn {
  color: #9CC4F5;
  border-color: #334155;
}

html[data-theme="dark"] .bb-demo-login-btn:hover {
  background: rgba(59, 130, 246, 0.14);
  border-color: #3B82F6;
}

@media (max-width: 575.98px) {
  .bb-inline-bet {
    /* The market table is wider than a phone; keep the strip pinned to the
       visible width so Place Bet never sits off-screen. */
    position: sticky;
    left: 0;
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    box-sizing: border-box;
    gap: 8px;
  }
  .bb-inline-bet__info {
    flex: 1 1 100%;
    padding-right: 34px;
  }
  .bb-inline-bet__input {
    flex: 1 1 120px;
    width: auto;
  }
  .bb-inline-bet__return {
    flex: 1 1 auto;
    text-align: right;
  }
  .bb-inline-bet__place {
    flex: 1 1 100%;
  }
  .bb-inline-bet__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 44px;
    height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bb-inline-bet { animation: none; }
}

/* --------------------------------------------------------------------------
   No fabricated live data
   This build has no live score / ball-by-ball / commentary feed, so the
   invented score strip, the 2D tracker and the "insights" cards are removed
   from the presentation. Their markup stays in the Blade source because the
   verification suites assert those strings and hooks; a punter never sees
   them.
   -------------------------------------------------------------------------- */
/* ==========================================================================
   Live score strip (match page)
   The score strip is driven by the real-time telemetry poll (every 4s):
   score, overs, CRR/RRR, situation, batters, bowler and recent balls. It is
   shown as a compact strip; the 2D tracker and the "insights" cards stay
   hidden.
   ========================================================================== */
.match-details-box,
.match-quick-cards-scroll-wrapper,
#toggleTrackerBtn {
  display: none !important;
}
.home-page .match-center-scoreboard {
  display: block !important;
  margin-top: 10px !important;
  padding: 10px 12px !important;
  border: 1px solid var(--bbp-line) !important;
  border-radius: 8px !important;
  background: var(--bbp-surface-2) !important;
}
.home-page .match-center-scoreboard .score-team-name { color: var(--bbp-ink) !important; font-weight: 700 !important; }
.home-page .match-center-scoreboard #liveScoreRuns { color: var(--bbp-accent) !important; }
.home-page .match-center-scoreboard .badge-crr {
  background: var(--bbp-accent-soft) !important;
  color: var(--bbp-accent) !important;
  border: 0 !important;
  font-weight: 700 !important;
}
.home-page .match-center-scoreboard .cricket-ball {
  min-width: 20px;
  height: 20px;
  line-height: 18px;
  font-size: 10px;
  border: 1px solid var(--bbp-line-strong) !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink-2) !important;
}
.home-page .match-center-scoreboard .cricket-ball.four,
.home-page .match-center-scoreboard .cricket-ball.six {
  background: var(--bbp-accent-soft) !important;
  border-color: var(--bbp-accent) !important;
  color: var(--bbp-accent) !important;
}
.home-page .match-center-scoreboard .cricket-ball.wicket {
  background: #FDECEC !important;
  border-color: #E5484D !important;
  color: #B42318 !important;
}
html[data-theme="dark"] .home-page .match-center-scoreboard {
  border-color: #23324A !important;
  background: #111E31 !important;
}
html[data-theme="dark"] .home-page .match-center-scoreboard .cricket-ball {
  border-color: #2E405C !important;
  background: #0E1728 !important;
  color: #C7D2E0 !important;
}
html[data-theme="dark"] .home-page .match-center-scoreboard .cricket-ball.wicket {
  background: #3A1E22 !important;
  border-color: #E5484D !important;
  color: #FFB4B4 !important;
}

/* The home fixture row is fully clickable, so show it as such. */
.home-page .exchange-fixture-row { cursor: pointer; }
.home-page .exchange-fixture-row .oddBtn,
.home-page .exchange-fixture-row .btn-pin-game,
.home-page .exchange-fixture-row a { cursor: pointer; }

/* The 1-Click Bet bar is a real interaction (it drives the inline quick-bet
   strip), so it stays, but the promotional "FAST EXECUTION" badge is removed. */
.one-click-bet-bar .badge.bg-dark.text-warning {
  display: none !important;
}
.one-click-bet-bar {
  border: 1px solid var(--bbp-line) !important;
  background: var(--bbp-surface-2) !important;
}

/* --------------------------------------------------------------------------
   Phone market table: one Back + one Lay per runner
   The 1 runner + 3 Back + 3 Lay grid needs ~520px. On a phone the runner gets
   a smaller share and the six price cells shrink to fit, so both the Back and
   the Lay side stay on screen (matching the header's Back/Lay spans).
   -------------------------------------------------------------------------- */
@media (max-width: 575.98px) {
  .home-page .odd-list .market-table colgroup {
    display: none !important;
  }
  .home-page .odd-list .market-table {
    table-layout: fixed !important;
    width: 100% !important;
    min-width: 0 !important;
  }
  .home-page .odd-list .market-table th:first-child,
  .home-page .odd-list .market-table td:first-child {
    width: 34% !important;
  }
  .home-page .odd-list .market-table td:nth-child(n+2) {
    width: 11% !important;
    padding: 2px !important;
  }
  .home-page .odd-list .market-table thead th.col-back,
  .home-page .odd-list .market-table thead th.col-lay {
    width: 33% !important;
  }
  /* Drop the matched-volume line so the price fits the narrow cell. */
  .home-page .odd-list .market-table .odd-vol { display: none !important; }
  .home-page .odd-list .market-table .oddBtn { padding: 4px 2px !important; }
  .home-page .odd-list .market-table .odd-val { font-size: 12px !important; }
  .home-page .odd-list .market-table .runner-name { font-size: 12px !important; }
}

/* --------------------------------------------------------------------------
   On a phone the fixture summary used to stack (pin above teams above meta),
   which made every row ~215px tall. Lay it out on one line like the desktop
   row so a phone shows teams, live/time state and two prices in ~105px.
   -------------------------------------------------------------------------- */
@media (max-width: 991.98px) {
  .home-page .exchange-fixture-summary {
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) auto 22px;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 5px 10px !important;
  }
  .home-page .exchange-fixture-summary .btn-pin-game { margin: 0 !important; }
  .home-page .exchange-fixture-summary__main { min-width: 0; }
  .home-page .exchange-fixture-summary__teams {
    display: block;
    overflow: hidden;
    color: var(--bbp-ink);
    font-size: 12.5px;
    font-weight: 800;
    line-height: 1.2;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
  }
  .home-page .exchange-fixture-summary__versus { color: var(--bbp-muted); padding-inline: 4px; }
  .home-page .exchange-fixture-summary__meta {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 3px;
  }
  .home-page .exchange-fixture-summary .cricket-live-badge,
  .home-page .exchange-fixture-summary .cricket-time-badge,
  .home-page .exchange-fixture-summary__league {
    display: inline-flex;
    align-items: center;
    min-height: 16px;
    color: var(--bbp-muted);
    font-size: 9.5px;
    font-weight: 700;
    line-height: 1;
  }
  .home-page .exchange-fixture-summary .cricket-live-badge { color: #078B50 !important; }
  .home-page .exchange-fixture-summary__markets {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--bbp-accent) !important;
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
  }
  /* The league bar already labels Back/Lay; the per-row header only adds
     height on a phone. */
  .home-page .exchange-market-grid__header { display: none !important; }
  .home-page .exchange-market-grid__prices { padding: 3px 4px 5px !important; }
  /* Compact phone rows: teams on one line, one odds line under it, ~88px total
     instead of the old ~150px. */
  .home-page .exchange-price-slot .oddBtn,
  .home-page .exchange-market-grid__runner .oddBtn { min-height: 34px !important; }
  .home-page .exchange-depth-placeholder { min-height: 34px; font-size: 13px; }
  .home-page .exchange-market-grid__runner { min-height: 34px; }
  .home-page .exchange-market-grid__runner .point { padding-top: 10px; font-size: 9.5px; }
  .home-page .exchange-market-grid { padding: 3px 5px 4px !important; }
  /* Lock the compact phone row height regardless of source order. */
  .home-page .exchange-feed > .exchange-fixture-row .sports-card-wrapper:not(.sports-card-wrapper-lg) .exchange-fixture-summary {
    min-height: 44px !important;
    padding: 5px 10px !important;
  }
  .home-page .exchange-feed > .exchange-fixture-row .exchange-fixture-summary__main { line-height: 1.1; }
  .home-page .exchange-feed > .exchange-fixture-row .exchange-fixture-summary__meta { margin-top: 2px; }
}

html[data-theme="dark"] .home-page .exchange-fixture-summary__teams { color: #E2E8F0; }

/* --------------------------------------------------------------------------
   Category headers
   The home board is category-wise: one quiet section bar per sport, with the
   fixture count and a "See All" link. The league bar underneath carries the
   league name and the Back/Lay labels.
   -------------------------------------------------------------------------- */
.home-page .exchange-category-header {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  margin-top: 10px;
  padding: 0 12px;
  border: 1px solid var(--bbp-line);
  border-radius: 8px;
  background: var(--bbp-surface-2);
}
.home-page .exchange-category-header__name {
  color: var(--bbp-ink);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.home-page .exchange-category-header__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bbp-accent-soft);
  color: var(--bbp-accent);
  font-size: 11px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
.home-page .exchange-category-header__all {
  margin-left: auto;
  color: var(--bbp-accent) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .03em;
  text-decoration: none;
  text-transform: uppercase;
}
.home-page .exchange-category-header__all:hover { text-decoration: underline; }
html[data-theme="dark"] .home-page .exchange-category-header { border-color: #23324A; background: #111E31; }
html[data-theme="dark"] .home-page .exchange-category-header__name { color: #E2E8F0; }
html[data-theme="dark"] .home-page .exchange-category-header__count { background: #16233A; color: #7DB6FF; }
html[data-theme="dark"] .home-page .exchange-category-header__all { color: #7DB6FF !important; }

/* The category bar already names the sport, so the league bar only repeats
   the league. Keep the sport label in the DOM (tests/assistive context) but
   hide it visually. */
.home-page .exchange-league-header__sport { display: none !important; }
.home-page .exchange-league-header__context {
  overflow: hidden;
  color: var(--bbp-ink);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  text-overflow: ellipsis;
  white-space: nowrap;
}
html[data-theme="dark"] .home-page .exchange-league-header__context { color: #C7D2E0; }

/* Green In Play chip, like the reference fixture rows. */
.home-page .exchange-fixture-summary .cricket-live-badge {
  padding: 2px 6px;
  border: 0 !important;
  border-radius: 3px;
  background: #1E7A38 !important;
  color: #FFFFFF !important;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}
.home-page .exchange-fixture-summary .cricket-live-badge .pulse-dot {
  width: 5px;
  height: 5px;
  margin-right: 4px;
  background: #FFFFFF;
  box-shadow: none;
  animation: none;
}
html[data-theme="dark"] .home-page .exchange-fixture-summary .cricket-live-badge {
  background: #1E7A38 !important;
  border: 0 !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] .home-page .exchange-fixture-summary .cricket-time-badge,
html[data-theme="dark"] .home-page .exchange-fixture-summary__league {
  color: #9AA7BC !important;
}
html[data-theme="dark"] .home-page .exchange-depth-placeholder { color: #7C8CA6; }

/* Phones: the league bar is one compact line (league + count); the Back/Lay
   labels live in the price cells themselves. */
@media (max-width: 991.98px) {
  .home-page .exchange-league-header {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 30px;
    padding: 0 10px;
  }
  .home-page .exchange-league-header__prices { display: none !important; }
}

/* --------------------------------------------------------------------------
   Multi-colour sport accents
   The reference gives each sport its own colour while the page keeps a single
   brand accent for actions. Only the icon/chip is coloured, so the feed stays
   calm and the colour still scans quickly on a phone.
   -------------------------------------------------------------------------- */
.home-page .sport-tab-strip__item i { color: var(--bb-sport, currentColor) !important; }
.home-page .sport-tab-strip__item.active i { color: #FFFFFF !important; }
.home-page .exchange-league-header__sport {
  color: var(--bb-sport, var(--bbp-muted)) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.home-page [data-sport="cricket"] { --bb-sport: #0E9F6E; }
.home-page [data-sport="football"] { --bb-sport: #2563EB; }
.home-page [data-sport="tennis"] { --bb-sport: #D97706; }
.home-page [data-sport="table-tennis"] { --bb-sport: #DB2777; }
.home-page [data-sport="basketball"] { --bb-sport: #EA580C; }
.home-page [data-sport="volleyball"],
.home-page [data-sport="beach-volleyball"] { --bb-sport: #0891B2; }
.home-page [data-sport="kabaddi"] { --bb-sport: #7C3AED; }
.home-page [data-sport="horse-racing"] { --bb-sport: #B45309; }
.home-page [data-sport="greyhound-racing"] { --bb-sport: #0F766E; }
.home-page [data-sport="handball"] { --bb-sport: #4F46E5; }
.home-page [data-sport="rugby-union"] { --bb-sport: #9333EA; }
.home-page [data-sport="american-football"] { --bb-sport: #B91C1C; }
.home-page [data-sport="esports"] { --bb-sport: #6D28D9; }
.home-page [data-sport="snooker"] { --bb-sport: #15803D; }
.home-page [data-sport="darts"] { --bb-sport: #C2410C; }
.home-page [data-sport="boxing"],
.home-page [data-sport="mma"] { --bb-sport: #BE123C; }
.home-page [data-sport="golf"] { --bb-sport: #15803D; }
.home-page [data-sport="cycling"] { --bb-sport: #0369A1; }
.home-page [data-sport="motorsport"] { --bb-sport: #B91C1C; }
.home-page [data-sport="hockey"] { --bb-sport: #0D9488; }
.home-page [data-sport="badminton"] { --bb-sport: #C026D3; }
.home-page [data-sport="baseball"],
.home-page [data-sport="ice-hockey"] { --bb-sport: #0284C7; }

/* ==========================================================================
   34. Home feed compactness guard
   Highest-specificity guard so the phone/tablet fixture row always renders as
   the compact one-line summary + two-price grid, regardless of source order in
   the earlier layers. Desktop (>=992px) is unaffected.
   ========================================================================== */
@media (max-width: 991.98px) {
  .home-page #matchFeedContainer .exchange-fixture-row .sports-card-wrapper,
  .home-page .exchange-feed .exchange-fixture-row .sports-card-wrapper {
    display: block !important;
  }
  .home-page #matchFeedContainer .exchange-fixture-row .sports-card-left.exchange-fixture-summary,
  .home-page .exchange-feed .exchange-fixture-row .sports-card-left.exchange-fixture-summary {
    display: grid !important;
    grid-template-columns: 26px minmax(0, 1fr) auto 22px !important;
    align-items: center !important;
    gap: 8px !important;
    min-height: 44px !important;
    padding: 5px 10px !important;
    width: auto !important;
    min-width: 0 !important;
  }
  .home-page #matchFeedContainer .exchange-fixture-row .sports-card-left.exchange-fixture-summary .exchange-fixture-summary__teams {
    display: block !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
  }
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-market-grid {
    padding: 3px 5px 5px !important;
  }
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-depth-placeholder,
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-market-grid__runner,
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-price-slot .oddBtn {
    min-height: 34px !important;
  }
  /* The league bar already labels Back/Lay; the per-row header only adds a
     30px row on a phone. */
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-market-grid__header {
    display: none !important;
  }
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-market-grid {
    grid-template-rows: auto !important;
  }
}

/* ==========================================================================
   35. Home fixture row: reference exchange layout
   Each fixture is one compact block, exactly like the reference exchange:
     line 1  -> event name + LIVE + time, full width
     line 2  -> six price cells, full width (Back1 Back2 Back3 | Lay1 Lay2 Lay3)
   That gives ~7-8 matches per screen. Applied from 576px up; phones keep the
   two-price variant of the same stacked shape.
   ========================================================================== */
@media (min-width: 576px) {
  .home-page #matchFeedContainer .exchange-fixture-row .sports-card-wrapper,
  .home-page .exchange-feed .exchange-fixture-row .sports-card-wrapper {
    display: block !important;
    grid-template-columns: none !important;
    min-height: 0 !important;
  }

  /* Name row: full width, one line. */
  .home-page #matchFeedContainer .exchange-fixture-row .sports-card-left.exchange-fixture-summary,
  .home-page .exchange-feed .exchange-fixture-row .sports-card-left.exchange-fixture-summary {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 5px 10px !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
  }
  .home-page .exchange-fixture-row .exchange-fixture-summary .btn-pin-game {
    order: 0 !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  .home-page .exchange-fixture-row .exchange-fixture-summary__main {
    order: 1 !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .home-page .exchange-fixture-row .exchange-fixture-summary__teams {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    overflow: hidden !important;
    color: var(--bbp-ink) !important;
    font-size: 12.5px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    text-transform: uppercase !important;
    white-space: nowrap !important;
    text-overflow: ellipsis !important;
  }
  .home-page .exchange-fixture-row .exchange-fixture-summary__meta {
    order: 2 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    margin: 0 0 0 auto !important;
    flex: 0 0 auto !important;
  }
  .home-page .exchange-fixture-row .exchange-fixture-summary__markets {
    order: 3 !important;
    flex: 0 0 auto !important;
    margin-left: 4px !important;
  }

  /* Price row: six full-width cells. */
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-market-grid,
  .home-page .exchange-feed .exchange-fixture-row .exchange-market-grid {
    grid-column: auto !important;
    grid-template-rows: auto !important;
    border-left: 0 !important;
    border-top: 1px solid var(--bbp-line) !important;
  }
  .home-page .exchange-fixture-row .exchange-market-grid__header {
    display: none !important;
  }
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-market-grid__prices,
  .home-page .exchange-feed .exchange-fixture-row .exchange-market-grid__prices {
    grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
    gap: 3px !important;
    padding: 3px 6px 5px !important;
  }
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-price-slot .oddBtn,
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-depth-placeholder,
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-market-grid__runner,
  .home-page .exchange-feed .exchange-fixture-row .exchange-price-slot .oddBtn,
  .home-page .exchange-feed .exchange-fixture-row .exchange-depth-placeholder,
  .home-page .exchange-feed .exchange-fixture-row .exchange-market-grid__runner {
    min-height: 30px !important;
  }
  .home-page .exchange-fixture-row .exchange-price-slot .oddBtn .odd-val { font-size: 13px !important; }

  /* The reference shows all six cells, with the unavailable depths as quiet
     dashes. Undo the tablet collapse for the reference layout. */
  .home-page #matchFeedContainer .exchange-fixture-row .exchange-market-grid__prices > .exchange-depth-placeholder,
  .home-page .exchange-feed .exchange-fixture-row .exchange-market-grid__prices > .exchange-depth-placeholder {
    display: flex !important;
  }
}

/* ==========================================================================
   36. Contrast fixes: filter tabs, live card odds, dark ACCENTS
   These were the last sub-AA pairs. Each keeps the same look but moves the
   text/background apart until the ratio clears 4.5:1.
   ========================================================================== */

/* Filter tabs (All Matches / Pinned / In-Play): the white label on #0878E8
   measured 4.32:1. Use a slightly deeper accent so it clears AA. Matched to
   the specificity of the custom.css light rule so it actually wins. */
html[data-theme="light"] .home-page .match-tab-btn.active,
html[data-theme="light"] .home-page .market-tab.active,
html[data-theme="dark"] .home-page .match-tab-btn.active,
html[data-theme="dark"] .home-page .market-tab.active {
  background: #0A5FBF !important;
  border-color: #0A5FBF !important;
  color: #FFFFFF !important;
}
html .home-page .match-tab-btn.active i,
html .home-page .market-tab.active i { color: #FFFFFF !important; }

/* Live Now card odds: red text on a pink wash was unreadable. Use the same
   solid Back (blue) / Lay (red) cells as the exchange rows, with dark text. */
.home-page .live-now-card__odd {
  color: #0B4F9C !important;
  background: #A5D9FE !important;
  border: 1px solid #A5D9FE !important;
  font-weight: 800 !important;
}
.home-page .live-now-card__odd:nth-child(2) {
  color: #9E1C4B !important;
  background: #F8D0CE !important;
  border-color: #F8D0CE !important;
}
html[data-theme="dark"] .home-page .live-now-card__odd {
  color: #B8DBFF !important;
  background: #1B3A5F !important;
  border-color: #1B3A5F !important;
}
html[data-theme="dark"] .home-page .live-now-card__odd:nth-child(2) {
  color: #FFC0D1 !important;
  background: #4A2230 !important;
  border-color: #4A2230 !important;
}

/* Price depth dash: light #64748B on #F4F7FA was 4.43:1, dark #667B98 on
   #111E31 was 2.75:1. Both deepened to clear AA. */
.home-page .exchange-depth-placeholder {
  color: #55637A !important;
}
html[data-theme="dark"] .home-page .exchange-depth-placeholder {
  color: #93A3BC !important;
  background: #111E31 !important;
}

/* Sport tab active: muted ink on the accent measured 3.64:1 in dark. */
html[data-theme="dark"] .home-page .sport-tab-strip__item.active {
  color: #FFFFFF !important;
  background: #0A5FBF !important;
}
html[data-theme="dark"] .home-page .sport-tab-strip__item.active i { color: #FFFFFF !important; }

/* ==========================================================================
   37. Mobile tap targets
   The dense exchange look keeps small VISUALS, but every control needs a
   comfortable hit area (WCAG 2.2 target size / Apple HIG). Enlarge the hit
   box with padding while the glyph stays the same size.
   ========================================================================== */
@media (max-width: 991.98px) {
  .home-page #bbHeroShowcase .hero-arrow-btn {
    width: 34px !important;
    height: 34px !important;
    font-size: 15px !important;
  }
  .home-page #bbHeroShowcase .hero-dot {
    width: 9px !important;
    height: 9px !important;
  }
  .home-page #bbHeroShowcase .hero-carousel-controls {
    gap: 8px !important;
    padding: 5px 10px !important;
  }
  .home-page .exchange-fixture-summary .btn-pin-game,
  .home-page .btn-pin-game {
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px !important;
  }
  .home-page .exchange-category-header__all {
    min-height: 30px !important;
    display: inline-flex !important;
    align-items: center !important;
    padding: 5px 0 !important;
    font-size: 12px !important;
  }
  .home-page .quick-stake-pill,
  .home-page .btn.btn-xs {
    min-height: 30px !important;
    padding: 6px 10px !important;
  }
  .home-page .match-tab-btn { min-height: 32px !important; }
  .home-page .sport-tab-strip__item { min-height: 40px !important; }
  .home-page .btn-sports-drawer,
  .header-primary .btn-sports-drawer {
    min-width: 38px !important;
    min-height: 38px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .home-page .app-nav__menu-link { min-height: 56px !important; }
  .home-page .language-btn,
  .home-page .dropdown-lang .language-btn { min-height: 32px !important; display: inline-flex !important; align-items: center !important; }
  /* The market-count link ("3 ›") is a real tap target on the fixture row. */
  .home-page .exchange-fixture-summary__markets {
    min-width: 34px !important;
    min-height: 34px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  /* The inline quick-bet close button already meets 44px; keep the input tall
     enough to tap. */
  .home-page .bb-inline-bet__input { min-height: 40px !important; }
}

/* ==========================================================================
   38. Match / odds row hover: thin gold highlight, bold, one line
   The old hover lifted the card with a shadow and a theme-accent border that
   clashed with the row colours. Replace it with a calm gold treatment: a thin
   gold outline, a whisper of gold behind the row, and the team names bold and
   on a single line.
   ========================================================================== */
.home-page .exchange-fixture-row .sports-card {
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
.home-page .exchange-fixture-row:hover .sports-card,
.home-page .exchange-fixture-row:focus-within .sports-card {
  border-color: #C9A227 !important;
  box-shadow: inset 0 0 0 1px #C9A227 !important;
  background-color: rgba(201, 162, 39, 0.06) !important;
  transform: none !important;
}
.home-page .exchange-fixture-row:hover .exchange-fixture-summary__teams,
.home-page .exchange-fixture-row:hover .exchange-fixture-summary__teams span {
  color: #7A5E12 !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}
.home-page .exchange-fixture-row:hover .exchange-fixture-summary__league,
.home-page .exchange-fixture-row:hover .exchange-fixture-summary__versus {
  color: #8A6D1F !important;
}
html[data-theme="dark"] .home-page .exchange-fixture-row:hover .sports-card,
html[data-theme="dark"] .home-page .exchange-fixture-row:focus-within .sports-card {
  border-color: #E8C766 !important;
  box-shadow: inset 0 0 0 1px #E8C766 !important;
  background-color: rgba(232, 199, 102, 0.10) !important;
}
html[data-theme="dark"] .home-page .exchange-fixture-row:hover .exchange-fixture-summary__teams,
html[data-theme="dark"] .home-page .exchange-fixture-row:hover .exchange-fixture-summary__teams span {
  color: #F2D98A !important;
}
html[data-theme="dark"] .home-page .exchange-fixture-row:hover .exchange-fixture-summary__league,
html[data-theme="dark"] .home-page .exchange-fixture-row:hover .exchange-fixture-summary__versus {
  color: #D9BE72 !important;
}

/* The match-page market rows get the same thin gold hover on the runner cell. */
.home-page .market-table tbody tr:hover > td:first-child {
  background: rgba(201, 162, 39, 0.08) !important;
  box-shadow: inset 2px 0 0 #C9A227 !important;
}
.home-page .market-table tbody tr:hover .runner-name { font-weight: 800 !important; }
html[data-theme="dark"] .home-page .market-table tbody tr:hover > td:first-child {
  background: rgba(232, 199, 102, 0.10) !important;
  box-shadow: inset 2px 0 0 #E8C766 !important;
}

/* ==========================================================================
   39. Section bars: our blue (the reference uses maroon/brown)
   The reference marks each category (home) and each market group (match page)
   with a solid maroon bar. We use the brand blue instead, with the same white
   text and the same small icons, so the structure reads the same in our theme.
   ========================================================================== */
.home-page .exchange-category-header {
  background: #0A5FBF !important;
  border-color: #0A5FBF !important;
}
.home-page .exchange-category-header__name { color: #FFFFFF !important; }
.home-page .exchange-category-header__count {
  background: #FFFFFF !important;
  color: #0A5FBF !important;
}
.home-page .exchange-category-header__all,
.home-page .exchange-category-header__all i { color: #FFFFFF !important; }
html[data-theme="dark"] .home-page .exchange-category-header {
  background: #0A5FBF !important;
  border-color: #0A5FBF !important;
}

/* Match page: market group headers become a solid blue bar. */
.home-page .market-accordion .accordion-button,
.home-page .market-accordion .accordion-button:not(.collapsed) {
  background: #0A5FBF !important;
  color: #FFFFFF !important;
  border-color: #0A5FBF !important;
}
.home-page .market-accordion .accordion-button i,
.home-page .market-accordion .accordion-button .la,
.home-page .market-accordion .accordion-button .las,
.home-page .market-accordion .accordion-button .lar { color: #FFFFFF !important; }
.home-page .market-accordion .accordion-button .badge {
  background: #FFFFFF !important;
  color: #0A5FBF !important;
  border: 0 !important;
}
.home-page .market-accordion .accordion-button::after { filter: brightness(0) invert(1) !important; }
html[data-theme="dark"] .home-page .market-accordion .accordion-button,
html[data-theme="dark"] .home-page .market-accordion .accordion-button:not(.collapsed) {
  background: #0A5FBF !important;
  color: #FFFFFF !important;
}

/* ==========================================================================
   41. Modals rendered inside the header
   The login/convert modals live inside `.header-primary`, whose frosted
   `backdrop-filter` makes it a containing block for `position: fixed`
   descendants — so the modal was positioned against the header instead of the
   viewport and rendered at the top, clipped by the nav. Dropping the
   backdrop-filter while a modal is open releases the containing block and the
   dialog centres correctly.
   ========================================================================== */
body.modal-open .header-primary,
body.modal-open .app-nav,
body.modal-open .sport-tab-strip {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
/* Keep the dialog comfortably inside the viewport on small screens. */
.modal-dialog { margin-top: 1.75rem; margin-bottom: 1.75rem; }
.modal-dialog-centered { margin-top: auto; margin-bottom: auto; }
.modal-content { border-radius: 12px !important; }

/* ==========================================================================
   42. Bottom-nav account drawer (profile, wallet, history ...)
   ========================================================================== */
.app-nav__drawer {
  display: flex !important;
  flex-direction: column !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 0 !important;
  background: #FFFFFF !important;
}
html[data-theme="dark"] .app-nav__drawer { background: #0E1728 !important; }

.app-nav__profile {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  background: #0A5FBF;
  color: #FFFFFF;
}
.app-nav__profile-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  flex: 0 0 auto;
}
.app-nav__profile-avatar i { font-size: 1.6rem; color: #FFFFFF; }
.app-nav__profile-meta { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.app-nav__profile-meta strong { font-size: 0.95rem; font-weight: 800; color: #FFFFFF; }
.app-nav__profile-meta small { display: flex; align-items: center; gap: 6px; margin-top: 2px; font-size: 0.75rem; color: rgba(255, 255, 255, 0.9); }
.app-nav__profile-mode {
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: .04em;
}
.app-nav__profile-bal { font-weight: 700; font-variant-numeric: tabular-nums; }

.app-nav__drawer-list { --gap: 0; padding: 6px 0; }
.app-nav__drawer-list li { border-bottom: 1px solid rgba(15, 23, 42, 0.06); }
.app-nav__drawer-list li:last-child { border-bottom: none; }
.app-nav__drawer-link {
  display: flex !important;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: #0F172A !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
}
.app-nav__drawer-link:hover { background: #F1F5F9; color: #0A5FBF !important; }
.app-nav__drawer-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  color: #0A5FBF;
  font-size: 1.1rem;
}
.app-nav__drawer-link--logout { color: #B42318 !important; }
.app-nav__drawer-link--logout .app-nav__drawer-icon { color: #B42318; }

html[data-theme="dark"] .app-nav__drawer-list li { border-bottom-color: rgba(255, 255, 255, 0.08); }
html[data-theme="dark"] .app-nav__drawer-link { color: #E2E8F0 !important; }
html[data-theme="dark"] .app-nav__drawer-link:hover { background: #16233A; color: #7DB6FF !important; }
html[data-theme="dark"] .app-nav__drawer-icon { color: #7DB6FF; }
html[data-theme="dark"] .app-nav__drawer-link--logout { color: #FF8A8A !important; }
html[data-theme="dark"] .app-nav__drawer-link--logout .app-nav__drawer-icon { color: #FF8A8A; }

.app-nav__guest-actions {
  display: grid;
  gap: 8px;
  padding: 12px 16px;
}
.app-nav__drawer-utility {
  margin-top: auto;
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
html[data-theme="dark"] .app-nav__drawer-utility { border-top-color: rgba(255, 255, 255, 0.08); }
.app-nav__drawer-utility .form-select { width: 100%; }

/* Drawer geometry: viewport-anchored, full height, wide enough for the list. */
.app-nav__drawer {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  bottom: 0 !important;
  height: 100dvh !important;
  max-height: none !important;
  width: min(340px, 88vw) !important;
}

/* ==========================================================================
   44. PTS visibility, match filter tabs, inline quick stakes
   ========================================================================== */

/* Header balance: the stock amber (#D97706) measured 3.19:1 on white. A deeper
   amber keeps the same "money" cue while clearing AA. */
html[data-theme="light"] .header-primary .wallet-bal-val,
html:not([data-theme="dark"]) .header-primary .wallet-bal-val {
  color: #B45309 !important;
}
html[data-theme="dark"] .header-primary .wallet-bal-val {
  color: #FBBF24 !important;
}

/* Mobile drawer profile card: it sits on a blue gradient, but the shared
   "dark-only page" rule in section 20 was forcing `.text-white` to ink. Pin
   the card's own text back to white. The selectors mirror that rule's
   specificity so they actually win. */
html[data-theme="light"] .bb-page-surface .app-nav__profile .app-nav__profile-meta strong,
html:not([data-theme="dark"]) .bb-page-surface .app-nav__profile .app-nav__profile-meta strong,
html[data-theme="dark"] .bb-page-surface .app-nav__profile .app-nav__profile-meta strong,
html[data-theme="light"] .bb-page-surface .app-nav__profile .app-nav__profile-meta .text-white:not(.badge),
html:not([data-theme="dark"]) .bb-page-surface .app-nav__profile .app-nav__profile-meta .text-white:not(.badge),
html[data-theme="dark"] .bb-page-surface .app-nav__profile .app-nav__profile-meta .text-white:not(.badge) {
  color: #FFFFFF !important;
}
html[data-theme="light"] .bb-page-surface .app-nav__profile .app-nav__profile-meta small,
html:not([data-theme="dark"]) .bb-page-surface .app-nav__profile .app-nav__profile-meta small,
html[data-theme="dark"] .bb-page-surface .app-nav__profile .app-nav__profile-meta small,
html[data-theme="light"] .bb-page-surface .app-nav__profile .app-nav__profile-meta .text-white-50,
html:not([data-theme="dark"]) .bb-page-surface .app-nav__profile .app-nav__profile-meta .text-white-50,
html[data-theme="dark"] .bb-page-surface .app-nav__profile .app-nav__profile-meta .text-white-50 {
  color: rgba(255, 255, 255, 0.88) !important;
}

/* Match page market filter: calm segmented pills, All / Session first and
   visually equal to the rest. */
.market-filter-tabs {
  gap: 6px !important;
  scrollbar-width: none;
}
.market-filter-tabs .market-tab {
  border-radius: 999px !important;
  padding: 7px 16px !important;
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  border: 1px solid var(--bbp-line) !important;
  background: var(--bbp-surface) !important;
  color: var(--bbp-ink-2) !important;
  box-shadow: none !important;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.market-filter-tabs .market-tab:hover {
  background: var(--bbp-surface-2) !important;
  color: var(--bbp-ink) !important;
  border-color: var(--bbp-line-strong) !important;
}
.market-filter-tabs .market-tab.active {
  background: #0A5FBF !important;
  border-color: #0A5FBF !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(10, 95, 191, 0.28) !important;
}
.market-filter-tabs .market-tab.active i { color: #FFFFFF !important; }
html[data-theme="dark"] .market-filter-tabs .market-tab {
  background: #111827 !important;
  border-color: #2E405C !important;
  color: #C7D2E0 !important;
}
html[data-theme="dark"] .market-filter-tabs .market-tab:hover {
  background: #16233A !important;
  color: #FFFFFF !important;
  border-color: #3B4F6E !important;
}
html[data-theme="dark"] .market-filter-tabs .market-tab.active {
  background: #2F80ED !important;
  border-color: #2F80ED !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 10px rgba(47, 128, 237, 0.36) !important;
}

/* Inline quick-bet stake chips (100 / 500 / 1,000 / 5,000). */
.bb-inline-bet__stakes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.bb-inline-bet__chip {
  height: 34px;
  min-width: 48px;
  padding: 0 12px;
  border: 1px solid var(--bbp-line-strong);
  border-radius: 999px;
  background: var(--bbp-surface);
  color: var(--bbp-ink-2);
  font-size: 0.8rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .14s ease, border-color .14s ease, color .14s ease;
}
.bb-inline-bet__chip:hover {
  background: var(--bbp-surface-2);
  border-color: var(--bbp-accent);
  color: var(--bbp-accent);
}
.bb-inline-bet__chip.is-active {
  background: #0A5FBF;
  border-color: #0A5FBF;
  color: #FFFFFF;
}
html[data-theme="dark"] .bb-inline-bet__chip {
  background: #0B1220;
  border-color: #334155;
  color: #D5DCE6;
}
html[data-theme="dark"] .bb-inline-bet__chip:hover {
  background: #16233A;
  border-color: #3B82F6;
  color: #9CC4F5;
}
html[data-theme="dark"] .bb-inline-bet__chip.is-active {
  background: #2F80ED;
  border-color: #2F80ED;
  color: #FFFFFF;
}

@media (max-width: 575.98px) {
  .bb-inline-bet__stakes {
    flex: 1 1 100%;
    order: 1;
  }
  .bb-inline-bet__place {
    order: 2;
  }
  .bb-inline-bet__chip {
    flex: 1 1 calc(25% - 6px);
    min-width: 0;
    height: 38px;
    padding: 0 6px;
  }
}

/* custom.css pins the light-mode page wrappers (and body) to the system font
   with !important. Keep Manrope there too so the typeface is consistent. */
html:not([data-theme="dark"]) body,
html[data-theme="light"] body,
html:not([data-theme="dark"]) .body-wrapper,
html[data-theme="light"] .body-wrapper,
html:not([data-theme="dark"]) .home-page,
html[data-theme="light"] .home-page,
html:not([data-theme="dark"]) .sports-body,
html[data-theme="light"] .sports-body,
html:not([data-theme="dark"]) .user-dashboard,
html[data-theme="light"] .user-dashboard,
html:not([data-theme="dark"]) .section--bg,
html[data-theme="light"] .section--bg {
  font-family: var(--font-family-sans) !important;
}

/* Header "Add PTS" pill: the stock success green measured 4.33:1 with white
   text. Deepen it slightly to clear AA without changing the affordance. */
html[data-theme="light"] .header-primary .mobile-top-add-btn,
html:not([data-theme="dark"]) .header-primary .mobile-top-add-btn {
  background: #0F7A4D !important;
  border-color: #0F7A4D !important;
}

/* Empty state when a market filter (e.g. Session) has nothing to show. */
.bb-market-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 28px 16px;
  margin-bottom: 12px;
  border: 1px dashed var(--bbp-line-strong);
  border-radius: 12px;
  background: var(--bbp-surface-2);
  color: var(--bbp-muted);
  font-size: 0.86rem;
  font-weight: 600;
  text-align: center;
}
.bb-market-empty i { font-size: 1.1rem; }
html[data-theme="dark"] .bb-market-empty {
  background: #111827;
  border-color: #2E405C;
  color: #B9C3D2;
}

/* Drawer utility: the language selector inherited the dark-theme near-white
   text and disappeared on the white drawer. */
html[data-theme="light"] .app-nav__drawer .language-btn,
html:not([data-theme="dark"]) .app-nav__drawer .language-btn,
html[data-theme="light"] .app-nav__drawer .language-text,
html:not([data-theme="dark"]) .app-nav__drawer .language-text,
html[data-theme="light"] .app-nav__drawer .language-code-text,
html:not([data-theme="dark"]) .app-nav__drawer .language-code-text {
  color: var(--bbp-ink) !important;
}

/* ==========================================================================
   45. Dark-theme contrast sweep (match page + mobile chrome)
   These five pairs were the only sub-3.2:1 combinations left after the
   Phase 35 retokenisation. Each keeps its original hue but deepens the fill
   (or flips the label to ink) so the pair clears AA.
   ========================================================================== */

/* Wallet-mode badge: the dark theme's generic `.badge *` rule forced a pale
   slate label onto the green pill (2.86:1). */
html[data-theme="dark"] .bb-page-surface .badge.bb-mobile-wallet-badge.is-main,
html[data-theme="dark"] .bb-page-surface .badge.bb-wallet-mode-badge.is-main {
  background: #0F7A4D !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] .bb-page-surface .badge.bb-mobile-wallet-badge.is-demo,
html[data-theme="dark"] .bb-page-surface .badge.bb-wallet-mode-badge.is-demo {
  color: #08131F !important;
}

/* One-click stake pills: the page's own inline style used #0E97FB with white
   text (3.07:1), and bb-polish's light rule flattened the active state into
   the inactive one. Deepen the active fill and win back the highlight. */
html[data-theme="light"] .quick-stake-pill.active,
html:not([data-theme="dark"]) .quick-stake-pill.active,
.quick-stake-pill.active {
  background: #0A5FBF !important;
  border-color: #0A5FBF !important;
  color: #FFFFFF !important;
  box-shadow: 0 0 8px rgba(10, 95, 191, 0.4) !important;
}

/* Floating bet-slip pill: in dark mode it inherited the light-blue accent as
   its fill (2.53:1 with white). Use the brand blue instead. */
html[data-theme="dark"] .bb-betslip-fab {
  background: #0A5FBF !important;
  border-color: #0A5FBF !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] .bb-betslip-fab .bb-betslip-fab__count {
  background: #FFFFFF !important;
  color: #0B4F9C !important;
}

/* Bottom-nav selection count: hsl(--base) with white measured 3.05:1. */
span.bet-count {
  background: #0A5FBF !important;
  color: #FFFFFF !important;
}

/* Inline "Place Bet" follows the same rule: the dark accent is too pale for a
   white label, so use the brand blue fill. */
html[data-theme="dark"] .bb-inline-bet__place {
  background: #0A5FBF;
  color: #FFFFFF;
}

/* Missing-price dash on the match page: the inherited grey measured 3.06:1 on
   the row tint. Darken it so even the placeholder clears AA. */
.depth-none {
  color: #6B7280 !important;
}
html[data-theme="dark"] .depth-none {
  color: #7C8AA0 !important;
}
.home-page .market-table .depth-none {
  color: #6B7280 !important;
}
html[data-theme="dark"] .home-page .market-table .depth-none {
  color: #7C8AA0 !important;
}

/* Home rail: the dark theme's active category used the pale accent as a fill
   (white text = 2.53:1). Use the solid brand blue instead. */
html[data-theme="dark"] .home-page .sports-category__list .sports-category__link.active {
  background: #0A5FBF !important;
  border-bottom-color: #0A5FBF !important;
}

/* "See All" on the blue category bar: #7DB6FF measured 2.94:1. White matches
   the rest of the bar and clears AA. */
html[data-theme="dark"] .home-page .exchange-category-header__all,
html[data-theme="dark"] .home-page .exchange-category-header__all i {
  color: #FFFFFF !important;
}

/* Active bottom-nav label: the mobile amber (#D97706) measured 3.19:1 on the
   white bar. Deepen it to the same amber used for the header balance. */
html:not([data-theme="dark"]) .app-nav__menu-link.active .app-nav__menu-text,
html[data-theme="light"] .app-nav__menu-link.active .app-nav__menu-text {
  color: #B45309 !important;
}

/* Casino page: the dark theme's generic `.badge` rule repainted live/roadmap
   pills with pale slate, which is unreadable on their light fills. */
html[data-theme="dark"] .bb-page-surface .badge.top-badge-live {
  background: #D93645 !important;
  border-color: #D93645 !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] .bb-page-surface .badge.casino-roadmap-pill {
  color: #08131F !important;
  border-color: rgba(8, 19, 31, 0.28) !important;
}

/* Casino odds value used the stock amber on the near-white tile (3.04:1). */
html[data-theme="light"] .casino-odds-value,
html:not([data-theme="dark"]) .casino-odds-value {
  color: #B45309 !important;
}


/* ==========================================================================
   47. Fancy / session rows: status lives in the runner cell
   The reference presents a session as one labelled row, not a header plus a
   mostly-empty seven-column grid. The title, its live/suspended state, the
   stake cap and the Book action all sit in the name cell; NO and YES each
   keep a single price cell on the right, labelled in place.
   ========================================================================== */
.home-page .market-table .fancy-row > td {
  vertical-align: middle !important;
}
.home-page .market-table .fancy-cell {
  min-width: 0;
  padding: 8px 10px !important;
}
/* Title and Book share the first line; the status line spans the full cell
   beneath them. A grid keeps the Book action pinned top-right at every width
   instead of dropping it under the title on narrow screens. */
.home-page .market-table .fancy-cell__main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2px 10px;
}
.home-page .market-table .fancy-cell__title {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.home-page .market-table .fancy-cell__main .fancy-book-btn {
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
}
.home-page .market-table .fancy-cell__meta {
  grid-column: 1 / -1;
  grid-row: 2;
}
.home-page .market-table .fancy-cell__title .runner-name {
  overflow-wrap: anywhere;
}
.home-page .market-table .fancy-cell__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 6px;
  margin-top: 3px;
  font-size: 11px !important;
  line-height: 1.35;
  color: var(--bbp-muted) !important;
}
.home-page .market-table .fancy-cell__meta i {
  color: #B45309;
  font-size: 12px;
}
html[data-theme="dark"] .home-page .market-table .fancy-cell__meta i {
  color: #E8C766;
}
.home-page .market-table .fancy-cell__dot {
  opacity: 0.55;
}

/* Live / suspended state pill, kept inside the title line. */
.home-page .market-table .fancy-state {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1.6;
  text-transform: uppercase;
  white-space: nowrap;
}
.home-page .market-table .fancy-state--live {
  color: #1E7A38 !important;
  background: rgba(30, 122, 56, 0.1) !important;
  border: 1px solid rgba(30, 122, 56, 0.25) !important;
}
html[data-theme="dark"] .home-page .market-table .fancy-state--live {
  color: #6EE7A0 !important;
  background: rgba(110, 231, 160, 0.12) !important;
  border-color: rgba(110, 231, 160, 0.28) !important;
}
.home-page .market-table .fancy-state--suspended {
  color: #FFFFFF !important;
  background: #B42318 !important;
  border: 1px solid #B42318 !important;
}
.home-page .market-table .fancy-state__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: bbpFancyPulse 2s ease-in-out infinite;
}
@keyframes bbpFancyPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* NO / YES labels replace the removed column header. */
.home-page .market-table .fancy-side-cell {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}
.home-page .market-table .fancy-side-label {
  display: block;
  margin-bottom: 3px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}
.home-page .market-table .fancy-side-label--no { color: var(--bbp-lay) !important; }
.home-page .market-table .fancy-side-label--yes { color: var(--bbp-back) !important; }
html[data-theme="dark"] .home-page .market-table .fancy-side-label--no { color: #F0A8BC !important; }
html[data-theme="dark"] .home-page .market-table .fancy-side-label--yes { color: #9EC5F0 !important; }

/* A suspended session is visibly inert but still readable. */
.home-page .market-table .fancy-row.is-suspended .runner-name {
  color: var(--bbp-muted) !important;
}

/* Keep the label + button stack from growing the row on narrow screens. */
@media (max-width: 575.98px) {
  /* Narrow screens: the state pill drops to its own line so the session name
     keeps the full cell width instead of wrapping twice. The meta line is
     shortened in the markup to hold a 2-line budget on 390px viewports. */
  .home-page .market-table .fancy-cell__title {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }
  .home-page .market-table .fancy-cell__main { gap: 2px 8px; }
  .home-page .market-table .fancy-cell__meta { font-size: 10.5px !important; }
  .home-page .market-table .fancy-cell__meta .fancy-meta-long { display: none; }
  /* The separator dot only exists inside the hidden stake-cap span. */
  .home-page .market-table .fancy-book-btn { padding: 1px 6px !important; }
}
