/* Copy Animation */
.base-color {
  color: hsl(var(--main)) !important;
}

.copyInput {
  display: inline-block;
  line-height: 50px;
  position: absolute;
  top: 0;
  right: 0;
  width: 40px;
  text-align: center;
  font-size: 14px;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.copied::after {
  position: absolute;
  top: 8px;
  right: 12%;
  width: 100px;
  display: block;
  content: "COPIED";
  font-size: 1em;
  padding: 5px 5px;
  color: #fff;
  background-color: #ff7000;
  border-radius: 3px;
  opacity: 0;
  will-change: opacity, transform;
  animation: showcopied 1.5s ease;
}

@keyframes showcopied {
  0% {
    opacity: 0;
    transform: translateX(100%);
  }

  50% {
    opacity: 0.7;
    transform: translateX(40%);
  }

  70% {
    opacity: 1;
    transform: translateX(0);
  }

  100% {
    opacity: 0;
  }
}

.cookies-card {
  width: 520px;
  padding: 30px;
  color: #1e2337;
  position: fixed;
  bottom: 15px;
  left: 15px;
  z-index: 999999;
  transition: all 0.5s;
  background: #d1d1d1;
  border-radius: 5px;
  overflow: visible;
}
.cookies-card .cookies-card__close {
  position: absolute;
  top: 8px;
  right: 8px;
}

.cookies-card.hide {
  bottom: -500px !important;
}

.radius--10px {
  border-radius: 10px;
}

.cookies-card__icon {
  width: 55px;
  height: 55px;
  border-radius: 50%;
  background-color: #6e6f70;
  color: #fff;
  font-size: 32px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
}

.cookies-card__content {
  margin-bottom: 0;
}

.cookies-btn {
  color: #363636;
  text-decoration: none;
  padding: 10px 35px;
  margin: 3px 5px;
  display: inline-block;
  border-radius: 999px;
}

.cookies-btn:hover {
  color: #363636;
}

@media (max-width: 767px) {
  /* P0 fix 2026-11-10: the full-width banner at bottom:0 covered the
     lowest market rows AND the fixed bottom nav until dismissed. It now
     docks above the nav, inset from the edges, with the icon hidden so the
     bar stays short and the rows beneath it stay readable. */
  .cookies-card {
    width: auto;
    left: 8px;
    right: 8px;
    bottom: 72px;
    font-size: 13px;
    padding: 12px 14px;
  }
  .cookies-card__icon {
    display: none;
  }
  .cookies-card__content {
    margin-top: 0 !important;
  }
}

.hover-input-popup {
  position: relative;
  z-index: 9999;
}

.input-popup {
  display: none;
}

.hover-input-popup .input-popup {
  display: block;
  position: absolute;
  bottom: 130%;
  left: 50%;
  width: 280px;
  background-color: #1a1a1a;
  color: #fff;
  padding: 20px;
  border-radius: 5px !important;
  -webkit-transform: translateX(-50%);
  -ms-transform: translateX(-50%);
  transform: translateX(-50%);
  -webkit-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

.input-popup::after {
  position: absolute;
  content: "";
  bottom: -19px;
  left: 50%;
  margin-left: -5px;
  border-width: 10px 10px 10px 10px;
  border-style: solid;
  border-color: transparent transparent #1a1a1a transparent;
  -webkit-transform: rotate(180deg);
  -ms-transform: rotate(180deg);
  transform: rotate(180deg);
}

.input-popup p {
  padding-left: 20px;
  position: relative;
}

.input-popup p::before {
  position: absolute;
  content: "";
  font-family: "Line Awesome Free";
  font-weight: 900;
  left: 0;
  top: 4px;
  line-height: 1;
  font-size: 18px;
}

.input-popup p.error {
  text-decoration: line-through;
}

.input-popup p.error::before {
  content: "\f057";
  color: #ea5455;
}

.input-popup p.success::before {
  content: "\f058";
  color: #28c76f;
}

.show-filter {
  display: none;
}

@media (max-width: 767px) {
  .responsive-filter-card {
    display: none;
    transition: none;
  }

  .show-filter {
    display: block;
  }
}

/* ////////////////// select 2 css //////////////// */
.select2-dropdown {
  border: 0 !important;
  margin-top: 8px !important;
  border-radius: 5px !important;
  box-shadow: 0 3px 9px rgba(50, 50, 9, 0.05),
    6px 4px 19px rgb(115 103 240 / 20%);
}

.select2-search--dropdown {
  padding: 10px 10px !important;
  border-color: #ced4da !important;
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  border-color: #ced4da !important;
  padding: 10px 20px;
}

.select2-results__option.select2-results__option--selected,
.select2-results__option--selectable,
.select2-container--default .select2-results__option--disabled {
  padding: 12px 14px !important;
  border-bottom: 1px solid #eee;
}

.select2-results__option.select2-results__message {
  text-align: center !important;
  padding: 12px 14px !important;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar {
  width: 8px;
  border-radius: 5px;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar-thumb {
  background: #ddd;
}

.select2-container--default
  .select2-results
  > .select2-results__options::-webkit-scrollbar-thumb:hover {
  background: #ddd;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow
  b {
  display: none;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow:after {
  position: absolute;
  right: 10px;
  top: 0;
  content: "\f107";
  font-family: "Line Awesome Free";
  font-weight: 900;
  transition: 0.3s;
}

.select2-container--default .select2-selection--single {
  border-color: #d9d9d9 !important;
  border-width: 1px !important;
  border-radius: 0.375rem !important;
  padding: 0.375rem 0.75rem !important;
  height: 100% !important;
}
.select2-container--default
  .select2-selection--single
  .select2-selection__rendered {
  line-height: 31px !important;
}

.select2-container--default
  .select2-selection--single
  .select2-selection__arrow {
  top: 8px !important;
}

.select2-container--default.select2-container--open
  .select2-selection--single
  .select2-selection__arrow:after {
  transform: rotate(-180deg);
}

.select2-results__option:last-child {
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
}

.select2-results__option:first-child {
  border-top-left-radius: 5px;
  border-top-right-radius: 5px;
}

.select2-results__option.select2-results__option--selected,
.select2-container--default
  .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #f1f1f1 !important;
  color: #000 !important;
}

.select2-container--default
  .select2-search--dropdown
  .select2-search__field:focus {
  border-color: hsl(var(--base)) !important;
  box-shadow: 0 0 25px rgba(115, 103, 240 0.071) !important;
  outline: 0 !important;
}

.select2-dropdown .country-flag {
  width: 25px;
  height: 25px;
  border-radius: 8px;
}

.select2-dropdown .gateway-title {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 0px !important;
}

.select2-dropdown .gateway-subtitle {
  font-size: 12px;
  margin-bottom: 0px !important;
}
.select2-container--open .select2-selection.select2-selection--single,
.select2-container--open .select2-selection.select2-selection--multiple {
  border-color: hsl(var(--base)) !important;
  border-radius: 0.375rem !important;
}

.payment-card-title {
  padding: 13px 25px;
  text-align: center;
  background-color: hsl(var(--base));
  border-radius: 5px;
  border: 0;
  margin-bottom: 0px;
  color: #fff;
}

.payment-system-list {
  --thumb-width: 100px;
  --thumb-height: 40px;
  --radio-size: 12px;
  --border-color: #cccccf59;
  --hover-border-color: hsl(var(--base));
  background-color: #fff;
  border-radius: 5px;
  height: 100%;
}

.payment-system-list.is-scrollable {
  max-height: min(340px, 70vh);
  overflow-x: auto;
  padding-block: 4px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar {
  width: 5px;
}

.payment-system-list.is-scrollable::-webkit-scrollbar-thumb {
  background-color: hsl(var(--dark) / 0.07);
  border-radius: 10px;
}

.payment-item {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  padding: 10px 18px;
  border: 1px solid #fff;
  border-top-color: var(--border-color);
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

.payment-item:first-child {
  border-top-color: #fff;
  border-radius: 5px 5px 0 0;
}

.payment-item:has(.payment-item__radio:checked) {
  border-left: 3px solid var(--hover-border-color);
  border-radius: 0px;
}

.payment-item__check {
  border: 3px solid transparent;
}

.payment-item:has(.payment-item__radio:checked) .payment-item__check {
  border: 3px solid hsl(var(--base));
}

.payment-item__info {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  max-width: calc(100% - var(--thumb-width));
}

.payment-item__check {
  width: var(--radio-size);
  height: var(--radio-size);
  border: 1px solid hsl(var(--base));
  display: inline-block;
  border-radius: 100%;
}

.payment-item__name {
  padding-left: 10px;
  width: calc(100% - var(--radio-size));
  transition: all 0.3s;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box !important;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
}

.payment-item__thumb {
  width: var(--thumb-width);
  height: var(--thumb-height);
  text-align: right;
  padding-left: 10px;

  &:has(.text) {
    width: fit-content;
  }
}

.payment-item__thumb img {
  max-width: var(--thumb-width);
  max-height: var(--thumb-height);
  object-fit: cover;
}

.total-amount {
  border-top: 1px solid var(--border-color);
}

.payment-item__btn {
  border: 0;
  border-block: 1px solid var(--border-color);
  border-bottom: 0;
  background: #fff;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 15px;
  font-weight: 500;
}

.payment-item:hover + .payment-item__btn {
  border-top-color: #fff;
}

button .spinner-border {
  --bs-spinner-width: 1.5rem;
  --bs-spinner-height: 1.5rem;
}

label.required:after {
  content: "*";
  color: #dc3545 !important;
  margin-left: 2px;
}

.mobile-code {
  cursor: pointer;
  padding-right: 5px;
  font-size: 0.875rem;
  font-weight: 500;
}

.text--extra-small {
  font-size: 0.625rem !important;
}

.text--small {
  font-size: 0.75rem !important;
}

.social-login-btn {
  border: 1px solid #cbc4c4;
}

.register-disable {
  padding-block: 80px;
  width: 100%;
  background-color: #fff;
  color: black;
  display: flex;
  align-items: center;
  justify-content: center;
}

.register-disable-image img {
  width: 100%;
}

.register-disable-title {
  color: rgb(0 0 0 / 80%);
  font-size: 42px;
  margin-bottom: 18px;
}

.register-disable-icon {
  font-size: 16px;
  background: rgb(255, 15, 15, 0.07);
  color: rgb(255, 15, 15, 0.8);
  border-radius: 3px;
  padding: 6px;
  margin-right: 4px;
}

.register-disable-desc {
  color: rgb(0 0 0 / 50%);
  font-size: 18px;
  max-width: 565px;
  width: 100%;
  margin-bottom: 32px;
}

.register-disable-footer-link {
  color: #fff;
  background-color: #5b28ff;
  padding: 13px 24px;
  border-radius: 6px;
  text-decoration: none;
}

.register-disable-footer-link:hover {
  background-color: #440ef4;
  color: #fff;
}

@media (max-width: 1199px) {
  .payment-item {
    padding: 10px 6px;
  }
  .payment-item__name {
    font-size: 0.875rem;
  }
}


.daterangepicker td.active,
.daterangepicker td.active:hover,
.daterangepicker .ranges li.active {
  background-color: hsl(var(--base)) !important;
}

/* ==========================================================================
   BB-Bet Official Motion Swoosh Color System (Derived From Brand Logo)
   - Electric Cyan: #00E5FB (hsl 185, 100%, 49%) - Motion Swoosh accent
   - Electric Azure: #0E97FB (hsl 205, 96%, 52%) - Core Brand Blue
   - Royal Cobalt: #0061F0 (hsl 216, 100%, 47%) - High-tech Shadow Accent
   - Deep Midnight Sapphire: #071536 / #0A193E (hsl 221, 77%, 12%) - Background
   - Logo Motion Gradient: linear-gradient(135deg, #00E5FB 0%, #0E97FB 50%, #0061F0 100%)
   - Logo Gradient Hover: linear-gradient(135deg, #33EBFC 0%, #29A8FF 50%, #0054D6 100%)
   ========================================================================== */

/* ==========================================================================
   CANONICAL BB-BET BRAND & UI DESIGN SYSTEM TOKENS (Section 2 & 13)
   ========================================================================== */
:root {
  /* Brand Blue & Cyan Scale */
  --bb-blue-700: #0757C8;
  --bb-blue-600: #0878E8;
  --bb-blue-500: #1595F5;
  --bb-cyan-500: #00B8D9;
  --bb-cyan-100: #DDF7FC;

  /* Layered Atmospheric Navy Scales (Strictly no pure black #000000) */
  --bb-navy-950: #071426;
  --bb-navy-900: #0B1B31;
  --bb-navy-850: #10243D;
  --bb-navy-800: #162D49;
  --bb-navy-700: #203B5B;
  --bb-navy-600: #29415F;

  /* Slate & Information Surfaces */
  --bb-white: #FFFFFF;
  --bb-slate-50: #F7F9FC;
  --bb-slate-100: #EEF2F7;
  --bb-slate-200: #DCE4EE;
  --bb-slate-400: #94A3B8;
  --bb-slate-500: #64748B;
  --bb-slate-700: #334155;
  --bb-slate-900: #17263A;

  /* Semantic Status Tokens (Accessible & Distinct) */
  --bb-success: #138A55;
  --bb-warning: #D99013;
  --bb-danger: #D93645;
  --bb-info: #0878E8;
  --bb-accent: #F5A623;

  /* Radii & Spacing Scale */
  --bb-radius-sm: 6px;
  --bb-radius-md: 8px;
  --bb-radius-lg: 12px;
  --bb-space-1: 4px;
  --bb-space-2: 8px;
  --bb-space-3: 12px;
  --bb-space-4: 16px;
  --bb-space-6: 24px;
  --bb-space-8: 32px;

  /* Hardware Appearance Inset Highlight Token */
  --bb-hardware-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
  --bb-hardware-border: 1px solid var(--bb-navy-600);

  /* Compatibility mappings */
  --bb-cyan: var(--bb-cyan-500);
  --bb-azure: var(--bb-blue-600);
  --bb-cobalt: var(--bb-blue-700);
  --bb-sapphire: var(--bb-navy-950);
  --bb-gradient: linear-gradient(135deg, var(--bb-blue-600) 0%, var(--bb-blue-700) 100%);
  --bb-gradient-hover: linear-gradient(135deg, var(--bb-blue-500) 0%, var(--bb-blue-600) 100%);
  --bb-glow: 0 0 12px rgba(8, 120, 232, 0.3);

  --indian-navy: var(--bb-navy-950);
  --indian-saffron: var(--bb-blue-600);
  --indian-green: var(--bb-success);
  --indian-ivory: #F7FAFF;

  /* Typography fallback & variables */
  --font-family-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-family-mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Overriding theme color variables */
  --dark-h: 215;
  --dark-s: 70%;
  --dark-l: 9%;
  --dark: 215 70% 9%;
  --dark-100: 215 50% 24%;
  --dark-200: 215 50% 20%;
  --dark-300: 215 50% 18%;
  --dark-400: 215 50% 15%;
  --dark-500: 215 70% 9%;
  --dark-600: 215 70% 8%;
  --dark-700: 215 70% 6%;
  --dark-800: 215 70% 4%;

  --base-h: 213;
  --base-s: 94%;
  --base-l: 47%;
  --base: 213 94% 47%;
  --base-dark: 215 93% 41%;

  --success: 153 76% 31%;
  --light: 210 40% 98%;
}

/* Base Typography Realignment */
body, button, input, select, textarea {
  font-family: var(--font-family-sans);
}
h1, h2, h3, h4, h5, h6, .hero-title, .sports-card-heading, .section-header-title {
  font-family: var(--font-family-sans);
  letter-spacing: -0.02em;
}

/* Dark Mode Backgrounds & Global Surfaces */
html[data-theme="dark"] body, 
html[data-theme="dark"] .body-wrapper, 
html[data-theme="dark"] .user-dashboard, 
html[data-theme="dark"] .section--bg {
  background-color: var(--bb-navy-950) !important;
  color: #B7C5D8 !important;
}

html[data-theme="dark"] .header-fluid-custom-parent, 
html[data-theme="dark"] .header-bottom, 
html[data-theme="dark"] .custom--card, 
html[data-theme="dark"] .odds-list__item, 
html[data-theme="dark"] .bet-item {
  background-color: var(--bb-navy-850) !important;
  border-color: var(--bb-navy-600) !important;
  box-shadow: var(--bb-hardware-inset) !important;
}

/* Primary Action Buttons (Section 7: #0878E8, hover #0757C8, pressed #064BAA) */
.btn--base, .bg--base, .badge--base, .pagination .page-item.active .page-link {
  background: var(--bb-blue-600) !important;
  color: #FFFFFF !important;
  font-weight: 600;
  border: 1px solid var(--bb-blue-700) !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.15) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn--base:hover, .btn--base:focus {
  background: var(--bb-blue-700) !important;
  border-color: var(--bb-blue-700) !important;
  color: #FFFFFF !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.2) !important;
  transform: translateY(-1px);
}

.btn--base:active {
  background: #064BAA !important;
  transform: scale(0.98) !important;
}

.text--base, .t-link--base, a.t-link--base {
  color: var(--bb-azure) !important;
}

/* Green Winning / Success Indicators */
.badge--success, .text--success, .bet-status--won {
  color: #fff !important;
  background-color: var(--indian-green) !important;
}

/* Free-Play Badge & Top Banner */
.free-play-banner {
  background: linear-gradient(90deg, #071536 0%, #0A1E4A 50%, #071536 100%);
  border-bottom: 2px solid #00E5FB;
  padding: 6px 15px;
  font-size: 0.825rem;
  font-weight: 500;
  color: #F8FAFC;
  text-align: center;
}
.free-play-badge {
  display: inline-block;
  background: var(--bb-gradient);
  color: #ffffff;
  font-size: 0.725rem;
  font-weight: 700;
  box-shadow: 0 0 10px rgba(0, 229, 251, 0.4);
  padding: 2px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  margin-right: 6px;
  letter-spacing: 0.5px;
}

/* ========================================================
   CRICKET BROADCAST SCORECARD & IN-PLAY STYLING
   ======================================================== */
.cricket-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(220, 53, 69, 0.2);
  color: #ff4d4d;
  border: 1px solid rgba(220, 53, 69, 0.4);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: #ff4d4d;
  border-radius: 50%;
  animation: pulseCricket 1.2s infinite ease-in-out;
}
@keyframes pulseCricket {
  0% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.7); }
  70% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 0 6px rgba(255, 77, 77, 0); }
  100% { transform: scale(0.9); opacity: 0.8; box-shadow: 0 0 0 0 rgba(255, 77, 77, 0); }
}

.cricket-score-summary {
  background: rgba(7, 21, 54, 0.85);
  border-radius: 6px;
  padding: 6px 10px;
  margin: 6px 0;
  border-left: 3px solid var(--bb-cyan);
}
.cricket-score-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #FFF8E9;
  font-weight: 600;
}
.cricket-overs-pill {
  color: #9cb3d8;
  font-size: 0.75rem;
  font-weight: 500;
}
.cricket-situation {
  font-size: 0.72rem;
  color: var(--bb-cyan);
  margin-top: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.cricket-ball-strip {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
}
.cricket-ball {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  font-size: 0.65rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1f3358;
  color: #ffffff;
}
.cricket-ball.four {
  background: #007bff;
  color: #ffffff;
}
.cricket-ball.six {
  background: #6f42c1;
  color: #ffffff;
  box-shadow: 0 0 4px #6f42c1;
}
.cricket-ball.wicket {
  background: #dc3545;
  color: #ffffff;
  font-weight: 900;
}
.cricket-ball.active {
  border: 1px solid var(--bb-cyan);
}

.cricket-time-badge {
  font-size: 0.75rem;
  font-weight: 600;
  color: #9cb3d8;
  background: rgba(255, 255, 255, 0.05);
  padding: 3px 8px;
  border-radius: 4px;
}

/* ========================================================
   BETSLIP QUICK-STAKE PILLS & BALANCE BAR
   ======================================================== */
.betslip-balance-bar {
  background: linear-gradient(135deg, rgba(0, 229, 251, 0.15) 0%, rgba(14, 151, 251, 0.15) 100%);
  border-bottom: 1px solid rgba(0, 229, 251, 0.35);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
}
.betslip-balance-pts {
  font-weight: 800;
  color: var(--bb-cyan);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.quick-stake-container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}
.quick-stake-btn {
  background: #0d1e44;
  color: #9cb3d8;
  border: 1px solid rgba(0, 229, 251, 0.3);
  border-radius: 4px;
  padding: 3px 8px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}
.quick-stake-btn:hover, .quick-stake-btn.active {
  background: var(--bb-gradient);
  color: #ffffff;
  border-color: var(--bb-cyan);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 229, 251, 0.35);
}
.quick-stake-btn.max-btn {
  border-color: var(--indian-green);
  color: #4cd964;
}
.quick-stake-btn.max-btn:hover {
  background: var(--indian-green);
  color: #ffffff;
}

.freeplay-disclaimer-pill {
  background: rgba(0, 229, 251, 0.08);
  border: 1px dashed rgba(0, 229, 251, 0.4);
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 0.72rem;
  color: var(--bb-cyan);
  text-align: center;
  margin-top: 8px;
}

/* ========================================================
   CRICKET TOURNAMENT HERO & QUICK FILTER PILLS
   ======================================================== */
.cricket-hero-card {
  background: linear-gradient(135deg, #071536 0%, #0d2254 50%, #050e24 100%);
  border: 1px solid rgba(0, 229, 251, 0.3);
  border-radius: 12px;
  padding: 16px 20px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.cricket-hero-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 250px;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 229, 251, 0.15) 0%, transparent 70%);
  pointer-events: none;
}
.hero-pills-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-top: 10px;
}
.hero-pill {
  white-space: nowrap;
  background: #14223d;
  color: #FFF8E9;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.hero-pill:hover, .hero-pill.active {
  background: var(--bb-gradient);
  color: #ffffff;
  border-color: var(--bb-cyan);
  box-shadow: 0 2px 8px rgba(0, 229, 251, 0.35);
}

/* ========================================================
   LEADERBOARD STYLING
   ======================================================== */
.leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 15px;
  margin: 25px 0;
}
.podium-card {
  background: #14223d;
  border-radius: 10px;
  padding: 15px;
  text-align: center;
  width: 140px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}
.podium-card.rank-1 {
  border: 2px solid #FFD700;
  padding-bottom: 25px;
  order: 2;
  transform: translateY(-10px);
  background: linear-gradient(180deg, rgba(255, 215, 0, 0.15) 0%, #14223d 100%);
}
.podium-card.rank-2 {
  border: 2px solid #C0C0C0;
  order: 1;
}
.podium-card.rank-3 {
  border: 2px solid #CD7F32;
  order: 3;
}
.podium-medal {
  font-size: 1.8rem;
  margin-bottom: 5px;
}
.podium-username {
  font-weight: 700;
  font-size: 0.85rem;
  color: #FFF8E9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.podium-pts {
  font-size: 0.78rem;
  color: #FFDD55;
  font-weight: 800;
}

/* ========================================================
   MOBILE APP BAR ENHANCEMENT
   ======================================================== */
html[data-theme="dark"] .app-nav {
  background: #050e24 !important;
  border-top: 1px solid rgba(0, 229, 251, 0.3) !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
}
html[data-theme="dark"] .app-nav__menu-link.active .app-nav__menu-text {
  color: var(--bb-cyan) !important;
  font-weight: 700;
}

html:not([data-theme="dark"]) .app-nav,
html[data-theme="light"] .app-nav {
  background: rgba(255, 255, 255, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-top: 1px solid #E5E7EB !important;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}
html:not([data-theme="dark"]) .app-nav__menu-link .app-nav__menu-text,
html[data-theme="light"] .app-nav__menu-link .app-nav__menu-text {
  color: #6B7280 !important;
  font-weight: 500;
}
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: var(--bb-azure) !important;
  font-weight: 700;
}
.app-nav__menu-link-important {
  background: var(--bb-gradient) !important;
  color: #ffffff !important;
  box-shadow: 0 0 12px rgba(0, 229, 251, 0.6) !important;
}

/* ==========================================================================
   APPLE-GRADE WHITE MODE (LIGHT MODE) BY DEFAULT & DUAL THEME ENGINE
   ========================================================================== */

/* 1. Global Light Canvas & Apple Typography (Default) */
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 {
  background-color: #F5F6F8 !important;
  color: #1D1D1F !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}

/* 2. Frosted Glass Header (Light Mode) */
html:not([data-theme="dark"]) .header-primary,
html[data-theme="light"] .header-primary,
html:not([data-theme="dark"]) .header-fluid-custom-parent,
html[data-theme="light"] .header-fluid-custom-parent,
html:not([data-theme="dark"]) .header-bottom,
html[data-theme="light"] .header-bottom {
  background: rgba(255, 255, 255, 0.90) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}

html:not([data-theme="dark"]) .header-nav-link,
html[data-theme="light"] .header-nav-link {
  color: #1D1D1F !important;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

html:not([data-theme="dark"]) .header-nav-link:hover,
html[data-theme="light"] .header-nav-link:hover {
  color: var(--bb-azure) !important;
}

html[data-theme="dark"] .header-nav-link {
  color: #F4F6F8 !important;
  font-weight: 500;
  font-size: 0.875rem;
  transition: color 0.15s ease;
}

html[data-theme="dark"] .header-nav-link:hover {
  color: var(--bb-cyan) !important;
}

/* App Logo Styling & Visibility */
.app-header-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
  transition: transform 0.2s ease;
}

.app-header-logo:hover {
  transform: scale(1.02);
}

html[data-theme="dark"] .app-header-logo {
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.25));
}

/* 3. Theme Switcher Toggle Button */
.btn-theme-toggle {
  background: #F3F4F6;
  color: #1D1D1F;
  border: 1px solid #E5E7EB;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-theme-toggle:hover {
  background: #E5E7EB;
  transform: scale(1.06);
}

html[data-theme="dark"] .btn-theme-toggle {
  background: #0A1E4A !important;
  color: var(--bb-cyan) !important;
  border: 1px solid rgba(0, 229, 251, 0.3) !important;
}

html[data-theme="dark"] .btn-theme-toggle:hover {
  background: #0d265c !important;
}

/* 4. Announcement Strip (Light Mode) */
html:not([data-theme="dark"]) .announcement-strip,
html[data-theme="light"] .announcement-strip {
  background: #FFFFFF !important;
  color: #4B5563 !important;
  border-bottom: 1px solid #E5E7EB !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02) !important;
}

html:not([data-theme="dark"]) .announcement-strip .text-white-90,
html[data-theme="light"] .announcement-strip .text-white-90 {
  color: #4B5563 !important;
}

/* 5. Clean Cards, Match Surfaces & Odds Containers (Light Mode) */
html:not([data-theme="dark"]) .sports-card,
html[data-theme="light"] .sports-card,
html:not([data-theme="dark"]) .sports-card-wrapper,
html[data-theme="light"] .sports-card-wrapper,
html:not([data-theme="dark"]) .custom--card,
html[data-theme="light"] .custom--card,
html:not([data-theme="dark"]) .card,
html[data-theme="light"] .card {
  background-color: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 12px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03) !important;
  color: #1D1D1F !important;
}

html:not([data-theme="dark"]) .sports-card-heading,
html[data-theme="light"] .sports-card-heading,
html:not([data-theme="dark"]) .sports-card-top-inner,
html[data-theme="light"] .sports-card-top-inner {
  background-color: #F8F9FA !important;
  border-bottom: 1px solid #E5E7EB !important;
  color: #1D1D1F !important;
  font-weight: 600;
}

html:not([data-theme="dark"]) .sports-card-body,
html[data-theme="light"] .sports-card-body {
  background-color: #FFFFFF !important;
}

html:not([data-theme="dark"]) .team-select-title,
html[data-theme="light"] .team-select-title,
html:not([data-theme="dark"]) .sports-card-title,
html[data-theme="light"] .sports-card-title,
html:not([data-theme="dark"]) .sports-card-team,
html[data-theme="light"] .sports-card-team,
html:not([data-theme="dark"]) h1,
html[data-theme="light"] h1,
html:not([data-theme="dark"]) h2,
html[data-theme="light"] h2,
html:not([data-theme="dark"]) h3,
html[data-theme="light"] h3,
html:not([data-theme="dark"]) h4,
html[data-theme="light"] h4,
html:not([data-theme="dark"]) h5,
html[data-theme="light"] h5,
html:not([data-theme="dark"]) h6,
html[data-theme="light"] h6 {
  color: #1D1D1F !important;
}

/* 6. Sports Category Sidebar (Light Mode) */
.sports-category__list {
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 229, 251, 0.5) transparent;
}

@media (max-width: 767px) {
  .sports-category {
    position: relative;
    overflow: hidden;
  }

  .sports-category__list {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    -webkit-overflow-scrolling: touch;
    padding-inline: 4px 28px;
  }

  .sports-category__list::after {
    content: '';
    flex: 0 0 20px;
  }

  .sports-category__link {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .sports-category::after {
    content: '';
    position: absolute;
    inset: 0 0 0 auto;
    width: 28px;
    pointer-events: none;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0), #FFFFFF 85%);
  }

  html[data-theme="dark"] .sports-category::after {
    background: linear-gradient(90deg, rgba(23, 27, 32, 0), #171B20 85%);
  }
}

html:not([data-theme="dark"]) .sports-category,
html[data-theme="light"] .sports-category {
  background: #FFFFFF !important;
  border-right: 1px solid #E5E7EB !important;
  box-shadow: 1px 0 6px rgba(0, 0, 0, 0.02) !important;
}

html:not([data-theme="dark"]) .sports-category__link,
html[data-theme="light"] .sports-category__link {
  color: #4B5563 !important;
  background: transparent !important;
  border-radius: 8px;
  transition: all 0.15s ease;
}

html:not([data-theme="dark"]) .sports-category__link:hover,
html[data-theme="light"] .sports-category__link:hover {
  background: #F3F4F6 !important;
  color: #1D1D1F !important;
}

html:not([data-theme="dark"]) .sports-category__link.active,
html[data-theme="light"] .sports-category__link.active {
  background: rgba(14, 151, 251, 0.12) !important;
  color: var(--bb-azure) !important;
  font-weight: 700;
}

html:not([data-theme="dark"]) .sports-category__link.live-btn.active,
html[data-theme="light"] .sports-category__link.live-btn.active {
  background: rgba(220, 53, 69, 0.1) !important;
  color: #DC2626 !important;
  font-weight: 700;
}

/* 7. Sports Drawer (Offcanvas Light & Dark) */
html:not([data-theme="dark"]) .sports-drawer-offcanvas,
html[data-theme="light"] .sports-drawer-offcanvas {
  background: #FFFFFF !important;
  color: #1D1D1F !important;
  border-right: 1px solid #E5E7EB !important;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.08) !important;
}

html:not([data-theme="dark"]) .drawer-header,
html[data-theme="light"] .drawer-header {
  background: #F8F9FA !important;
  border-bottom: 1px solid #E5E7EB !important;
}

html:not([data-theme="dark"]) .drawer-title,
html[data-theme="light"] .drawer-title {
  color: #1D1D1F !important;
}

html:not([data-theme="dark"]) .drawer-close-btn,
html[data-theme="light"] .drawer-close-btn {
  filter: none !important;
  opacity: 0.6;
}

html:not([data-theme="dark"]) .drawer-search-box,
html[data-theme="light"] .drawer-search-box {
  background: #FFFFFF !important;
  border-bottom: 1px solid #E5E7EB !important;
}

html:not([data-theme="dark"]) .drawer-search-icon,
html[data-theme="light"] .drawer-search-icon {
  background: #F3F4F6 !important;
  color: #6B7280 !important;
}

html:not([data-theme="dark"]) .drawer-search-input,
html[data-theme="light"] .drawer-search-input {
  background: #F3F4F6 !important;
  color: #1D1D1F !important;
  font-weight: 500;
}

html:not([data-theme="dark"]) .drawer-section-heading,
html[data-theme="light"] .drawer-section-heading {
  background: #F3F4F6 !important;
  color: #4B5563 !important;
  border-top: 1px solid #E5E7EB;
  border-bottom: 1px solid #E5E7EB;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

html:not([data-theme="dark"]) .sports-drawer-category-item,
html[data-theme="light"] .sports-drawer-category-item {
  background: transparent !important;
  border-bottom: 1px solid #F3F4F6 !important;
}

html:not([data-theme="dark"]) .sports-drawer-category-item .accordion-button,
html[data-theme="light"] .sports-drawer-category-item .accordion-button {
  background: #FFFFFF !important;
  color: #1D1D1F !important;
  font-weight: 600;
  font-size: 0.85rem;
}

html:not([data-theme="dark"]) .sports-drawer-category-item .accordion-button:not(.collapsed),
html[data-theme="light"] .sports-drawer-category-item .accordion-button:not(.collapsed) {
  background: #F8F9FA !important;
  color: #D97706 !important;
}

html:not([data-theme="dark"]) .drawer-accordion-body,
html[data-theme="light"] .drawer-accordion-body {
  background: #FAFAFA !important;
}

html:not([data-theme="dark"]) .drawer-sub-link,
html[data-theme="light"] .drawer-sub-link {
  color: #4B5563 !important;
  border-bottom: 1px solid #F3F4F6 !important;
  font-size: 0.8rem;
  transition: all 0.15s ease;
}

html:not([data-theme="dark"]) .drawer-sub-link:hover,
html[data-theme="light"] .drawer-sub-link:hover {
  background: #F3F4F6 !important;
  color: #1D1D1F !important;
}

html:not([data-theme="dark"]) .category-count-pill,
html[data-theme="light"] .category-count-pill {
  background: #F3F4F6 !important;
  color: #4B5563 !important;
  border: 1px solid #E5E7EB !important;
  font-weight: 600;
  font-size: 0.72rem;
}

html:not([data-theme="dark"]) .drawer-footer,
html[data-theme="light"] .drawer-footer {
  background: #F8F9FA !important;
  border-top: 1px solid #E5E7EB !important;
}

html:not([data-theme="dark"]) .drawer-free-play-box,
html[data-theme="light"] .drawer-free-play-box {
  background: rgba(19, 136, 8, 0.08) !important;
  border: 1px solid rgba(19, 136, 8, 0.2) !important;
  color: #1D1D1F !important;
}

/* Dark Mode Sports Drawer Overrides */
html[data-theme="dark"] .sports-drawer-offcanvas {
  background: #171B20 !important;
  color: #FFFFFF !important;
  border-right: 1px solid #07566D !important;
}

html[data-theme="dark"] .drawer-header {
  background: #22282E !important;
  border-bottom: 1px solid #2B3239 !important;
}

html[data-theme="dark"] .drawer-title {
  color: #FFFFFF !important;
}

html[data-theme="dark"] .drawer-close-btn {
  filter: invert(1) !important;
  opacity: 0.8;
}

html[data-theme="dark"] .drawer-search-box {
  background: #1c2229 !important;
  border-bottom: 1px solid #2B3239 !important;
}

html[data-theme="dark"] .drawer-search-icon {
  background: #2B3239 !important;
  color: #65B8E8 !important;
}

html[data-theme="dark"] .drawer-search-input {
  background: #2B3239 !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .drawer-section-heading {
  background: #161c22 !important;
  color: #AEB6BF !important;
  border-top: 1px solid #2B3239;
  border-bottom: 1px solid #2B3239;
  font-size: 0.75rem;
}

html[data-theme="dark"] .sports-drawer-category-item {
  border-bottom: 1px solid #2B3239 !important;
}

html[data-theme="dark"] .sports-drawer-category-item .accordion-button {
  background: #171B20 !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .sports-drawer-category-item .accordion-button:not(.collapsed) {
  background: #1f252c !important;
  color: var(--bb-cyan) !important;
}

html[data-theme="dark"] .sports-drawer-category-item .accordion-button::after {
  filter: invert(1) !important;
}

html[data-theme="dark"] .drawer-accordion-body {
  background: #13171b !important;
}

html[data-theme="dark"] .drawer-sub-link {
  color: #c4cdd5 !important;
  border-bottom: 1px solid #22282E !important;
}

html[data-theme="dark"] .category-count-pill {
  background: #2B3239 !important;
  color: #65B8E8 !important;
  border: 1px solid #07566D !important;
}

html[data-theme="dark"] .drawer-footer {
  background: #111417 !important;
  border-top: 1px solid #2B3239 !important;
}

html[data-theme="dark"] .drawer-free-play-box {
  background: rgba(19, 136, 8, 0.15) !important;
  border: 1px solid rgba(19, 136, 8, 0.3) !important;
  color: #FFFFFF !important;
}

/* 8. Crisp Odds Buttons & Exchange Styling */
html:not([data-theme="dark"]) .oddBtn,
html[data-theme="light"] .oddBtn,
html:not([data-theme="dark"]) .option-odd-lists .btn,
html[data-theme="light"] .option-odd-lists .btn {
  background: #F8F9FA !important;
  color: #1D1D1F !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 6px !important;
  font-weight: 700;
  transition: all 0.15s ease;
}

html:not([data-theme="dark"]) .oddBtn:hover,
html[data-theme="light"] .oddBtn:hover {
  background: #E5F3FF !important;
  color: #0071E3 !important;
  border-color: #0071E3 !important;
}

html:not([data-theme="dark"]) .oddBtn.active,
html[data-theme="light"] .oddBtn.active {
  background: var(--bb-gradient) !important;
  color: #ffffff !important;
  border-color: var(--bb-azure) !important;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(14, 151, 251, 0.4);
}

/* Back (Blue) & Lay (Pink) */
html:not([data-theme="dark"]) .odd-back,
html[data-theme="light"] .odd-back,
html:not([data-theme="dark"]) .btn-back,
html[data-theme="light"] .btn-back {
  background: #EBF5FB !important;
  color: #0A6094 !important;
  border: 1px solid #BCE0F5 !important;
  font-weight: 700;
}

html:not([data-theme="dark"]) .odd-lay,
html[data-theme="light"] .odd-lay,
html:not([data-theme="dark"]) .btn-lay,
html[data-theme="light"] .btn-lay {
  background: #FDF2F4 !important;
  color: #B8235A !important;
  border: 1px solid #F8C3D7 !important;
  font-weight: 700;
}

html[data-theme="dark"] .odd-back,
html[data-theme="dark"] .btn-back {
  background: rgba(14, 151, 251, 0.24) !important;
  color: #00E5FB !important;
  border: 1px solid rgba(0, 229, 251, 0.55) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 10px rgba(0, 229, 251, 0.35);
}

html[data-theme="dark"] .odd-back:hover,
html[data-theme="dark"] .btn-back:hover {
  background: rgba(14, 151, 251, 0.38) !important;
  border-color: #00E5FB !important;
  box-shadow: 0 0 16px rgba(0, 229, 251, 0.5) !important;
}

html[data-theme="dark"] .odd-lay,
html[data-theme="dark"] .btn-lay {
  background: rgba(255, 64, 129, 0.24) !important;
  color: #FF6E99 !important;
  border: 1px solid rgba(255, 64, 129, 0.55) !important;
  font-weight: 800 !important;
  text-shadow: 0 0 10px rgba(255, 64, 129, 0.35);
}

html[data-theme="dark"] .odd-lay:hover,
html[data-theme="dark"] .btn-lay:hover {
  background: rgba(255, 64, 129, 0.38) !important;
  border-color: #FF4081 !important;
  box-shadow: 0 0 16px rgba(255, 64, 129, 0.5) !important;
}

/* 9. Betting Slip (Light & Dark) */
html:not([data-theme="dark"]) .betslip,
html[data-theme="light"] .betslip {
  background: #FFFFFF !important;
  border-left: 1px solid #E5E7EB !important;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.03) !important;
  color: #1D1D1F !important;
}

html:not([data-theme="dark"]) .betslip-header,
html[data-theme="light"] .betslip-header {
  background: #F8F9FA !important;
  border-bottom: 1px solid #E5E7EB !important;
}

html:not([data-theme="dark"]) .bet-type__btn,
html[data-theme="light"] .bet-type__btn {
  color: #4B5563 !important;
}

html:not([data-theme="dark"]) .bet-type__btn input:checked + span,
html[data-theme="light"] .bet-type__btn input:checked + span {
  color: #1D1D1F !important;
  font-weight: 700;
  border-bottom: 2px solid var(--bb-azure);
}

html:not([data-theme="dark"]) .bet-item,
html[data-theme="light"] .bet-item {
  background: #F8F9FA !important;
  border: 1px solid #E5E7EB !important;
  border-radius: 8px;
  color: #1D1D1F !important;
}

/* Apple Light Mode Match Scoreboards & Badges */
html:not([data-theme="dark"]) .cricket-score-summary,
html[data-theme="light"] .cricket-score-summary {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  border-left: 3px solid var(--bb-azure) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
html:not([data-theme="dark"]) .cricket-score-line,
html[data-theme="light"] .cricket-score-line {
  color: #1E293B !important;
}
html:not([data-theme="dark"]) .cricket-overs-pill,
html[data-theme="light"] .cricket-overs-pill {
  color: #64748B !important;
}
html:not([data-theme="dark"]) .cricket-situation,
html[data-theme="light"] .cricket-situation {
  color: var(--bb-azure) !important;
}
html:not([data-theme="dark"]) .cricket-time-badge,
html[data-theme="light"] .cricket-time-badge {
  color: #475569 !important;
  background: #F1F5F9 !important;
  border: 1px solid #E2E8F0 !important;
}
html:not([data-theme="dark"]) .cricket-ball,
html[data-theme="light"] .cricket-ball {
  background: #E2E8F0;
  color: #1E293B;
}
html:not([data-theme="dark"]) .cricket-ball.active,
html[data-theme="light"] .cricket-ball.active {
  border: 1px solid var(--bb-azure);
}

/* Light Mode Betslip Components */
html:not([data-theme="dark"]) .betslip__head,
html[data-theme="light"] .betslip__head {
  background: #F8FAFC !important;
  color: #1E293B !important;
  border-bottom: 1px solid #E5E7EB !important;
}
html:not([data-theme="dark"]) .betslip__body,
html[data-theme="light"] .betslip__body {
  background: #FFFFFF !important;
  color: #1E293B !important;
}
html:not([data-theme="dark"]) .betslip__footer,
html[data-theme="light"] .betslip__footer {
  background: #F8FAFC !important;
  border-top: 1px solid #E5E7EB !important;
}
html:not([data-theme="dark"]) .betslip-balance-bar,
html[data-theme="light"] .betslip-balance-bar {
  background: linear-gradient(135deg, rgba(0, 229, 251, 0.08) 0%, rgba(14, 151, 251, 0.08) 100%) !important;
  border-bottom: 1px solid #E5E7EB !important;
  color: #1F2937 !important;
}
html:not([data-theme="dark"]) .betslip-balance-pts,
html[data-theme="light"] .betslip-balance-pts {
  color: var(--bb-azure) !important;
}
html:not([data-theme="dark"]) .quick-stake-btn,
html[data-theme="light"] .quick-stake-btn {
  background: #F1F5F9 !important;
  color: #374151 !important;
  border: 1px solid #D1D5DB !important;
}
html:not([data-theme="dark"]) .quick-stake-btn:hover,
html[data-theme="light"] .quick-stake-btn:hover {
  background: #E5E7EB !important;
  border-color: var(--bb-azure) !important;
  color: var(--bb-azure) !important;
}

/* Mobile Slip Responsive Drawer */
@media screen and (max-width: 991px) {
  .betslip {
    max-width: 360px !important;
    border-radius: 12px 0 0 12px;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15) !important;
  }
}

/* 10. Drawer Component Helpers & Badges */
.badge-brand {
  background: var(--bb-gradient);
  color: #ffffff;
  font-weight: 800;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 4px;
}

.badge-hot {
  background: var(--bb-gradient);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 800;
}

.badge-view-all {
  background: var(--bb-gradient);
  color: #ffffff;
  font-size: 0.65rem;
  font-weight: 700;
}

.drawer-pill-live {
  background: rgba(220, 53, 69, 0.1);
  color: #DC2626;
  border: 1px solid rgba(220, 53, 69, 0.3);
  font-size: 0.7rem;
}

.drawer-pill-cricket {
  background: rgba(0, 229, 251, 0.12);
  color: var(--bb-azure);
  border: 1px solid rgba(0, 229, 251, 0.35);
  font-size: 0.7rem;
}

.drawer-pill-casino {
  background: rgba(235, 87, 87, 0.12);
  color: #E11D48;
  border: 1px solid rgba(235, 87, 87, 0.3);
  font-size: 0.7rem;
}

.drawer-pill-rank {
  background: rgba(14, 165, 233, 0.12);
  color: #0284C7;
  border: 1px solid rgba(14, 165, 233, 0.3);
  font-size: 0.7rem;
}

.drawer-icon-wrap {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.04);
  border-radius: 6px;
}

html[data-theme="dark"] .drawer-icon-wrap {
  background: rgba(255, 255, 255, 0.05);
}

.in-play-icon {
  background: rgba(220, 53, 69, 0.12);
  color: #DC2626;
}

.casino-icon {
  background: rgba(14, 151, 251, 0.15);
  color: var(--bb-azure);
}

/* 11. Mobile Responsiveness Protection */
html, body {
  max-width: 100%;
  overflow-x: clip;
}

@media (max-width: 768px) {
  .header-primary .logo img {
    max-height: 36px;
  }
  .sports-card {
    border-radius: 8px;
    margin-bottom: 8px;
  }
  .oddBtn {
    min-height: 38px;
    font-size: 0.85rem;
  }
  html:not([data-theme="dark"]) .app-nav {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px) !important;
    border-top: 1px solid #E5E7EB !important;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
  }
  html:not([data-theme="dark"]) .app-nav__menu-link.active .app-nav__menu-text {
    color: #D97706 !important;
    font-weight: 700;
  }
}

/* ==========================================================================
   12. AUTHENTIC EXCHANGE SCOREBOARD, MARKET TABS, BACK/LAY & FOOTER THEMING
   ========================================================================== */

/* Odds Buttons with Liquidity Depths */
.oddBtn {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 42px;
  padding: 4px 6px !important;
  line-height: 1.1;
  transition: all 0.15s ease;
}
.oddBtn .odd-val {
  font-size: 0.95rem;
  font-weight: 800;
  display: block;
}
.oddBtn .odd-vol {
  font-size: 0.65rem;
  font-weight: 600;
  opacity: 0.8;
  display: block;
  letter-spacing: 0.3px;
}

/* Match Center & Header */
html:not([data-theme="dark"]) .match-center-head,
html[data-theme="light"] .match-center-head {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}
html:not([data-theme="dark"]) .match-team-name,
html[data-theme="light"] .match-team-name,
html:not([data-theme="dark"]) .score-team-name,
html[data-theme="light"] .score-team-name {
  color: #111827 !important;
}
html:not([data-theme="dark"]) .badge-league,
html[data-theme="light"] .badge-league {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border: 1px solid #E2E8F0 !important;
}
html:not([data-theme="dark"]) .match-vs-badge,
html[data-theme="light"] .match-vs-badge {
  background: #F1F5F9 !important;
  color: #D97706 !important;
  border: 1px solid #E2E8F0 !important;
}
html:not([data-theme="dark"]) .match-center-scoreboard,
html[data-theme="light"] .match-center-scoreboard {
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
}

html[data-theme="dark"] .match-center-head {
  background: linear-gradient(135deg, #101B32 0%, #17243e 100%) !important;
  border-bottom: 2px solid #07566D !important;
}
html[data-theme="dark"] .match-team-name,
html[data-theme="dark"] .score-team-name {
  color: #FFFFFF !important;
}
html[data-theme="dark"] .badge-league {
  background: #2B3239 !important;
  color: #AEB6BF !important;
}
html[data-theme="dark"] .match-vs-badge {
  background: #171B20 !important;
  color: var(--bb-cyan) !important;
  border: 1px solid rgba(0, 229, 251, 0.35) !important;
}
html[data-theme="dark"] .match-center-scoreboard {
  background: rgba(16, 27, 50, 0.85) !important;
  border: 1px solid #07566D !important;
}

.badge-crr {
  background: rgba(19, 136, 8, 0.2);
  color: #138808;
  border: 1px solid rgba(19, 136, 8, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
}
html[data-theme="dark"] .badge-crr {
  color: #4cd964;
}

.badge-scheduled {
  background: #F1F5F9;
  color: #475569;
  border: 1px solid #E2E8F0;
}
html[data-theme="dark"] .badge-scheduled {
  background: #2B3239;
  color: #AEB6BF;
  border: 1px solid #343C44;
}

/* Market Category Filter Tabs */
.market-filter-tabs {
  scrollbar-width: none;
}
.market-filter-tabs::-webkit-scrollbar {
  display: none;
}
.market-tab {
  white-space: nowrap;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 0.82rem;
  font-weight: 600;
  transition: all 0.15s ease;
  cursor: pointer;
  border: 1px solid transparent;
}
html:not([data-theme="dark"]) .market-tab,
html[data-theme="light"] .market-tab {
  background: #F1F5F9;
  color: #475569;
  border-color: #E2E8F0;
}
html:not([data-theme="dark"]) .market-tab:hover,
html[data-theme="light"] .market-tab:hover {
  background: #E2E8F0;
  color: #111827;
}
html:not([data-theme="dark"]) .market-tab.active,
html[data-theme="light"] .market-tab.active {
  background: var(--bb-gradient) !important;
  color: #ffffff !important;
  border-color: var(--bb-azure) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(14, 151, 251, 0.35);
}

html[data-theme="dark"] .market-tab {
  background: #1E252B;
  color: #AEB6BF;
  border-color: #343C44;
}
html[data-theme="dark"] .market-tab:hover {
  background: #2B3239;
  color: #FFFFFF;
}
html[data-theme="dark"] .market-tab.active {
  background: var(--bb-gradient) !important;
  color: #ffffff !important;
  border-color: var(--bb-cyan) !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(0, 229, 251, 0.4);
}

/* Market Accordion & Tables */
html:not([data-theme="dark"]) .market-accordion,
html[data-theme="light"] .market-accordion {
  border: 1px solid #E5E7EB !important;
  background: #FFFFFF !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.02) !important;
}
html:not([data-theme="dark"]) .market-accordion .accordion-button,
html[data-theme="light"] .market-accordion .accordion-button {
  background: #F8FAFC !important;
  color: #111827 !important;
  border-bottom: 1px solid #E5E7EB !important;
}
html:not([data-theme="dark"]) .market-table,
html[data-theme="light"] .market-table {
  background: #FFFFFF !important;
}
html:not([data-theme="dark"]) .market-table-head,
html[data-theme="light"] .market-table-head {
  background: #F1F5F9 !important;
  color: #475569 !important;
  font-size: 0.78rem;
  text-transform: uppercase;
}
html:not([data-theme="dark"]) .col-back,
html[data-theme="light"] .col-back {
  background: #EBF5FB !important;
  color: #0369A1 !important;
  font-weight: 700;
}
html:not([data-theme="dark"]) .col-lay,
html[data-theme="light"] .col-lay {
  background: #FDF2F4 !important;
  color: #BE123C !important;
  font-weight: 700;
}
html:not([data-theme="dark"]) .market-row,
html[data-theme="light"] .market-row {
  border-bottom: 1px solid #F1F5F9 !important;
}
html:not([data-theme="dark"]) .runner-name,
html[data-theme="light"] .runner-name {
  color: #111827 !important;
}

html[data-theme="dark"] .market-accordion {
  border: 1px solid #343C44 !important;
  background: #171B20 !important;
}
html[data-theme="dark"] .market-accordion .accordion-button {
  background: #07566D !important;
  color: #FFFFFF !important;
}
html[data-theme="dark"] .market-table-head {
  background: #2B3239 !important;
  color: #AEB6BF !important;
}
html[data-theme="dark"] .col-back {
  background: rgba(101, 184, 232, 0.15) !important;
  color: #65B8E8 !important;
}
html[data-theme="dark"] .col-lay {
  background: rgba(241, 139, 181, 0.15) !important;
  color: #F18BB5 !important;
}
html[data-theme="dark"] .market-row {
  border-bottom: 1px solid #2B3239 !important;
}
html[data-theme="dark"] .runner-name {
  color: #FFFFFF !important;
}

.btn-locked {
  background: #343C44 !important;
  color: #888888 !important;
  font-weight: 700;
  border: none !important;
  cursor: not-allowed !important;
  min-height: 42px;
}
html:not([data-theme="dark"]) .btn-locked {
  background: #F1F5F9 !important;
  color: #94A3B8 !important;
}

/* Sub-category Drawer (Leagues) Light & Dark Theming */
html[data-theme="dark"] .sub-category-drawer {
  background-color: #171B20 !important;
  border: 1px solid #2B3239 !important;
}
html[data-theme="dark"] .sub-category-drawer__text {
  color: #F4F6F8 !important;
}

/* Competition rail stays aligned with the homepage sports rail on touch screens. */
@media (max-width: 767px) {
  .sub-category-drawer {
    border-radius: 8px;
  }

  .sub-category-drawer__list {
    display: flex;
    gap: 18px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 251, 0.5) transparent;
  }

  .sub-category-drawer__list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }
}

html:not([data-theme="dark"]) .sub-category-drawer,
html[data-theme="light"] .sub-category-drawer {
  background-color: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03) !important;
}
html:not([data-theme="dark"]) .sub-category-drawer__text,
html[data-theme="light"] .sub-category-drawer__text {
  color: #1F2937 !important;
}

/* Footer Light & Dark Theming */
html:not([data-theme="dark"]) .footer,
html[data-theme="light"] .footer,
html:not([data-theme="dark"]) .footer-bottom,
html[data-theme="light"] .footer-bottom {
  background: #FFFFFF !important;
  color: #1D1D1F !important;
  border-top: 1px solid #E5E7EB !important;
}
html:not([data-theme="dark"]) .footer__title,
html[data-theme="light"] .footer__title {
  color: #111827 !important;
}
html:not([data-theme="dark"]) .footer__about,
html[data-theme="light"] .footer__about,
html:not([data-theme="dark"]) .footer__link,
html[data-theme="light"] .footer__link {
  color: #4B5563 !important;
}
html:not([data-theme="dark"]) .footer__link:hover,
html[data-theme="light"] .footer__link:hover {
  color: var(--bb-azure) !important;
}

html[data-theme="dark"] .footer,
html[data-theme="dark"] .footer-bottom {
  background: #071536 !important;
  color: #F4F6F8 !important;
  border-top: 1px solid rgba(0, 229, 251, 0.2) !important;
}
html[data-theme="dark"] .footer__title {
  color: #F4F6F8 !important;
}
html[data-theme="dark"] .footer__about,
html[data-theme="dark"] .footer__link {
  color: #AEB6BF !important;
}
html[data-theme="dark"] .footer__link:hover {
  color: var(--bb-cyan) !important;
}

/* Announcement Strip Theming */
.announcement-strip {
  font-size: 0.82rem;
  border-bottom: 1px solid rgba(0, 229, 251, 0.25);
  transition: all 0.2s ease;
}
html:not([data-theme="dark"]) .announcement-strip,
html[data-theme="light"] .announcement-strip {
  background: #F0F9FF !important;
  border-bottom: 1px solid #BAE6FD !important;
}
html:not([data-theme="dark"]) .announcement-text,
html[data-theme="light"] .announcement-text {
  color: #0369A1 !important;
  font-weight: 500;
}

html[data-theme="dark"] .announcement-strip {
  background: #0A1E4A !important;
  border-bottom: 1px solid rgba(0, 229, 251, 0.3) !important;
}
html[data-theme="dark"] .announcement-text {
  color: #FFFFFF !important;
}

/* Cricket Hero Title & Subtitle */
html:not([data-theme="dark"]) .hero-title,
html[data-theme="light"] .hero-title {
  color: #111827 !important;
}
html:not([data-theme="dark"]) .hero-subtitle,
html[data-theme="light"] .hero-subtitle {
  color: #4B5563 !important;
}
html:not([data-theme="dark"]) .hero-match-title,
html[data-theme="light"] .hero-match-title {
  color: #111827 !important;
}

html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero-match-title {
  color: #FFFFFF !important;
}
html[data-theme="dark"] .hero-subtitle {
  color: #AEB6BF !important;
}

/* Middle point in spreads/totals */
.option-odd-list__item .point {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  font-weight: 700;
  font-size: 0.8rem;
  border-radius: 6px;
}
html[data-theme="dark"] .option-odd-list__item .point {
  background: rgba(255, 255, 255, 0.05);
  color: #AEB6BF;
  border: 1px solid #2B3239;
}
html:not([data-theme="dark"]) .option-odd-list__item .point,
html[data-theme="light"] .option-odd-list__item .point {
  background: #F8FAFC;
  color: #475569;
  border: 1px solid #E2E8F0;
}

/* User Wallet Pill & Dropdown Theming */
html:not([data-theme="dark"]) .user-wallet-btn,
html[data-theme="light"] .user-wallet-btn {
  background: #FFFFFF !important;
  color: #111827 !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}
html:not([data-theme="dark"]) .wallet-bal-val,
html[data-theme="light"] .wallet-bal-val {
  color: #D97706 !important;
}
html:not([data-theme="dark"]) .wallet-exp-val,
html[data-theme="light"] .wallet-exp-val {
  color: #0369A1 !important;
}
html:not([data-theme="dark"]) .wallet-dropdown-menu,
html[data-theme="light"] .wallet-dropdown-menu {
  background: #FFFFFF !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}
html:not([data-theme="dark"]) .wallet-mode-title,
html[data-theme="light"] .wallet-mode-title {
  color: #111827 !important;
}

html[data-theme="dark"] .user-wallet-btn {
  background: #171B20 !important;
  color: #FFFFFF !important;
  border: 1px solid #07566D !important;
}
html[data-theme="dark"] .wallet-bal-val {
  color: #FFDD55 !important;
}
html[data-theme="dark"] .wallet-exp-val {
  color: #65B8E8 !important;
}
html[data-theme="dark"] .wallet-dropdown-menu {
  background: #22282E !important;
  border: 1px solid #343C44 !important;
}
html[data-theme="dark"] .wallet-mode-title {
  color: #FFFFFF !important;
}

/* ==========================================================================\n   Homepage visual system — spacious exchange surfaces and accessible motion\n   ========================================================================== */
.home-page {
  --home-canvas: oklch(97.5% 0.008 250);
  --home-surface: oklch(99% 0.004 95);
  --home-surface-muted: oklch(96% 0.012 250);
  --home-ink: oklch(27% 0.035 255);
  --home-muted: oklch(52% 0.035 255);
  --home-border: oklch(88% 0.018 250);
  --home-accent: #0E97FB;
  --home-accent-strong: #0061F0;
  --home-back: oklch(95% 0.035 218);
}

html[data-theme="dark"] .home-page {
  --home-canvas: #071536;
  --home-surface: #0A193E;
  --home-surface-muted: #0d2254;
  --home-ink: oklch(94% 0.018 95);
  --home-muted: oklch(72% 0.03 250);
  --home-border: rgba(0, 229, 251, 0.25);
  --home-accent: #00E5FB;
  --home-accent-strong: #0E97FB;
  --home-back: #0f275e;
}

.home-page .sports-body { background: var(--home-canvas); }

.home-page .cricket-hero-card {
  isolation: isolate;
  padding: clamp(24px, 3vw, 40px);
  border: 1px solid color-mix(in oklch, var(--home-accent) 42%, var(--home-border));
  border-radius: 20px;
  background: radial-gradient(circle at 90% 10%, color-mix(in oklch, var(--home-accent) 18%, transparent), transparent 34%), linear-gradient(135deg, #071536, #0d2254);
  box-shadow: 0 18px 40px color-mix(in oklch, oklch(10% 0.03 255) 14%, transparent);
}

.home-page .cricket-hero-card::before { width: 42%; background: radial-gradient(circle, color-mix(in oklch, var(--home-accent) 20%, transparent), transparent 68%); }
.home-page .hero-title { max-width: 17ch; color: oklch(96% 0.012 95) !important; font-size: clamp(1.7rem, 3vw, 2.65rem) !important; line-height: 1.08; letter-spacing: -0.035em; }
.home-page .hero-subtitle { max-width: 58ch !important; color: oklch(78% 0.026 250) !important; font-size: 0.98rem; line-height: 1.65; }
.home-page .hero-pills-bar { gap: 8px; margin-top: 24px; padding: 4px 2px 8px; scrollbar-width: none; }
.home-page .hero-pills-bar::-webkit-scrollbar { display: none; }
.home-page .hero-pill { min-height: 42px; padding: 9px 16px; border: 1px solid oklch(100% 0 0 / 14%); border-radius: 999px; background: oklch(100% 0 0 / 7%); color: oklch(94% 0.018 95); transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out; }
.home-page .hero-pill:hover, .home-page .hero-pill.active { border-color: var(--bb-cyan); background: var(--bb-gradient); color: #ffffff; transform: translateY(-2px); box-shadow: 0 2px 8px rgba(0, 229, 251, 0.4); }
.home-page .hero-pill:active, .home-page .hero-pill:focus-visible { transform: translateY(0); }
.home-page .hero-pill:focus-visible, .home-page .btn--base:focus-visible, .home-page .sub-category-drawer__link:focus-visible, .home-page .oddBtn:focus-visible, .home-page .bet-type__btn:focus-within { outline: 3px solid color-mix(in oklch, var(--home-accent) 70%, transparent); outline-offset: 3px; }
.home-page .cricket-hero-card > .row > .col-lg-4 > div { padding: 24px !important; border: 1px solid oklch(100% 0 0 / 14%) !important; border-radius: 16px !important; background: oklch(100% 0 0 / 7%) !important; backdrop-filter: blur(16px); }
.home-page .hero-match-title { color: oklch(96% 0.012 95) !important; letter-spacing: -0.02em; }
.home-page .top-sticky { z-index: 4; }
.home-page .sub-category-drawer { margin-block: 8px 16px; padding: 8px; border: 1px solid var(--home-border) !important; border-radius: 16px; background: color-mix(in oklch, var(--home-surface) 88%, transparent) !important; box-shadow: none !important; backdrop-filter: blur(18px); }
.home-page .sub-category-drawer__list { gap: 8px; margin: 0; padding: 0; }
.home-page .sub-category-drawer__link { min-height: 54px; gap: 10px; padding: 8px 14px; border: 1px solid transparent; border-radius: 12px; color: var(--home-muted) !important; transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, color 200ms ease-out; }
.home-page .sub-category-drawer__link:hover { border-color: var(--home-border); background: var(--home-surface-muted); color: var(--home-ink) !important; transform: translateY(-1px); }
.home-page .sub-category-drawer__link.active { border-color: color-mix(in oklch, var(--home-accent) 46%, var(--home-border)); background: color-mix(in oklch, var(--home-accent) 13%, var(--home-surface)); color: var(--home-ink) !important; }
.home-page .sub-category-drawer__flag { width: 34px; height: 34px; border: 1px solid var(--home-border); border-radius: 10px; background: var(--home-surface-muted); }
.home-page .betting-body .sports-card { overflow: hidden; border: 1px solid var(--home-border) !important; border-radius: 16px !important; background: var(--home-surface) !important; box-shadow: none !important; transition: transform 200ms ease-out, border-color 200ms ease-out; }
.home-page .betting-body .sports-card:hover { border-color: color-mix(in oklch, var(--home-accent) 42%, var(--home-border)) !important; transform: translateY(-2px); }
.home-page .betting-body .sports-card-wrapper { background: transparent !important; }
.home-page .betting-body .sports-card-heading, .home-page .betting-body .sports-card-top-inner { min-height: 52px; padding: 12px 16px; border-bottom: 1px solid var(--home-border) !important; background: var(--home-surface-muted) !important; }
.home-page .betting-body .sports-card-body, .home-page .betting-body .sports-card-inner { background: var(--home-surface) !important; }
.home-page .betting-body .oddBtn, .home-page .betting-body .option-odd-lists .btn { min-height: 52px; border: 1px solid color-mix(in oklch, var(--home-accent) 16%, var(--home-border)) !important; border-radius: 10px !important; background: var(--home-back) !important; color: var(--home-ink) !important; transition: transform 200ms ease-out, background-color 200ms ease-out, border-color 200ms ease-out, box-shadow 200ms ease-out; }
.home-page .betting-body .oddBtn:hover:not(:disabled) { border-color: var(--home-accent) !important; box-shadow: 0 8px 18px color-mix(in oklch, var(--home-accent) 14%, transparent); transform: translateY(-2px); }
.home-page .betting-body .oddBtn:active:not(:disabled) { transform: translateY(0); }
.home-page .betting-body .oddBtn.active { border-color: var(--home-accent-strong) !important; background: var(--bb-gradient) !important; color: #ffffff !important; box-shadow: 0 4px 14px rgba(14, 151, 251, 0.45); }
.home-page .betting-body .oddBtn.locked, .home-page .betting-body .oddBtn:disabled { cursor: not-allowed; opacity: 0.58; filter: saturate(0.55); }
.home-page .empty-message { padding: 56px 24px; border: 1px dashed var(--home-border); border-radius: 16px; background: var(--home-surface); color: var(--home-muted); text-align: center; }

@media (max-width: 767px) {
  .home-page .cricket-hero-card { padding: 24px 20px; border-radius: 16px; }
  .home-page .hero-title { font-size: 1.75rem !important; }
  .home-page .sub-category-drawer { margin-inline: -4px; border-radius: 14px; }
  .home-page .sub-category-drawer__list { overflow-x: auto; padding-inline: 2px 18px; scrollbar-width: none; }
  .home-page .sub-category-drawer__list::-webkit-scrollbar { display: none; }
  .home-page .sub-category-drawer__link { flex: 0 0 auto; }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .hero-pill, .home-page .sub-category-drawer__link, .home-page .sports-card, .home-page .oddBtn { transition: none !important; }
  .home-page .sports-card:hover, .home-page .hero-pill:hover, .home-page .sub-category-drawer__link:hover, .home-page .betting-body .oddBtn:hover:not(:disabled) { transform: none; }
}

/* ==========================================================================
   BB-Bet homepage reference system: compact prediction workspace
   ========================================================================== */
:root {
  --bb-home-bg: #0B172B;
  --bb-home-header: #0C1930;
  --bb-home-sidebar: #0D1A2D;
  --bb-home-surface: #12233D;
  --bb-home-surface-2: #192D49;
  --bb-home-border: #29415F;
  --bb-home-primary: #087DEB;
  --bb-home-secondary: #00B8E8;
  --bb-home-gold: #FFAB25;
  --bb-home-muted: #A9B9CD;
  --bb-home-success: #12B981;
}

html[data-theme="dark"] body,
html[data-theme="dark"] .home-page,
html[data-theme="dark"] .sports-body { background: var(--bb-home-bg) !important; }
html[data-theme="dark"] .header-primary,
html[data-theme="dark"] .header-fluid-custom-parent { background: var(--bb-home-header) !important; border-color: var(--bb-home-border) !important; }

.home-page { color: var(--bb-home-muted); }
.home-page .sports-body { padding: 12px; }
.home-page .cricket-hero-card { min-height: 245px; padding: 28px 32px; border: 1px solid var(--bb-home-border); border-radius: 12px; background: var(--bb-home-surface); box-shadow: none; }
.home-page .cricket-hero-card::before { display: none; }
.home-page .hero-kicker { padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--bb-home-secondary) 55%, transparent); border-radius: 5px; background: color-mix(in srgb, var(--bb-home-secondary) 14%, transparent); color: var(--bb-home-secondary); font-size: .68rem; font-weight: 700; letter-spacing: .06em; }
.home-page .hero-kicker--muted { border-color: color-mix(in srgb, var(--bb-home-gold) 50%, transparent); background: color-mix(in srgb, var(--bb-home-gold) 12%, transparent); color: var(--bb-home-gold); }
.home-page .hero-title { max-width: none; margin: 0; color: #fff !important; font-size: clamp(1.8rem, 3vw, 2.45rem) !important; line-height: 1.12; letter-spacing: -.03em; }
.home-page .hero-subtitle { max-width: 56ch !important; color: var(--bb-home-muted) !important; font-size: .92rem; line-height: 1.55; }
.home-page .hero-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.home-page .hero-action-primary, .home-page .hero-action-secondary { min-height: 38px; padding: 9px 16px; border-radius: 7px; font-weight: 600; }
.home-page .hero-action-primary { background: var(--bb-home-primary) !important; box-shadow: none; }
.home-page .hero-action-secondary { border: 1px solid var(--bb-home-border); background: transparent; color: #fff; }
.home-page .hero-action-secondary:hover { border-color: var(--bb-home-secondary); color: var(--bb-home-secondary); }
.home-page .hero-pills-bar { gap: 6px; margin-top: 12px; padding: 0 0 4px; }
.home-page .hero-pill { min-height: 34px; padding: 6px 11px; border: 1px solid var(--bb-home-border); border-radius: 7px; background: var(--bb-home-surface-2); color: var(--bb-home-muted); font-size: .74rem; }
.home-page .hero-pill:hover, .home-page .hero-pill.active { border-color: var(--bb-home-primary); background: color-mix(in srgb, var(--bb-home-primary) 20%, var(--bb-home-surface)); color: #fff; box-shadow: none; transform: none; }
.home-page .featured-match-panel { height: 100%; min-height: 178px; padding: 16px; border: 1px solid var(--bb-home-border); border-radius: 10px; background: var(--bb-home-surface-2); }
.home-page .featured-match-meta, .home-page .featured-match-competition { color: var(--bb-home-muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; }
.home-page .featured-match-status { padding: 4px 7px; border-radius: 4px; background: color-mix(in srgb, var(--bb-home-primary) 22%, transparent); color: #7CC7FF; font-size: .66rem; font-weight: 700; }
.home-page .featured-match-time { color: var(--bb-home-muted); font-size: .78rem; }
.home-page .sub-category-drawer { margin: 12px 0; padding: 6px; border: 1px solid var(--bb-home-border) !important; border-radius: 10px; background: var(--bb-home-surface) !important; box-shadow: none !important; }
.home-page .sub-category-drawer__list { gap: 4px; }
.home-page .sub-category-drawer__link { min-height: 44px; padding: 6px 10px; border-radius: 7px; color: var(--bb-home-muted) !important; }
.home-page .sub-category-drawer__link:hover { background: var(--bb-home-surface-2); color: #fff !important; }
.home-page .sub-category-drawer__link.active { background: color-mix(in srgb, var(--bb-home-primary) 22%, transparent); color: #fff !important; }
.home-page .sub-category-drawer__flag { width: 28px; height: 28px; border-color: var(--bb-home-border); border-radius: 7px; }
.home-page .betting-body .sports-card { border: 1px solid var(--bb-home-border) !important; border-radius: 10px !important; background: var(--bb-home-surface) !important; }
.home-page .betting-body .sports-card:hover { transform: none; border-color: color-mix(in srgb, var(--bb-home-primary) 70%, var(--bb-home-border)) !important; }
.home-page .betting-body .sports-card-heading, .home-page .betting-body .sports-card-top-inner { min-height: 42px; padding: 9px 12px; background: var(--bb-home-surface-2) !important; border-color: var(--bb-home-border) !important; }
.home-page .betting-body .oddBtn, .home-page .betting-body .option-odd-lists .btn { min-height: 44px; border: 1px solid var(--bb-home-border) !important; border-radius: 6px !important; background: #173252 !important; color: #fff !important; }
.home-page .betting-body .oddBtn:hover:not(:disabled) { border-color: var(--bb-home-secondary) !important; box-shadow: 0 0 0 2px color-mix(in srgb, var(--bb-home-secondary) 18%, transparent); transform: none; }
.home-page .betting-body .oddBtn.active { border-color: var(--bb-home-primary) !important; background: var(--bb-home-primary) !important; }
.home-page .empty-message { padding: 40px 24px; border: 1px dashed var(--bb-home-border); border-radius: 10px; background: var(--bb-home-surface); }
.home-page .betslip { border-left: 1px solid var(--bb-home-border); background: var(--bb-home-surface) !important; }
.home-page .betslip-header, .home-page .betslip__footer { background: var(--bb-home-surface-2) !important; border-color: var(--bb-home-border) !important; }
.home-page .betslip__body { background: var(--bb-home-surface) !important; }
.home-page .betslip-balance-bar { background: color-mix(in srgb, var(--bb-home-primary) 14%, var(--bb-home-surface)); border-color: var(--bb-home-border); }
.home-page .betslip__footer-btn { background: var(--bb-home-primary) !important; }

@media (max-width: 1199px) {
  .home-page .sports-body { padding: 10px; }
  .home-page .cricket-hero-card { padding: 24px; }
}
@media (max-width: 767px) {
  .home-page .sports-body { padding: 8px; }
  .home-page .cricket-hero-card { min-height: 0; padding: 20px 16px; border-radius: 10px; }
  .home-page .hero-title { font-size: 1.75rem !important; }
  .home-page .hero-pills-bar, .home-page .sub-category-drawer__list { overflow-x: auto; scrollbar-width: none; }
  .home-page .hero-pills-bar::-webkit-scrollbar, .home-page .sub-category-drawer__list::-webkit-scrollbar { display: none; }
  .home-page .hero-pill, .home-page .sub-category-drawer__link { flex: 0 0 auto; }
  .home-page .hero-actions > * { flex: 1 1 150px; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page .hero-pill, .home-page .sub-category-drawer__link, .home-page .sports-card, .home-page .oddBtn { transition: none !important; }
}

:root {
  --bb-bright-cyan: #00E5FB;
  --bb-bright-azure: #0E97FB;
  --bb-bright-gold: #FFD700;
  --bb-bright-mint: #00E676;
  --bb-bright-rose: #FF4081;
}

/* Dark Mode High-Contrast Visibility Elevators */
html[data-theme="dark"] body {
  background-color: #050E26 !important;
  color: #F1F5F9 !important;
}

html[data-theme="dark"] h1,
html[data-theme="dark"] h2,
html[data-theme="dark"] h3,
html[data-theme="dark"] h4,
html[data-theme="dark"] h5,
html[data-theme="dark"] h6,
html[data-theme="dark"] .sports-card-title,
html[data-theme="dark"] .team-select-title,
html[data-theme="dark"] .match-team-name,
html[data-theme="dark"] .runner-name {
  color: #FFFFFF !important;
  font-weight: 700;
}

html[data-theme="dark"] .text-muted,
html[data-theme="dark"] .sm-text.text-muted {
  color: #CBD5E1 !important;
}

html[data-theme="dark"] .text-warning,
html[data-theme="dark"] .la-coins {
  color: #FFD700 !important;
  text-shadow: 0 0 8px rgba(255, 215, 0, 0.35);
}

html[data-theme="dark"] .badge-brand {
  background: var(--bb-gradient) !important;
  color: #071536 !important;
  font-weight: 800;
  box-shadow: 0 0 10px rgba(0, 229, 251, 0.4);
}

/* Light Mode High-Contrast Visibility Elevators */
html:not([data-theme="dark"]) body,
html[data-theme="light"] body {
  background-color: #F8FAFC !important;
  color: #0F172A !important;
}

html:not([data-theme="dark"]) h1,
html[data-theme="light"] h1,
html:not([data-theme="dark"]) h2,
html[data-theme="light"] h2,
html:not([data-theme="dark"]) h3,
html[data-theme="light"] h3,
html:not([data-theme="dark"]) h4,
html[data-theme="light"] h4,
html:not([data-theme="dark"]) h5,
html[data-theme="light"] h5,
html:not([data-theme="dark"]) h6,
html[data-theme="light"] h6,
html:not([data-theme="dark"]) .sports-card-title,
html[data-theme="light"] .sports-card-title,
html:not([data-theme="dark"]) .team-select-title,
html[data-theme="light"] .team-select-title,
html:not([data-theme="dark"]) .match-team-name,
html[data-theme="light"] .match-team-name,
html:not([data-theme="dark"]) .runner-name,
html[data-theme="light"] .runner-name {
  color: #0F172A !important;
  font-weight: 700;
}

html:not([data-theme="dark"]) .text-muted,
html[data-theme="light"] .text-muted {
  color: #475569 !important;
}

/* ==========================================================================
   MARKET CENTER & ODDS COLUMNS RESPONSIVENESS
   ========================================================================== */
.col-back,
.col-lay {
  width: 130px;
}

.match-team-logo {
  width: clamp(32px, 8vw, 44px);
  height: clamp(32px, 8vw, 44px);
  object-fit: contain;
}

.match-team-name {
  font-size: clamp(0.88rem, 3.2vw, 1.25rem) !important;
  white-space: normal;
  line-height: 1.25;
}

/* ==========================================================================
   LEADERBOARD ADAPTIVE THEME & PODIUM STYLES
   ========================================================================== */
.leaderboard-title {
  color: #FFFFFF;
}
html:not([data-theme="dark"]) .leaderboard-title,
html[data-theme="light"] .leaderboard-title {
  color: #0F172A !important;
}

.leaderboard-user-rank-card {
  background: linear-gradient(90deg, #0B1E48 0%, #071536 100%);
  border: 1px solid rgba(0, 229, 251, 0.4);
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
}
html:not([data-theme="dark"]) .leaderboard-user-rank-card,
html[data-theme="light"] .leaderboard-user-rank-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05) !important;
}

.leaderboard-user-name {
  color: #FFFFFF;
  font-weight: 700;
}
html:not([data-theme="dark"]) .leaderboard-user-name,
html[data-theme="light"] .leaderboard-user-name {
  color: #0F172A !important;
}

.leaderboard-podium {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.podium-card {
  text-align: center;
  border-radius: 16px;
  padding: 20px 14px;
  width: 140px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s ease;
}
.podium-card:hover {
  transform: translateY(-4px);
}
html[data-theme="dark"] .podium-card {
  background: #0B1E48;
  border: 1px solid rgba(0, 229, 251, 0.35);
  color: #FFFFFF;
}
html:not([data-theme="dark"]) .podium-card,
html[data-theme="light"] .podium-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06) !important;
}

.podium-card .podium-username {
  font-weight: 700;
  font-size: 0.95rem;
  margin-top: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.podium-card .podium-pts {
  color: #FFD700;
  font-weight: 800;
  font-size: 0.9rem;
}
html:not([data-theme="dark"]) .podium-card .podium-pts,
html[data-theme="light"] .podium-card .podium-pts {
  color: #D97706 !important;
}

.leaderboard-card {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
html[data-theme="dark"] .leaderboard-card {
  background: #0A193E !important;
  border: 1px solid rgba(0, 229, 251, 0.25) !important;
}
html:not([data-theme="dark"]) .leaderboard-card,
html[data-theme="light"] .leaderboard-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

.leaderboard-card-head {
  padding: 14px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
html[data-theme="dark"] .leaderboard-card-head {
  background: #071536 !important;
  border-bottom: 1px solid rgba(0, 229, 251, 0.2) !important;
}
html:not([data-theme="dark"]) .leaderboard-card-head,
html[data-theme="light"] .leaderboard-card-head {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
}
html[data-theme="dark"] .leaderboard-card-head h6 {
  color: #FFFFFF !important;
}
html:not([data-theme="dark"]) .leaderboard-card-head h6,
html[data-theme="light"] .leaderboard-card-head h6 {
  color: #0F172A !important;
}

html[data-theme="dark"] .leaderboard-table th {
  background: #071536;
  color: #E2E8F0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
html:not([data-theme="dark"]) .leaderboard-table th,
html[data-theme="light"] .leaderboard-table th {
  background: #F1F5F9 !important;
  color: #475569 !important;
  border-bottom: 1px solid #E2E8F0 !important;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
html[data-theme="dark"] .leaderboard-table td {
  background: transparent;
  color: #F1F5F9;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
html:not([data-theme="dark"]) .leaderboard-table td,
html[data-theme="light"] .leaderboard-table td {
  background: #FFFFFF !important;
  color: #0F172A !important;
  border-bottom: 1px solid #F1F5F9 !important;
}

.leaderboard-username {
  color: #FFFFFF;
}
html:not([data-theme="dark"]) .leaderboard-username,
html[data-theme="light"] .leaderboard-username {
  color: #0F172A !important;
}

.leaderboard-disclaimer-box {
  background: rgba(7, 21, 54, 0.6);
  border: 1px dashed rgba(0, 229, 251, 0.35);
  border-radius: 8px;
}
html:not([data-theme="dark"]) .leaderboard-disclaimer-box,
html[data-theme="light"] .leaderboard-disclaimer-box {
  background: #F8FAFC !important;
  border: 1px dashed #CBD5E1 !important;
}

/* Casino interactive elements */
.chip-btn {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.chip-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 0 10px rgba(14, 151, 251, 0.4);
}
.chip-btn.active {
  border-style: solid !important;
  border-color: #00E5FB !important;
  box-shadow: 0 0 14px rgba(0, 229, 251, 0.6) !important;
  background: var(--bb-gradient) !important;
  color: #071536 !important;
}

.playing-card {
  width: 42px;
  height: 60px;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

/* ==========================================================================
   GLOBAL RESPONSIVE RULES ACROSS ALL VIEWPORTS
   ========================================================================== */
@media (max-width: 991px) {
  .header-fluid-custom-parent {
    padding-inline: 12px !important;
  }
  .mobile-balance-pill {
    background: rgba(14, 151, 251, 0.15);
    color: #0E97FB;
    border: 1px solid rgba(14, 151, 251, 0.35);
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 5px 10px !important;
    text-decoration: none !important;
  }
  html[data-theme="dark"] .mobile-balance-pill {
    background: rgba(0, 229, 251, 0.15) !important;
    color: #00E5FB !important;
    border-color: rgba(0, 229, 251, 0.4) !important;
  }
  .mobile-login-btn {
    font-size: 0.8rem !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
  }
}

@media (max-width: 767px) {
  /* Pinned home sports card column: prevent squishing */
  .sports-card {
    --left-width: 145px !important;
  }
  .sports-card-left {
    width: 145px !important;
    min-width: 145px !important;
  }
  .sports-card-title,
  .team-select-title {
    font-size: 0.85rem !important;
  }

  /* Markets page responsive Back & Lay */
  .col-back,
  .col-lay {
    width: 92px !important;
    min-width: 92px !important;
  }
  .market-row td {
    padding: 8px 6px !important;
  }

  /* Casino table fluid layout */
  .live-dealer-screen {
    min-height: 280px !important;
  }
  .playing-card {
    width: clamp(28px, 7.5vw, 40px) !important;
    height: clamp(40px, 11vw, 56px) !important;
    font-size: clamp(0.72rem, 2.2vw, 0.95rem) !important;
  }
  .chip-btn {
    width: 42px !important;
    height: 42px !important;
    font-size: 0.7rem !important;
  }

  /* Leaderboard podium cards */
  .podium-card {
    width: 105px !important;
    padding: 12px 6px !important;
  }
  .podium-card .podium-username {
    font-size: 0.82rem !important;
  }
  .podium-card .podium-pts {
    font-size: 0.8rem !important;
  }

  /* Bottom app navigation padding for swipe indicator */
  .app-nav {
    padding-bottom: env(safe-area-inset-bottom, 6px);
  }
}

@media (max-width: 575px) {
  /* Extra compact for narrow phones */
  .sports-card {
    --left-width: 130px !important;
  }
  .sports-card-left {
    width: 130px !important;
    min-width: 130px !important;
    padding: 8px 6px !important;
  }
  .col-back,
  .col-lay {
    width: 78px !important;
    min-width: 78px !important;
    padding: 6px 2px !important;
  }
  .runner-name {
    font-size: 0.82rem !important;
    line-height: 1.25;
  }
  .oddBtn {
    font-size: 0.8rem !important;
    padding: 6px 4px !important;
    min-height: 44px !important;
  }
  .match-team-name {
    font-size: clamp(0.85rem, 3.4vw, 1.15rem) !important;
  }
  .match-center-head {
    padding: 10px !important;
  }
  .match-vs-badge {
    padding: 4px 8px !important;
    font-size: 0.72rem !important;
  }
}

/* ==========================================================================
   BB-Bet cross-site visual system — shared public surfaces
   ========================================================================== */
:root {
  --bb-site-bg: var(--bb-navy-950);
  --bb-site-header: var(--bb-navy-900);
  --bb-site-sidebar: var(--bb-navy-900);
  --bb-site-surface: var(--bb-navy-850);
  --bb-site-surface-2: var(--bb-navy-800);
  --bb-site-border: var(--bb-navy-600);
  --bb-site-primary: var(--bb-blue-600);
  --bb-site-cyan: var(--bb-cyan-500);
  --bb-site-gold: var(--bb-accent);
  --bb-site-muted: #B7C5D8;
  --bb-site-text: #F7FAFF;
  --bb-site-success: var(--bb-success);
}

html[data-theme="dark"] body,
html[data-theme="dark"] .body-wrapper,
html[data-theme="dark"] .user-dashboard,
html[data-theme="dark"] .section--bg,
html[data-theme="dark"] .page-wrapper {
  background: var(--bb-site-bg) !important;
  color: var(--bb-site-muted) !important;
}
html[data-theme="dark"] .user-header-primary,
html[data-theme="dark"] .dashboard-sidebar,
html[data-theme="dark"] .dashboard-menu,
html[data-theme="dark"] .widget-card,
html[data-theme="dark"] .custom--card,
html[data-theme="dark"] .widget-card--primary,
html[data-theme="dark"] .modal-content,
html[data-theme="dark"] .bb-chatbot-widget {
  background: var(--bb-site-surface) !important;
  border-color: var(--bb-site-border) !important;
  color: var(--bb-site-text) !important;
}
html[data-theme="dark"] .dashboard-menu__link { color: var(--bb-site-muted) !important; border-color: transparent !important; }
html[data-theme="dark"] .dashboard-menu__link:hover,
html[data-theme="dark"] .dashboard-menu__link.active { background: rgba(8, 125, 235, .18) !important; color: var(--bb-site-text) !important; border-left-color: var(--bb-site-cyan) !important; }
html[data-theme="dark"] .dashboard-menu__icon { color: var(--bb-site-cyan) !important; }
html[data-theme="dark"] .widget-card__balance, html[data-theme="dark"] .widget-card__id { color: var(--bb-site-text) !important; }
html[data-theme="dark"] .widget-card__balance-text, html[data-theme="dark"] .dashboard-right p { color: var(--bb-site-muted) !important; }
html[data-theme="dark"] .form--label, html[data-theme="dark"] .form-label, html[data-theme="dark"] .form-check-label { color: var(--bb-site-muted) !important; }
html[data-theme="dark"] .form--control, html[data-theme="dark"] .form-control, html[data-theme="dark"] .form-select {
  background: #0F2037 !important; border-color: var(--bb-site-border) !important; color: var(--bb-site-text) !important;
}
html[data-theme="dark"] .form--control:focus, html[data-theme="dark"] .form-control:focus, html[data-theme="dark"] .form-select:focus { border-color: var(--bb-site-cyan) !important; box-shadow: 0 0 0 .2rem rgba(0, 184, 232, .14) !important; }
html[data-theme="dark"] .footer--dark, html[data-theme="dark"] .footer-bottom--dark { background: var(--bb-site-sidebar) !important; border-color: var(--bb-site-border) !important; }

/* Keep admin-configured hue variables compatible while the BB-Bet surface system owns the visual palette. */
:root { --base-h: 205; --base-s: 96%; --base-l: 52%; --base: 205 96% 52%; --base-dark: 216 100% 47%; }

.bb-menu-icon { display: inline-block; font-size: 1.75rem; line-height: 1; color: var(--bb-site-primary); vertical-align: middle; }
.bb-hot-badge { background: var(--bb-gradient); color: var(--bb-sapphire); font-size: .65rem; font-weight: 800; padding: 2px 5px; border-radius: 4px; box-shadow: 0 0 8px rgba(0, 184, 232, .35); }
.bb-wallet-mode-badge, .bb-mobile-wallet-badge { font-size: .7rem; font-weight: 700; padding: 2px 6px; }
.bb-wallet-mode-badge.is-demo, .bb-mobile-wallet-badge.is-demo { background: var(--bb-site-cyan); color: var(--bb-sapphire); }
.bb-wallet-mode-badge.is-main, .bb-mobile-wallet-badge.is-main { background: var(--bb-site-success); color: #fff; }
.bb-wallet-switch-btn.switch-to-main { background: var(--bb-site-success); color: #fff; }
.bb-wallet-switch-btn.switch-to-demo { background: #07516B; color: #fff; }
.bb-wallet-switch-btn:hover { filter: brightness(1.08); }

.btn--signup, .btn--base, .bg--base, .badge--base { background: var(--bb-site-primary) !important; border-color: var(--bb-site-primary) !important; color: #fff !important; }
.btn--signup:hover, .btn--base:hover { background: #066BC9 !important; border-color: var(--bb-site-cyan) !important; }
.btn--dark { background: var(--bb-site-surface-2) !important; border-color: var(--bb-site-border) !important; color: var(--bb-site-text) !important; }
.form--control:focus, .form-control:focus, .form-select:focus, .btn:focus-visible, a:focus-visible, button:focus-visible { outline: 3px solid rgba(0, 184, 232, .62); outline-offset: 2px; }
.dashboard-right .custom--card, .dashboard-right .card, .dashboard-right .widget-card { border: 1px solid var(--bb-site-border) !important; border-radius: 10px !important; box-shadow: 0 8px 24px rgba(2, 10, 25, .18) !important; }

@media (max-width: 767px) {
  .user-header-primary .header-fluid-custom-parent { padding-inline: 12px !important; }
  .dashboard-right { padding-inline: 8px; }
  .dashboard-sidebar { border-radius: 10px; }
}

.policy-main-title {
  color: #FFFFFF;
}
html:not([data-theme="dark"]) .policy-main-title,
html[data-theme="light"] .policy-main-title {
  color: #0F172A !important;
}

html[data-theme="dark"] .policy-card {
  background: #0A193E !important;
  border: 1px solid rgba(0, 229, 251, 0.22) !important;
  color: #F1F5F9 !important;
}
html:not([data-theme="dark"]) .policy-card,
html[data-theme="light"] .policy-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="dark"] .policy-card-heading {
  color: #FFFFFF !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}
html:not([data-theme="dark"]) .policy-card-heading,
html[data-theme="light"] .policy-card-heading {
  color: #0F172A !important;
  border-color: #E2E8F0 !important;
}

/* Policy Nav Links */
.policy-nav-link {
  color: #CBD5E1;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 500;
  transition: all 0.15s ease;
}
html:not([data-theme="dark"]) .policy-nav-link,
html[data-theme="light"] .policy-nav-link {
  color: #475569;
}

.policy-nav-link:hover {
  background: rgba(14, 151, 251, 0.12);
  color: #00E5FB !important;
  transform: translateX(4px);
}
html:not([data-theme="dark"]) .policy-nav-link:hover,
html[data-theme="light"] .policy-nav-link:hover {
  background: #F1F5F9;
  color: #0E97FB !important;
}

.policy-nav-link.active {
  background: linear-gradient(135deg, rgba(0, 229, 251, 0.2) 0%, rgba(14, 151, 251, 0.2) 100%) !important;
  color: #00E5FB !important;
  font-weight: 700;
  border-left: 3px solid #00E5FB;
}
html:not([data-theme="dark"]) .policy-nav-link.active,
html[data-theme="light"] .policy-nav-link.active {
  background: rgba(14, 151, 251, 0.1) !important;
  color: #0E97FB !important;
  border-left: 3px solid #0E97FB;
}

/* Policy Disclaimer Ribbon */
html[data-theme="dark"] .policy-disclaimer-ribbon {
  background: rgba(7, 21, 54, 0.85);
  border-color: rgba(0, 229, 251, 0.3) !important;
  color: #F1F5F9;
}
html:not([data-theme="dark"]) .policy-disclaimer-ribbon,
html[data-theme="light"] .policy-disclaimer-ribbon {
  background: #F8FAFC;
  border-color: #CBD5E1 !important;
  color: #0F172A;
}

/* Policy Document Body */
.policy-document-body h3 {
  font-size: 1.18rem;
  font-weight: 700;
  margin-top: 1.5rem;
  margin-bottom: 0.75rem;
}
html[data-theme="dark"] .policy-document-body h3 {
  color: #FFFFFF !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 6px;
}
html:not([data-theme="dark"]) .policy-document-body h3,
html[data-theme="light"] .policy-document-body h3 {
  color: #0F172A !important;
  border-bottom: 1px solid #E2E8F0;
  padding-bottom: 6px;
}

.policy-document-body p {
  line-height: 1.7;
  font-size: 0.95rem;
  margin-bottom: 1rem;
}
html[data-theme="dark"] .policy-document-body p {
  color: #E2E8F0;
}
html:not([data-theme="dark"]) .policy-document-body p,
html[data-theme="light"] .policy-document-body p {
  color: #334155;
}

.policy-document-body ul {
  padding-left: 1.4rem;
  margin-bottom: 1.25rem;
}
.policy-document-body li {
  line-height: 1.65;
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
html[data-theme="dark"] .policy-document-body li {
  color: #E2E8F0;
}
html:not([data-theme="dark"]) .policy-document-body li,
html[data-theme="light"] .policy-document-body li {
  color: #334155;
}

.policy-document-body code {
  background: rgba(14, 151, 251, 0.12);
  color: #00E5FB;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 0.88rem;
}
html:not([data-theme="dark"]) .policy-document-body code,
html[data-theme="light"] .policy-document-body code {
  background: #F1F5F9;
  color: #0369A1;
}

/* ==========================================================================
   Public standalone pages: same compact navy workspace as the homepage
   ========================================================================== */
html[data-theme="dark"] .casino-lobby-wrapper,
html[data-theme="dark"] .casino-table-viewport { background: var(--bb-site-bg) !important; }
html[data-theme="dark"] .casino-hero-banner { background: var(--bb-site-surface) !important; border-color: var(--bb-site-border) !important; box-shadow: none !important; }
html[data-theme="dark"] .casino-lobby-wrapper [style*="#22282E"],
html[data-theme="dark"] .casino-lobby-wrapper [style*="#1B2127"],
html[data-theme="dark"] .casino-table-viewport [style*="#171B20"],
html[data-theme="dark"] .casino-table-viewport [style*="#22282E"] { background: var(--bb-site-surface-2) !important; border-color: var(--bb-site-border) !important; }
html[data-theme="dark"] .casino-lobby-wrapper [style*="#07566D"],
html[data-theme="dark"] .casino-table-viewport [style*="#07566D"] { background: var(--bb-site-primary) !important; border-color: var(--bb-site-cyan) !important; color: #fff !important; }
html[data-theme="dark"] .casino-lobby-wrapper [style*="#00E5FB"],
html[data-theme="dark"] .casino-table-viewport [style*="#00E5FB"] { border-color: var(--bb-site-cyan) !important; color: var(--bb-site-cyan) !important; }
html[data-theme="dark"] .casino-lobby-wrapper [style*="#FFDD55"],
html[data-theme="dark"] .casino-table-viewport [style*="#FFDD55"] { color: var(--bb-site-gold) !important; border-color: var(--bb-site-gold) !important; }
.casino-tab-btn { border-radius: 7px !important; }
.casino-tab-btn.active { background: var(--bb-site-primary) !important; color: #fff !important; border-color: var(--bb-site-cyan) !important; }
.casino-tab-btn:not(.active) { background: var(--bb-site-surface-2) !important; color: var(--bb-site-muted) !important; border: 1px solid var(--bb-site-border) !important; }
.casino-table-card { border-color: var(--bb-site-border) !important; }
.casino-table-card:hover { border-color: var(--bb-site-cyan) !important; transform: translateY(-2px); }
.leaderboard-title { color: var(--bb-site-text) !important; }
.leaderboard-user-rank-card, .leaderboard-card, .podium-card, .leaderboard-disclaimer-box { border-color: var(--bb-site-border) !important; }
html[data-theme="dark"] .leaderboard-card, html[data-theme="dark"] .podium-card, html[data-theme="dark"] .leaderboard-user-rank-card { background: var(--bb-site-surface) !important; }
html[data-theme="dark"] .leaderboard-card-head, html[data-theme="dark"] .leaderboard-table th { background: var(--bb-site-surface-2) !important; border-color: var(--bb-site-border) !important; }
html[data-theme="dark"] .leaderboard-table td { background: transparent !important; border-color: rgba(41, 65, 95, .7) !important; color: var(--bb-site-muted) !important; }
html[data-theme="dark"] .leaderboard-username, html[data-theme="dark"] .leaderboard-user-name { color: var(--bb-site-text) !important; }
.bb-chatbot-btn {
  background: #0878E8 linear-gradient(135deg, #0878E8 0%, #0757C8 100%) !important;
  background-color: #0878E8 !important;
  color: #FFFFFF !important;
  box-shadow: 0 8px 24px rgba(8, 125, 235, .35) !important;
}
.bb-chatbot-window { background: var(--bb-site-surface) !important; border-color: var(--bb-site-border) !important; box-shadow: 0 16px 40px rgba(2, 10, 25, .42) !important; }
.bb-chatbot-header, .bb-chatbot-footer { background: var(--bb-site-surface-2) !important; border-color: var(--bb-site-border) !important; }
.bb-chatbot-body { background: var(--bb-site-bg) !important; }
.bb-chatbot-input { background: #0F2037 !important; border-color: var(--bb-site-border) !important; color: var(--bb-site-text) !important; }
.bb-chip { background: var(--bb-site-surface-2) !important; border-color: var(--bb-site-border) !important; color: var(--bb-site-muted) !important; }
.bb-chip:hover { background: rgba(8, 125, 235, .18) !important; border-color: var(--bb-site-cyan) !important; color: var(--bb-site-text) !important; }
@media (prefers-reduced-motion: reduce) { .casino-table-card, .bb-chatbot-btn { transition: none !important; } .casino-table-card:hover, .bb-chatbot-btn:hover { transform: none !important; } }


/* ==========================================================================
   CANONICAL BB-BET DUAL-THEME ENGINE (DARK & WHITE MODE)
   Fully compliant with BB-Bet_Brand_and_UI_Design_System.md
   ========================================================================== */

/* 1. DARK THEME CANONICAL TOKENS (Default Sportsbook Experience) */
html,
html[data-theme="dark"] {
  --bb-theme-name: "dark";
  --bb-surface-bg: #071426;         /* Navy 950 - Atmospheric deep canvas */
  --bb-surface-header: #0B1B31;     /* Navy 900 - Header & Rails */
  --bb-surface-rail: #0B1B31;       /* Navy 900 - Categories rail */
  --bb-surface-card: #10243D;       /* Navy 850 - Dark cards */
  --bb-surface-card-head: #162D49;  /* Navy 800 - Elevated card headings */
  --bb-surface-elevated: #162D49;   /* Navy 800 - Elevated panels */
  --bb-surface-input: #0B1B31;      /* Navy 900 - Inputs */
  --bb-surface-border: #203B5B;     /* Navy 700 - Sharp micro-border */
  --bb-surface-border-subtle: #182F4B;

  /* Typography: 100% Bright Crisp Visibility */
  --bb-text-primary: #FFFFFF;       /* Pure white - headings, titles, scores, odds */
  --bb-text-secondary: #CBD5E1;     /* Slate-300 - clear readable body */
  --bb-text-muted: #94A3B8;         /* Slate-400 - clean metadata */
  --bb-text-dim: #64748B;

  /* Odds Button Tokens */
  --bb-odd-bg: #162D49;
  --bb-odd-border: #29415F;
  --bb-odd-text-val: #FFFFFF;
  --bb-odd-text-team: #CBD5E1;
  --bb-odd-hover-bg: #1C3B60;
  --bb-odd-hover-border: #00B8D9;
  --bb-odd-active-bg: #0878E8;
  --bb-odd-active-border: #00B8D9;

  /* Betslip Tokens */
  --bb-betslip-bg: #0B1B31;
  --bb-betslip-head: #162D49;
  --bb-betslip-item: #10243D;
  --bb-betslip-border: #203B5B;

  /* Tables */
  --bb-table-th-bg: #162D49;
  --bb-table-th-text: #FFFFFF;
  --bb-table-td-bg: #10243D;
  --bb-table-td-alt: #0D1F35;
  --bb-table-td-hover: #162E4D;
  --bb-table-td-text: #CBD5E1;

  /* Hardware Appearance Inset */
  --bb-hardware-inset: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
  --bb-card-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);

  /* Workspace Compatibility Tokens */
  --bb-workspace-surface: #10243D;
  --bb-workspace-surface-2: #0B1B31;
  --bb-workspace-border: #203B5B;
  --bb-workspace-text: #FFFFFF;
  --bb-workspace-muted: #94A3B8;
  --bb-workspace-cyan: #00B8D9;
}

/* 2. WHITE / LIGHT THEME CANONICAL TOKENS (Crisp, High-Contrast White Mode) */
html[data-theme="light"] {
  --bb-theme-name: "light";
  --bb-surface-bg: #F8FAFC;         /* Slate-50 - Clean off-white background */
  --bb-surface-header: #FFFFFF;     /* Crisp White Header */
  --bb-surface-rail: #FFFFFF;       /* Crisp White Categories rail */
  --bb-surface-card: #FFFFFF;       /* Crisp White Cards */
  --bb-surface-card-head: #F8FAFC;  /* Slate-50 Card Headings */
  --bb-surface-elevated: #F1F5F9;   /* Slate-100 Elevated panels */
  --bb-surface-input: #FFFFFF;      /* Crisp White Inputs */
  --bb-surface-border: #E2E8F0;     /* Slate-200 - Clean crisp border */
  --bb-surface-border-subtle: #EDF2F7;

  /* Typography: Rich Deep Slate-900 Maximum Readability */
  --bb-text-primary: #0F172A;       /* Slate-900 - Bold, rich dark text */
  --bb-text-secondary: #334155;     /* Slate-700 - Clear readable body */
  --bb-text-muted: #64748B;         /* Slate-500 - Clean metadata */
  --bb-text-dim: #94A3B8;

  /* Odds Button Tokens */
  --bb-odd-bg: #FFFFFF;
  --bb-odd-border: #CBD5E1;
  --bb-odd-text-val: #0F172A;
  --bb-odd-text-team: #475569;
  --bb-odd-hover-bg: #EFF6FF;
  --bb-odd-hover-border: #0878E8;
  --bb-odd-active-bg: #0878E8;
  --bb-odd-active-border: #0878E8;

  /* Betslip Tokens */
  --bb-betslip-bg: #FFFFFF;
  --bb-betslip-head: #F8FAFC;
  --bb-betslip-item: #F8FAFC;
  --bb-betslip-border: #E2E8F0;

  /* Tables */
  --bb-table-th-bg: #F1F5F9;
  --bb-table-th-text: #0F172A;
  --bb-table-td-bg: #FFFFFF;
  --bb-table-td-alt: #F8FAFC;
  --bb-table-td-hover: #EFF6FF;
  --bb-table-td-text: #1E293B;

  /* Light Shadow */
  --bb-hardware-inset: none;
  --bb-card-shadow: 0 1px 4px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.03);

  /* Workspace Compatibility Tokens */
  --bb-workspace-surface: #FFFFFF;
  --bb-workspace-surface-2: #F8FAFC;
  --bb-workspace-border: #E2E8F0;
  --bb-workspace-text: #0F172A;
  --bb-workspace-muted: #64748B;
  --bb-workspace-cyan: #0878E8;
}

/* 3. RESPONSIVE SPORTSBOOK SHELL REALIGNMENT (BOTH THEMES) */
body, .body-wrapper, .home-page, .home-page .sports-body, .user-dashboard, .section--bg {
  background-color: var(--bb-surface-bg) !important;
  color: var(--bb-text-secondary) !important;
}

.home-page .sports-body {
  width: calc(100% - (var(--right-side) + var(--left-side))) !important;
  padding: 12px !important;
}

/* Header & Announcement Strip */
.header-primary,
.header-fluid-custom-parent,
.header-bottom,
.user-header-primary {
  background: var(--bb-surface-header) !important;
  border-bottom: 1px solid var(--bb-surface-border) !important;
}

.header-nav-link {
  color: var(--bb-text-primary) !important;
  font-weight: 600;
  transition: color 0.15s ease;
}
.header-nav-link:hover {
  color: var(--bb-blue-600) !important;
}

.home-page .announcement-strip,
.announcement-strip {
  position: sticky;
  top: var(--header-h);
  z-index: 1023;
  min-height: 40px;
  background: var(--bb-surface-header) !important;
  border-bottom: 1px solid var(--bb-surface-border) !important;
}
.announcement-text {
  color: var(--bb-text-secondary) !important;
  font-size: 0.84rem;
}

/* Left Categories Sidebar & Drawer Navigation */
.home-page .sports-category,
.sports-category {
  width: 212px !important;
  min-width: 212px !important;
  background: var(--bb-surface-rail) !important;
  border-right: 1px solid var(--bb-surface-border) !important;
}
.sports-category__link {
  min-height: 48px;
  border-radius: 6px !important;
  color: var(--bb-text-secondary) !important;
  background: transparent !important;
  font-weight: 600;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px 4px !important;
  transition: all 0.15s ease !important;
  text-decoration: none !important;
}
.sports-category__icon,
.sports-category__link .sports-category__icon,
.sports-category__link i {
  color: var(--bb-text-primary) !important;
  font-size: 1.25rem !important;
  line-height: 1 !important;
  margin-bottom: 2px !important;
  transition: color 0.15s ease !important;
}
.sports-category__text,
.sports-category__link .sports-category__text {
  color: var(--bb-text-secondary) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  transition: color 0.15s ease !important;
}
.sports-category__link:hover {
  background: rgba(8, 120, 232, 0.09) !important;
}
.sports-category__link:hover .sports-category__icon,
.sports-category__link:hover .sports-category__text,
.sports-category__link:hover i {
  color: var(--bb-blue-600) !important;
}
.sports-category__link.active {
  background: rgba(8, 120, 232, 0.16) !important;
  border-left: 3px solid var(--bb-blue-600) !important;
}
.sports-category__link.active .sports-category__icon,
.sports-category__link.active .sports-category__text,
.sports-category__link.active i {
  color: var(--bb-blue-600) !important;
  font-weight: 700 !important;
}
.sports-category__link.live-btn {
  border-bottom: 1px solid var(--bb-surface-border) !important;
}
.sports-category__link.live-btn .sports-category__text {
  color: var(--bb-text-primary) !important;
  font-weight: 700 !important;
}
.sports-category__link.live-btn.active {
  background: rgba(217, 54, 69, 0.12) !important;
  border-left: 3px solid var(--bb-danger) !important;
}
.sports-category__link.live-btn.active .sports-category__text {
  color: var(--bb-danger) !important;
}

/* Header Hamburger Trigger & Drawer Links */
.btn-sports-drawer {
  background: transparent !important;
  cursor: pointer;
}
.bb-menu-icon {
  font-size: 1.6rem !important;
  line-height: 1 !important;
  color: var(--bb-text-primary) !important;
  transition: color 0.15s ease !important;
}
.btn-sports-drawer:hover .bb-menu-icon {
  color: var(--bb-blue-600) !important;
}
.language-code-text {
  color: var(--bb-text-primary) !important;
  font-weight: 600 !important;
}
.drawer-link,
.drawer-sub-link,
.category-name-text {
  color: var(--bb-text-primary) !important;
  font-weight: 600 !important;
}

/* Cards & Match Components */
.home-page .betting-body .sports-card,
.sports-card,
.custom--card,
.card,
.cricket-hero-card,
.featured-match-panel,
.sub-category-drawer,
.widget-card,
.fantasy-card,
.match-center-head,
.policy-card {
  background: var(--bb-surface-card) !important;
  border: 1px solid var(--bb-surface-border) !important;
  box-shadow: var(--bb-hardware-inset), var(--bb-card-shadow) !important;
  color: var(--bb-text-primary) !important;
  border-radius: 10px !important;
}

.home-page .betting-body .sports-card-heading,
.home-page .betting-body .sports-card-top-inner,
.sports-card-heading,
.sports-card-top-inner,
.featured-match-panel__head {
  background: var(--bb-surface-card-head) !important;
  border-bottom: 1px solid var(--bb-surface-border) !important;
  color: var(--bb-text-primary) !important;
}

.sports-card-body {
  background: var(--bb-surface-card) !important;
}

/* Headings & Team Names (Bright & Crystal Clear in Both Themes) */
h1, h2, h3, h4, h5, h6,
.hero-title,
.hero-match-title,
.sports-card-team,
.sports-card-title,
.team-select-title,
.match-team-name,
.sports-card__team-name,
.league-title,
.policy-card-heading,
.policy-main-title {
  color: var(--bb-text-primary) !important;
  font-weight: 700;
}

.hero-subtitle,
.sports-card__info-text,
.featured-match-competition,
.featured-match-time,
.featured-match-meta,
.text-muted,
small.text-muted,
.sm-text.text-muted {
  color: var(--bb-text-muted) !important;
}

/* Odds Buttons (Sportsbook Style) */
.home-page .betting-body .oddBtn,
.home-page .betting-body .option-odd-lists .btn,
.oddBtn,
.btn-back {
  min-height: 42px;
  border-radius: 6px !important;
  background: var(--bb-odd-bg) !important;
  border: 1px solid var(--bb-odd-border) !important;
  color: var(--bb-odd-text-val) !important;
  box-shadow: var(--bb-hardware-inset) !important;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "cv05" 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.oddBtn .odd-val {
  color: var(--bb-odd-text-val) !important;
  font-weight: 700;
  font-size: 0.92rem;
}
.oddBtn:hover:not(:disabled) {
  background: var(--bb-odd-hover-bg) !important;
  border-color: var(--bb-odd-hover-border) !important;
  transform: translateY(-1px);
}
.oddBtn:active:not(:disabled) {
  transform: scale(0.97) !important;
}
.oddBtn.active {
  background: var(--bb-odd-active-bg) !important;
  border-color: var(--bb-odd-active-border) !important;
  color: #FFFFFF !important;
}
.oddBtn.active .odd-val {
  color: #FFFFFF !important;
}

/* Right Prediction Slip */
.home-page .betslip,
.betslip {
  width: 330px !important;
  min-width: 330px !important;
  background: var(--bb-betslip-bg) !important;
  border-left: 1px solid var(--bb-betslip-border) !important;
}
.home-page .betslip-header,
.home-page .betslip__footer,
.betslip-header,
.betslip__footer {
  background: var(--bb-betslip-head) !important;
  border-color: var(--bb-betslip-border) !important;
}
.betslip-balance-bar {
  background: var(--bb-surface-card-head) !important;
  border-bottom: 1px solid var(--bb-betslip-border) !important;
}
.betslip-balance-pts {
  color: var(--bb-amber-500) !important;
  font-weight: 800;
}
.betslip-item {
  background: var(--bb-betslip-item) !important;
  border: 1px solid var(--bb-betslip-border) !important;
  color: var(--bb-text-primary) !important;
}
.betslip-item-header {
  border-bottom: 1px solid var(--bb-betslip-border) !important;
}
.betslip-item-league__name,
.betslip-item-team__name,
.betslip-item-market__label {
  color: var(--bb-text-primary) !important;
  font-weight: 600;
}
.betslip-item-market__type {
  color: var(--bb-text-muted) !important;
}
.betslip-item-market__score {
  color: var(--bb-odd-text-val) !important;
  font-weight: 700;
}
.betslip-input-inner {
  color: var(--bb-text-muted) !important;
}
.betslip .amount,
.betslip input.amount,
.investAmount {
  background: var(--bb-surface-input) !important;
  border: 1px solid var(--bb-surface-border) !important;
  color: var(--bb-text-primary) !important;
}
.betslip-select select,
.betslip-select .form-select {
  background-color: var(--bb-surface-input) !important;
  border: 1px solid var(--bb-surface-border) !important;
  color: var(--bb-text-primary) !important;
}
.quick-stake-btn {
  background: var(--bb-surface-card-head) !important;
  border: 1px solid var(--bb-surface-border) !important;
  color: var(--bb-text-primary) !important;
}
.quick-stake-btn:hover {
  background: var(--bb-blue-600) !important;
  border-color: var(--bb-blue-600) !important;
  color: #FFFFFF !important;
}
.bet-return {
  color: var(--bb-text-secondary) !important;
}
.bet-type__btn span {
  color: var(--bb-text-secondary) !important;
}
input[name="bet-type"]:checked + span {
  color: var(--bb-blue-600) !important;
  font-weight: 700;
}

/* Tables & Grid Data */
.custom--table,
.table,
.table-responsive {
  border-color: var(--bb-surface-border) !important;
}
.custom--table thead th,
.table thead th,
.leaderboard-table th {
  background: var(--bb-table-th-bg) !important;
  color: var(--bb-table-th-text) !important;
  border-color: var(--bb-surface-border) !important;
  font-weight: 700;
}
/* THEME SEPARATION 2026-11-11 (Diamond copy only — basic/ + other themes'
   copies keep the original rule): Diamond's event-market cells carry
   their own colours (td.cell-back #EFF6FF / td.cell-lay #FEF2F2,
   td.dm-suspended-cell, td.dm-ballrunning-cell, all !important in
   diamond.css). The old rule bleached every `.table tbody td` white and
   only lost to those overrides on specificity/order. It no longer
   applies to Diamond's coloured market cells at all; every other
   Diamond table keeps the rule exactly as before. */
.custom--table tbody td:not(.cell-back):not(.cell-lay):not(.dm-suspended-cell):not(.dm-ballrunning-cell),
.table tbody td:not(.cell-back):not(.cell-lay):not(.dm-suspended-cell):not(.dm-ballrunning-cell),
.leaderboard-table td:not(.cell-back):not(.cell-lay):not(.dm-suspended-cell):not(.dm-ballrunning-cell) {
  background: var(--bb-table-td-bg) !important;
  color: var(--bb-table-td-text) !important;
  border-color: var(--bb-surface-border) !important;
}
.custom--table tbody tr:nth-child(even) td:not(.cell-back):not(.cell-lay):not(.dm-suspended-cell):not(.dm-ballrunning-cell),
.table-striped tbody tr:nth-of-type(odd) td:not(.cell-back):not(.cell-lay):not(.dm-suspended-cell):not(.dm-ballrunning-cell) {
  background: var(--bb-table-td-alt) !important;
}
.custom--table tbody tr:hover td,
.table hover tbody tr:hover td {
  background: var(--bb-table-td-hover) !important;
}

/* Modals & Dialogs */
.modal-content,
.custom--modal .modal-content {
  background: var(--bb-surface-card) !important;
  border: 1px solid var(--bb-surface-border) !important;
  color: var(--bb-text-primary) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.45) !important;
}
.modal-header,
.modal-footer {
  background: var(--bb-surface-card-head) !important;
  border-color: var(--bb-surface-border) !important;
}
.modal-title {
  color: var(--bb-text-primary) !important;
  font-weight: 700;
}

/* Forms & Inputs */
.form-control,
.form--control,
.form-select,
select {
  background-color: var(--bb-surface-input) !important;
  border: 1px solid var(--bb-surface-border) !important;
  color: var(--bb-text-primary) !important;
}
.form-control:focus,
.form--control:focus,
.form-select:focus {
  border-color: var(--bb-blue-600) !important;
  box-shadow: 0 0 0 3px rgba(8, 120, 232, 0.25) !important;
  outline: none !important;
}
.form-control::placeholder,
.form--control::placeholder {
  color: var(--bb-text-muted) !important;
}

/* Primary Action Buttons */
.btn--base,
.bg--base,
.btn-primary {
  background: var(--bb-blue-600) !important;
  border: 1px solid var(--bb-blue-700) !important;
  color: #FFFFFF !important;
  font-weight: 700;
}
.btn--base:hover,
.btn-primary:hover {
  background: var(--bb-blue-700) !important;
  border-color: var(--bb-blue-700) !important;
  color: #FFFFFF !important;
}

/* Theme Switcher Toggle */
.btn-theme-toggle {
  background: var(--bb-surface-card-head) !important;
  color: var(--bb-text-primary) !important;
  border: 1px solid var(--bb-surface-border) !important;
  width: 38px;
  height: 38px;
  border-radius: 50% !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.btn-theme-toggle:hover {
  background: var(--bb-blue-600) !important;
  color: #FFFFFF !important;
  border-color: var(--bb-blue-600) !important;
  transform: scale(1.05);
}

/* Responsive Media Queries */
@media (max-width: 1199px) {
  .home-page .sports-category { width: 190px !important; min-width: 190px !important; }
  .home-page .sports-body { width: calc(100% - (var(--right-side) + 190px)) !important; }
  .home-page .betslip { width: 300px !important; min-width: 300px !important; }
}
@media (max-width: 991px) {
  .home-page .sports-body { width: 100% !important; padding: 8px !important; }
  .home-page .sports-category { width: 280px !important; min-width: 280px !important; }
  .home-page .betslip { width: min(340px, 92vw) !important; min-width: min(340px, 92vw) !important; }
}
@media (max-width: 767px) {
  .home-page .cricket-hero-card { padding: 14px; }
  .home-page .hero-content-grid { display: block; }
  .home-page .hero-title { max-width: 100%; font-size: 1.55rem !important; }
  .home-page .featured-match-panel { margin-top: 14px; }
  .home-page .hero-actions > * { flex: 1 1 140px; text-align: center; }
}



/* BB-Bet High-Fidelity Visual Sports Rail */
.sports-visual-rail { margin-top: 4px; }
.sports-visual-rail__title { font-size: 0.88rem; font-weight: 700; color: var(--bb-workspace-text); }
.sports-visual-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.sports-visual-scroll::-webkit-scrollbar { height: 4px; }
.sports-visual-scroll::-webkit-scrollbar-thumb { background: var(--bb-workspace-border); border-radius: 4px; }
.sports-tile-card {
  position: relative;
  flex: 0 0 135px;
  height: 92px;
  border-radius: 8px;
  overflow: hidden;
  background-color: var(--bb-workspace-surface-2);
  border: 1px solid var(--bb-workspace-border);
  box-shadow: var(--bb-hardware-inset);
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  scroll-snap-align: start;
}
.sports-tile-card:hover {
  transform: translateY(-2px);
  border-color: var(--bb-workspace-cyan);
}
.sports-tile-card__img {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.35s ease;
}
.sports-tile-card:hover .sports-tile-card__img {
  transform: scale(1.08);
}
.sports-tile-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px;
  background: linear-gradient(180deg, transparent 42%, rgba(7,20,38,.48) 72%, rgba(7,20,38,.82) 100%) !important;
}
.sports-tile-card__badge {
  position: relative;
  z-index: 2;
  align-self: flex-start;
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bb-blue-600);
  color: #ffffff;
  letter-spacing: 0.04em;
}
.sports-tile-card__name {
  position: relative;
  z-index: 2;
  font-size: 0.8rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Bet slip drawer: full-height, scrollable, with a way to close it. */
@media screen and (max-width: 991px) {
  .betslip {
    width: min(360px, 92vw) !important;
    max-width: min(360px, 92vw) !important;
    height: calc(100vh - var(--nav-h)) !important;
    display: flex !important;
    flex-direction: column !important;
    background: var(--bb-workspace-surface) !important;
    border-left: 1px solid var(--bb-workspace-border) !important;
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.45) !important;
    transition: transform 0.18s ease-out, opacity 0.18s ease-out !important;
    overflow: hidden !important;
  }
  .open-betslip .betslip { transform: translateX(0) !important; opacity: 1 !important; visibility: visible !important; }
  .betslip-header, .betslip-balance-bar, .betslip-topup-action { flex: 0 0 auto; }
  .betslip__body {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }
  .betslip__footer { flex: 0 0 auto; }
  .betslip-backdrop {
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: rgba(3, 10, 22, 0.6);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.18s ease-out;
  }
  .open-betslip .betslip-backdrop { opacity: 1; visibility: visible; }
}
.betslip-backdrop { display: none; }
@media screen and (max-width: 991px) { .betslip-backdrop { display: block; } }

.betslip-close-btn {
  margin-left: auto;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  display: none;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--bb-workspace-border);
  border-radius: 6px;
  color: var(--bb-workspace-muted);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
}
.betslip-close-btn:hover { color: #fff; border-color: var(--bb-workspace-cyan); }
.betslip-balance-bar { display: flex; align-items: center; gap: 8px; }
@media screen and (max-width: 991px) { .betslip-close-btn { display: inline-flex; } }

.app-nav__menu-link { min-height: 56px; }
.app-nav__menu-icon i,
.app-nav__menu-link-important i { font-size: 1.25rem; }
.app-nav__menu li:nth-child(1) .app-nav__menu-icon i { color: #FFAB25; }
.app-nav__menu li:nth-child(2) .app-nav__menu-icon i { color: #EF5B5B; }
.app-nav__menu li:nth-child(3) .app-nav__menu-link-important i { color: #FFFFFF; }
.app-nav__menu li:nth-child(4) .app-nav__menu-icon i { color: #A78BFA; }
.app-nav__menu li:nth-child(5) .app-nav__menu-icon i { color: #67E8F9; }
.app-nav__menu li:nth-child(6) .app-nav__menu-icon i { color: #7DD3A0; }

/* Duplicate layer removed: the authoritative hero visual rules live below at .hero-visual-bg. */

.match-filter-toolbar {
  background: var(--bb-workspace-surface);
  border: 1px solid var(--bb-workspace-border);
  border-radius: 8px;
  box-shadow: var(--bb-hardware-inset);
}
.match-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--bb-workspace-muted);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.match-tab-btn:hover {
  color: var(--bb-workspace-text);
  background: var(--bb-workspace-surface-2);
}
.match-tab-btn.active {
  background: var(--bb-blue-600) !important;
  color: #ffffff !important;
  border-color: var(--bb-blue-500) !important;
}
.match-search-wrapper {
  position: relative;
  min-width: 240px;
}
.match-search-input {
  background: var(--bb-workspace-surface-2) !important;
  border: 1px solid var(--bb-workspace-border) !important;
  color: var(--bb-workspace-text) !important;
  padding: 6px 30px 6px 32px !important;
  font-size: 0.82rem !important;
  border-radius: 6px !important;
  height: 34px !important;
}
.match-search-input:focus {
  border-color: var(--bb-blue-600) !important;
  box-shadow: 0 0 0 2px rgba(8, 120, 232, 0.25) !important;
}
.match-search-wrapper .search-icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--bb-workspace-muted);
  pointer-events: none;
  font-size: 0.95rem;
}
.search-clear-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--bb-workspace-muted);
  cursor: pointer;
  padding: 2px 6px;
}
.search-clear-btn:hover { color: var(--bb-danger); }

/* Pinned Matches & Star Trigger */
.btn-pin-game {
  background: none;
  border: none;
  padding: 2px 4px;
  color: var(--bb-workspace-muted);
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.btn-pin-game:hover {
  color: var(--bb-accent) !important;
  transform: scale(1.18);
}
.btn-pin-game.active {
  color: var(--bb-accent) !important;
}
.game-card-row.is-pinned .sports-card {
  border-color: rgba(245, 166, 35, 0.55) !important;
  box-shadow: 0 0 12px rgba(245, 166, 35, 0.12), var(--bb-hardware-inset) !important;
}
.pinned-indicator {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 2px 6px !important;
  border-radius: 4px !important;
  background: #F5A623 !important;
  color: #071426 !important;
  letter-spacing: 0.04em;
}

/* In-Play Match Card Highlight */
.sports-card--inplay {
  border-left: 3px solid var(--bb-danger) !important;
}

/* Empty State Container */
.empty-state-box {
  background: var(--bb-workspace-surface);
  border: 1px solid var(--bb-workspace-border);
  border-radius: 12px;
  box-shadow: var(--bb-hardware-inset);
}
.empty-state-img {
  max-width: 130px;
  height: auto;
  opacity: 0.95;
}
.empty-state-title {
  color: var(--bb-workspace-text);
  font-weight: 700;
  font-size: 1.05rem;
  margin-bottom: 6px;
}
.empty-state-desc {
  max-width: 440px;
  margin: 0 auto;
  color: var(--bb-workspace-muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

/* Supplied image library: compact discovery cards below the match feed. */
.home-feature-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.home-feature-card { position: relative; min-height: 110px; overflow: hidden; display: flex; align-items: flex-end; border: 1px solid var(--bb-workspace-border); border-radius: 8px; background: var(--bb-workspace-surface); box-shadow: var(--bb-hardware-inset); text-decoration: none !important; transition: all 0.25s ease; }
.home-feature-card__image { position: absolute; inset: 0; background-position: center; background-size: cover; opacity: .52; transition: transform 0.35s ease; }
.home-feature-card:hover .home-feature-card__image { transform: scale(1.05); opacity: .65; }
.home-feature-card__image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(7,20,38,.1) 0%, rgba(7,20,38,.92) 100%); }
.home-feature-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 2px; padding: 14px; color: var(--bb-workspace-text); }
.home-feature-card__body strong { font-size: .92rem; color: #ffffff; }
.home-feature-card__body small { color: var(--bb-workspace-muted); font-size: .75rem; }
.home-feature-card:hover { border-color: var(--bb-workspace-cyan); transform: translateY(-2px); }
@media (max-width: 767px) { .home-feature-strip { grid-template-columns: 1fr; } .home-feature-card { min-height: 90px; } }

/* Sports News Section */
.sports-news-section { margin-top: 24px; }
.sports-news-badge {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: var(--bb-blue-600);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
}
.sports-news-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--bb-workspace-text);
}
.sports-news-card {
  background: var(--bb-workspace-surface);
  border: 1px solid var(--bb-workspace-border);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--bb-hardware-inset);
  height: 100%;
  transition: all 0.25s ease;
}
.sports-news-card:hover {
  transform: translateY(-3px);
  border-color: var(--bb-cyan-500);
}
.sports-news-card__thumb {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.sports-news-tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(7, 20, 38, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--bb-cyan-500);
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
}
.sports-news-card__body {
  padding: 12px;
}
.sports-news-date {
  font-size: 0.72rem;
  color: var(--bb-workspace-muted);
  display: block;
  margin-bottom: 4px;
}
.sports-news-headline {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--bb-workspace-text);
  margin-bottom: 6px;
  line-height: 1.3;
}
.sports-news-excerpt {
  font-size: 0.76rem;
  color: var(--bb-workspace-muted);
  margin: 0;
  line-height: 1.4;
}

.home-page .betting-body > .row { --bs-gutter-x: 10px; --bs-gutter-y: 10px; }
.home-page .betting-body .sports-card { overflow-x: hidden !important; }
.home-page .betting-body .sports-card-wrapper { min-width: 0 !important; width: 100%; align-items: stretch; }
.home-page .betting-body .sports-card-left { flex: 0 0 34%; width: 34%; min-width: 0; padding: 12px; background: var(--bb-workspace-surface) !important; border-right: 1px solid var(--bb-workspace-border); }
.home-page .betting-body .sports-card-inner { flex: 1 1 0; min-width: 0; background: var(--bb-workspace-surface) !important; }
.home-page .betting-body .sports-card-heading, .home-page .betting-body .sports-card-top-inner { color: var(--bb-workspace-muted) !important; font-size: .68rem; letter-spacing: .04em; text-transform: uppercase; }
.home-page .betting-body .sports-card-body { padding: 8px 10px; background: var(--bb-workspace-surface) !important; }
.home-page .betting-body .sports-card__team { min-height: 28px; gap: 8px; }
.home-page .betting-body .sports-card__team:not(:last-child) { margin-bottom: 6px; }
.home-page .betting-body .sports-card__team-flag { width: 22px; height: 22px; flex: 0 0 22px; border: 1px solid var(--bb-workspace-border); background: var(--bb-workspace-surface-2); }
.home-page .betting-body .sports-card__team-name { color: var(--bb-workspace-text) !important; font-size: .8rem; line-height: 1.15; }
.home-page .betting-body .sports-card__left-bottom { margin-top: 12px; padding-top: 8px; border-top: 1px solid var(--bb-workspace-border); }
.home-page .betting-body .sports-card__left-bottom a { color: var(--bb-workspace-cyan) !important; font-size: .7rem; }
.home-page .betting-body .option-odd-lists { gap: 6px; }
.home-page .betting-body .option-odd-list__item { min-width: 0; }
.home-page .betting-body .oddBtn { width: 100%; min-height: 40px; padding: 5px 8px !important; }
.home-page .betting-body .oddBtn .odd-val { font-size: .88rem; font-weight: 700; }
.home-page .betting-body .oddBtn .odd-vol { display: none; }
.home-page .betting-body .point { min-height: 40px; padding: 8px; color: var(--bb-workspace-muted); background: #102946; border: 1px solid var(--bb-workspace-border); border-radius: 5px; font-size: .75rem; }
.home-page .betting-body .cricket-score-summary { margin-top: 8px; padding: 7px 8px; background: var(--bb-workspace-surface-2); border-left: 2px solid var(--bb-workspace-cyan); border-radius: 4px; }
.home-page .betting-body .cricket-situation { color: var(--bb-workspace-cyan); font-size: .68rem; }
@media (max-width: 767px) {
  .home-page .betting-body .sports-card-wrapper { min-width: 0 !important; }
  .home-page .betting-body .sports-card-left { flex-basis: 42%; width: 42%; padding: 9px; }
  .home-page .betting-body .sports-card__team-name { font-size: .74rem; }
}

/* ========================================================
   CXO-GRADE STADIUM SHOWCASE HERO SECTION & CAROUSEL
   ======================================================== */
.cricket-hero-card,
.home-page .cricket-hero-card,
html[data-theme="light"] .cricket-hero-card,
html[data-theme="dark"] .cricket-hero-card {
  position: relative !important;
  overflow: hidden !important;
  background-color: #071426 !important;
  background-image: linear-gradient(135deg, #071426 0%, #0B1B31 50%, #10243D 100%) !important;
  border: 1px solid #203B5B !important;
  border-radius: 14px !important;
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.08), 0 4px 20px rgba(0, 0, 0, 0.35) !important;
  padding: 20px 24px !important;
  margin-bottom: 14px !important;
}

html[data-theme="light"] .cricket-hero-card {
  border: 1px solid #1E293B !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
}

.hero-slides-wrapper {
  position: relative !important;
  width: 100% !important;
  min-height: 270px !important;
}

.hero-slide {
  position: relative !important;
  width: 100% !important;
  min-height: 270px !important;
  transition: opacity 0.35s ease-in-out !important;
}

/* Banner-only hero: one banner visible at a time, entire banner clickable. */
.cricket-hero-card { padding: 0 !important; overflow: hidden !important; background: var(--bb-workspace-surface) !important; border: 1px solid var(--bb-workspace-border) !important; box-shadow: none !important; }
.hero-slides-wrapper,
.hero-slide {
  min-height: 0 !important;
}
.hero-slides-wrapper { position: relative !important; }
.hero-slide {
  display: none !important;
  position: relative !important;
  width: 100% !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: hidden !important;
  border-radius: 0 !important;
  background: var(--bb-workspace-surface) !important;
  text-decoration: none !important;
}
.hero-slide.active { display: block !important; }
.hero-slide.d-none { display: none !important; }
.hero-visual-bg {
  position: relative !important;
  inset: auto !important;
  display: block !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 7;
  border-radius: 0 !important;
  background-color: var(--bb-workspace-surface) !important;
  background-position: center center !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  z-index: 0 !important;
  pointer-events: none !important;
}
/* Banner artwork carries its own text and design: no overlay layers. */
.hero-visual-bg::before,
.hero-visual-bg::after {
  content: none !important;
  background: none !important;
  display: none !important;
}
@media (max-width: 1199px) { .hero-visual-bg { aspect-ratio: 16 / 7; } }
@media (max-width: 991px)  { .hero-visual-bg { aspect-ratio: 16 / 8; } }
@media (max-width: 767px)  { .hero-visual-bg { aspect-ratio: 16 / 9; } }
@media (max-width: 480px)  { .hero-visual-bg { aspect-ratio: 4 / 3; } }
/* Legacy hero copy is not rendered in banner-only mode. */
.hero-slide .hero-content-grid,
.hero-slide .hero-copy,
.hero-slide .featured-match-panel {
  display: none !important;
}
/* Carousel chrome: compact pills and controls under the banner. */
.hero-carousel-nav {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 14px !important;
  border-top: 1px solid var(--bb-workspace-border) !important;
}
.hero-carousel-pills { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.hero-nav-pill {
  padding: 5px 12px !important;
  border: 1px solid var(--bb-workspace-border) !important;
  border-radius: 6px !important;
  background: var(--bb-workspace-surface-2) !important;
  color: var(--bb-workspace-muted) !important;
  font-size: .72rem !important;
  font-weight: 600;
  cursor: pointer;
}
.hero-nav-pill.active { background: var(--bb-workspace-primary) !important; border-color: var(--bb-workspace-cyan) !important; color: #fff !important; }
.hero-carousel-controls { display: flex; align-items: center; gap: 8px; }
.hero-arrow-btn {
  width: 30px; height: 30px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--bb-workspace-surface-2) !important;
  border: 1px solid var(--bb-workspace-border) !important;
  border-radius: 6px !important;
  color: var(--bb-workspace-muted) !important;
  cursor: pointer;
}
.hero-arrow-btn:hover { color: #fff !important; border-color: var(--bb-workspace-cyan) !important; }
.hero-dots { display: flex; align-items: center; gap: 5px; }
.hero-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--bb-workspace-border); cursor: pointer; }
.hero-dot.active { background: var(--bb-workspace-cyan); }
@media (max-width: 576px) {
  .hero-carousel-nav { padding: 8px 10px !important; }
  .hero-nav-pill { font-size: .68rem !important; padding: 4px 9px !important; }
}

.home-page .hero-content-grid,
.hero-content-grid {
  position: relative !important;
  z-index: 2 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 340px) !important;
  gap: 24px !important;
  align-items: center !important;
  padding: 8px 0 !important;
}

.home-page .hero-copy,
.hero-copy {
  position: relative !important;
  z-index: 3 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  min-width: 0 !important;
}

.hero-badge-cyan {
  background: rgba(0, 184, 217, 0.2) !important;
  border: 1px solid rgba(0, 184, 217, 0.55) !important;
  color: #00B8D9 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  letter-spacing: 0.04em !important;
  border-radius: 4px !important;
}

.hero-badge-amber {
  background: rgba(245, 166, 35, 0.2) !important;
  border: 1px solid rgba(245, 166, 35, 0.55) !important;
  color: #F5A623 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  letter-spacing: 0.04em !important;
  border-radius: 4px !important;
}

.hero-badge-gold {
  background: rgba(245, 166, 35, 0.22) !important;
  border: 1px solid rgba(245, 166, 35, 0.6) !important;
  color: #FFD700 !important;
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  padding: 4px 10px !important;
  letter-spacing: 0.04em !important;
  border-radius: 4px !important;
}

.hero-title,
.cricket-hero-card .hero-title,
html[data-theme="light"] .cricket-hero-card .hero-title,
html[data-theme="dark"] .cricket-hero-card .hero-title {
  color: #FFFFFF !important;
  font-size: clamp(1.5rem, 2.8vw, 2.2rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  line-height: 1.18 !important;
  margin-bottom: 8px !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.45) !important;
}

.hero-subtitle,
.cricket-hero-card .hero-subtitle,
html[data-theme="light"] .cricket-hero-card .hero-subtitle,
html[data-theme="dark"] .cricket-hero-card .hero-subtitle {
  color: #CBD5E1 !important;
  font-size: 0.92rem !important;
  max-width: 580px !important;
  line-height: 1.5 !important;
  margin-bottom: 16px !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

.hero-cta-btn {
  background: #0878E8 !important;
  color: #FFFFFF !important;
  font-weight: 700 !important;
  padding: 10px 22px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(8, 120, 232, 0.4) !important;
  border: 1px solid #0878E8 !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-cta-btn:hover {
  background: #0757C8 !important;
  border-color: #0757C8 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

.hero-secondary-btn,
html[data-theme="light"] .hero-secondary-btn,
html[data-theme="dark"] .hero-secondary-btn {
  background-color: #10243D !important;
  background: #10243D !important;
  color: #FFFFFF !important;
  border: 1px solid rgba(0, 184, 217, 0.45) !important;
  font-weight: 600 !important;
  padding: 10px 18px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.hero-secondary-btn:hover {
  background-color: #162D49 !important;
  border-color: #00E5FB !important;
  color: #FFFFFF !important;
}

.hero-pill-btn {
  background: rgba(239, 68, 68, 0.16) !important;
  color: #FCA5A5 !important;
  border: 1px solid rgba(239, 68, 68, 0.4) !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  border-radius: 6px !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  transition: all 0.2s ease !important;
}

.hero-pill-btn:hover {
  background: rgba(239, 68, 68, 0.28) !important;
  color: #FFFFFF !important;
}

.home-page .featured-match-panel,
.featured-match-panel {
  position: relative !important;
  z-index: 3 !important;
  background: rgba(11, 27, 49, 0.92) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(0, 184, 217, 0.35) !important;
  border-radius: 10px !important;
  padding: 18px !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4) !important;
}

.featured-match-meta {
  color: #F5A623 !important;
  font-size: 0.76rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

.featured-match-competition {
  color: #94A3B8 !important;
  font-size: 0.78rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
}

.hero-match-title,
.featured-match-panel .hero-match-title {
  color: #FFFFFF !important;
  font-weight: 800 !important;
}

.btn-featured-match {
  background: #0878E8 !important;
  color: #FFFFFF !important;
  border: 1px solid #00B8D9 !important;
  font-weight: 700 !important;
  padding: 9px 16px !important;
  border-radius: 6px !important;
  box-shadow: 0 2px 8px rgba(8, 120, 232, 0.35) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn-featured-match:hover {
  background: #0757C8 !important;
  color: #FFFFFF !important;
  transform: translateY(-1px) !important;
}

/* Carousel Thumbnail Navigation */
.hero-carousel-nav {
  position: relative !important;
  z-index: 3 !important;
}

.hero-nav-pill {
  background-color: #0B1B31 !important;
  background: rgba(11, 27, 49, 0.95) !important;
  border: 1px solid rgba(0, 184, 217, 0.35) !important;
  color: #E2E8F0 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: 20px !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.hero-nav-pill:hover,
.hero-nav-pill.active {
  background: #0878E8 !important;
  border-color: #00B8D9 !important;
  color: #FFFFFF !important;
  box-shadow: 0 2px 8px rgba(8, 120, 232, 0.35) !important;
}

.hero-arrow-btn {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #FFFFFF !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
}

.hero-arrow-btn:hover {
  background: #0878E8 !important;
  border-color: #0878E8 !important;
}

.hero-dot {
  width: 8px !important;
  height: 8px !important;
  border-radius: 50% !important;
  background: rgba(255, 255, 255, 0.28) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  display: inline-block !important;
}

.hero-dot.active {
  background: #0878E8 !important;
  width: 22px !important;
  border-radius: 4px !important;
}

@media (max-width: 1199px) {
  .home-page .hero-content-grid,
  .hero-content-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  .home-page .featured-match-panel,
  .featured-match-panel {
    margin-top: 14px !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .home-page .hero-copy,
  .hero-copy {
    width: 100% !important;
    max-width: 100% !important;
  }
  .home-page .hero-subtitle,
  .hero-subtitle {
    max-width: 100% !important;
  }
}

@media (max-width: 767px) {
  .home-page .cricket-hero-card,
  .cricket-hero-card {
    padding: 0 !important;
  }
  .hero-slides-wrapper,
  .hero-slide {
    min-height: auto !important;
  }
  .hero-visual-bg {
    position: relative !important;
    height: auto !important;
    width: 100% !important;
    margin-bottom: 0 !important;
  }
  .hero-title {
    font-size: 1.35rem !important;
  }
  .hero-actions {
    gap: 8px !important;
  }
  .hero-actions > * {
    flex: 1 1 calc(50% - 8px) !important;
    text-align: center !important;
    justify-content: center !important;
  }
}

.home-page .betting-body > .row { display: block; }
.home-page .betting-body > .row > [class*="col-"] { width: 100% !important; max-width: 100% !important; padding-inline: 0 !important; margin-bottom: 10px; }
.home-page .betting-body .sports-card-wrapper { min-width: 0 !important; width: 100% !important; }
.home-page .betting-body .sports-card-left { flex-basis: 30%; width: 30%; }
@media (max-width: 767px) {
  .home-page .betting-body .sports-card-left { flex-basis: 42%; width: 42%; }
}

.fantasy-hero-title { background: none !important; -webkit-text-fill-color: currentColor !important; color: var(--bb-site-text) !important; }
.match-action-banner { animation: none; box-shadow: none; border-radius: 6px; background: var(--bb-site-surface-2); border-color: var(--bb-site-cyan); }

.fantasy-hero-banner {
    background: var(--bb-navy-850);
    border: 1px solid var(--bb-navy-600);
    box-shadow: var(--bb-hardware-inset);
    border-radius: 12px;
}
.fantasy-hero-title {
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    color: var(--bb-white) !important;
}
.fantasy-stat-box {
    background: var(--bb-navy-800);
    border: 1px solid var(--bb-navy-600);
    box-shadow: var(--bb-hardware-inset);
    border-radius: 8px;
}
.fantasy-filter-tabs {
    border-bottom: 1px solid var(--bb-site-border);
}
.fantasy-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    text-decoration: none;
    color: var(--bb-site-muted);
    background: var(--bb-site-surface-2);
    border: 1px solid var(--bb-site-border);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}
.fantasy-tab:hover {
    color: #fff;
    border-color: var(--bb-site-cyan);
    background: rgba(0, 184, 217, 0.12);
}
.fantasy-tab.active {
    color: #FFFFFF !important;
    background: var(--bb-blue-700) !important;
    border-color: var(--bb-blue-600) !important;
    box-shadow: var(--bb-hardware-inset);
}

/* Fantasy Contest Cards */
.fantasy-contest-card, .fantasy-card {
    background: var(--bb-site-surface);
    border: 1px solid var(--bb-site-border);
    box-shadow: var(--bb-hardware-inset);
    border-radius: 10px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.fantasy-contest-card:hover {
    border-color: var(--bb-site-cyan);
    transform: translateY(-2px);
    box-shadow: var(--bb-hardware-inset), 0 6px 18px rgba(0, 0, 0, 0.25);
}
.badge-contest-mega {
    background: linear-gradient(135deg, #FF4500 0%, #FF8C00 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}
.badge-contest-h2h {
    background: linear-gradient(135deg, #8A2BE2 0%, #4B0082 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}
.badge-contest-practice {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: #fff;
    font-weight: 800;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 4px;
}
.badge-sport-league {
    background: rgba(14, 151, 251, 0.12);
    color: #0E97FB;
    border: 1px solid rgba(14, 151, 251, 0.3);
    font-size: 0.7rem;
}
.fantasy-team-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 2px;
}
.bg-dark-tint {
    background: rgba(6, 17, 43, 0.55);
}
.fantasy-progress-bar {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
}
.fantasy-progress-bar .progress-bar {
    background: linear-gradient(90deg, #00E5FB 0%, #FF8C00 100%);
}

/* Fantasy Team Builder */
.fantasy-tracker-bar {
    background: rgba(7, 21, 54, 0.88);
    border: 1px solid rgba(0, 229, 251, 0.35);
}
.fantasy-role-btn {
    background: var(--bb-site-surface-2);
    color: var(--bb-site-muted);
    border: 1px solid var(--bb-site-border);
    border-radius: 20px;
    padding: 8px 18px;
    font-weight: 700;
    font-size: 0.84rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.fantasy-role-btn.active {
    background: rgba(0, 229, 251, 0.15);
    color: #00E5FB;
    border-color: #00E5FB;
    box-shadow: 0 0 10px rgba(0, 229, 251, 0.3);
}
.player-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00E5FB 0%, #0E97FB 100%);
    color: #071536;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.8rem;
}
.badge-role-wk { background: rgba(255, 193, 7, 0.18); color: #FFC107; border: 1px solid rgba(255, 193, 7, 0.4); }
.badge-role-bat { background: rgba(14, 151, 251, 0.18); color: #0E97FB; border: 1px solid rgba(14, 151, 251, 0.4); }
.badge-role-ar { background: rgba(16, 185, 129, 0.18); color: #10B981; border: 1px solid rgba(16, 185, 129, 0.4); }
.badge-role-bowl { background: rgba(239, 68, 68, 0.18); color: #EF4444; border: 1px solid rgba(239, 68, 68, 0.4); }
.table-active-selected {
    background: rgba(0, 229, 251, 0.08) !important;
}

/* ==========================================================================
   LIVE MATCH CENTER & 2D RADAR TRACKER
   ========================================================================== */

.match-center-head {
    background: var(--bb-navy-850);
    border: 1px solid var(--bb-navy-600);
    box-shadow: var(--bb-hardware-inset);
    border-radius: 12px;
}
.match-team-logo {
    width: clamp(38px, 6vw, 54px);
    height: clamp(38px, 6vw, 54px);
    object-fit: contain;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    padding: 4px;
    border: 1px solid rgba(0, 229, 251, 0.2);
}
.match-vs-badge {
    background: rgba(0, 229, 251, 0.12);
    color: #00E5FB;
    border: 1px solid rgba(0, 229, 251, 0.3);
    font-size: 0.85rem;
    border-radius: 50%;
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.cricket-live-tracker {
    background: rgba(4, 14, 38, 0.7);
    border: 1px solid rgba(0, 229, 251, 0.2);
}
.badge-crr {
    background: rgba(0, 229, 251, 0.15);
    color: #00E5FB;
    border: 1px solid rgba(0, 229, 251, 0.3);
    font-size: 0.75rem;
}
.cricket-ball {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--bb-site-surface-2);
    border: 1px solid var(--bb-site-border);
    color: var(--bb-site-text);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
}
.cricket-ball.four { background: #0E97FB; color: #fff; border-color: #0E97FB; }
.cricket-ball.six { background: #10B981; color: #fff; border-color: #10B981; }
.cricket-ball.wicket { background: #EF4444; color: #fff; border-color: #EF4444; }
.cricket-ball.active { box-shadow: 0 0 8px #00E5FB; border-color: #00E5FB; }

/* 2D Field Radar View */
.match-visual-tracker-box {
    background: var(--bb-navy-900);
    border: 1px solid var(--bb-navy-600);
    box-shadow: var(--bb-hardware-inset);
    border-radius: 12px;
    overflow: hidden;
    position: relative;
}
.cricket-pitch-canvas {
    width: 100%;
    height: 220px;
    background: radial-gradient(ellipse at center, #1b4d2e 0%, #0d301b 60%, #06190e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
}
.pitch-strip {
    width: 140px;
    height: 18px;
    background: #c2a679;
    border-radius: 3px;
    position: absolute;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.4);
}
.pitch-ring-30yd {
    width: 280px;
    height: 140px;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
}
.pitch-boundary-rope {
    width: 94%;
    height: 85%;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    position: absolute;
    pointer-events: none;
}
.match-action-banner {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bb-navy-850);
    border: 1px solid var(--bb-cyan-500);
    box-shadow: var(--bb-hardware-inset);
    color: #fff;
    padding: 6px 18px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 700;
    z-index: 5;
    white-space: nowrap;
}

/* Win Probability Dual Bar */
.win-prob-wrapper {
    background: rgba(5, 15, 38, 0.7);
    border: 1px solid var(--bb-site-border);
    border-radius: 8px;
    padding: 8px 12px;
}
.win-prob-bar {
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    background: #0E97FB;
}
.win-prob-fill {
    height: 100%;
    background: #FF8C00;
    transition: width 0.5s ease;
}

/* ==========================================================================
   HORIZONTAL SCROLLABLE MATCH CARDS STRIP
   ========================================================================== */

.match-quick-cards-scroll-wrapper {
    position: relative;
    margin-bottom: 1rem;
}
.match-quick-cards-scroll {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 2px 10px 2px;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 251, 0.3) transparent;
}
.match-quick-cards-scroll::-webkit-scrollbar {
    height: 5px;
}
.match-quick-cards-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 251, 0.3);
    border-radius: 10px;
}
.match-quick-card {
    flex: 0 0 clamp(210px, 28vw, 250px);
    scroll-snap-align: start;
    background: var(--bb-site-surface);
    border: 1px solid var(--bb-site-border);
    box-shadow: var(--bb-hardware-inset);
    border-radius: 12px;
    padding: 12px 14px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.match-quick-card:hover {
    border-color: var(--bb-site-cyan);
    transform: translateY(-2px);
    box-shadow: var(--bb-hardware-inset), 0 6px 18px rgba(0, 0, 0, 0.25);
}
.match-card-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Sub Tab Navigation inside Match Center */
.match-center-tabs {
    border-bottom: 1px solid var(--bb-site-border);
    margin-bottom: 12px;
}
.match-center-tab-btn {
    background: transparent;
    color: var(--bb-site-muted);
    border: none;
    border-bottom: 2px solid transparent;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.82rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.match-center-tab-btn.active {
    color: #00E5FB;
    border-bottom-color: #00E5FB;
}

/* Light Mode Overrides */
html[data-theme="light"] .fantasy-hero-banner {
    background: radial-gradient(circle at 80% 20%, rgba(14, 151, 251, 0.15) 0%, #FFFFFF 70%, #F1F5F9 100%) !important;
    border-color: rgba(14, 151, 251, 0.3) !important;
}
html[data-theme="light"] .fantasy-hero-title {
    background: linear-gradient(135deg, #071536 0%, #0369A1 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
html[data-theme="light"] .fantasy-stat-box,
html[data-theme="light"] .match-center-head,
html[data-theme="light"] .fantasy-tracker-bar {
    background: #FFFFFF !important;
    border-color: var(--bb-site-border) !important;
}
html[data-theme="light"] .bg-dark-tint {
    background: #F1F5F9 !important;
}
html[data-theme="light"] .cricket-live-tracker {
    background: #F8FAFC !important;
    border-color: var(--bb-site-border) !important;
}
html[data-theme="light"] .match-quick-card {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
}

/* 2D Football Pitch Canvas */
.football-pitch-canvas {
    width: 100%;
    height: 220px;
    background: radial-gradient(ellipse at center, #1b4d2e 0%, #0d301b 60%, #06190e 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.25);
}
.football-halfway-line {
    width: 2px;
    height: 100%;
    background: rgba(255, 255, 255, 0.35);
    position: absolute;
}
.football-center-circle {
    width: 70px;
    height: 70px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    position: absolute;
}
.football-penalty-box-left {
    position: absolute;
    left: 0;
    width: 60px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-left: none;
}
.football-penalty-box-right {
    position: absolute;
    right: 0;
    width: 60px;
    height: 120px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-right: none;
}

/* 2D Tennis Court Canvas */
.tennis-court-canvas {
    width: 100%;
    height: 220px;
    background: radial-gradient(ellipse at center, #153b6d 0%, #092040 60%, #051326 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.tennis-net-line {
    width: 2px;
    height: 100%;
    background: #00E5FB;
    position: absolute;
    box-shadow: 0 0 8px rgba(0, 229, 251, 0.7);
}
.tennis-service-box-left {
    position: absolute;
    left: 20%;
    width: 30%;
    height: 110px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}
.tennis-service-box-right {
    position: absolute;
    right: 20%;
    width: 30%;
    height: 110px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

/* ==========================================================================
   EDITORIAL SPACING, TABULAR NUMERALS & PRECISION HARDWARE TOKENS
   ========================================================================== */

/* Tabular Numerals for Sports Odds, Scores, and Balances */
.odd-value,
.score-number,
.cricket-score-line,
.cricket-overs-pill,
.sports-card-score,
.pts-badge,
.widget-card__balance,
.widget-card__id,
.leaderboard-table td,
.podium-pts,
.fantasy-card-fee,
.fantasy-pool-amount,
.match-score-pill,
.speed-gun-value,
.cricket-ball,
.stat-mono {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1, "cv05" 1;
    letter-spacing: -0.015em;
}

/* Precision Hardware Borders & Top Inset Highlight Across Cards */
html[data-theme="dark"] .card,
html[data-theme="dark"] .custom--card,
html[data-theme="dark"] .sports-card,
html[data-theme="dark"] .featured-match-panel,
html[data-theme="dark"] .cricket-hero-card,
html[data-theme="dark"] .sub-category-drawer,
html[data-theme="dark"] .betslip,
html[data-theme="dark"] .widget-card,
html[data-theme="dark"] .fantasy-card,
html[data-theme="dark"] .match-center-head,
html[data-theme="dark"] .odds-table,
html[data-theme="dark"] .leaderboard-card,
html[data-theme="dark"] .podium-card,
html[data-theme="dark"] .casino-table-card,
html[data-theme="dark"] .policy-card,
html[data-theme="dark"] .match-visual-tracker-box {
    border: 1px solid var(--bb-navy-600) !important;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04) !important;
}

/* Canonical High-Contrast Light Mode Surfaces */
html[data-theme="light"] .card,
html[data-theme="light"] .custom--card,
html[data-theme="light"] .sports-card,
html[data-theme="light"] .sub-category-drawer,
html[data-theme="light"] .betslip,
html[data-theme="light"] .widget-card,
html[data-theme="light"] .fantasy-card,
html[data-theme="light"] .match-center-head,
html[data-theme="light"] .odds-table,
html[data-theme="light"] .leaderboard-card,
html[data-theme="light"] .podium-card,
html[data-theme="light"] .casino-table-card,
html[data-theme="light"] .policy-card,
html[data-theme="light"] .match-visual-tracker-box {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 4px 12px rgba(0, 0, 0, 0.02) !important;
    color: #0F172A !important;
}

html[data-theme="light"] .sports-card-heading,
html[data-theme="light"] .sports-card-top-inner,
html[data-theme="light"] .match-center-head,
html[data-theme="light"] .betslip-header,
html[data-theme="light"] .betslip__footer {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

html[data-theme="light"] .sports-card-team,
html[data-theme="light"] .sports-card-title,
html[data-theme="light"] .team-select-title,
html[data-theme="light"] .match-team-name,
html[data-theme="light"] .sports-card__team-name,
html[data-theme="light"] .league-title,
html[data-theme="light"] .header-nav-link {
    color: #0F172A !important;
}

html[data-theme="light"] .home-page,
html[data-theme="light"] .sports-body,
html[data-theme="light"] body,
html[data-theme="light"] .body-wrapper,
html[data-theme="light"] .user-dashboard,
html[data-theme="light"] .section--bg {
    background-color: #F8FAFC !important;
    color: #334155 !important;
}

html[data-theme="light"] .sports-category {
    background: #FFFFFF !important;
    border-right: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .sports-category__link {
    color: #334155 !important;
}

html[data-theme="light"] .sports-category__icon,
html[data-theme="light"] .sports-category__link .sports-category__icon,
html[data-theme="light"] .sports-category__link i {
    color: #0F172A !important;
}

html[data-theme="light"] .sports-category__text,
html[data-theme="light"] .sports-category__link .sports-category__text {
    color: #334155 !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .sports-category__link:hover {
    background: #EFF6FF !important;
}

html[data-theme="light"] .sports-category__link:hover .sports-category__icon,
html[data-theme="light"] .sports-category__link:hover .sports-category__text,
html[data-theme="light"] .sports-category__link:hover i {
    color: #0878E8 !important;
}

html[data-theme="light"] .sports-category__link.active {
    background: #EFF6FF !important;
    border-left: 3px solid #0878E8 !important;
}

html[data-theme="light"] .sports-category__link.active .sports-category__icon,
html[data-theme="light"] .sports-category__link.active .sports-category__text,
html[data-theme="light"] .sports-category__link.active i {
    color: #0878E8 !important;
}

/* Light Theme Header Menu Visibility */
html[data-theme="light"] .header-primary,
html[data-theme="light"] .header-fluid-custom-parent,
html[data-theme="light"] .header-bottom {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .header-nav-link {
    color: #0F172A !important;
    font-weight: 600 !important;
    font-size: 0.9rem !important;
}

html[data-theme="light"] .header-nav-link:hover {
    color: #0878E8 !important;
}

html[data-theme="light"] .btn-sports-drawer,
html[data-theme="light"] .bb-menu-icon {
    color: #0F172A !important;
}

html[data-theme="light"] .language-btn {
    color: #0F172A !important;
}

html[data-theme="light"] .language-text,
html[data-theme="light"] .language-code-text {
    color: #0F172A !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .user-wallet-btn {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] .user-wallet-btn strong,
html[data-theme="light"] .user-wallet-btn .wallet-bal-val,
html[data-theme="light"] .user-wallet-btn .wallet-exp-val {
    color: #0F172A !important;
}

html[data-theme="light"] .btn-theme-toggle {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
}

html[data-theme="light"] .btn--signup,
html[data-theme="light"] .mobile-login-btn {
    background: #0878E8 !important;
    color: #FFFFFF !important;
    border-color: #0878E8 !important;
}

/* Light Theme Sports Drawer */
html[data-theme="light"] .sports-drawer-offcanvas {
    background: #FFFFFF !important;
    color: #0F172A !important;
    border-right: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .drawer-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .drawer-title {
    color: #0F172A !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .drawer-search-box {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .drawer-search-input {
    background: #F1F5F9 !important;
    color: #0F172A !important;
    border: 1px solid #CBD5E1 !important;
}

html[data-theme="light"] .drawer-search-input::placeholder {
    color: #64748B !important;
}

html[data-theme="light"] .drawer-search-icon {
    background: #F1F5F9 !important;
    color: #64748B !important;
    border: 1px solid #CBD5E1 !important;
}

html[data-theme="light"] .drawer-item {
    background: #FFFFFF !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .drawer-link,
html[data-theme="light"] .drawer-item a,
html[data-theme="light"] .category-name-text {
    color: #0F172A !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .drawer-section-heading {
    background: #F1F5F9 !important;
    color: #475569 !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .sports-drawer-category-item .accordion-button {
    background: #FFFFFF !important;
    color: #0F172A !important;
}

html[data-theme="light"] .drawer-sub-link {
    color: #334155 !important;
    background: #FAFAFA !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .drawer-sub-link:hover {
    background: #EFF6FF !important;
    color: #0878E8 !important;
}

/* Light Theme Leagues Sticky Rail */
html[data-theme="light"] .sub-category-drawer {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .sub-category-drawer__text {
    color: #0F172A !important;
    font-weight: 600 !important;
}

html[data-theme="light"] .sub-category-drawer__link.active .sub-category-drawer__text {
    color: #0878E8 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .sub-category-drawer__link.active {
    border-bottom: 2px solid #0878E8 !important;
}

/* Light Theme Match Cards & Components */
html[data-theme="light"] .sports-card-left {
    background: #FFFFFF !important;
    border-right: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .sports-card-inner {
    background: #FFFFFF !important;
}

html[data-theme="light"] .sports-card-body {
    background: #FFFFFF !important;
}

html[data-theme="light"] .sports-card__team-name {
    color: #0F172A !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .sports-card-heading,
html[data-theme="light"] .sports-card-top-inner {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
    color: #475569 !important;
}

html[data-theme="light"] .point {
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}

html[data-theme="light"] .cricket-score-summary {
    background: #EFF6FF !important;
    border-left: 2px solid #0878E8 !important;
}

html[data-theme="light"] .cricket-situation {
    color: #0878E8 !important;
}

html[data-theme="light"] .home-feature-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}

html[data-theme="light"] .sports-news-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .sports-news-title,
html[data-theme="light"] .sports-news-headline {
    color: #0F172A !important;
}

html[data-theme="light"] .sports-news-excerpt {
    color: #475569 !important;
}

html[data-theme="light"] .sports-visual-rail__title {
    color: #0F172A !important;
}

html[data-theme="light"] .match-filter-toolbar {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html[data-theme="light"] .match-tab-btn {
    background: #F1F5F9 !important;
    border: 1px solid #E2E8F0 !important;
    color: #334155 !important;
}

html[data-theme="light"] .match-tab-btn:hover {
    background: #EFF6FF !important;
    color: #0878E8 !important;
    border-color: #0878E8 !important;
}

html[data-theme="light"] .match-tab-btn.active {
    background: #0878E8 !important;
    color: #FFFFFF !important;
    border-color: #0878E8 !important;
}

html[data-theme="light"] .match-search-input {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] .match-search-input::placeholder {
    color: #64748B !important;
}

html[data-theme="light"] .match-search-wrapper .search-icon {
    color: #64748B !important;
}

html[data-theme="light"] .betslip {
    background: #FFFFFF !important;
    border-left: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .betslip-item {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .betslip-item-header {
    background: #F1F5F9 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .betslip-item-league__name,
html[data-theme="light"] .betslip-item-team__name,
html[data-theme="light"] .betslip-item-market__type,
html[data-theme="light"] .betslip-item-market__label,
html[data-theme="light"] .betslip-item-stake__label,
html[data-theme="light"] .betslip__list-match,
html[data-theme="light"] .betslip__list-ratio span,
html[data-theme="light"] .bet-return span,
html[data-theme="light"] .betslip-item-return__text {
    color: #0F172A !important;
}

html[data-theme="light"] .betslip-balance-bar {
    background: #EFF6FF !important;
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] .betslip-balance-pts {
    color: #0878E8 !important;
    font-weight: 700 !important;
}

html[data-theme="light"] .quick-stake-btn {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] .quick-stake-btn:hover {
    background: #EFF6FF !important;
    border-color: #0878E8 !important;
    color: #0878E8 !important;
}

html[data-theme="light"] .quick-stake-btn.max-btn {
    background: #FEF3C7 !important;
    border-color: #F59E0B !important;
    color: #B45309 !important;
}

html[data-theme="light"] .oddBtn,
html[data-theme="light"] .btn-back {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] .oddBtn .odd-val {
    color: #0F172A !important;
}

html[data-theme="light"] .oddBtn:hover:not(:disabled) {
    background: #EFF6FF !important;
    border-color: #0878E8 !important;
}

html[data-theme="light"] .oddBtn.active {
    background: #0878E8 !important;
    border-color: #0878E8 !important;
    color: #FFFFFF !important;
}

html[data-theme="light"] .oddBtn.active .odd-val {
    color: #FFFFFF !important;
}

/* Canonical High-Contrast Dark Mode Surfaces */
html[data-theme="dark"] .sports-card-heading,
html[data-theme="dark"] .sports-card-top-inner,
html[data-theme="dark"] .featured-match-panel__head,
html[data-theme="dark"] .match-center-head,
html[data-theme="dark"] .betslip-header,
html[data-theme="dark"] .betslip__footer {
    background: #162D49 !important;
    border-color: #203B5B !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .hero-title,
html[data-theme="dark"] .hero-match-title,
html[data-theme="dark"] .sports-card-team,
html[data-theme="dark"] .sports-card-title,
html[data-theme="dark"] .team-select-title,
html[data-theme="dark"] .match-team-name,
html[data-theme="dark"] .sports-card__team-name,
html[data-theme="dark"] .league-title,
html[data-theme="dark"] .header-nav-link {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .home-page,
html[data-theme="dark"] .sports-body,
html[data-theme="dark"] body,
html[data-theme="dark"] .body-wrapper,
html[data-theme="dark"] .user-dashboard,
html[data-theme="dark"] .section--bg {
    background-color: #071426 !important;
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .sports-category {
    background: #0B1B31 !important;
    border-right: 1px solid #203B5B !important;
}

html[data-theme="dark"] .sports-category__link {
    color: #CBD5E1 !important;
}

html[data-theme="dark"] .sports-category__icon,
html[data-theme="dark"] .sports-category__link .sports-category__icon,
html[data-theme="dark"] .sports-category__link i {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .sports-category__text,
html[data-theme="dark"] .sports-category__link .sports-category__text {
    color: #CBD5E1 !important;
    font-weight: 600 !important;
}

html[data-theme="dark"] .sports-category__link:hover {
    background: rgba(8, 120, 232, 0.12) !important;
}

html[data-theme="dark"] .sports-category__link:hover .sports-category__icon,
html[data-theme="dark"] .sports-category__link:hover .sports-category__text,
html[data-theme="dark"] .sports-category__link:hover i {
    color: #00B8D9 !important;
}

html[data-theme="dark"] .sports-category__link.active {
    background: rgba(8, 120, 232, 0.22) !important;
    border-left: 3px solid #00B8D9 !important;
}

html[data-theme="dark"] .sports-category__link.active .sports-category__icon,
html[data-theme="dark"] .sports-category__link.active .sports-category__text,
html[data-theme="dark"] .sports-category__link.active i {
    color: #00B8D9 !important;
}

html[data-theme="dark"] .betslip {
    background: #0B1B31 !important;
    border-left: 1px solid #203B5B !important;
}

html[data-theme="dark"] .betslip-item {
    background: #10243D !important;
    border: 1px solid #203B5B !important;
}

html[data-theme="dark"] .oddBtn,
html[data-theme="dark"] .btn-back {
    background: #162D49 !important;
    border: 1px solid #29415F !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .oddBtn .odd-val {
    color: #FFFFFF !important;
}

html[data-theme="dark"] .oddBtn:hover:not(:disabled) {
    background: #1C3B60 !important;
    border-color: #00B8D9 !important;
}

html[data-theme="dark"] .oddBtn.active {
    background: #0878E8 !important;
    border-color: #00B8D9 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] .oddBtn.active .odd-val {
    color: #FFFFFF !important;
}

/* Interactive Spring Micro-Scaling Triggers */
.btn,
.oddBtn,
.hero-action-primary,
.hero-action-secondary,
.bb-chip,
.sports-category__link,
.sub-category-drawer__link,
.casino-tab-btn,
.fantasy-tab,
.match-quick-card {
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.btn:active,
.oddBtn:active,
.hero-action-primary:active,
.hero-action-secondary:active,
.bb-chip:active,
.casino-tab-btn:active,
.fantasy-tab:active {
    transform: scale(0.97) !important;
}

/* Dual-Ring Focus Accessibility Outline */
.btn:focus-visible,
.form-control:focus,
.form-select:focus,
.oddBtn:focus-visible,
a:focus-visible,
button:focus-visible {
    outline: 2px solid rgba(8, 120, 232, 0.6) !important;
    outline-offset: 2px !important;
    box-shadow: 0 0 0 2px var(--bb-navy-950), 0 0 0 4px rgba(8, 120, 232, 0.35) !important;
}

/* ==========================================================================
   4RABET-STYLE SIGNATURE COMPONENTS & IMAGE-FIT PRECISION SYSTEM
   ========================================================================== */

/* 1. TOP QUICK CATEGORIES NAVIGATION RAIL (.top-sections) */
.top-sections {
    display: block;
    width: 100%;
    margin-bottom: 12px;
}
.top-sections__wrapper {
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: thin;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
}
.top-sections__wrapper::-webkit-scrollbar {
    height: 3px;
}
.top-sections__wrapper::-webkit-scrollbar-thumb {
    background: var(--bb-workspace-border);
    border-radius: 3px;
}
.top-sections__item {
    position: relative;
    flex: 1 1 0;
    min-width: 82px;
    max-width: 140px;
    padding: 10px 6px 8px;
    border-radius: 10px;
    background: #10243D;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none !important;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-sections__item:hover {
    transform: translateY(-2px);
    border-color: #0878E8;
    background: #162D49;
    box-shadow: 0 4px 14px rgba(8, 120, 232, 0.25);
}
.top-sections__item.active {
    background: #162D49;
    border-color: #00B8D9;
    box-shadow: 0 0 0 1px #00B8D9, 0 4px 12px rgba(0, 184, 217, 0.2);
}
.top-sections__img-wrapper {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 5px;
    flex-shrink: 0;
}
.top-sections__img {
    width: 38px !important;
    height: 38px !important;
    max-width: 100%;
    max-height: 100%;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease-in-out;
}
.top-sections__item:hover .top-sections__img {
    transform: scale(1.12);
}
.top-sections__name {
    font-size: 0.74rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
.top-sections__badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 2px 4px;
    border-radius: 4px;
    line-height: 1;
    letter-spacing: 0.03em;
    z-index: 2;
}
.top-badge-live {
    background: #D93645 !important;
    color: #FFFFFF !important;
}
.top-badge-hot {
    background: #F5A623 !important;
    color: #071426 !important;
}
.top-badge-cyan {
    background: #00B8D9 !important;
    color: #071426 !important;
}
.top-badge-gold {
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
    color: #071426 !important;
}
.top-badge-success {
    background: #138A55 !important;
    color: #FFFFFF !important;
}

/* 4Rabet Top Sections in Light Theme */
html[data-theme="light"] .top-sections__item {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05), 0 2px 6px rgba(0, 0, 0, 0.02) !important;
}
html[data-theme="light"] .top-sections__item:hover {
    background: #EFF6FF !important;
    border-color: #0878E8 !important;
    box-shadow: 0 4px 14px rgba(8, 120, 232, 0.15) !important;
}
html[data-theme="light"] .top-sections__item.active {
    background: #EFF6FF !important;
    border-color: #0878E8 !important;
    box-shadow: 0 0 0 1px #0878E8, 0 4px 12px rgba(8, 120, 232, 0.15) !important;
}
html[data-theme="light"] .top-sections__name {
    color: #0F172A !important;
}

/* 2. PROMOTIONAL HERO MARQUEE BANNER (.promo-marquee-card) */
.promo-marquee-container {
    width: 100%;
}
.promo-marquee-card {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #071426;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.promo-marquee-card:hover {
    transform: translateY(-2px);
    border-color: #0878E8;
    box-shadow: 0 8px 24px rgba(8, 120, 232, 0.25);
}
.promo-marquee-img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 1000 / 222 !important;
    max-height: 220px !important;
    object-fit: cover !important;
    display: block !important;
}
.promo-marquee-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 12px 18px;
    background: linear-gradient(0deg, rgba(7, 20, 38, 0.85) 0%, rgba(7, 20, 38, 0.25) 50%, transparent 100%);
    pointer-events: none;
}
.promo-marquee-badges {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.promo-marquee-cta {
    pointer-events: auto;
}
.promo-marquee-btn {
    background: #0878E8 !important;
    border-color: #00B8D9 !important;
    color: #FFFFFF !important;
    box-shadow: 0 2px 8px rgba(8, 120, 232, 0.4) !important;
    transition: all 0.2s ease !important;
}
.promo-marquee-btn:hover {
    background: #0757C8 !important;
    transform: translateY(-1px) !important;
}
html[data-theme="light"] .promo-marquee-card {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
}

/* 3. SITE-WIDE IMAGE FIT & ASPECT RATIO PRECISION */
.sports-tile-card__img {
    background-size: cover !important;
    background-position: center center !important;
    filter: brightness(0.92) contrast(1.05);
}
.home-feature-card__image {
    background-size: cover !important;
    background-position: center center !important;
}
.sports-news-card__thumb {
    background-size: cover !important;
    background-position: center center !important;
}
.empty-state-img {
    max-width: 140px !important;
    height: auto !important;
    object-fit: contain !important;
    display: inline-block !important;
}

/* Team Crest / Logo Perfect Aspect Ratio Container */
.sports-card__team-flag,
.home-page .betting-body .sports-card__team-flag {
    width: 26px !important;
    height: 26px !important;
    flex: 0 0 26px !important;
    border-radius: 6px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid var(--bb-workspace-border) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    padding: 2px !important;
}
.sports-card__team-flag-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    display: block !important;
}
html[data-theme="light"] .sports-card__team-flag,
html[data-theme="light"] .home-page .betting-body .sports-card__team-flag {
    background: #F1F5F9 !important;
    border-color: #CBD5E1 !important;
}

/* 4. 4RABET-STYLE STICKY MOBILE NAVIGATION (.app-nav) */
.app-nav {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 1050 !important;
    padding-bottom: env(safe-area-inset-bottom, 4px) !important;
    background: #0B1B31 !important;
    border-top: 1px solid #203B5B !important;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.35) !important;
}
html[data-theme="light"] .app-nav {
    background: #FFFFFF !important;
    border-top: 1px solid #E2E8F0 !important;
    box-shadow: 0 -2px 14px rgba(0, 0, 0, 0.08) !important;
}
.app-nav__menu-link .app-nav__menu-text {
    color: #94A3B8 !important;
    font-weight: 600 !important;
    font-size: 0.72rem !important;
    transition: color 0.15s ease !important;
}
html[data-theme="light"] .app-nav__menu-link .app-nav__menu-text {
    color: #475569 !important;
}
.app-nav__menu-link.active .app-nav__menu-text {
    color: #0878E8 !important;
    font-weight: 700 !important;
}
.app-nav__menu-link-important {
    background: #0878E8 !important;
    color: #FFFFFF !important;
    box-shadow: 0 4px 14px rgba(8, 120, 232, 0.5) !important;
    border: 2px solid #00B8D9 !important;
}

@media (max-width: 767px) {
    .promo-marquee-img {
        aspect-ratio: 16 / 7 !important;
        max-height: 160px !important;
    }
    .promo-marquee-overlay {
        padding: 8px 12px !important;
    }
    .promo-marquee-btn {
        font-size: 0.75rem !important;
        padding: 4px 10px !important;
    }
    .top-sections__item {
        min-width: 74px !important;
        padding: 8px 4px 6px !important;
    }
    .top-sections__img-wrapper {
        width: 32px !important;
        height: 32px !important;
    }
    .top-sections__name {
        font-size: 0.68rem !important;
    }
}

/* ==========================================================================
   4RABET-STYLE CASINO & CRASH GAMES ENGINE WITH CATEGORY NAVIGATION RAIL
   ========================================================================== */

/* 5-Column Grid Breakpoint for Crash Games */
@media (min-width: 1200px) {
    .col-xl-2-4 {
        flex: 0 0 auto !important;
        width: 20% !important;
    }
}

/* Casino Lobby Page Base */
.casino-lobby-page {
    background: var(--bb-navy-950, #071426);
    min-height: 85vh;
}
html[data-theme="light"] .casino-lobby-page {
    background: #F8FAFC !important;
}

/* Casino Ticker Bar */
.casino-ticker-bar {
    background: #0B1E48;
    border-left: 4px solid #00E5FB;
    border-top: 1px solid rgba(0, 229, 251, 0.2);
    border-bottom: 1px solid rgba(0, 229, 251, 0.2);
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .casino-ticker-bar {
    background: #FFFFFF !important;
    border-left: 4px solid #0878E8 !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
.casino-live-badge {
    background: linear-gradient(135deg, #00E5FB 0%, #0E97FB 100%) !important;
    color: #071536 !important;
    font-weight: 800 !important;
    font-size: 0.72rem !important;
    box-shadow: 0 0 10px rgba(0, 229, 251, 0.4) !important;
}
.casino-ticker-text {
    color: #FFFFFF;
}
html[data-theme="light"] .casino-ticker-text {
    color: #0F172A !important;
}
.badge-outline-cyan {
    background: rgba(0, 229, 251, 0.12) !important;
    border: 1px solid rgba(0, 229, 251, 0.4) !important;
    color: #00E5FB !important;
}
html[data-theme="light"] .badge-outline-cyan {
    background: #EFF6FF !important;
    border: 1px solid #0878E8 !important;
    color: #0878E8 !important;
}
.badge-outline-gold {
    background: rgba(255, 185, 0, 0.12) !important;
    border: 1px solid rgba(255, 185, 0, 0.4) !important;
    color: #FFB900 !important;
}
html[data-theme="light"] .badge-outline-gold {
    background: #FFFBEB !important;
    border: 1px solid #D97706 !important;
    color: #D97706 !important;
}

/* Featured Double-Hero Bento Cards */
.casino-hero-card {
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06), 0 4px 20px rgba(0, 0, 0, 0.35);
    background: #0B1E48;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.casino-hero-card:hover {
    transform: translateY(-2px);
    border-color: #0878E8;
    box-shadow: 0 8px 24px rgba(8, 120, 232, 0.25);
}
html[data-theme="light"] .casino-hero-card {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05) !important;
}
.casino-hero-visual {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center right;
    opacity: 0.45;
    pointer-events: none;
    transition: transform 0.4s ease;
}
.casino-hero-card:hover .casino-hero-visual {
    transform: scale(1.03);
}
.casino-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #071536 0%, rgba(7, 21, 54, 0.90) 45%, rgba(7, 21, 54, 0.30) 100%);
    pointer-events: none;
}
html[data-theme="light"] .casino-hero-overlay {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 55%, rgba(255, 255, 255, 0.35) 100%) !important;
}
.casino-hero-title {
    color: #FFFFFF !important;
    letter-spacing: -0.02em;
}
html[data-theme="light"] .casino-hero-title {
    color: #0F172A !important;
}
.casino-hero-desc {
    color: #CBD5E1 !important;
    line-height: 1.5;
}
html[data-theme="light"] .casino-hero-desc {
    color: #475569 !important;
}

/* 4Rabet Signature Category Rail (.casino-cat-rail) */
.casino-cat-nav {
    width: 100%;
}
.casino-cat-rail {
    display: flex;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.casino-cat-rail::-webkit-scrollbar {
    height: 4px;
}
.casino-cat-rail::-webkit-scrollbar-thumb {
    background: #203B5B;
    border-radius: 4px;
}
.casino-cat-btn {
    position: relative;
    flex: 1 1 0;
    min-width: 90px;
    max-width: 130px;
    padding: 10px 6px 8px;
    border-radius: 10px;
    background: #10243D;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    outline: none;
}
.casino-cat-btn:hover {
    transform: translateY(-2px);
    border-color: #0878E8;
    background: #162D49;
    box-shadow: 0 4px 14px rgba(8, 120, 232, 0.25);
}
.casino-cat-btn.active {
    background: #162D49;
    border-color: #00B8D9;
    box-shadow: 0 0 0 1px #00B8D9, 0 4px 12px rgba(0, 184, 217, 0.2);
}
html[data-theme="light"] .casino-cat-btn {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
html[data-theme="light"] .casino-cat-btn:hover {
    background: #EFF6FF !important;
    border-color: #0878E8 !important;
    box-shadow: 0 4px 14px rgba(8, 120, 232, 0.15) !important;
}
html[data-theme="light"] .casino-cat-btn.active {
    background: #EFF6FF !important;
    border-color: #0878E8 !important;
    box-shadow: 0 0 0 1px #0878E8, 0 4px 12px rgba(8, 120, 232, 0.15) !important;
}
.casino-cat-icon-wrapper {
    width: 40px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 4px;
    flex-shrink: 0;
}
.casino-cat-icon {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    transition: transform 0.2s ease;
}
.casino-cat-btn:hover .casino-cat-icon {
    transform: scale(1.12);
}
.casino-cat-name {
    font-size: 0.72rem;
    font-weight: 700;
    color: #FFFFFF;
    text-align: center;
    line-height: 1.15;
    white-space: nowrap;
    letter-spacing: -0.01em;
}
html[data-theme="light"] .casino-cat-name {
    color: #0F172A !important;
}
.casino-cat-count {
    font-size: 0.62rem;
    font-weight: 600;
    color: #94A3B8;
    margin-top: 2px;
}
html[data-theme="light"] .casino-cat-count {
    color: #64748B !important;
}
.casino-cat-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    font-size: 0.56rem;
    font-weight: 800;
    padding: 2px 5px;
    border-radius: 4px;
    line-height: 1;
    z-index: 2;
}

/* Crash Games Grid & Cards (.crash-game-card) */
.crash-game-card {
    background: #10243D;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.crash-game-card:hover {
    transform: translateY(-3px);
    border-color: #00B8D9;
    box-shadow: 0 8px 22px rgba(0, 184, 217, 0.25);
}
html[data-theme="light"] .crash-game-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05) !important;
}
html[data-theme="light"] .crash-game-card:hover {
    border-color: #0878E8 !important;
    box-shadow: 0 8px 22px rgba(8, 120, 232, 0.18) !important;
}
.crash-card-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    background: #0B1B31;
}
.crash-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    display: block;
    transition: transform 0.35s ease;
}
.crash-game-card:hover .crash-card-img {
    transform: scale(1.06);
}
.crash-card-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    font-size: 0.6rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
    line-height: 1.1;
}
.crash-card-multiplier {
    position: absolute;
    top: 6px;
    right: 6px;
    background: rgba(7, 20, 38, 0.85);
    border: 1px solid rgba(0, 229, 251, 0.4);
    color: #00E5FB;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 4px;
    z-index: 3;
}
.crash-card-hover-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 38, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 4;
}
.crash-game-card:hover .crash-card-hover-overlay {
    opacity: 1;
    visibility: visible;
}
.crash-action-btn {
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    box-shadow: 0 2px 8px rgba(8, 120, 232, 0.4) !important;
}
.crash-demo-btn {
    font-size: 0.72rem !important;
    padding: 4px 10px !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.35) !important;
}
.crash-card-body {
    background: #0D2038;
}
html[data-theme="light"] .crash-card-body {
    background: #F8FAFC !important;
    border-top: 1px solid #E2E8F0 !important;
}
.crash-card-title {
    font-size: 0.84rem;
    color: #FFFFFF;
    letter-spacing: -0.01em;
}
html[data-theme="light"] .crash-card-title {
    color: #0F172A !important;
}
.crash-card-provider {
    color: #00B8D9;
    font-weight: 600;
}
html[data-theme="light"] .crash-card-provider {
    color: #0878E8 !important;
}

/* Live Indian Card Tables (.casino-table-card) */
.casino-section-title {
    color: #FFFFFF;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
}
html[data-theme="light"] .casino-section-title {
    color: #0F172A !important;
}
.casino-table-card {
    background: #10243D;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05), 0 2px 8px rgba(0, 0, 0, 0.25);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.casino-table-card:hover {
    transform: translateY(-2px);
    border-color: #0878E8;
    box-shadow: 0 8px 20px rgba(8, 120, 232, 0.25);
}
html[data-theme="light"] .casino-table-card {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04) !important;
}
html[data-theme="light"] .casino-table-card:hover {
    border-color: #0878E8 !important;
    box-shadow: 0 8px 20px rgba(8, 120, 232, 0.15) !important;
}
.casino-table-header {
    background: #0B1B31;
    border-bottom: 1px solid #203B5B;
}
html[data-theme="light"] .casino-table-header {
    background: #F8FAFC !important;
    border-bottom: 1px solid #E2E8F0 !important;
}
.casino-felt-area {
    background: radial-gradient(circle, #0e3d2f 0%, #07221a 100%);
    min-height: 110px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.casino-felt-badge {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(0, 229, 251, 0.14);
    border: 1px solid #00E5FB;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00E5FB;
    font-size: 1.4rem;
}
.casino-table-name {
    color: #FFFFFF;
    font-size: 1.05rem;
}
.casino-table-meta {
    color: #FFB900;
    font-size: 0.74rem;
    font-weight: 600;
}
.casino-roadmap-strip {
    background: #0B1B31;
    border-top: 1px solid #203B5B;
    border-bottom: 1px solid #203B5B;
}
html[data-theme="light"] .casino-roadmap-strip {
    background: #F1F5F9 !important;
    border-top: 1px solid #E2E8F0 !important;
    border-bottom: 1px solid #E2E8F0 !important;
}
.casino-roadmap-pill {
    font-size: 0.65rem !important;
    padding: 2px 5px !important;
    font-weight: 800 !important;
}
.roadmap-cyan {
    background: #00B8D9 !important;
    color: #071536 !important;
}
.roadmap-magenta {
    background: #F18BB5 !important;
    color: #071536 !important;
}
.roadmap-gold {
    background: #FFD700 !important;
    color: #071536 !important;
}
.casino-odds-box {
    background: #0B1B31;
    border: 1px solid #203B5B;
}
html[data-theme="light"] .casino-odds-box {
    background: #F8FAFC !important;
    border: 1px solid #E2E8F0 !important;
}
.casino-odds-value {
    color: #FFB900;
    font-size: 0.86rem;
    font-weight: 800;
}
html[data-theme="light"] .casino-odds-value {
    color: #D97706 !important;
}

/* Homepage Crash Games Showcase & VIP Banner */
.home-crash-showcase {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .home-crash-showcase {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
html[data-theme="light"] .home-crash-showcase strong {
    color: #0F172A !important;
}
.home-crash-scroll {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.home-crash-scroll::-webkit-scrollbar {
    height: 4px;
}
.home-crash-scroll::-webkit-scrollbar-thumb {
    background: #203B5B;
    border-radius: 4px;
}
.home-crash-card {
    position: relative;
    flex: 0 0 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.06);
    text-decoration: none !important;
    transition: transform 0.25s ease, border-color 0.25s ease;
}
.home-crash-card:hover {
    transform: translateY(-2px);
    border-color: #00B8D9;
}
.home-crash-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 4px;
    z-index: 2;
}
.home-crash-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 20, 38, 0.1) 0%, rgba(7, 20, 38, 0.92) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 6px 8px;
}
.home-crash-overlay strong {
    font-size: 0.8rem;
    line-height: 1.15;
}
.home-crash-overlay small {
    font-size: 0.68rem;
}
.vip-banner-card {
    border: 1px solid #203B5B;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.vip-banner-card:hover {
    transform: translateY(-2px);
    border-color: #0878E8;
    box-shadow: 0 6px 20px rgba(8, 120, 232, 0.25);
}
html[data-theme="light"] .vip-banner-card {
    border: 1px solid #CBD5E1 !important;
}



/* ==========================================================================
   CRASH GAME ARENA & LIVE CASINO TABLE BOX-TECHNOLOGY SUITE
   ========================================================================== */

/* --- Crash Arena Layout & Topbar --- */
.crash-arena-page {
    min-height: 85vh;
    background: #071426;
    color: #CBD5E1;
}
html[data-theme="light"] .crash-arena-page {
    background: #F8FAFC !important;
    color: #334155 !important;
}

.crash-arena-topbar {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .crash-arena-topbar {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.crash-topbar-thumb {
    width: 44px;
    height: 44px;
    object-fit: cover;
    border: 1px solid #203B5B;
}
html[data-theme="light"] .crash-topbar-thumb {
    border-color: #CBD5E1 !important;
}

.crash-topbar-title {
    color: #FFFFFF;
    font-size: 1.15rem;
}
html[data-theme="light"] .crash-topbar-title {
    color: #0F172A !important;
}

.crash-rate-pill {
    background: rgba(234, 179, 8, 0.15);
    color: #F59E0B;
    border: 1px solid rgba(234, 179, 8, 0.35);
    font-size: 0.72rem;
    font-weight: 700;
    padding: 5px 10px;
    border-radius: 20px;
}
html[data-theme="light"] .crash-rate-pill {
    background: #FEF3C7 !important;
    color: #B45309 !important;
    border-color: #FDE68A !important;
}

.crash-wallet-pill {
    background: #10243D;
    border: 1px solid #203B5B;
    color: #FFFFFF;
}
html[data-theme="light"] .crash-wallet-pill {
    background: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

.crash-icon-btn {
    border-color: #203B5B;
    color: #94A3B8;
}
.crash-icon-btn:hover {
    background: #162D49;
    color: #00E5FB;
}
html[data-theme="light"] .crash-icon-btn {
    border-color: #CBD5E1 !important;
    color: #475569 !important;
}
html[data-theme="light"] .crash-icon-btn:hover {
    background: #F1F5F9 !important;
    color: #0369A1 !important;
}

/* --- Multiplier History Ribbon --- */
.crash-history-ribbon-wrapper {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.04);
}
html[data-theme="light"] .crash-history-ribbon-wrapper {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03) !important;
}

.crash-history-scroll {
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.crash-history-scroll::-webkit-scrollbar {
    height: 3px;
}
.crash-history-scroll::-webkit-scrollbar-thumb {
    background: #203B5B;
    border-radius: 4px;
}

.crash-mult-pill {
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 14px;
    flex-shrink: 0;
    transition: transform 0.15s ease;
}
.crash-mult-pill:hover {
    transform: scale(1.05);
}

.mult-pill-blue {
    background: rgba(14, 151, 251, 0.18);
    color: #38BDF8;
    border: 1px solid rgba(14, 151, 251, 0.4);
}
html[data-theme="light"] .mult-pill-blue {
    background: #E0F2FE !important;
    color: #0369A1 !important;
    border-color: #BAE6FD !important;
}

.mult-pill-purple {
    background: rgba(168, 85, 247, 0.2);
    color: #C084FC;
    border: 1px solid rgba(168, 85, 247, 0.45);
}
html[data-theme="light"] .mult-pill-purple {
    background: #F3E8FF !important;
    color: #7E22CE !important;
    border-color: #E9D5FF !important;
}

.mult-pill-gold {
    background: rgba(245, 158, 11, 0.25);
    color: #FBBF24;
    border: 1px solid rgba(245, 158, 11, 0.55);
}
html[data-theme="light"] .mult-pill-gold {
    background: #FEF3C7 !important;
    color: #B45309 !important;
    border-color: #FDE68A !important;
}

/* --- Flight Canvas Card & HUD --- */
.crash-canvas-card {
    background: #071426;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .crash-canvas-card {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
}

.crash-canvas-overlay-bar {
    background: rgba(7, 20, 38, 0.85);
    backdrop-filter: blur(6px);
    border-bottom: 1px solid rgba(32, 59, 91, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 5;
}

.crash-sentry-badge {
    background: rgba(2, 132, 199, 0.2);
    color: #38BDF8;
    border: 1px solid rgba(2, 132, 199, 0.4);
    font-size: 0.68rem;
    font-weight: 700;
}

.crash-center-hud {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 4;
}

.crash-multiplier-text {
    font-family: 'Geist Mono', monospace, sans-serif;
    color: #FFFFFF;
    text-shadow: 0 0 25px rgba(255, 255, 255, 0.4);
    letter-spacing: -1px;
}

.crash-status-subtext {
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.crash-prep-overlay,
.crash-flew-away-overlay {
    position: absolute;
    inset: 0;
    background: rgba(7, 20, 38, 0.9);
    backdrop-filter: blur(8px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 6;
}

.prep-spinner {
    position: relative;
    width: 80px;
    height: 80px;
}
.prep-svg {
    transform: rotate(-90deg);
}
.prep-circle-bg {
    fill: none;
    stroke: rgba(255, 255, 255, 0.1);
    stroke-width: 6;
}
.prep-circle-bar {
    fill: none;
    stroke: #00E5FB;
    stroke-width: 6;
    stroke-linecap: round;
    stroke-dasharray: 213.6;
    stroke-dashoffset: 0;
    transition: stroke-dashoffset 0.1s linear;
}
.prep-timer-number {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #FFFFFF;
    font-size: 1.1rem;
}

.flew-away-title {
    color: #EF4444;
    text-shadow: 0 0 25px rgba(239, 68, 68, 0.5);
    letter-spacing: 0.5px;
}

/* --- Betting Terminals --- */
.crash-terminal-card {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .crash-terminal-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.crash-terminal-label {
    color: #FFFFFF;
}
html[data-theme="light"] .crash-terminal-label {
    color: #0F172A !important;
}

.terminal-chip-btn {
    background: #10243D;
    border: 1px solid #203B5B;
    color: #CBD5E1;
    font-size: 0.72rem;
    font-weight: 700;
    flex: 1 1 auto;
    padding: 4px 6px;
}
.terminal-chip-btn:hover {
    background: #162D49;
    border-color: #00E5FB;
    color: #FFFFFF;
}
html[data-theme="light"] .terminal-chip-btn {
    background: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
    color: #334155 !important;
}
html[data-theme="light"] .terminal-chip-btn:hover {
    background: #E2E8F0 !important;
    border-color: #0284C7 !important;
    color: #0F172A !important;
}

.terminal-stake-input,
.terminal-auto-mult {
    background: #10243D !important;
    border-color: #203B5B !important;
    color: #FFFFFF !important;
}
html[data-theme="light"] .terminal-stake-input,
html[data-theme="light"] .terminal-auto-mult {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

.crash-main-action-btn {
    border-radius: 8px;
    font-size: 1.05rem;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.crash-main-action-btn:hover {
    transform: translateY(-2px);
}
.crash-main-action-btn.btn-primary {
    background: linear-gradient(135deg, #00B4D8 0%, #0077B6 100%);
    border: none;
    color: #FFFFFF;
}
.crash-main-action-btn.btn-warning {
    background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
    border: none;
    color: #071536;
}
.crash-main-action-btn.btn-success {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    border: none;
    color: #FFFFFF;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
    animation: cashoutPulse 1.2s infinite ease-in-out;
}
@keyframes cashoutPulse {
    0%, 100% { box-shadow: 0 0 15px rgba(16, 185, 129, 0.35); }
    50% { box-shadow: 0 0 28px rgba(16, 185, 129, 0.7); }
}

/* --- Sidebar & Live Feed --- */
.crash-sidebar-card {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .crash-sidebar-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.crash-sidebar-tabs .nav-link {
    color: #94A3B8;
    border-radius: 6px;
    font-weight: 700;
}
.crash-sidebar-tabs .nav-link.active {
    background: #162D49;
    color: #00E5FB;
}
html[data-theme="light"] .crash-sidebar-tabs .nav-link {
    color: #64748B !important;
}
html[data-theme="light"] .crash-sidebar-tabs .nav-link.active {
    background: #E0F2FE !important;
    color: #0369A1 !important;
}

.crash-other-games-section {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .crash-other-games-section {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.crash-related-card {
    border: 1px solid #203B5B;
    transition: transform 0.2s ease, border-color 0.2s ease;
}
.crash-related-card:hover {
    transform: translateY(-2px);
    border-color: #00B8D9;
}
html[data-theme="light"] .crash-related-card {
    border-color: #CBD5E1 !important;
}

.related-card-overlay {
    background: linear-gradient(180deg, rgba(7, 20, 38, 0.1) 0%, rgba(7, 20, 38, 0.95) 100%);
}

.crash-modal-content {
    background: #0B1B31;
    border: 1px solid #203B5B;
    color: #CBD5E1;
}
html[data-theme="light"] .crash-modal-content {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    color: #334155 !important;
}

/* ==========================================================================
   LIVE CASINO CARD TABLE VIEWPORT STYLING (DARK & LIGHT THEMES)
   ========================================================================== */

.casino-table-viewport {
    background: #071426;
    color: #CBD5E1;
    min-height: 85vh;
}
html[data-theme="light"] .casino-table-viewport {
    background: #F8FAFC !important;
    color: #334155 !important;
}

.casino-table-topbar {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .casino-table-topbar {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.casino-table-title {
    color: #FFFFFF;
    font-size: 1.15rem;
}
html[data-theme="light"] .casino-table-title {
    color: #0F172A !important;
}

.casino-wallet-box {
    background: #10243D;
    border: 1px solid #203B5B;
    color: #FFFFFF;
}
html[data-theme="light"] .casino-wallet-box {
    background: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
    color: #0F172A !important;
}

/* Live Dealer Screen (Emerald Casino Felt - Crisp in Both Themes) */
.live-dealer-screen {
    background: radial-gradient(circle, #0B4A38 0%, #05261C 100%);
    border: 2px solid #00B4D8;
    box-shadow: 0 4px 20px rgba(0, 180, 216, 0.2);
    min-height: 380px;
}

.dealer-screen-header {
    background: rgba(7, 20, 38, 0.85);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.dealer-screen-footer {
    background: rgba(7, 20, 38, 0.88);
    backdrop-filter: blur(4px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.side-table-card {
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}
.side-card-cyan {
    background: rgba(16, 27, 50, 0.9) !important;
    border: 1px solid #00E5FB !important;
    box-shadow: 0 0 14px rgba(0, 229, 251, 0.25) !important;
}
.side-title-cyan {
    color: #00E5FB !important;
}

.side-card-pink {
    background: rgba(50, 16, 27, 0.9) !important;
    border: 1px solid #FF4081 !important;
    box-shadow: 0 0 14px rgba(255, 64, 129, 0.25) !important;
}
.side-title-pink {
    color: #FF6E99 !important;
}

/* Casino Bet Card & Chip Pad */
.casino-bet-card {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .casino-bet-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

.casino-card-title {
    color: #FFFFFF;
}
html[data-theme="light"] .casino-card-title {
    color: #0F172A !important;
}

.casino-chip-pad {
    background: #10243D;
    border: 1px solid #203B5B;
}
html[data-theme="light"] .casino-chip-pad {
    background: #F1F5F9 !important;
    border-color: #E2E8F0 !important;
}

.casino-chip-btn {
    border-radius: 50%;
    width: 36px;
    height: 36px;
    border: 2px dashed #0E97FB;
    background: #162D49;
    color: #FFFFFF;
    font-size: 0.72rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.2s ease;
}
.casino-chip-btn:hover,
.casino-chip-btn.active {
    border: 2px solid #00E5FB;
    background: linear-gradient(135deg, #00E5FB 0%, #0E97FB 100%);
    color: #071536;
    box-shadow: 0 0 10px rgba(0, 229, 251, 0.4);
}
html[data-theme="light"] .casino-chip-btn {
    background: #FFFFFF !important;
    border-color: #0284C7 !important;
    color: #0F172A !important;
}
html[data-theme="light"] .casino-chip-btn.active {
    background: linear-gradient(135deg, #00B4D8 0%, #0284C7 100%) !important;
    color: #FFFFFF !important;
}

.casino-stake-input {
    background: #10243D !important;
    border-color: #203B5B !important;
    color: #FFFFFF !important;
}
html[data-theme="light"] .casino-stake-input {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

.casino-market-block {
    background: #10243D;
    border: 1px solid #203B5B;
}
html[data-theme="light"] .casino-market-block {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

.market-title-text {
    color: #FFFFFF;
}
html[data-theme="light"] .market-title-text {
    color: #0F172A !important;
}

.badge-market-count {
    background: #162D49;
    color: #38BDF8;
}
html[data-theme="light"] .badge-market-count {
    background: #E0F2FE !important;
    color: #0369A1 !important;
}

.casino-bet-btn {
    background: #162D49;
    border: 1px solid #203B5B;
    color: #FFFFFF;
    transition: all 0.15s ease;
}
.casino-bet-btn:hover {
    background: #203B5B;
    border-color: #00E5FB;
    color: #00E5FB;
}
html[data-theme="light"] .casino-bet-btn {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}
html[data-theme="light"] .casino-bet-btn:hover {
    background: #F1F5F9 !important;
    border-color: #0284C7 !important;
    color: #0284C7 !important;
}

.outcome-name-text {
    color: #FFFFFF;
}
html[data-theme="light"] .outcome-name-text {
    color: #0F172A !important;
}

.badge-odds {
    background: #0B1B31;
    color: #F59E0B;
    font-size: 0.8rem;
    font-weight: 700;
}
html[data-theme="light"] .badge-odds {
    background: #FEF3C7 !important;
    color: #B45309 !important;
}

.border-bottom-subtle {
    border-bottom: 1px solid #203B5B;
}
html[data-theme="light"] .border-bottom-subtle {
    border-bottom-color: #E2E8F0 !important;
}

.border-top-subtle {
    border-top: 1px solid #203B5B;
}
html[data-theme="light"] .border-top-subtle {
    border-top-color: #E2E8F0 !important;
}

/* --- Fantasy Hero Card Theme Alignment --- */
.fantasy-hero-card {
    background: #0B1B31;
    border: 1px solid #203B5B;
    box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.05);
}
html[data-theme="light"] .fantasy-hero-card {
    background: #FFFFFF !important;
    border-color: #E2E8F0 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}
html[data-theme="light"] .fantasy-hero-card h2 {
    color: #0F172A !important;
}

/* ========================================================
   GLOBAL MOBILE CONFINEMENT & ZERO HORIZONTAL WHITE SPACE
   Consistency pass 2026-11-11: overflow-x: clip (not hidden) —
   clip still confines horizontal overflow but does NOT create a
   scroll container, so position: sticky descendants (site header,
   bet slip, rails) can stick to the viewport again. `hidden` on
   html/body/.home-page was the sticky-breaker in every theme.
   ======================================================== */
html, body {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
}

.home-page {
    overflow-x: clip !important;
    max-width: 100vw !important;
    width: 100% !important;
    position: relative !important;
}

.announcement-strip {
    max-width: 100vw !important;
    overflow: hidden !important;
}

.announcement-strip > div {
    min-width: 0 !important;
}

@media (max-width: 991px) {
    .betslip:not(.open-betslip .betslip) {
        display: none !important;
    }
    .open-betslip .betslip {
        display: block !important;
        position: fixed !important;
        right: 0 !important;
        bottom: 0 !important;
        top: auto !important;
        height: 85vh !important;
        width: 100% !important;
        max-width: 420px !important;
        z-index: 10500 !important;
        box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.5) !important;
    }
}

/* ========================================================
   LIGHT THEME CONTRAST & VISIBILITY HARMONIZATION
   ======================================================== */
html[data-theme="light"] .badge-brand {
    background: #0878E8 !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    border: none !important;
}

html[data-theme="light"] .home-feature-card {
    background: #FFFFFF !important;
    border: 1px solid #CBD5E1 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
}

html[data-theme="light"] .home-feature-card strong,
html[data-theme="light"] .home-feature-card__body strong {
    color: #0F172A !important;
}

html[data-theme="light"] .home-feature-card small,
html[data-theme="light"] .home-feature-card__body small {
    color: #475569 !important;
}

html[data-theme="light"] .sub-category-drawer__link.active {
    background: #EFF6FF !important;
    border: 1px solid #0878E8 !important;
    border-bottom: 2px solid #0878E8 !important;
    color: #0878E8 !important;
}

html[data-theme="light"] .sub-category-drawer__link.active .sub-category-drawer__text {
    color: #0878E8 !important;
}

html[data-theme="light"] .sub-category-drawer__link .sub-category-drawer__text {
    color: #1E293B !important;
}

html[data-theme="light"] .empty-slip-message {
    color: #475569 !important;
}

html[data-theme="light"] .hero-secondary-btn {
    background: #10243D !important;
    background-color: #10243D !important;
    color: #FFFFFF !important;
    border: 1px solid rgba(0, 184, 217, 0.45) !important;
}

html[data-theme="light"] .sports-tile-card__name {
    color: #FFFFFF !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}

html[data-theme="light"] .sports-tile-card__overlay {
    background: linear-gradient(180deg, rgba(7, 20, 38, 0.15) 0%, rgba(7, 20, 38, 0.88) 100%) !important;
}

/* Modal High-Contrast Light Theme Alignments */
html[data-theme="light"] #convertInrModal .modal-content,
html[data-theme="light"] #loginModal .modal-content {
    background: #FFFFFF !important;
    border-color: #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] #convertInrModal .modal-title,
html[data-theme="light"] #loginModal .modal-title {
    color: #0F172A !important;
}

html[data-theme="light"] #convertInrModal .text-white {
    color: #0F172A !important;
}

html[data-theme="light"] #convertInrModal .bg-dark-tint {
    background: #F8FAFC !important;
    border-color: #E2E8F0 !important;
}

/* Modal High-Contrast Light Theme Alignments for #addPtsModal */
html[data-theme="light"] #addPtsModal .modal-content {
    background: #FFFFFF !important;
    border: 1px solid #E2E8F0 !important;
    color: #0F172A !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15) !important;
}

html[data-theme="light"] #addPtsModal .modal-header {
    border-bottom: 1px solid #E2E8F0 !important;
}

html[data-theme="light"] #addPtsModal .modal-title {
    color: #0F172A !important;
}

html[data-theme="light"] #addPtsModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(20%) !important;
}

html[data-theme="light"] #addPtsModal .form-label {
    color: #1E293B !important;
}

html[data-theme="light"] #addPtsModal .form-control {
    background: #F8FAFC !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] #addPtsModal .form-control:focus {
    background: #FFFFFF !important;
    border-color: #0A5FBF !important;
    color: #0F172A !important;
}

html[data-theme="light"] #addPtsModal .input-group-text {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #0F172A !important;
}

html[data-theme="light"] #addPtsModal .quick-pts-preset {
    background: #F1F5F9 !important;
    border: 1px solid #CBD5E1 !important;
    color: #1E293B !important;
    font-weight: 600;
}

html[data-theme="light"] #addPtsModal .quick-pts-preset:hover {
    background: #E2E8F0 !important;
    color: #0F172A !important;
}

html[data-theme="dark"] #addPtsModal .modal-content {
    background: #111C2E !important;
    border: 1px solid #23344E !important;
    color: #FFFFFF !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5) !important;
}

html[data-theme="dark"] #addPtsModal .modal-header {
    border-bottom: 1px solid #23344E !important;
}

html[data-theme="dark"] #addPtsModal .modal-title {
    color: #FFFFFF !important;
}

html[data-theme="dark"] #addPtsModal .btn-close {
    filter: invert(1) grayscale(100%) brightness(100%) !important;
}

html[data-theme="dark"] #addPtsModal .form-label {
    color: #E2E8F0 !important;
}

html[data-theme="dark"] #addPtsModal .form-control {
    background: #0A111E !important;
    border: 1px solid #23344E !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] #addPtsModal .form-control:focus {
    background: #0D1627 !important;
    border-color: #3B82F6 !important;
    color: #FFFFFF !important;
}

html[data-theme="dark"] #addPtsModal .input-group-text {
    background: #16233A !important;
    border: 1px solid #23344E !important;
    color: #F59E0B !important;
}

html[data-theme="dark"] #addPtsModal .quick-pts-preset {
    background: #16233A !important;
    border: 1px solid #23344E !important;
    color: #CBD5E1 !important;
    font-weight: 600;
}

html[data-theme="dark"] #addPtsModal .quick-pts-preset:hover {
    background: #23344E !important;
    color: #FFFFFF !important;
}

/* Mobile top navbar button */
.mobile-top-add-btn {
    font-size: 0.72rem !important;
    font-weight: 800 !important;
    padding: 3px 8px !important;
    border-radius: 14px !important;
    background: #10B981 !important;
    color: #FFFFFF !important;
    border: none !important;
    white-space: nowrap !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35);
    text-decoration: none !important;
}
.mobile-top-add-btn:hover, .mobile-top-add-btn:focus {
    background: #059669 !important;
    color: #FFFFFF !important;
}

/* ========================================================
   REAL-TIME ODDS IN-PLAY FLICKER ANIMATIONS
   Founder fix 2026-11-17 (Bookmaker 15.04 white-on-blue): the old
   keyframes ended at `background-color: inherit; color: inherit;`,
   which resolved to WHITE text on a WHITE/inherited background — the
   odds were invisible for the whole 800ms flash. The flash now animates
   ONLY the background tint + scale; the text colour is never touched,
   so the odds stay dark (see .odd-val rule) throughout the flash.
   ======================================================== */
@keyframes oddsFlashUp {
    0% { background-color: rgba(16, 185, 129, 0.45); transform: scale(1.02); }
    100% { transform: scale(1); }
}

@keyframes oddsFlashDown {
    0% { background-color: rgba(239, 68, 68, 0.45); transform: scale(0.98); }
    100% { transform: scale(1); }
}

.odds-flash-up {
    animation: oddsFlashUp 0.8s ease-out !important;
}

.odds-flash-down {
    animation: oddsFlashDown 0.8s ease-out !important;
}

/* Quick Points Top-up Header & Betslip Buttons */
.btn-quick-topup {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%) !important;
    color: #FFFFFF !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    padding: 5px 12px !important;
    border-radius: 20px !important;
    border: 1px solid #34D399 !important;
    box-shadow: 0 2px 6px rgba(16, 185, 129, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    text-decoration: none !important;
    transition: all 0.2s ease !important;
}

.btn-quick-topup:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
}

.betslip-add-points-btn {
    background: rgba(16, 185, 129, 0.14) !important;
    border: 1px solid rgba(16, 185, 129, 0.4) !important;
    color: #10B981 !important;
    font-weight: 700 !important;
    font-size: 0.78rem !important;
    padding: 6px 12px !important;
    border-radius: 6px !important;
    width: 100% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}


.hero-carousel-nav--controls-only { justify-content: flex-end !important; }
/* Final banner sizing: full panel, no letterboxing. */
#bbHeroShowcase .hero-visual-bg { height: clamp(180px, 30vw, 360px) !important; aspect-ratio: auto !important; background-size: cover !important; background-position: center center !important; }
@media (max-width: 767px) { #bbHeroShowcase .hero-visual-bg { height: clamp(150px, 52vw, 260px) !important; } }

/* Final image element sizing: no background letterboxing or empty hero space. */
#bbHeroShowcase .hero-banner-image { display: block; width: 100%; height: auto; max-height: 360px; object-fit: cover; object-position: center; }
#bbHeroShowcase .hero-slide-link { display: none !important; width: 100%; }
#bbHeroShowcase .hero-slide-link.active { display: block !important; }
@media (max-width: 767px) { #bbHeroShowcase .hero-banner-image { max-height: 260px; } }

#bbHeroShowcase .hero-visual-bg {
  aspect-ratio: 16 / 7 !important;
  height: auto !important;
  min-height: 0 !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-color: var(--bb-workspace-surface) !important;
}
#bbHeroShowcase .hero-slide {
  aspect-ratio: 16 / 7;
  height: auto !important;
  min-height: 0 !important;
}
.home-page .sports-category__list {
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  overflow-y: auto !important;
}
.home-page .sports-category__link {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-height: 56px !important;
  max-height: 64px !important;
  padding: 8px 6px !important;
  gap: 5px !important;
  text-align: center !important;
}
.home-page .sports-category__icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  margin: 0 !important;
  line-height: 1 !important;
  font-size: 18px !important;
}
.home-page .sports-category__text {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  font-size: .68rem !important;
  line-height: 1.1 !important;
}
@media (max-width: 991px) {
  #bbHeroShowcase .hero-visual-bg,
  #bbHeroShowcase .hero-slide { aspect-ratio: 16 / 8 !important; }
}
@media (max-width: 576px) {
  #bbHeroShowcase .hero-visual-bg,
  #bbHeroShowcase .hero-slide { aspect-ratio: 4 / 3 !important; }
}

/* ==========================================================================
   User Profile Dropdown & Integrated Wallet Menu System
   ========================================================================== */
.user-profile-dropdown {
  position: relative;
}

.user-profile-btn {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 24px !important;
  padding: 5px 14px 5px 8px !important;
  color: #FFFFFF !important;
  font-size: 0.88rem !important;
  font-weight: 600 !important;
  transition: all 0.2s ease-in-out !important;
}

.user-profile-btn .user-avatar-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  font-size: 1.15rem;
  color: var(--bb-accent, #E65100);
}

.profile-wallet-dropdown-menu {
  min-width: 295px !important;
  border-radius: 12px !important;
  overflow: hidden !important;
  margin-top: 8px !important;
  z-index: 1060 !important;
}

/* Light Theme Profile Menu */
html:not([data-theme="dark"]) .user-profile-btn,
html[data-theme="light"] .user-profile-btn {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

html:not([data-theme="dark"]) .user-profile-btn:hover,
html[data-theme="light"] .user-profile-btn:hover {
  border-color: #CBD5E1 !important;
  background: #F8FAFC !important;
}

html:not([data-theme="dark"]) .profile-wallet-dropdown-menu,
html[data-theme="light"] .profile-wallet-dropdown-menu {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12) !important;
}

html:not([data-theme="dark"]) .profile-wallet-header,
html[data-theme="light"] .profile-wallet-header {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
}

html:not([data-theme="dark"]) .profile-header-username,
html[data-theme="light"] .profile-header-username {
  color: #0F172A !important;
  font-size: 0.95rem;
}

html:not([data-theme="dark"]) .profile-header-avatar,
html[data-theme="light"] .profile-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #E2E8F0;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

html:not([data-theme="dark"]) .profile-edit-btn,
html[data-theme="light"] .profile-edit-btn {
  color: #64748B !important;
  border: 1px solid #E2E8F0 !important;
  background: #FFFFFF !important;
  border-radius: 6px;
  padding: 3px 8px;
}
html:not([data-theme="dark"]) .profile-edit-btn:hover,
html[data-theme="light"] .profile-edit-btn:hover {
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

html:not([data-theme="dark"]) .profile-wallet-card,
html[data-theme="light"] .profile-wallet-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

html:not([data-theme="dark"]) .profile-wallet-label,
html[data-theme="light"] .profile-wallet-label {
  color: #64748B !important;
  font-weight: 600;
}

html:not([data-theme="dark"]) .profile-wallet-amount,
html[data-theme="light"] .profile-wallet-amount {
  color: #B45309 !important;
  font-size: 1.15rem;
}

html:not([data-theme="dark"]) .profile-wallet-subrow,
html[data-theme="light"] .profile-wallet-subrow {
  border-top-color: #F1F5F9 !important;
}

html:not([data-theme="dark"]) .profile-exp-label,
html[data-theme="light"] .profile-exp-label {
  color: #64748B !important;
}

html:not([data-theme="dark"]) .profile-exp-val,
html[data-theme="light"] .profile-exp-val {
  color: #0284C7 !important;
}

html:not([data-theme="dark"]) .profile-passbook-btn,
html[data-theme="light"] .profile-passbook-btn {
  background: #FFFFFF !important;
  color: #334155 !important;
  border: 1px solid #CBD5E1 !important;
}

html:not([data-theme="dark"]) .profile-passbook-btn:hover,
html[data-theme="light"] .profile-passbook-btn:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

html:not([data-theme="dark"]) .profile-dropdown-item,
html[data-theme="light"] .profile-dropdown-item {
  color: #334155 !important;
  padding: 9px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  transition: all 0.15s ease-in-out !important;
}

html:not([data-theme="dark"]) .profile-dropdown-item:hover,
html[data-theme="light"] .profile-dropdown-item:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
}

/* Dark Theme Profile Menu */
html[data-theme="dark"] .user-profile-btn {
  background: #171B20 !important;
  border-color: #2D3748 !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .user-profile-btn:hover {
  border-color: #4A5568 !important;
  background: #1F2733 !important;
}

html[data-theme="dark"] .profile-wallet-dropdown-menu {
  background: #1B222C !important;
  border: 1px solid #2D3748 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45) !important;
}

html[data-theme="dark"] .profile-wallet-header {
  background: #121820 !important;
  border-bottom: 1px solid #263242 !important;
}

html[data-theme="dark"] .profile-header-username {
  color: #FFFFFF !important;
  font-size: 0.95rem;
}

html[data-theme="dark"] .profile-header-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #243040;
  color: #94A3B8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

html[data-theme="dark"] .profile-edit-btn {
  color: #94A3B8 !important;
  border: 1px solid #2D3748 !important;
  background: #1B222C !important;
  border-radius: 6px;
  padding: 3px 8px;
}
html[data-theme="dark"] .profile-edit-btn:hover {
  color: #FFFFFF !important;
  border-color: #4A5568 !important;
}

html[data-theme="dark"] .profile-wallet-card {
  background: #171E27 !important;
  border: 1px solid #283546 !important;
}

html[data-theme="dark"] .profile-wallet-label {
  color: #94A3B8 !important;
  font-weight: 600;
}

html[data-theme="dark"] .profile-wallet-amount {
  color: #FFDD55 !important;
  font-size: 1.15rem;
}

html[data-theme="dark"] .profile-wallet-subrow {
  border-top-color: #263242 !important;
}

html[data-theme="dark"] .profile-exp-label {
  color: #94A3B8 !important;
}

html[data-theme="dark"] .profile-exp-val {
  color: #38BDF8 !important;
}

html[data-theme="dark"] .profile-passbook-btn {
  background: #243040 !important;
  color: #CBD5E1 !important;
  border: 1px solid #3B495D !important;
}

html[data-theme="dark"] .profile-passbook-btn:hover {
  background: #2E3E52 !important;
  color: #FFFFFF !important;
}

html[data-theme="dark"] .profile-dropdown-item {
  color: #CBD5E1 !important;
  padding: 9px 16px !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  transition: all 0.15s ease-in-out !important;
}

html[data-theme="dark"] .profile-dropdown-item:hover {
  background: #243040 !important;
  color: #FFFFFF !important;
}

/* Mode Badges and Action Switchers */
.bb-profile-mode-badge {
  font-size: 0.65rem !important;
  font-weight: 700 !important;
  padding: 3px 7px !important;
  letter-spacing: 0.3px;
  border-radius: 4px;
}
.bb-profile-mode-badge.is-demo {
  background: #0284C7 !important;
  color: #FFFFFF !important;
}
.bb-profile-mode-badge.is-main {
  background: #16A34A !important;
  color: #FFFFFF !important;
}

.bb-profile-switch-btn {
  font-size: 0.8rem !important;
  padding: 6px 12px !important;
  border-radius: 6px !important;
  transition: all 0.15s ease-in-out;
}
.bb-profile-switch-btn.switch-to-main {
  background: #16A34A !important;
  color: #FFFFFF !important;
  border: none !important;
}
.bb-profile-switch-btn.switch-to-demo {
  background: #07566D !important;
  color: #FFFFFF !important;
  border: none !important;
}
.bb-profile-switch-btn:hover {
  filter: brightness(1.1);
}

.profile-action-btn {
  font-size: 0.78rem !important;
  border-radius: 6px !important;
  font-weight: 600 !important;
}


/* ==========================================================================
   Kixo9 Cricket Match View Parity Styles (6-Depth Ladder & Inline Slip)
   ========================================================================== */
.kixo-match-view {
  --kixo-back-best: #82CFFF;
  --kixo-back-mid: #9BD8FF;
  --kixo-back-light: #B2DFFC;
  --kixo-lay-best: #FFB5BD;
  --kixo-lay-mid: #FFCCD2;
  --kixo-lay-light: #FFE2E6;
}

.kixo-match-header-bar {
  background: #152536;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
html:not([data-theme="dark"]) .kixo-match-header-bar {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
html:not([data-theme="dark"]) .kixo-match-header-bar h5 {
  color: #0F172A !important;
}

.kixo-live-score-toggle {
  background: #1e3347;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.2s;
}
html:not([data-theme="dark"]) .kixo-live-score-toggle {
  background: #F8FAFC;
  border-color: #E2E8F0;
}
html:not([data-theme="dark"]) .kixo-live-score-toggle span {
  color: #0F172A !important;
}

.kixo-market-card {
  background: #152536;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  overflow: hidden;
}
html:not([data-theme="dark"]) .kixo-market-card {
  background: #FFFFFF;
  border-color: #E2E8F0;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.kixo-market-card-header {
  background: #1e3347;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
html:not([data-theme="dark"]) .kixo-market-card-header {
  background: #F1F5F9;
  border-bottom-color: #E2E8F0;
}
html:not([data-theme="dark"]) .kixo-market-card-header h6 {
  color: #0F172A !important;
}

.kixo-star-btn {
  background: transparent;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 1.1rem;
}

.kixo-badge-cashout {
  background: rgba(14, 151, 251, 0.2);
  color: #38bdf8;
  border: 1px solid rgba(14, 151, 251, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
}

.kixo-badge-zero {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 0.7rem;
  font-weight: 700;
}

.kixo-market-header-cols {
  gap: 2px;
}

.kixo-col-group-header {
  width: 140px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 0;
  border-radius: 4px;
}
.kixo-col-back {
  color: #0284c7;
  background: #B2DFFC;
}
.kixo-col-lay {
  color: #b91c1c;
  background: #FFCCD2;
}
@media (max-width: 767.98px) {
  .kixo-col-group-header { width: 110px; font-size: 0.7rem; }
  .kixo-market-card-header { flex-wrap: wrap; gap: 8px; }
}

/* 6-Column Ladder Table */
.kixo-table {
  table-layout: fixed !important;
  width: 100%;
}
.kixo-table col.col-runner { width: auto; }
.kixo-table col.col-prices { width: 50px; }
@media (max-width: 575.98px) {
  .kixo-table { min-width: 480px; }
  .kixo-table col.col-prices { width: 44px; }
}

.kixo-runner-row td {
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
html:not([data-theme="dark"]) .kixo-runner-row td {
  border-bottom: 1px solid #F1F5F9;
}

.kixo-runner-name-cell {
  background: rgba(255, 255, 255, 0.02);
}
html:not([data-theme="dark"]) .kixo-runner-name-cell .runner-name {
  color: #0F172A !important;
}

/* 6-Depth Cell Buttons */
.kixo-cell-b3 { background: #B2DFFC !important; }
.kixo-cell-b2 { background: #9BD8FF !important; }
.kixo-cell-b1 { background: #82CFFF !important; }
.kixo-cell-l1 { background: #FFB5BD !important; }
.kixo-cell-l2 { background: #FFCCD2 !important; }
.kixo-cell-l3 { background: #FFE2E6 !important; }

.kixo-runner-row .oddBtn {
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  border-radius: 4px !important;
  padding: 3px 2px !important;
  min-height: 38px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  line-height: 1.15 !important;
  transition: transform 0.1s, box-shadow 0.1s !important;
}
.kixo-runner-row .oddBtn:hover:not(:disabled) {
  transform: scale(1.02);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}
.kixo-runner-row .oddBtn .odd-val {
  font-size: 0.85rem !important;
  font-weight: 800 !important;
  color: #0f172a !important;
}
.kixo-runner-row .oddBtn .odd-vol {
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  color: #475569 !important;
}

.kixo-runner-row td.cell-empty {
  background: rgba(255, 255, 255, 0.015);
}
.depth-none {
  color: #64748b;
  font-size: 0.85rem;
}

/* Kixo9 Inline Quick Bet Slip Card */
.kixo-inline-bet-card {
  border-radius: 8px;
  animation: kixoSlideDown 0.2s ease-out;
}
@keyframes kixoSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.kixo-inline-back {
  background: #0f2744 !important;
  border: 2px solid #82CFFF !important;
}
html:not([data-theme="dark"]) .kixo-inline-back {
  background: #EBF5FF !important;
  border-color: #82CFFF !important;
}
html:not([data-theme="dark"]) .kixo-inline-back .text-white {
  color: #0F172A !important;
}

.kixo-inline-lay {
  background: #361525 !important;
  border: 2px solid #FFB5BD !important;
}
html:not([data-theme="dark"]) .kixo-inline-lay {
  background: #FDF2F4 !important;
  border-color: #FFB5BD !important;
}
html:not([data-theme="dark"]) .kixo-inline-lay .text-white {
  color: #0F172A !important;
}

.kixo-chip {
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
  transition: all 0.15s;
}
html:not([data-theme="dark"]) .kixo-chip {
  background: #F1F5F9;
  color: #0F172A;
  border-color: #CBD5E1;
}
.kixo-chip:hover, .kixo-chip.active {
  background: #0E97FB !important;
  color: #fff !important;
  border-color: #0E97FB !important;
}
.kixo-chip-clear {
  background: transparent;
  border: 1px dashed rgba(239, 68, 68, 0.5);
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 0.75rem;
  font-weight: 700;
}

/* P0 fix 2026-11-10 (white space): cut the dead space above the login form
   card — the generic .section padding left a large blank band between the
   header and the card. Breathing room kept (16px), not zero. */
.login-page.section {
  padding-top: 16px;
  padding-bottom: 24px;
}
