/* ===== THEME DEFINITIONS =====
   In dark mode or other color themes, ONLY the red parts from the image change.
   All cards, boards, betslip, backgrounds and text stay in their clean light style.
*/
/* ===== THEME DEFINITIONS =====
   Night Mode: Replaces all white/light backgrounds across the entire system with sleek dark mode,
               and optimizes text styling for maximum visibility and clarity.
   5 Color Themes: Replaces the red color across the entire system with the selected accent color.
*/
:root,
[data-theme="light"],
[data-theme="red"],
[data-color="red"] {
  --brand-red: #c62828;
  --brand-red-dark: #8e1515;
  --brand-red-light: #e53935;
  --brand-red-hover: #b71c1c;
  --brand-top-bar: #8e1515;
  --primary: #c62828;
  --accent: #c62828;
  --accent-dim: #8e1515;
  --brand-text-on-accent: #ffffff;
  --nav-yellow: #ffc107;
  --place-green: #2e7d32;
  --place-green-hover: #388e3c;
  --bg: #eceff1;
  --bg2: #ffffff;
  --panel: #ffffff;
  --panel2: #f5f5f5;
  --line: rgba(0, 0, 0, 0.1);
  --text: #1a1a1a;
  --muted: #666666;
  --gold: #ffc107;
  --green: var(--place-green);
  --danger: #d32f2f;
  --sidebar-w: 220px;
  --betslip-w: 300px;
  --topbar-h: 0px;
  --font: "Manrope", system-ui, sans-serif;
  --display: "Bebas Neue", "Manrope", sans-serif;
  --blue: #1976d2;
  --surface: #f5f5f5;
  --input-bg: #f3f3f3;
  --text-color: #1a1a1a;
  --text-muted: #666;
  --border-color: rgba(0,0,0,0.1);
  --card-bg: #ffffff;
  --odd-bg: #f0f0f0;
  --odd-bg-hover: #e0e0e0;
  --subnav-bg: #f0f0f0;
  --subnav-text: #444;
  --subnav-active-bg: #fff;
  --header-input-bg: #f3f3f3;
  --header-input-text: #222;
  --header-input-border: #ddd;
  --my-bets-bg: #e8e8e8;
  --ticket-bg: #fff;
  --ticket-border: #ddd;
  --search-input-bg: #f5f5f5;
  --search-input-text: #333;
  --drawer-bg: #9b0d16;
  --drawer-card-bg: #b0101a;
  --drawer-card-hover: #870912;
  --drawer-knob-bg: #9b0d16;
  --drawer-text: #ffffff;
  --odd-up-color: #2e7d32;
  --odd-down-color: #d32f2f;
}

/* 1. Dark Theme (Obsidian / Dark Charcoal replacing Red) */
[data-theme="dark"],
[data-color="dark"] {
  --brand-red: #1c212c;
  --brand-red-dark: #10131b;
  --brand-red-light: #2a3243;
  --brand-red-hover: #242b39;
  --brand-top-bar: #10131b;
  --primary: #1c212c;
  --accent: #1c212c;
  --accent-dim: #10131b;
  --brand-text-on-accent: #ffffff;
  --drawer-bg: #11151c;
  --drawer-card-bg: #1e2432;
  --drawer-card-hover: #293144;
  --drawer-knob-bg: #1e2432;
}

/* 2. Royal Blue Theme (Replacing Red) */
[data-theme="blue"],
[data-color="blue"] {
  --brand-red: #0f62c4;
  --brand-red-dark: #083c79;
  --brand-red-light: #1976d2;
  --brand-red-hover: #0b50a2;
  --brand-top-bar: #083c79;
  --primary: #0f62c4;
  --accent: #0f62c4;
  --accent-dim: #083c79;
  --brand-text-on-accent: #ffffff;
  --drawer-bg: #083c79;
  --drawer-card-bg: #0f56a8;
  --drawer-card-hover: #0b4385;
  --drawer-knob-bg: #083c79;
}

/* 3. Emerald Green Theme (Replacing Red) */
[data-theme="green"],
[data-color="green"] {
  --brand-red: #1a7c31;
  --brand-red-dark: #0f4f1f;
  --brand-red-light: #28a745;
  --brand-red-hover: #146427;
  --brand-top-bar: #0f4f1f;
  --primary: #1a7c31;
  --accent: #1a7c31;
  --accent-dim: #0f4f1f;
  --brand-text-on-accent: #ffffff;
  --drawer-bg: #0f4f1f;
  --drawer-card-bg: #167a30;
  --drawer-card-hover: #115c25;
  --drawer-knob-bg: #0f4f1f;
}

/* 4. Midnight Purple Theme (Replacing Red) */
[data-theme="purple"],
[data-color="purple"] {
  --brand-red: #6a1b9a;
  --brand-red-dark: #441066;
  --brand-red-light: #8e24aa;
  --brand-red-hover: #56147d;
  --brand-top-bar: #441066;
  --primary: #6a1b9a;
  --accent: #6a1b9a;
  --accent-dim: #441066;
  --brand-text-on-accent: #ffffff;
  --drawer-bg: #441066;
  --drawer-card-bg: #5c168c;
  --drawer-card-hover: #4b1273;
  --drawer-knob-bg: #441066;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}
html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
}

button,
input {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  border: 0;
  background: none;
}

/* KonjoBet-style header */
.site-header {
  flex-shrink: 0;
  background: var(--brand-red);
  color: #fff;
}

.utility-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  background: var(--brand-red-dark);
  font-size: 12px;
  flex-wrap: wrap;
  min-height: 44px;
}

.utility-guest {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  width: 100%;
}

.utility-guest[hidden],
.utility-authed[hidden] {
  display: none !important;
}

.utility-authed {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  width: 100%;
}

.header-login-fields {
  display: flex;
  align-items: stretch;
  background: #f3f3f3;
  border: 1px solid #ddd;
  overflow: hidden;
  min-width: min(420px, 70vw);
  height: 34px;
}

.header-login-phone,
.header-login-pass {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  flex: 1;
  min-width: 0;
  background: #f3f3f3;
}

.header-login-phone {
  border-right: 1px solid #ccc;
  flex: 1.15;
}

.header-login-ico {
  font-size: 12px;
  opacity: 0.7;
  flex-shrink: 0;
}

.header-login-cc {
  color: #444;
  font-weight: 700;
  font-size: 12px;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-login-phone input,
.header-login-pass input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  min-width: 0;
  font-size: 12px;
  color: #222;
  padding: 0;
}

.header-help-btn {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: transparent;
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  border-radius: 3px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.header-auth-btn {
  height: 34px;
  padding: 0 18px;
  border: 0;
  border-radius: 3px;
  background: var(--nav-yellow, #ffd54f);
  color: #222;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.utility-balances {
  display: flex;
  align-items: center;
  gap: 14px;
}

.balance-toggle {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  padding: 4px;
  cursor: pointer;
}

.balance-line {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.balance-line span {
  opacity: 0.85;
  font-size: 11px;
}

.balance-line strong {
  font-size: 14px;
  font-weight: 800;
}

.balance-line em {
  font-style: normal;
  font-size: 11px;
  opacity: 0.8;
}

.balance-line--bonus strong {
  color: var(--nav-yellow);
}

.btn-deposit-header {
  background: #fff;
  color: var(--brand-red);
  border: 0;
  border-radius: 4px;
  padding: 6px 16px;
  font-weight: 800;
  font-size: 12px;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.utility-icons {
  display: flex;
  gap: 4px;
}

.utility-icon {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 14px;
}

.utility-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.utility-link {
  background: transparent;
  border: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  opacity: 0.9;
  cursor: pointer;
}

.utility-link--icon {
  font-size: 16px;
}

.btn-join--header {
  padding: 5px 12px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  background: var(--brand-red);
  border-bottom: 2px solid rgba(0, 0, 0, 0.12);
  overflow-x: auto;
}

.main-nav-logo img {
  height: 44px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.main-nav-tabs {
  display: flex;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.main-nav-tab {
  padding: 12px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.9);
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}

.main-nav-tab.is-on {
  background: var(--nav-yellow);
  color: #1a1a1a;
  border-bottom-color: var(--nav-yellow);
}

.sub-nav {
  display: flex;
  gap: 0;
  background: #f0f0f0;
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.sub-nav-item {
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #444;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}

.sub-nav-item.is-on {
  color: var(--brand-red);
  border-bottom-color: var(--brand-red);
  background: #fff;
}

/* My Bets page */
/* ===================================================
   MY BETS VIEW — Professional Multi-Ticket & Cashout
   =================================================== */

.my-bets-page {
  min-height: 540px;
  background: #ebebeb;
  border: 1px solid var(--line);
}

.my-bets-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: #9b1c1c;
  padding: 0 10px 0 0;
  min-height: 42px;
  overflow-x: auto;
}

.my-bets-tabs {
  display: flex;
  align-items: stretch;
  height: 42px;
}

.my-bets-tab {
  padding: 0 16px;
  height: 42px;
  border: 0;
  background: #9b1c1c;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.15s;
  font-family: inherit;
  white-space: nowrap;
}

.my-bets-tab:hover {
  background: var(--brand-red-hover, #b71c1c);
  color: #fff;
}

.my-bets-tab.is-on {
  background: var(--brand-red, #c62828);
  color: #fff;
  font-weight: 800;
}

.my-bets-tabs--time {
  margin-left: auto;
}

.my-bets-tabs--time .my-bets-tab {
  background: var(--brand-red-dark, #9b1c1c);
}

.my-bets-tabs--time .my-bets-tab.is-on {
  background: var(--brand-red, #c62828);
}

.my-bets-search {
  display: flex;
  align-items: stretch;
  flex: 1;
  max-width: 320px;
  height: 32px;
  margin: 0 8px;
}

.my-bets-search input {
  flex: 1;
  border: 0;
  border-radius: 2px 0 0 2px;
  padding: 0 10px;
  font-size: 12px;
  background: #f0f0f0;
  color: #222;
  outline: none;
  font-family: inherit;
  min-width: 120px;
}

.my-bets-search input::placeholder {
  color: #888;
}

.my-bets-search-btn {
  width: 34px;
  border: 0;
  border-radius: 0 2px 2px 0;
  background: var(--brand-red, #c62828);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s;
}

.my-bets-search-btn:hover {
  background: var(--brand-red-hover, #b71c1c);
}

.my-bets-close {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  color: #222;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: 0.15s;
}

.my-bets-close:hover {
  background: #f0f0f0;
  color: #c62828;
}

/* My Bets Grid Layout */
.my-bets-body {
  padding: 14px;
}

.my-bets-empty {
  text-align: center;
  color: #666;
  font-size: 14px;
  font-weight: 600;
  padding: 48px 16px;
}

.my-bets-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 14px;
}

/* Ticket Card */
.my-bets-card {
  background: #fff;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  display: flex;
  flex-direction: column;
}

.my-bets-card-header {
  background: var(--brand-red, #c62828);
  color: #fff;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
}

.mb-header-title {
  color: #fff;
  font-weight: 800;
}

.mb-header-date {
  color: #ffeb3b;
  margin-left: 8px;
  font-weight: 700;
}

.mb-header-print {
  background: transparent;
  border: 0;
  color: #fff;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.9;
  transition: 0.15s;
}

.mb-header-print:hover {
  opacity: 1;
  transform: scale(1.1);
}

/* Events list inside ticket */
.mb-events-list {
  padding: 12px 14px 6px;
  flex: 1;
}

.mb-event-row {
  border-bottom: 1px dashed #dcdcdc;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.mb-event-row:last-child {
  border-bottom: 0;
  margin-bottom: 0;
}

.mb-event-title {
  font-size: 13px;
  font-weight: 800;
  color: #111;
  margin-bottom: 2px;
  line-height: 1.3;
}

.mb-event-scores {
  color: #d32f2f;
  font-weight: 800;
  font-size: 12px;
  margin-left: 8px;
  display: inline-block;
  letter-spacing: 0.03em;
}

.mb-event-league {
  font-size: 11px;
  color: #666;
  margin-bottom: 2px;
}

.mb-event-time {
  font-size: 11px;
  color: #444;
  margin-bottom: 4px;
}

.mb-event-time-live {
  color: #c62828;
  font-weight: 700;
}

.rec-match-scores--live {
  color: #c62828;
  font-weight: 700;
}

.mb-pick-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 3px;
}

.mb-pick-left {
  font-size: 12px;
  color: #333;
  display: flex;
  align-items: center;
  gap: 6px;
}

.mb-pick-badge {
  display: inline-block;
  background: #c8c8c8;
  color: #111;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 10px;
  border-radius: 12px;
}

.mb-odd-val {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 800;
  color: #d32f2f;
}

/* Result Icons (Won / Lost) beside odd */
.mb-pick-result {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  flex-shrink: 0;
  vertical-align: middle;
}

.mb-pick-result--win {
  background: #1bbf4c;
  color: #fff;
}

.mb-pick-result--loss {
  background: #d32f2f;
  color: #fff;
}

/* Show All Events Accordion */
.mb-show-events {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 0 4px;
  color: #222;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  border-top: 1px dashed #dcdcdc;
  margin-top: 8px;
  user-select: none;
}

.mb-show-events:hover {
  color: #c62828;
}

/* Cashout Status Indicator (hidden per user instruction: "The cashout style from the first image is not needed") */
.mb-cashout-status {
  display: none !important;
}

/* Financial Summary Footer */
.mb-card-footer {
  background: #f8f8f8;
  border-top: 1px solid #dcdcdc;
  padding: 10px 14px 12px;
}

.mb-amounts-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.mb-btn-repeat {
  display: block;
  width: auto;
  max-width: 220px;
  margin: 6px auto 0;
  padding: 8px 20px;
  background: #e0e0e0;
  color: #222;
  border: 0;
  border-radius: 2px;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
}

.mb-btn-repeat:hover {
  background: #d4d4d4;
}

.mb-btn-settle {
  width: 100%;
  padding: 8px 12px;
  background: #2e7d32;
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  cursor: pointer;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.15s ease;
}

.mb-btn-settle:hover {
  background: #1b5e20;
}

/* Ticket Outcome Banners at the end of the ticket */
.mb-ticket-outcome {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.03em;
  margin: 8px 0 10px;
  text-align: center;
  text-transform: uppercase;
}

.mb-ticket-outcome.is-lost {
  background: #ffebee;
  color: #c62828;
  border: 1.5px solid #ef9a9a;
}

.mb-ticket-outcome.is-won {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1.5px solid #a5d6a7;
}

.mb-outcome-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.mb-ticket-outcome.is-lost .mb-outcome-badge {
  background: #d32f2f;
}

.mb-ticket-outcome.is-won .mb-outcome-badge {
  background: #2e7d32;
}

/* Header outcome tag */
.mb-header-status {
  display: inline-block;
  margin-left: 8px;
  font-size: 10px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

.mb-header-status.is-lost {
  background: #ffebee;
  color: #c62828;
}

.mb-header-status.is-won {
  background: #e8f5e9;
  color: #2e7d32;
}

.mb-ticket-outcome.is-bonus {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #f59e0b;
}

.mb-ticket-outcome.is-bonus .mb-outcome-badge {
  background: #d97706;
}

.mb-header-status.is-bonus {
  background: #fef3c7;
  color: #92400e;
}

.receipt-status-pill.is-bonus,
.receipt-status-badge.is-bonus {
  background: #fef3c7 !important;
  color: #92400e !important;
  border: 1px solid #f59e0b !important;
}

.receipt-box.receipt-outcome-box.is-bonus {
  background: #fef3c7;
  color: #92400e;
  border: 1.5px solid #f59e0b;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 10px;
  margin: 6px 0;
  border-radius: 4px;
}

.rec-fin-total.is-bonus {
  color: #d97706 !important;
}

.mb-card-footer:has(.mb-btn-cashout) .mb-btn-repeat {
  margin-bottom: 8px;
}

.mb-cashout-available-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: #333333;
  text-align: center;
}

.mb-event-badge-live {
  display: inline-block;
  background: #e53935;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-right: 5px;
}

.mb-event-live-detail {
  font-size: 11px;
  font-weight: 700;
  color: #d32f2f;
}

.mb-odd-initial {
  color: #222222;
  font-weight: 800;
  margin-right: 4px;
}

.mb-odd-live-val {
  color: #d32f2f;
  font-weight: 800;
}

.mb-btn-cashout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px 14px;
  background: var(--brand-red, #c62828);
  color: #fff;
  border: 0;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  transition: 0.15s;
  font-family: inherit;
  letter-spacing: 0.02em;
}

.mb-btn-cashout:hover:not(:disabled) {
  background: var(--brand-red-hover, #b71c1c);
}

.mb-btn-cashout.is-disabled,
.mb-btn-cashout:disabled:not(.is-cashed-out) {
  background: #cccccc !important;
  color: #ffffff !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}

.mb-btn-cashout.is-cashed-out {
  background: #2e7d32 !important;
  color: #ffffff !important;
  cursor: default !important;
}

.mb-cashout-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #2b2b2b;
  margin-top: 7px;
  text-align: center;
  line-height: 1.3;
}

.mb-cashout-warning-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #333;
}

/* Dark Mode */
[data-theme="dark"] .my-bets-page {
  background: #151522;
}

[data-theme="dark"] .my-bets-card {
  background: #1e1e32;
  border-color: #2d2d48;
}

[data-theme="dark"] .mb-event-title {
  color: #eee;
}

[data-theme="dark"] .mb-event-scores {
  color: #ff5252;
}

[data-theme="dark"] .mb-event-league {
  color: #aaa;
}

[data-theme="dark"] .mb-event-time {
  color: #ccc;
}

[data-theme="dark"] .mb-event-time-live,
[data-theme="dark"] .rec-match-scores--live {
  color: #ff5252;
}

[data-theme="dark"] .mb-pick-left {
  color: #ddd;
}

[data-theme="dark"] .mb-pick-badge {
  background: #353555;
  color: #eee;
}

[data-theme="dark"] .mb-odd-val {
  color: #ff5252;
}

[data-theme="dark"] .mb-card-footer {
  background: #19192b;
  border-color: #2d2d48;
}

[data-theme="dark"] .mb-amounts-row {
  color: #ddd;
}

[data-theme="dark"] .mb-btn-repeat {
  background: #2b2b45;
  color: #eee;
}

[data-theme="dark"] .mb-btn-repeat:hover {
  background: #353555;
}

[data-theme="dark"] .my-bets-search input {
  background: #252540;
  color: #eee;
}

/* App shell */
.web-app {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
}

/* Legacy topbar hidden */
.topbar {
  display: none;
}

.topbar-back {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.topbar-logo {
  height: 40px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.topbar-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.balance-pill {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(74, 158, 255, 0.1);
  border: 1px solid rgba(74, 158, 255, 0.25);
  font-size: 12px;
}

.balance-pill strong {
  font-weight: 800;
  color: var(--accent);
}

.balance-pill span {
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
}

.btn-deposit {
  border: 1px solid rgba(76, 175, 80, 0.45);
  background: rgba(76, 175, 80, 0.15);
  color: #8fe29a;
  border-radius: 10px;
  padding: 8px 12px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.btn-deposit:hover {
  background: rgba(76, 175, 80, 0.28);
}

.btn-deposit[hidden] {
  display: none !important;
}

.auth-form select {
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.deposit-history {
  margin-top: 14px;
  display: grid;
  gap: 8px;
  max-height: 140px;
  overflow: auto;
}

.deposit-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 12px;
  display: grid;
  gap: 2px;
}

.deposit-row strong {
  font-size: 13px;
}

.deposit-row.is-pending {
  border-color: rgba(255, 213, 79, 0.35);
}

.deposit-row.is-approved {
  border-color: rgba(76, 175, 80, 0.35);
}

.deposit-row.is-rejected {
  border-color: rgba(244, 67, 54, 0.35);
}

.btn-join {
  padding: 8px 18px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  transition: 0.15s;
}

.btn-join:hover {
  background: var(--accent-dim);
}

/* 3-column body */
.web-body {
  flex: 1;
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr var(--betslip-w);
  min-height: calc(100dvh - 120px);
  background: var(--bg);
  transition: grid-template-columns 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sidebar */
.sidebar {
  border-right: 1px solid var(--line);
  background: #fff;
  overflow-y: auto;
  padding: 0;
  transition: width 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-search {
  padding: 0 10px 12px;
}

.sidebar-search-label {
  display: block;
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
  margin-bottom: 6px;
}

.sidebar-search-wrap {
  position: relative;
}

.sidebar-search-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 8px 30px 8px 10px;
  font-size: 12px;
  background: #fafafa;
}

.sidebar-search-wrap span {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.btn-inplay {
  width: 100%;
  margin-top: 8px;
  padding: 10px;
  background: var(--nav-yellow);
  color: #1a1a1a;
  font-weight: 800;
  font-size: 12px;
  border-radius: 4px;
  border: 0;
}

.sidebar-block--compact {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.sidebar-block {
  padding: 0 12px 16px;
}

.sidebar-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.sidebar-title em {
  font-style: normal;
  color: var(--accent);
  font-size: 11px;
}

.sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 8px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: 0.12s;
}

.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.sidebar-item.is-on {
  background: rgba(198, 40, 40, 0.1);
  color: var(--brand-red);
}

.sidebar-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.sidebar-item img.flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.sidebar-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-item em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

.sidebar-item .sport-icon {
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  font-size: 14px;
}

.filter-chips--sidebar {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 0 4px;
}

.filter-chips--sidebar .chip {
  padding: 5px 8px;
  font-size: 10px;
  border-radius: 3px;
  background: #eee;
  color: #444;
  font-weight: 700;
  border: 1px solid #ddd;
}

.filter-chips--sidebar .chip.is-on {
  background: var(--brand-red);
  color: #fff;
  border-color: var(--brand-red);
}

.sidebar-item.is-expanded .chev {
  color: var(--accent);
}

.sidebar-item--child {
  padding-left: 28px;
  font-size: 11px;
  background: rgba(0, 0, 0, 0.18);
}

.sidebar-item--child img {
  width: 16px;
  height: 16px;
}

/* League filter dropdowns */
.league-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 6px;
  position: relative;
  z-index: 20;
}

.league-dropdown-wrap {
  position: relative;
}

.chip-dropdown {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-dropdown.is-open .chip-caret {
  transform: rotate(180deg);
}

.chip-caret {
  font-size: 10px;
  opacity: 0.8;
  transition: transform 0.15s;
}

.league-dropdown-backdrop {
  position: fixed;
  inset: 0;
  z-index: 15;
  background: rgba(0, 0, 0, 0.35);
}

.league-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 260px;
  max-width: 320px;
  max-height: 360px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: var(--panel2);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  z-index: 30;
}

.league-dropdown-search {
  margin: 10px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-size: 12px;
  outline: none;
}

.league-dropdown-search:focus {
  border-color: rgba(74, 158, 255, 0.4);
}

.league-dropdown-list {
  overflow-y: auto;
  padding: 4px 0 8px;
}

.league-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 14px;
  text-align: left;
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  transition: 0.12s;
}

.league-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.league-dropdown-item.is-on {
  background: rgba(74, 158, 255, 0.12);
  color: var(--accent);
}

.league-dropdown-item img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.league-dropdown-item img.flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
}

.league-dropdown-item span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.league-dropdown-item em {
  font-style: normal;
  font-size: 11px;
  color: var(--muted);
  font-weight: 700;
}

/* Main content */
.content {
  overflow-y: auto;
  padding: 16px 20px;
  background: var(--bg);
}

.content-view {
  display: none;
}

.content-view.is-active {
  display: block;
}

.section-head h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--muted);
}

/* Popular matches */
.popular-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  -webkit-overflow-scrolling: touch;
}

.popular-row::-webkit-scrollbar {
  height: 4px;
}

.popular-row::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
}

.pop-card {
  flex: 0 0 220px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.pop-card-league {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 6px;
}

.pop-card-league img {
  width: 14px;
  height: 14px;
}

.pop-card-time {
  font-size: 10px;
  color: var(--accent);
  margin-bottom: 8px;
  font-weight: 700;
}

.pop-card-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.pop-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

.pop-card-team img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.pop-card-vs {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.pop-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

/* Filters */
.filter-bar {
  margin-bottom: 14px;
}

.filter-chips {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 6px;
  flex-wrap: wrap;
}

.filter-chips--time {
  margin-top: 4px;
}

.chip {
  flex-shrink: 0;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 700;
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--muted);
  transition: 0.12s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip img {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.chip.is-on {
  background: rgba(74, 158, 255, 0.15);
  border-color: rgba(74, 158, 255, 0.4);
  color: var(--accent);
}

/* Board */
.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  padding: 0 4px;
}

.board-head h3 {
  margin: 0;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.04em;
}

.board-market-tabs {
  display: flex;
  align-items: center;
  gap: 3px;
  background: var(--surface, #1e222d);
  padding: 2px 3px;
  border-radius: 6px;
  border: 1px solid var(--line, rgba(255, 255, 255, 0.08));
}

.board-m-tab {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #888);
  background: transparent;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  font-family: inherit;
}

.board-m-tab:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.board-m-tab.is-active {
  color: #fff;
  background: var(--primary, #c62828);
}

.board-markets {
  display: grid;
  grid-template-columns: 1fr 1fr 80px;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  text-align: center;
  letter-spacing: 0.06em;
  min-width: 320px;
}

.board-wrap {
  position: relative;
}

.board-loading,
.board-empty {
  text-align: center;
  padding: 40px;
  color: var(--muted);
  font-size: 13px;
}

.match-board {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.league-block {
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: var(--panel);
}

.league-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.league-block-head img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}

.match-row:last-child {
  border-bottom: 0;
}

.match-row-info {
  min-width: 0;
  cursor: pointer;
}

.match-row-info:hover .match-row-teams {
  opacity: 0.9;
}

.match-row-teams {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.match-row-id {
  font-size: 11px;
  font-weight: 700;
  color: #666;
  font-variant-numeric: tabular-nums;
  margin-right: 2px;
  flex-shrink: 0;
}

.match-row-kickoff {
  font-size: 12px;
  font-weight: 800;
  color: #111;
  font-variant-numeric: tabular-nums;
  margin-right: 6px;
  flex-shrink: 0;
}

.match-row-team {
  display: inline;
  font-size: 12px;
  font-weight: 700;
  color: #222;
  line-height: 1.3;
}

.match-row-vs {
  flex-shrink: 0;
  font-size: 12px;
  font-weight: 700;
  color: #222;
}

.match-row-team img {
  display: none;
}

.match-row-more-col {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.match-row-more-btn {
  width: 28px;
  height: 28px;
  background: #f0f0f0;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  color: #333;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  padding: 0;
  font-family: inherit;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}

.match-row-more-btn:hover {
  background: var(--accent, #c62828);
  color: #fff;
  border-color: var(--accent, #c62828);
}

.match-row-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr) repeat(3, 1fr) repeat(2, 1fr);
  gap: 4px;
  flex-shrink: 0;
}

.match-row-odds--2 {
  grid-template-columns: repeat(2, minmax(70px, 1fr)) !important;
  width: 240px;
}

.match-row-odds--3 {
  grid-template-columns: repeat(3, minmax(60px, 1fr)) !important;
  width: 320px;
}

.match-row-odds--6 {
  grid-template-columns: repeat(6, minmax(44px, 1fr)) !important;
  width: 420px;
}

.odd-btn {
  position: relative;
  min-width: 44px;
  padding: 6px 4px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  text-align: center;
  transition: 0.1s;
}

.odd-btn:hover {
  border-color: rgba(74, 158, 255, 0.35);
  background: rgba(74, 158, 255, 0.08);
}

.odd-btn.is-selected {
  background: #c62828 !important;
  border-color: #b71c1c !important;
  color: #ffffff !important;
}

.odd-btn-label {
  display: block;
  font-size: 9px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}

.odd-btn-value {
  display: block;
  font-size: 12px;
  font-weight: 800;
  color: var(--text);
}

.odd-btn.is-selected .odd-btn-value {
  color: #ffffff !important;
}

/* Match detail — KonjoBet light layout */
.match-detail-view {
  background: #e8e8e8;
  border: 1px solid #d5d5d5;
}

.md-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #ddd;
  font-size: 12px;
  font-weight: 700;
  color: #333;
}

.md-breadcrumb-back {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--brand-red);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  flex-shrink: 0;
}

.md-breadcrumb-dots {
  color: #888;
  font-size: 14px;
  line-height: 1;
}

.md-breadcrumb-path {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.md-hero {
  margin: 0;
  padding: 18px 20px 22px;
  background: #d8d8d8;
  border-bottom: 1px solid #ccc;
}

.md-date {
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #222;
  margin-bottom: 14px;
}

.md-teams {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.md-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.md-team img {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.md-team span {
  font-size: 13px;
  font-weight: 800;
  color: #111;
}

.md-vs {
  font-size: 13px;
  font-weight: 900;
  color: var(--brand-red);
}

.md-tabs-wrap {
  background: #ececec;
  border-bottom: 1px solid #d0d0d0;
  padding: 6px;
}

.md-tabs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px;
}

.md-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 34px;
  padding: 6px 4px;
  border-radius: 2px;
  font-size: 10px;
  font-weight: 700;
  background: #f7f7f7;
  border: 1px solid #d0d0d0;
  color: #333;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: center;
}

.md-tab-icon {
  color: var(--brand-red);
  font-size: 11px;
}

.md-tab.is-on {
  background: var(--brand-red);
  border-color: var(--brand-red);
  color: #fff;
}

.md-tab.is-on .md-tab-icon {
  color: #fff;
}

.md-tab-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 800;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.12);
  color: #555;
  vertical-align: middle;
}

.md-tab.is-on .md-tab-badge {
  background: #fff;
  color: var(--brand-red, #c62828);
}

.md-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: #fff;
  border-bottom: 1px solid #ddd;
}

.md-toolbar-btn {
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  color: var(--brand-red);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

.md-search {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  margin-left: auto;
  max-width: 280px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  border: 0;
}

.md-search-icon {
  color: var(--brand-red);
  font-size: 15px;
  font-weight: 700;
  flex-shrink: 0;
}

.md-search input {
  flex: 1;
  background: none;
  border: 0;
  outline: none;
  font-size: 12px;
  color: #333;
}

.md-search input::placeholder {
  color: #999;
}

.md-loading,
.md-empty {
  text-align: center;
  padding: 32px;
  color: #666;
  background: #e8e8e8;
}

.md-markets {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0;
  background: #e8e8e8;
}

.md-market {
  background: #fff;
  border: 0;
  border-bottom: 1px solid #ddd;
  border-radius: 0;
  overflow: hidden;
}

.md-market-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
  background: #e8e8e8;
  border: 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
  color: #333;
}

.md-market.is-open .md-market-head {
  border-bottom-color: #ddd;
}

.md-market-chevron {
  font-size: 9px;
  color: #888;
  transition: transform 0.15s;
  flex-shrink: 0;
  width: 12px;
  line-height: 1;
}

.md-market:not(.is-open) .md-market-chevron {
  transform: rotate(180deg);
}

.md-market-star {
  font-size: 15px;
  color: #bbb;
  cursor: pointer;
  flex-shrink: 0;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.15s, transform 0.12s;
  user-select: none;
}

.md-market-star:hover {
  color: #e69500;
  transform: scale(1.18);
}

.md-market-star.is-fav {
  color: #f5a623;
}

#md-fav-markets.is-active {
  color: #f5a623;
}

.md-market-title {
  flex: 1;
  min-width: 0;
  color: #333;
}

.md-market-body {
  display: none;
  padding: 0;
  background: #f3f3f3;
}

.md-market.is-open .md-market-body {
  display: block;
}

.md-odds-grid {
  display: grid;
  gap: 0;
}

.md-odds-grid--1 {
  grid-template-columns: 1fr;
}

.md-odds-grid--2 {
  grid-template-columns: repeat(2, 1fr);
}

.md-odds-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.md-odds-grid--4 {
  grid-template-columns: repeat(4, 1fr);
}

.md-odd {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 11px 14px;
  border-radius: 0;
  background: #f3f3f3;
  border: 0;
  border-right: 1px solid #fff;
  border-bottom: 1px solid #fff;
  text-align: left;
  transition: 0.1s;
  min-height: 44px;
  box-sizing: border-box;
  cursor: pointer;
}

.md-odds-grid--1 .md-odd {
  border-right: 0;
}

.md-odds-grid--2 .md-odd:nth-child(2n) {
  border-right: 0;
}

.md-odds-grid--3 .md-odd:nth-child(3n) {
  border-right: 0;
}

.md-odds-grid--4 .md-odd:nth-child(4n) {
  border-right: 0;
}

.md-odds-grid--2 .md-odd:nth-last-child(-n + 2),
.md-odds-grid--3 .md-odd:nth-last-child(-n + 3),
.md-odds-grid--4 .md-odd:nth-last-child(-n + 4),
.md-odds-grid--1 .md-odd:last-child {
  border-bottom: 0;
}

.md-odd:nth-child(odd) {
  background: #f5f5f5;
}

.md-odd:nth-child(even) {
  background: #ececec;
}

.md-odd:hover {
  background: #e3e3e3;
}

.md-odd.is-selected {
  background: #c62828 !important;
  border-color: #b71c1c !important;
  color: #ffffff !important;
}

.md-odd-label {
  font-size: 12px;
  color: #333;
  font-weight: 600;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.md-odd-value {
  font-size: 13px;
  font-weight: 800;
  color: #111;
  flex-shrink: 0;
  text-align: right;
  min-width: 40px;
  margin-left: auto;
}

.md-odd.is-selected .md-odd-label,
.md-odd.is-selected .md-odd-value,
.md-odd.is-selected span,
.md-odd.is-selected {
  background: #c62828 !important;
  border-color: #b71c1c !important;
  color: #ffffff !important;
}

.md-odd.is-locked {
  background: rgba(0, 0, 0, 0.05) !important;
  opacity: 0.45 !important;
  cursor: not-allowed !important;
  pointer-events: none;
}

[data-theme="dark"] .md-odd.is-locked {
  background: rgba(255, 255, 255, 0.03) !important;
  opacity: 0.35 !important;
}

.md-odd-locked-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 700;
  color: #888;
}

.md-odd-locked-tag svg {
  opacity: 0.75;
}

.market-locked-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-left: 8px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-radius: 4px;
  background: rgba(0, 0, 0, 0.08);
  color: #777;
}

[data-theme="dark"] .market-locked-pill {
  background: rgba(255, 255, 255, 0.08);
  color: #aaa;
}

.odd-btn.is-locked {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
  pointer-events: none;
  background: rgba(0, 0, 0, 0.04) !important;
}

@media (min-width: 1100px) {
  .md-tabs {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

/* Betslip panel — KonjoBet style */
.betslip-panel {
  border-left: 1px solid var(--line);
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.betslip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #c62828;
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
}

.betslip-header em {
  font-style: normal;
  background: #fff;
  color: #c62828;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  padding: 0 6px;
}

.betslip-tabs {
  display: none;
}

.betslip-panel-slip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.betslip-panel-bets {
  flex: 1;
  overflow-y: auto;
  padding: 10px;
  background: #fff;
}

.betslip-mode {
  display: flex;
  gap: 0;
  padding: 8px 10px;
  background: #eee;
}

.betslip-mode-btn {
  flex: 1;
  padding: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #666;
  background: #ddd;
  border-radius: 2px;
}

.betslip-mode-btn.is-on {
  background: #616161;
  color: #fff;
}

.betslip-empty {
  padding: 24px 16px;
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}

.betslip-empty strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}

.betslip-empty p {
  margin: 0;
}

.betslip-empty p {
  margin: 0;
  font-size: 12px;
}

.betslip-list {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ====== Slip item — white card style ====== */
.slip-item {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin: 8px 8px 0;
  padding: 10px 10px 8px;
  position: relative;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.slip-item:hover {
  border-color: #c62828;
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.12);
}

.slip-item.is-expired {
  background: rgba(80, 20, 20, 0.06);
  border-color: rgba(200, 50, 50, 0.25);
}

.slip-item-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 4px;
}

.slip-remove {
  width: 20px;
  height: 20px;
  border-radius: 3px;
  background: transparent;
  color: #555;
  font-size: 15px;
  line-height: 1;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
  border: 0;
  margin-left: 6px;
}

.slip-remove:hover {
  background: rgba(200, 50, 50, 0.1);
  color: #c62828;
}

.slip-item-main {
  min-width: 0;
  flex: 1;
}

.slip-match {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 2px;
}

.slip-team-logo {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex-shrink: 0;
}

.slip-match-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  color: #1a1a1a;
  cursor: pointer;
  transition: color 0.15s;
}

.slip-match-name:hover {
  color: #c62828;
  text-decoration: underline;
}

.slip-item.is-expired .slip-match-name,
.slip-item.is-expired .slip-pick {
  text-decoration: line-through;
  color: #999;
  opacity: 0.75;
}

.slip-meta {
  font-size: 10px;
  color: #777;
  line-height: 1.4;
  margin-bottom: 2px;
}

.slip-pick {
  font-size: 11px;
  color: #555;
  font-weight: 600;
  line-height: 1.3;
}

.slip-item-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 8px;
}

.slip-expired-label {
  font-size: 10px;
  font-weight: 700;
  color: #999;
  letter-spacing: 0.02em;
}

.slip-odd-badge {
  font-size: 14px;
  font-weight: 800;
  color: #1a1a1a;
  text-align: right;
}

.slip-item.is-expired .slip-odd-badge {
  opacity: 0.6;
}

/* Betslip item states: Suspended, Finished, Odds Increased, Odds Dropped */
.slip-item.is-suspended,
.slip-item.is-finished {
  background: #f0f0f0 !important;
  border: 1px solid #ef5350 !important;
}

[data-theme="dark"] .slip-item.is-suspended,
[data-theme="dark"] .slip-item.is-finished {
  background: rgba(239, 83, 80, 0.1) !important;
  border: 1px solid #ef5350 !important;
}

.slip-warning-msg {
  color: #e53935;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.35;
  margin: 3px 0 5px;
}

[data-theme="dark"] .slip-warning-msg {
  color: #ff6b6b;
}

.slip-odds-change-msg {
  font-size: 11px;
  font-weight: 700;
  margin: 3px 0 5px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.slip-odds-change-msg.is-up {
  color: #2e7d32;
}

.slip-odds-change-msg.is-down {
  color: #d32f2f;
}

[data-theme="dark"] .slip-odds-change-msg.is-up {
  color: #4ade80;
}

[data-theme="dark"] .slip-odds-change-msg.is-down {
  color: #f87171;
}

.slip-item.is-odd-up {
  border-color: rgba(46, 125, 50, 0.5);
  background: rgba(46, 125, 50, 0.04);
}

.slip-item.is-odd-down {
  border-color: rgba(211, 47, 47, 0.5);
  background: rgba(211, 47, 47, 0.04);
}

[data-theme="dark"] .slip-item.is-odd-up {
  border-color: rgba(74, 222, 128, 0.5);
  background: rgba(74, 222, 128, 0.08);
}

[data-theme="dark"] .slip-item.is-odd-down {
  border-color: rgba(248, 113, 113, 0.5);
  background: rgba(248, 113, 113, 0.08);
}

.slip-odd-badge.is-suspended,
.slip-odd-badge.is-finished {
  color: #e53935 !important;
  font-weight: 800;
}

.slip-odd-badge.is-up {
  color: #2e7d32 !important;
}

.slip-odd-badge.is-down {
  color: #d32f2f !important;
}

[data-theme="dark"] .slip-odd-badge.is-up {
  color: #4ade80 !important;
}

[data-theme="dark"] .slip-odd-badge.is-down,
[data-theme="dark"] .slip-odd-badge.is-suspended,
[data-theme="dark"] .slip-odd-badge.is-finished {
  color: #f87171 !important;
}

.slip-arrow-up {
  color: #2e7d32;
  font-size: 10px;
}

.slip-arrow-down {
  color: #d32f2f;
  font-size: 10px;
}

.slip-accept-odds-btn {
  display: block;
  width: calc(100% - 16px);
  margin: 6px 8px 2px;
  padding: 8px 10px;
  border-radius: 4px;
  background: #ffc107;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  border: 0;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
  transition: 0.15s;
  font-family: inherit;
}

.slip-accept-odds-btn:hover {
  background: #ffb300;
}


/* ====== Mode bar (yellow SINGLE / MULTIPLE button) ====== */
.betslip-mode-bar {
  margin: 8px 8px 4px;
}

.btn-betslip-mode {
  width: 100%;
  padding: 11px;
  background: #ffcc00;
  color: #111111;
  font-weight: 800;
  font-size: 13px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ====== Dedicated Odds Row ====== */
.betslip-odds-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 4px 10px;
  border-bottom: 1px solid #e2e2e2;
  margin-bottom: 10px;
}

.betslip-odds-label {
  font-size: 14px;
  font-weight: 700;
  color: #333;
}

.betslip-odds-val {
  font-size: 16px;
  font-weight: 900;
  color: #111;
}

/* ====== Bonus Banner ====== */
.betslip-bonus-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 10px 0;
  padding: 8px 10px;
  background: #fffdf0;
  border: 1.5px dashed #f5a623;
  border-radius: 4px;
  font-size: 12px;
  color: #444;
  text-align: center;
}

.betslip-bonus-banner[hidden] {
  display: none !important;
}

.bonus-banner-text {
  color: #555;
  font-weight: 600;
}

.bonus-banner-pct {
  color: #d32f2f;
  font-weight: 800;
}

/* ====== Betslip foot ====== */
.betslip-foot {
  padding: 10px 8px 8px;
  flex-shrink: 0;
}

/* ====== Stake row ====== */
.stake-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.stake-label {
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.stake-row label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

/* Stepper pill: − [value] + */
.stake-stepper-pill {
  display: flex;
  align-items: stretch;
  border: 1px solid #bbb;
  border-radius: 3px;
  overflow: hidden;
  background: #fff;
}

.stake-step-circle {
  width: 32px;
  height: 32px;
  background: #e8e8e8;
  color: #333;
  font-size: 18px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  line-height: 1;
}

.stake-step-circle:hover {
  background: #d5d5d5;
}

.stake-stepper-pill input {
  width: 48px;
  border: 0;
  border-left: 1px solid #bbb;
  border-right: 1px solid #bbb;
  text-align: center;
  font-weight: 800;
  font-size: 14px;
  color: #1a1a1a;
  padding: 6px 4px;
  background: #fff;
  outline: none;
}

/* ====== Quick stakes ====== */
.quick-stakes-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 10px;
}

.quick-stakes {
  display: flex;
  gap: 4px;
  flex: 1;
}

.quick-stakes button {
  flex: 1;
  padding: 7px 2px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 700;
  background: #fff;
  border: 1px solid #ccc;
  color: #333;
  cursor: pointer;
}

.quick-stakes button.is-on {
  background: #5a738e;
  border-color: #48617b;
  color: #ffffff;
}

.quick-stake-edit {
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid #ccc;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  color: #555;
}

.quick-stake-edit:hover {
  background: #f0f0f0;
}

/* ====== Potential Winning box ====== */
.potential-winning-box {
  background: #e0e0e0;
  border-radius: 3px;
  padding: 10px 14px;
  text-align: center;
  margin-bottom: 10px;
}

.pw-title {
  font-size: 12px;
  font-weight: 700;
  color: #444;
  margin-bottom: 4px;
}

.pw-amount-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 5px;
}

.pw-val {
  font-size: 20px;
  font-weight: 800;
  font-style: italic;
  color: #c62828;
}

.pw-cur {
  font-size: 16px;
  font-weight: 800;
  font-style: italic;
  color: #c62828;
}

/* ====== Meta row (Odds Type / Settings) ====== */
.betslip-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 2px;
  margin-bottom: 6px;
}

.meta-odds-type {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #333;
}

.meta-check {
  color: #4caf50;
  font-size: 13px;
  font-weight: 800;
}

.meta-settings {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: #555;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}

.meta-settings:hover {
  color: #1a1a1a;
}

/* ====== Auth notice ====== */
.betslip-auth-notice {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 3px;
  padding: 8px 10px;
  margin-bottom: 8px;
  font-size: 11px;
  color: #333;
  line-height: 1.4;
}

.auth-notice-ico {
  font-size: 14px;
  flex-shrink: 0;
  color: #c62828;
}

.betslip-auth-notice[hidden],
#slip-auth-notice[hidden],
#sub-nav-my-bets[hidden],
[data-subnav="my-bets"][hidden] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

/* ====== Actions block ====== */
.betslip-actions-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Share button — dark grey */
.btn-share-dark {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px;
  background: #424242;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.btn-share-dark:hover {
  background: #2e2e2e;
}

/* Dual action row: CANCEL | PLACE BET */
.betslip-dual-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.btn-cancel-red {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: var(--brand-red, #c62828);
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.btn-cancel-red:hover {
  background: var(--brand-red-hover, #b71c1c);
}

.btn-place-green {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 8px;
  background: #2e7d32;
  color: #fff;
  font-weight: 800;
  font-size: 12px;
  border-radius: 3px;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.04em;
}

.btn-place-green:hover:not(:disabled) {
  background: #388e3c;
}

.btn-place-green:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-act-ico {
  font-size: 14px;
}



.check-bet-page {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 720px;
  margin: 0 auto;
  padding: 4px 0 24px;
}

.check-bet-card {
  background: #fff;
  border: 1px solid #ddd;
  overflow: hidden;
}

.check-bet-card-head {
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 12px 14px;
}

.check-bet-card-copy {
  margin: 14px 16px 10px;
  text-align: center;
  font-size: 13px;
  color: #555;
  font-weight: 600;
}

.check-bet-link {
  border: 0;
  background: transparent;
  color: var(--brand-red);
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}

.check-bet-card-row {
  display: flex;
  gap: 0;
  padding: 0 16px 16px;
  align-items: stretch;
}

.check-bet-card-row input {
  flex: 1;
  border: 1px solid #ccc;
  border-right: 0;
  padding: 12px 14px;
  font-size: 13px;
  background: #f7f7f7;
  color: #333;
  min-width: 0;
}

.check-bet-card-row .btn-load-tool {
  border: 0;
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  padding: 0 22px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-load-tool {
  padding: 8px 16px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  border-radius: 4px;
  border: 0;
  white-space: nowrap;
}

/* Check Bet Result Panel */
.check-bet-result-panel {
  max-width: 780px;
  margin: 20px auto;
  background: var(--bg-card, #fff);
  border: 1px solid var(--line, #e0e0e0);
  border-radius: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
  overflow: hidden;
}

.cb-ticket-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-card-head, #fafafa);
  border-bottom: 1px solid var(--line, #e0e0e0);
}

.cb-ticket-id-group {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cb-ticket-id {
  font-size: 15px;
  font-weight: 900;
  color: var(--text, #222);
}

.cb-ticket-date {
  font-size: 11px;
  color: var(--muted, #777);
}

.cb-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cb-status-badge.is-won {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1.5px solid #a5d6a7;
}

.cb-status-badge.is-lost {
  background: #ffebee;
  color: #c62828;
  border: 1.5px solid #ef9a9a;
}

.cb-status-badge.is-open {
  background: #fff8e1;
  color: #f57f17;
  border: 1.5px solid #ffe082;
}

.cb-events-list {
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cb-event-card {
  border: 1px solid var(--line, #eee);
  border-radius: 4px;
  padding: 10px 14px;
  background: var(--bg-card-sub, #fcfcfc);
}

.cb-event-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.cb-event-match-name {
  font-size: 13.5px;
  font-weight: 800;
  color: var(--text, #222);
}

.cb-event-scores {
  font-size: 11px;
  font-weight: 800;
  color: #1565c0;
  background: #e3f2fd;
  padding: 2px 7px;
  border-radius: 3px;
}

.cb-event-meta {
  font-size: 10.5px;
  color: var(--muted, #777);
  margin-bottom: 8px;
}

.cb-event-pick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px dashed var(--line, #e8e8e8);
  padding-top: 6px;
}

.cb-pick-badge {
  font-size: 11.5px;
  font-weight: 800;
  background: #eee;
  padding: 2px 6px;
  border-radius: 3px;
}

.cb-pick-odd-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cb-pick-odd {
  font-size: 13px;
  font-weight: 800;
}

.cb-ticket-summary {
  padding: 12px 18px;
  background: var(--bg-card-head, #f8f9fa);
  border-top: 1px solid var(--line, #e0e0e0);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.cb-summary-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cb-summary-label {
  font-size: 10.5px;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--muted, #777);
}

.cb-summary-val {
  font-size: 14px;
  font-weight: 900;
  color: var(--text, #222);
}

.cb-summary-val.is-win {
  color: #2e7d32;
}

.cb-summary-val.is-lost {
  color: #c62828;
}

.cb-ticket-actions {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  border-top: 1px solid var(--line, #e0e0e0);
  background: var(--bg-card, #fff);
}

.last-winnings-head,
.last-winnings-row {
  display: grid;
  grid-template-columns: 1fr 0.6fr 0.8fr;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  color: var(--muted);
  padding: 4px 0;
}

.last-winnings-row {
  font-weight: 600;
  color: var(--text);
  border-top: 1px solid var(--line);
}

.last-winnings-empty {
  margin: 8px 0 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

/* Ad carousel */
.ad-carousel {
  position: relative;
  margin-bottom: 14px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--brand-red-dark);
  min-height: 180px;
}

.ad-carousel-track {
  display: flex;
  transition: transform 0.4s ease;
}

.ad-carousel-slide {
  min-width: 100%;
  flex-shrink: 0;
}

.ad-carousel-slide img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.ad-carousel-slide--placeholder {
  min-height: 180px;
  display: grid;
  place-items: center;
  padding: 24px;
  text-align: center;
  background: linear-gradient(135deg, var(--brand-red-dark), var(--brand-red));
  color: #fff;
}

.ad-carousel-slide--placeholder strong {
  font-family: var(--display);
  font-size: 28px;
  letter-spacing: 0.06em;
}

.ad-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 22px;
  z-index: 2;
  border: 0;
}

.ad-carousel-btn--prev { left: 8px; }
.ad-carousel-btn--next { right: 8px; }

.ad-carousel-dots {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}

.ad-carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 0;
  padding: 0;
}

.ad-carousel-dot.is-on {
  background: #fff;
}

/* Top leagues grid */
.top-leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.top-league-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.12s;
}

.top-league-card:hover {
  border-color: var(--brand-red);
}

.top-league-card img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 6px;
}

.top-league-card span {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.2;
}

.content {
  background: var(--bg);
  padding: 12px;
  overflow-y: auto;
}

.section-head h2 {
  font-family: var(--display);
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--text);
  margin: 0 0 10px;
}

.section-head--row {
  margin-top: 8px;
}

.fab-chat {
  position: fixed;
  bottom: 20px;
  left: calc(var(--sidebar-w) + 12px);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand-red);
  color: #fff;
  font-size: 22px;
  border: 0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  z-index: 50;
  cursor: pointer;
}

.btn-clear {
  display: none;
}

.bet-history {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.history-item {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
}

.history-item .top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.history-item .id {
  font-size: 10px;
  color: var(--muted);
  font-weight: 700;
}

.history-item .status {
  font-size: 10px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
}

.history-item .status.open {
  background: rgba(74, 158, 255, 0.15);
  color: var(--accent);
}

.history-item .status.won {
  background: rgba(0, 230, 118, 0.15);
  color: var(--green);
}

.history-item .status.lost {
  background: rgba(255, 82, 82, 0.15);
  color: var(--danger);
}

.history-item .sel {
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.history-item .meta {
  font-size: 10px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
}

.history-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
  font-size: 13px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 100;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--panel2);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.toast.is-ok {
  border-color: rgba(0, 230, 118, 0.4);
  color: var(--green);
}

.toast.is-err {
  border-color: rgba(255, 82, 82, 0.4);
  color: var(--danger);
}

.boot-error {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 200;
  padding: 12px 14px;
  border-radius: 8px;
  background: #1a1a1a;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.user-pill {
  font-size: 11px;
  color: var(--muted);
  max-width: 120px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(2px);
  padding: 16px;
}

.auth-modal[hidden] {
  display: none !important;
}

/* ====================================================
   ACCOUNT MODAL - full screen overlay with sidebar
   ==================================================== */
.acct-modal-backdrop {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.6);
}
.acct-modal-backdrop[hidden] { display: none !important; }

.acct-modal {
  position: fixed; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2001;
  width: min(920px, 97vw); height: min(620px, 94vh);
  display: flex; border-radius: 6px; overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.acct-modal[hidden] { display: none !important; }

.acct-sidebar {
  width: 230px; flex-shrink: 0; background: #c62828;
  display: flex; flex-direction: column; overflow-y: auto;
}
.acct-sidebar-logo {
  padding: 14px 12px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.18); flex-shrink: 0;
}
.acct-sidebar-logo img { height: 30px; display: block; object-fit: contain; }
.acct-nav { display: flex; flex-direction: column; padding-top: 4px; }
.acct-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 14px; color: rgba(255,255,255,0.82);
  background: transparent; border: 0; border-left: 3px solid transparent;
  text-align: left; cursor: pointer; font-size: 13px; font-weight: 600;
  font-family: inherit; transition: background 0.12s;
}
.acct-nav-item:hover { background: rgba(255,255,255,0.12); color: #fff; }
.acct-nav-item.is-active { background: rgba(255,255,255,0.2); border-left-color: #fff; color: #fff; }
.acct-nav-icon { width: 18px; height: 18px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; opacity: 0.9; }
.acct-nav-label { flex: 1; }
.acct-nav-arrow { font-size: 17px; opacity: 0.6; }

.acct-content { flex: 1; display: flex; flex-direction: column; background: #f0f0f0; overflow: hidden; min-width: 0; }
.acct-content-header { display: flex; align-items: stretch; background: #c62828; flex-shrink: 0; min-height: 48px; }
.acct-header-inner { flex: 1; display: flex; align-items: stretch; }
.acct-header-title { flex: 1; padding: 14px 16px; font-size: 14px; font-weight: 800; color: #fff; display: flex; align-items: center; }
.acct-header-tab {
  padding: 14px 14px; font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,0.72); background: transparent; border: 0;
  border-bottom: 3px solid transparent; cursor: pointer; font-family: inherit;
}
.acct-header-tab:hover { color: #fff; }
.acct-header-tab.is-active { color: #fff; border-bottom-color: #fff; background: rgba(255,255,255,0.1); }
.acct-close { width: 48px; flex-shrink: 0; background: transparent; border: 0; color: rgba(255,255,255,0.82); font-size: 22px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-family: inherit; }
.acct-close:hover { background: rgba(255,255,255,0.12); color: #fff; }

.acct-section { flex: 1; overflow-y: auto; padding: 16px; display: none; }
.acct-section.is-active { display: block; }

/* Profile Grid & Fields */
.acct-subtab-btn--icon {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.profile-subpanel {
  width: 100%;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 24px;
}

.profile-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.profile-field-label {
  font-size: 12px;
  font-weight: 700;
  color: #222222;
}

.profile-field-input {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #222222;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.15s;
}

.profile-field-input:focus {
  border-color: #c62828;
}

.profile-select-wrap {
  position: relative;
  display: flex;
  width: 100%;
}

.profile-field-select {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  padding: 8px 30px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #222222;
  outline: none;
  width: 100%;
  box-sizing: border-box;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  cursor: default;
}

.profile-security-note {
  color: #d32f2f;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  margin: 28px 0 10px;
}

.profile-password-card {
  background: #ffffff;
  border-radius: 6px;
  padding: 24px;
  max-width: 440px;
  margin: 20px auto;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.profile-password-title {
  font-size: 16px;
  font-weight: 800;
  color: #222222;
  margin: 0 0 16px;
}

.profile-password-form {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.btn-profile-submit {
  background: #c62828;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 11px 18px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
  margin-top: 4px;
  transition: background 0.15s;
}

.btn-profile-submit:hover {
  background: #b71c1c;
}

.acct-placeholder { background: #fff; border-radius: 6px; padding: 48px 24px; text-align: center; color: #aaa; font-size: 14px; border: 1px solid #e8e8e8; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.acct-placeholder p { margin: 0; }

.payments-body { padding: 0; }
.payments-body[hidden] { display: none !important; }

.deposit-method-card { background: #fff; border: 1px solid #e0e0e0; border-radius: 4px; padding: 20px 16px; margin-bottom: 14px; }
.deposit-method-logo-wrap { display: flex; align-items: center; justify-content: center; min-height: 56px; margin-bottom: 14px; }
.deposit-method-logo { max-height: 54px; max-width: 200px; object-fit: contain; }
.deposit-method-name-fallback { font-size: 22px; font-weight: 800; color: #c62828; }
.deposit-method-info { margin-bottom: 16px; }
.deposit-method-info-row { margin-bottom: 10px; }
.deposit-method-info-label { font-size: 12px; color: #888; font-weight: 600; display: block; margin-bottom: 2px; }
.deposit-method-info-value { font-size: 14px; color: #333; display: block; }
.deposit-method-btn { display: block; width: 100%; padding: 11px; border: 1.5px solid #4caf50; border-radius: 3px; background: #fff; color: #2e7d32; font-size: 14px; font-weight: 700; text-align: center; cursor: pointer; font-family: inherit; }
.deposit-method-btn:hover { background: #2e7d32; color: #fff; }
.deposit-loading { text-align: center; padding: 40px; color: #aaa; font-size: 13px; }

.deposit-form-panel { padding: 4px 0; }
.deposit-form-back { background: transparent; border: 0; color: #c62828; font-size: 13px; font-weight: 700; cursor: pointer; padding: 0; margin-bottom: 12px; display: inline-block; font-family: inherit; }
.deposit-form-back:hover { text-decoration: underline; }
.deposit-form-method-name { font-size: 16px; font-weight: 800; color: #222; margin-bottom: 14px; }
.deposit-form-inner { display: flex; flex-direction: column; gap: 12px; background: #fff; padding: 16px; border-radius: 4px; border: 1px solid #e0e0e0; margin-bottom: 10px; }
.deposit-form-label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 600; color: #555; }
.deposit-form-label input { border: 1px solid #ccc; border-radius: 3px; padding: 10px 12px; font-size: 14px; color: #222; background: #fff; outline: none; font-family: inherit; }
.deposit-form-label input:focus { border-color: #c62828; }
.deposit-form-instructions { font-size: 12px; color: #777; margin: 0; line-height: 1.5; }
.deposit-form-submit { padding: 13px; background: #c62828; color: #fff; border: 0; border-radius: 3px; font-size: 14px; font-weight: 800; cursor: pointer; margin-top: 4px; font-family: inherit; }
.deposit-form-submit:hover { background: #b71c1c; }
.deposit-form-note { font-size: 11px; color: #888; text-align: center; margin: 8px 0 0; }

.deposit-row { padding: 10px 0; border-bottom: 1px solid #eee; font-size: 12px; display: flex; flex-direction: column; gap: 2px; }
.deposit-row.is-pending strong { color: #f57c00; }
.deposit-row.is-approved strong { color: #2e7d32; }
.deposit-row.is-rejected strong { color: #c62828; }

.acct-table { width: 100%; border-collapse: collapse; font-size: 12px; background: #fff; border-radius: 4px; overflow: hidden; border: 1px solid #e0e0e0; }
.acct-table th { padding: 10px 12px; text-align: left; color: #666; font-weight: 700; background: #f5f5f5; border-bottom: 2px solid #e0e0e0; font-size: 11px; text-transform: uppercase; }
.acct-table td { padding: 10px 12px; border-bottom: 1px solid #f5f5f5; color: #333; }
.acct-table tr:last-child td { border-bottom: 0; }
.acct-table tr:hover td { background: #fafafa; }
.acct-bet-status { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 10px; font-weight: 800; text-transform: uppercase; }
.acct-bet-status.won { background: #e8f5e9; color: #2e7d32; }
.acct-bet-status.lost { background: #ffebee; color: #c62828; }
.acct-bet-status.pending { background: #fff8e1; color: #f57c00; }
.acct-bet-status.void { background: #eeeeee; color: #616161; }
.acct-bet-status.rejected { background: #fce4ec; color: #c2185b; }
.acct-bet-status.cancelled { background: #efebe9; color: #4e342e; }

/* Bet History Header Sub-Tabs */
.acct-header-subtabs {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 10px;
  overflow-x: auto;
  height: 100%;
}

.acct-subtab-btn {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}

.acct-subtab-btn:hover {
  background: rgba(0, 0, 0, 0.16);
  color: #ffffff;
}

.acct-subtab-btn.is-active {
  background: rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

/* Bet History Filters Bar */
.acct-filters-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.acct-filter-fields {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.acct-filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.acct-filter-label {
  font-size: 12px;
  font-weight: 700;
  color: #222222;
}

.acct-select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.acct-select {
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 6px;
  padding: 8px 30px 8px 12px;
  font-size: 13px;
  font-weight: 600;
  color: #222222;
  outline: none;
  cursor: pointer;
  min-width: 140px;
  font-family: inherit;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23666'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  transition: border-color 0.15s;
}

.acct-select:focus {
  border-color: #c62828;
}

.btn-apply-filters {
  background: #a61218;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  padding: 9px 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.btn-apply-filters:hover {
  background: #8b0e13;
  transform: translateY(-1px);
}

.btn-apply-filters:active {
  transform: translateY(0);
}

/* BestBet Table Styling */
.bestbet-table-wrap {
  width: 100%;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.bestbet-table-header {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.1fr 1fr 0.9fr 0.9fr 1.1fr 1.2fr;
  background: #c62828;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  padding: 12px 14px;
  align-items: center;
  border-radius: 6px 6px 0 0;
}

.bestbet-table-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.1fr 1fr 0.9fr 0.9fr 1.1fr 1.2fr;
  background: #ffffff;
  color: #222222;
  font-size: 12px;
  font-weight: 500;
  padding: 12px 14px;
  align-items: center;
  border-bottom: 1px solid #eeeeee;
  transition: background 0.12s;
}

.bestbet-table-row:hover {
  background: #fdf2f2;
}

.bestbet-table-empty {
  background: #e2e2e2;
  color: #444444;
  font-size: 13px;
  font-weight: 600;
  padding: 16px 14px;
  text-align: center;
  border-radius: 0 0 6px 6px;
}

.auth-card {
  width: min(100%, 400px);
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 14px;
  padding: 22px 20px 18px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
}

#deposit-modal .auth-close {
  color: #666;
}

#deposit-modal .auth-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
  color: #222;
}

#deposit-modal .auth-sub {
  margin: 0 0 14px;
  color: #666;
  font-size: 13px;
}

#deposit-modal .auth-form label {
  display: grid;
  gap: 6px;
  font-size: 12px;
  color: #666;
}

#deposit-modal .auth-form input,
#deposit-modal .auth-form select {
  border: 1px solid #ccc;
  background: #fafafa;
  color: #222;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
}

#deposit-modal .auth-submit {
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  padding: 12px;
  font-weight: 800;
  background: var(--brand-red);
  color: #fff;
  cursor: pointer;
}

#deposit-modal .auth-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: #777;
  text-align: center;
}

.auth-card--hope {
  width: min(100%, 340px);
  background: var(--brand-red);
  border: 0;
  padding: 28px 22px 20px;
}

.auth-card--hope.is-register {
  width: min(100%, 360px);
  padding-top: 24px;
}

.auth-card--hope .auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 26px;
  line-height: 1;
  cursor: pointer;
  font-weight: 400;
}

.auth-close {
  position: absolute;
  top: 10px;
  right: 12px;
  border: 0;
  background: transparent;
  color: #666;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 18px;
}

.auth-brand img {
  height: 36px;
  width: auto;
  object-fit: contain;
}

.auth-brand strong {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-heading {
  margin: 0 0 14px;
  text-align: center;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.auth-card--hope .auth-form {
  display: grid;
  gap: 12px;
}

.auth-field {
  display: grid;
  gap: 6px;
}

.auth-label {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.auth-phone-row {
  display: flex;
  gap: 0;
  align-items: stretch;
}

.auth-cc {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  padding: 0 12px;
  background: #fff;
  border: 1px solid #bbb;
  border-right: 0;
  color: #222;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  min-width: 86px;
}

.auth-phone-row input,
.auth-pass-wrap input {
  flex: 1;
  width: 100%;
  border: 1px solid #bbb;
  background: #fff;
  color: #222;
  border-radius: 0;
  padding: 12px 14px;
  font-size: 14px;
  min-width: 0;
}

.auth-pass-wrap {
  position: relative;
  display: flex;
}

.auth-pass-wrap input {
  padding-right: 42px;
}

.auth-eye {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: #777;
  font-size: 16px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}

.auth-checks {
  display: grid;
  gap: 10px;
  margin-top: 2px;
}

.auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  cursor: pointer;
}

.auth-check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: #1e88e5;
}

.auth-card--hope .auth-submit {
  margin-top: 6px;
  border: 0;
  border-radius: 4px;
  padding: 13px 12px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  background: #ffffff;
  color: #111111;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
  transition: background 0.15s ease, transform 0.1s ease;
}

.auth-card--hope .auth-submit:hover {
  background: #f1f5f9;
}

.auth-card--hope .auth-submit:active {
  transform: scale(0.99);
}

.auth-card--hope.is-register .auth-submit {
  background: #ffffff;
  color: #111111;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 16px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.auth-footer-link {
  border: 0;
  background: transparent;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
}

.auth-footer-link:hover {
  text-decoration: underline;
}

.drawer-close {
  display: none;
}

.account-drawer {
  display: none;
}

.mobile-top,
.mobile-main-nav,
.mobile-sports-strip,
.mobile-time-strip,
.mobile-slip-fab,
.mobile-bottom-nav {
  display: none;
}

.mobile-drawer-backdrop,
.mobile-menu-backdrop,
.mobile-menu-drawer {
  display: none;
}

/* Responsive: large tablet / small desktop */
@media (max-width: 1200px) {
  :root {
    --sidebar-w: 200px;
    --betslip-w: 280px;
  }

  .main-nav-tab {
    padding: 10px 10px;
    font-size: 11px;
  }

  .utility-link {
    display: none;
  }

  .utility-link.utility-link--icon,
  .btn-join--header {
    display: inline-flex;
  }

  .match-row-odds {
    gap: 3px;
  }

  .odd-btn {
    min-width: 38px;
    padding: 5px 2px;
  }

  .board-markets {
    min-width: 320px;
    font-size: 9px;
  }

  .md-tabs {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .football-leagues-grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive: tablet + phone shell */
@media (max-width: 980px) {
  .utility-bar {
    display: none;
  }

  .main-nav {
    display: none;
  }

  .sub-nav {
    display: none;
  }

  .site-header {
    display: none;
  }

  body {
    padding-bottom: 60px;
  }

  .mobile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: var(--brand-red, #c62828);
    height: 52px;
    padding: 0 10px;
    position: sticky;
    top: 0;
    z-index: 90;
  }

  .mobile-top-brand {
    border: 0;
    background: transparent;
    display: flex;
    align-items: center;
    padding: 0;
    cursor: pointer;
  }

  .mobile-top-brand img {
    height: 28px;
    width: auto;
    object-fit: contain;
  }

  .mobile-header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-header-actions[hidden] {
    display: none !important;
  }

  .mobile-btn-login {
    height: 32px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, 0.75);
    background: rgba(0, 0, 0, 0.15);
    color: #ffffff;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    white-space: nowrap;
  }

  .mobile-btn-login:hover {
    background: rgba(0, 0, 0, 0.25);
  }

  .mobile-btn-signup {
    height: 32px;
    padding: 0 13px;
    border: 0;
    background: #ffcc00;
    color: #111111;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
    font-family: inherit;
    transition: opacity 0.15s;
    white-space: nowrap;
  }

  .mobile-btn-signup:hover {
    opacity: 0.92;
  }

  .mobile-top-btn {
    width: 34px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.18);
    color: #ffffff;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
    transition: background 0.15s;
  }

  .mobile-top-btn:hover {
    background: rgba(0, 0, 0, 0.3);
  }

  .mobile-balance-pill {
    height: 32px;
    background: rgba(0, 0, 0, 0.25);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 16px;
    padding: 0 4px 0 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
  }

  .mobile-balance-val {
    color: #ffffff;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  .mobile-deposit-plus {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffcc00;
    color: #111111;
    border: 0;
    font-size: 18px;
    font-weight: 900;
    line-height: 1;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    margin: 0;
    font-family: inherit;
    transition: transform 0.1s;
  }

  .mobile-deposit-plus:hover {
    transform: scale(1.06);
  }

  /* Mobile Top Navigation Tabs */
  .mobile-main-nav {
    display: flex;
    align-items: center;
    background: var(--brand-red-dark, #b71c1c);
    height: 38px;
    position: sticky;
    top: 52px;
    z-index: 89;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  }

  .mobile-main-nav::-webkit-scrollbar {
    display: none;
  }

  .mobile-nav-tab {
    flex: 0 0 auto;
    height: 100%;
    padding: 0 14px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    transition: color 0.15s;
  }

  .mobile-nav-tab.is-active {
    color: #ffcc00;
    font-weight: 800;
  }

  .mobile-tab-badge {
    position: absolute;
    top: 2px;
    right: 4px;
    font-size: 8px;
    font-weight: 900;
    color: #ff3d00;
    letter-spacing: 0;
    line-height: 1;
  }

  /* Dark Icon Strip */
  .mobile-sports-strip {
    display: flex;
    align-items: center;
    height: 64px;
    background: #202020;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid #141414;
  }

  .mobile-sports-strip::-webkit-scrollbar {
    display: none;
  }

  .mobile-sport-chip {
    flex: 0 0 auto;
    min-width: 68px;
    height: 100%;
    padding: 6px 8px;
    border: 0;
    background: transparent;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    position: relative;
    cursor: pointer;
    font-family: inherit;
    white-space: nowrap;
    text-align: center;
    transition: background 0.15s;
  }

  .mobile-sport-chip:hover {
    background: rgba(255, 255, 255, 0.05);
  }

  .mobile-sport-chip.is-on {
    background: rgba(198, 40, 40, 0.35);
  }

  .mobile-sport-icon-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    width: 26px;
    height: 24px;
  }

  .mobile-sport-icon-wrap svg {
    width: 22px;
    height: 22px;
  }

  .mobile-sport-badge {
    position: absolute;
    top: -5px;
    right: -12px;
    font-size: 10px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
  }

  /* Mobile Bottom Navigation Bar (matches Image 1 & 3) */
  .mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 54px;
    background: var(--brand-red-dark, #b71c1c);
    border-radius: 10px 10px 0 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 4px;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.25);
  }

  .mobile-bnav-item {
    flex: 1;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    height: 100%;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    font-family: inherit;
    padding: 0;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
    transition: color 0.15s;
  }

  .mobile-bnav-item:hover,
  .mobile-bnav-item.is-active {
    color: #ffffff;
  }

  .mobile-bnav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 22px;
  }

  .mobile-bnav-icon svg {
    width: 21px;
    height: 21px;
  }

  /* Dedicated Mobile Menu Drawer (matches Image 2) */
  .mobile-menu-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1010;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
  }

  .mobile-menu-backdrop[hidden] {
    display: none !important;
  }

  .mobile-menu-close-btn {
    position: fixed;
    top: 10px;
    left: min(348px, calc(86vw + 8px));
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: #111111;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    z-index: 1025;
    font-family: inherit;
    transition: transform 0.12s;
  }

  .mobile-menu-close-btn:hover {
    transform: scale(1.06);
  }

  .mobile-menu-drawer {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 54px;
    width: min(340px, 86vw);
    z-index: 1015;
    background: var(--drawer-bg, #9b0d16);
    overflow-y: auto;
    padding: 14px 12px 24px;
    transform: translateX(-105%);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 8px 0 28px rgba(0, 0, 0, 0.45);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .mobile-menu-drawer::-webkit-scrollbar {
    display: none;
  }

  body.mmenu-open .mobile-menu-drawer {
    transform: translateX(0);
  }

  .mobile-menu-header {
    display: flex;
    align-items: center;
    padding: 2px 4px 12px;
  }

  .mobile-menu-logo {
    height: 32px;
    width: auto;
    object-fit: contain;
  }

  .mobile-menu-apps {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .mobile-menu-app-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s;
  }

  .mobile-menu-app-card:hover {
    background: rgba(0, 0, 0, 0.35);
  }

  .mmenu-app-icon-wrap {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .mmenu-app-info {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
  }

  .mmenu-app-sub {
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    display: block;
    line-height: 1.1;
  }

  .mmenu-app-title {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    display: block;
    line-height: 1.1;
  }

  .mobile-menu-nav {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }

  .mmenu-nav-card {
    background: var(--drawer-card-bg, #b0101a);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    cursor: pointer;
    text-align: left;
    font-family: inherit;
    transition: background 0.15s, transform 0.1s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
  }

  .mmenu-nav-card:hover,
  .mmenu-nav-card:active {
    background: var(--drawer-card-hover, #870912);
  }

  .mmenu-card-icon {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
  }

  .mmenu-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
  }

  .mmenu-card-title {
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.2;
    letter-spacing: 0.01em;
  }

  .mmenu-card-sub {
    font-size: 11px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.72);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .mmenu-card-arrow {
    color: rgba(255, 255, 255, 0.65);
    flex-shrink: 0;
    display: flex;
    align-items: center;
  }

  .mobile-time-strip {
    display: flex;
    gap: 0;
    overflow-x: auto;
    background: #ececec;
    border-bottom: 1px solid #ddd;
  }

  .mobile-time-strip:not([hidden]) {
    display: flex;
  }

  .mobile-time-chip {
    flex: 0 0 auto;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 800;
    color: #444;
    cursor: pointer;
    border-bottom: 2px solid transparent;
  }

  .mobile-time-chip.is-on {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
  }

  .web-body {
    grid-template-columns: 1fr;
    min-height: calc(100dvh - 110px);
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 80;
    transform: translateX(-105%);
    transition: transform 0.22s ease;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.18);
    border-right: 1px solid var(--line);
    max-height: none;
    display: block;
    padding-bottom: 24px;
    background: #fff;
  }

  body.menu-open .sidebar {
    transform: translateX(0);
  }

  .betslip-panel {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 54px;
    width: min(340px, 88vw);
    z-index: 1015;
    transform: translateX(105%);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.45);
    border-left: 1px solid var(--line);
    background: #ffffff;
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    max-height: none;
    display: flex;
    flex-direction: column;
  }

  .betslip-panel::-webkit-scrollbar {
    display: none;
  }

  body.betslip-open .betslip-panel {
    transform: translateX(0);
  }

  body.betslip-open .mobile-slip-fab {
    display: none !important;
  }

  .betslip-panel .drawer-close,
  .betslip-panel .betslip-header {
    display: none !important;
  }

  .betslip-tools {
    display: none !important;
  }

  /* Account Drawer (matches Image 1 & Image 2) */
  .mobile-drawer-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1010;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(2px);
  }

  .mobile-drawer-backdrop[hidden] {
    display: none !important;
  }

  .account-drawer-close-btn {
    position: fixed;
    top: 10px;
    right: min(348px, calc(88vw + 8px));
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 4px;
    background: #111111;
    color: #ffffff;
    font-size: 20px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
    z-index: 1025;
    font-family: inherit;
    transition: transform 0.12s;
  }

  .account-drawer-close-btn:hover {
    transform: scale(1.06);
  }

  .account-drawer {
    display: block;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(340px, 88vw);
    z-index: 1015;
    background: var(--drawer-bg, #9b0d16);
    transform: translateX(105%);
    transition: transform 0.24s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 28px rgba(0, 0, 0, 0.45);
    overflow-y: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .account-drawer::-webkit-scrollbar {
    display: none;
  }

  body.account-open .account-drawer {
    transform: translateX(0);
  }

  .account-drawer-body {
    padding: 16px 14px 40px;
    display: flex;
    flex-direction: column;
  }

  /* GUEST (LOGGED OUT) STYLING - Image 1 */
  .account-prompt {
    margin: 0 0 8px;
    font-size: 14px;
    font-weight: 800;
    color: #ffffff;
    text-align: center;
    letter-spacing: 0.01em;
  }

  .account-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--drawer-card-bg, #b0101a);
    color: #ffcc00;
    font-weight: 800;
    font-size: 14px;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  }

  .account-cta:hover,
  .account-cta:active {
    background: var(--drawer-card-hover, #8b0a13);
  }

  .account-cta--login {
    margin-bottom: 14px;
  }

  .account-cta--register {
    margin-bottom: 16px;
  }

  .account-row-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 44px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: var(--drawer-card-bg, #b0101a);
    color: #ffffff;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.04em;
    cursor: pointer;
    font-family: inherit;
    margin-bottom: 10px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    transition: background 0.15s;
  }

  .account-row-btn:hover {
    background: var(--drawer-card-hover, #8b0a13);
  }

  .account-row--lang {
    font-size: 14px;
    font-weight: 700;
    gap: 10px;
  }

  .account-lang-flag {
    font-size: 18px;
  }

  .account-row-arrow {
    font-size: 14px;
    margin-left: 2px;
  }

  .account-apps-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
  }

  .account-app-card {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: background 0.15s;
  }

  .account-app-card:hover {
    background: rgba(0, 0, 0, 0.35);
  }

  .account-app-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
  }

  .account-app-texts small {
    display: block;
    font-size: 9px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.1;
  }

  .account-app-texts strong {
    display: block;
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
    line-height: 1.1;
  }

  .account-theme-wrap {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 8px 0 16px;
  }

  .account-theme-switch {
    width: 60px;
    height: 30px;
    background: #ffffff;
    border-radius: 15px;
    border: 0;
    position: relative;
    cursor: pointer;
    padding: 2px;
    transition: background 0.2s;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.2);
  }

  .theme-switch-knob {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--drawer-knob-bg, var(--brand-red, #9b0d16));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 2px;
    left: 2px;
    right: auto;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  .account-theme-switch.is-active .theme-switch-knob,
  [data-night="true"] .account-theme-switch .theme-switch-knob {
    transform: translateX(30px);
  }

  .account-social {
    margin-top: 10px;
    text-align: center;
  }

  .account-social p {
    margin: 0 0 12px;
    color: #ffd700;
    font-weight: 800;
    font-size: 13px;
    letter-spacing: 0.02em;
  }

  .account-social-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #ffffff;
    color: #0088cc;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
    text-decoration: none;
    transition: transform 0.15s;
  }

  .account-social-circle:hover {
    transform: scale(1.08);
  }

  /* SIGNED IN (LOGGED IN) STYLING - Image 2 */
  .acct-signed-user-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    margin-bottom: 12px;
    padding: 2px 4px;
  }

  .acct-user-icon {
    opacity: 0.9;
    flex-shrink: 0;
  }

  .acct-user-id {
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .acct-action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 12px;
  }

  .acct-btn-deposit-yellow {
    height: 42px;
    background: #ffd700;
    color: #111111;
    border-radius: 8px;
    border: 0;
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: opacity 0.15s;
  }

  .acct-btn-deposit-yellow:hover {
    opacity: 0.92;
  }

  .acct-btn-withdraw-red {
    height: 42px;
    background: var(--drawer-card-bg, #b0101a);
    color: #ffffff;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 13px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
    transition: background 0.15s;
  }

  .acct-btn-withdraw-red:hover {
    background: var(--drawer-card-hover, #8b0a13);
  }

  .acct-balance-card {
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    margin-bottom: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .acct-bal-line {
    display: flex;
    flex-direction: column;
    gap: 1px;
    margin-bottom: 4px;
  }

  .acct-bal-label {
    font-size: 11px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.82);
  }

  .acct-bal-val {
    font-size: 13px;
    font-weight: 800;
    color: #ffffff;
  }

  .acct-bal-total-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 6px;
    margin-top: 2px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    margin-bottom: 6px;
  }

  .acct-bal-total-label {
    font-size: 13px;
    font-weight: 800;
    color: #ffd700;
  }

  .acct-bal-total-val {
    font-size: 14px;
    font-weight: 900;
    color: #ffd700;
  }

  .acct-bal-subline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: rgba(255, 255, 255, 0.78);
    padding: 1px 0;
  }

  .acct-bal-subline strong {
    font-weight: 700;
    color: #ffffff;
  }

  .acct-menu-group {
    background: var(--drawer-card-bg, #b0101a);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  }

  .acct-group-row {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 12px 14px;
    border: 0;
    background: transparent;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: background 0.12s;
    text-align: left;
  }

  .acct-group-row:last-child {
    border-bottom: 0;
  }

  .acct-group-row:hover, .acct-group-row:active {
    background: rgba(0, 0, 0, 0.15);
  }

  .acct-row-title {
    flex: 1;
    font-size: 13px;
    font-weight: 700;
  }

  .acct-row-chevron {
    width: 20px;
    height: 20px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.28);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
  }

  .acct-logout-line-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    border: 0;
    color: #ffffff;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
    font-weight: 800;
    padding: 10px 4px;
    margin-top: 4px;
    transition: opacity 0.15s;
  }

  .acct-logout-line-btn:hover {
    opacity: 0.85;
  }

  .acct-logout-circle {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #ffffff;
    color: var(--drawer-bg, #9b0d16);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
  }

  .mobile-drawer-backdrop[hidden] {
    display: none !important;
  }

  .drawer-close {
    display: grid;
    place-items: center;
    position: sticky;
    top: 0;
    z-index: 2;
    width: 100%;
    height: 40px;
    border: 0;
    border-bottom: 1px solid var(--line);
    background: #f0f0f0;
    color: #333;
    font-size: 22px;
    font-weight: 700;
    cursor: pointer;
  }

  .betslip-panel .drawer-close {
    background: #424242;
    color: #fff;
    border-bottom-color: #555;
  }

  .mobile-slip-fab {
    display: inline-flex;
    align-items: center;
    position: fixed;
    right: 14px;
    bottom: 68px;
    z-index: 1005;
    border: 0;
    padding: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.22));
    font-family: inherit;
    transition: transform 0.15s ease;
  }

  .mobile-slip-fab:active {
    transform: scale(0.96);
  }

  .mobile-slip-fab[hidden] {
    display: none !important;
  }

  .mobile-slip-fab-count {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--brand-red, #c62828);
    color: #ffffff;
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    margin-right: -16px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.28);
  }

  .mobile-slip-fab-odds {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 8px 18px 8px 26px;
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    position: relative;
    z-index: 1;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  }

  .mobile-slip-fab-label {
    color: #777777;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    line-height: 1.1;
    margin-bottom: 3px;
  }

  .mobile-slip-fab-odds strong {
    display: block;
    margin: 0;
    color: #111111;
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
  }

  .content {
    min-width: 0;
    padding: 8px 8px 88px;
  }

  .sidebar-block--home {
    display: none;
  }

  .ad-carousel {
    min-height: 140px;
    border-radius: 0;
    margin: 0 -8px 10px;
  }

  .section-head {
    background: var(--brand-red);
    color: #fff;
    padding: 8px 10px;
    margin: 0 0 8px;
  }

  .section-head h2 {
    margin: 0;
    color: #fff;
    letter-spacing: 0.04em;
    font-size: 13px;
  }

  .popular-row {
    margin-bottom: 12px;
    gap: 8px;
  }

  .pop-card {
    flex: 0 0 210px;
    border-radius: 6px;
    padding: 10px;
  }

  .pop-card-teams {
    grid-template-columns: 1fr auto 1fr;
  }

  .top-leagues-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .match-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 6px;
    padding: 8px 6px;
    align-items: center;
  }

  .match-row-teams {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px;
  }

  .match-row-vs {
    display: none;
  }

  .match-row-team {
    font-size: 11px;
  }

  .match-row-meta {
    margin-top: 2px;
  }

  .match-row-odds {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 3px;
  }

  .match-row-odds .odd-btn:nth-child(n + 4) {
    display: none;
  }

  .board-markets,
  .league-page-head .board-markets {
    display: none;
  }

  .football-leagues-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .football-league-row {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    border-top: 0;
    padding: 10px 12px;
    background: #fff;
  }

  .football-menu-banner {
    margin: 0;
  }

  .btn-open-selected {
    width: 100%;
    margin-left: 0;
  }

  .md-tabs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .md-tab {
    min-height: 32px;
    font-size: 9px;
    padding: 5px 2px;
  }

  .md-odds-grid--3,
  .md-odds-grid--4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .my-bets-tabs--time {
    margin-left: 0;
    width: 100%;
  }

  .my-bets-tab {
    flex: 1;
    padding: 10px 8px;
    font-size: 11px;
  }

  .fab-chat {
    display: none;
  }
}

@media (max-width: 420px) {
  .match-row {
    grid-template-columns: 1fr;
  }

  .match-row-odds {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .pop-card {
    flex: 0 0 180px;
  }

  .md-team span {
    font-size: 11px;
  }

  .md-team img {
    width: 36px;
    height: 36px;
  }

  .betslip-actions {
    flex-direction: column;
  }

  .btn-cancel-bet,
  .btn-place {
    width: 100%;
  }
}

@media (min-width: 1500px) {
  .content {
    max-width: none;
  }

  .web-body {
    grid-template-columns: 240px 1fr 320px;
  }

  .md-tabs {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

/* Sports menu + football league browser */
.sidebar.is-sports-menu .sidebar-block--home {
  display: none;
}

.sports-menu-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  background: var(--brand-red-dark);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
}

.sports-menu-back {
  width: 32px;
  height: 32px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 16px;
  border: 0;
}

.sidebar-search-hint {
  margin: 0 0 8px;
  padding: 0 4px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.4;
}

.sidebar-title--red {
  background: var(--brand-red);
  color: #fff;
  margin: 0 -12px 8px;
  padding: 8px 12px !important;
  font-size: 11px !important;
}

.sidebar-list--sports .sidebar-item--sport.is-on {
  background: #424242;
  color: #fff;
}

.sidebar-list--sports .sidebar-item--sport.is-on em {
  color: rgba(255, 255, 255, 0.75);
}

.football-menu-toolbar {
  padding: 8px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-open-selected {
  margin-left: auto;
  padding: 8px 14px;
  background: var(--brand-red);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.03em;
  cursor: pointer;
}

.btn-open-selected[hidden] {
  display: none !important;
}

/* Floating "Open Selected" bar that follows user as they scroll down */
.floating-open-selected {
  position: fixed;
  bottom: 74px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1050;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.12);
  border-radius: 30px;
  padding: 8px 18px 8px 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.22);
  cursor: pointer;
  font-family: inherit;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s ease, opacity 0.2s ease;
  user-select: none;
}

@media (min-width: 900px) {
  .football-menu-toolbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: var(--bg);
  }

  .floating-open-selected {
    bottom: 30px;
    padding: 9px 22px 9px 12px;
    font-size: 14px;
    box-shadow: 0 6px 28px rgba(0, 0, 0, 0.25);
  }
}

.floating-open-selected:hover {
  transform: translateX(-50%) translateY(-2px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.floating-open-selected:active {
  transform: translateX(-50%) scale(0.97);
}

.floating-open-selected[hidden] {
  display: none !important;
}

.floating-open-selected-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 13px;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.floating-open-selected-text {
  font-weight: 800;
  color: #222222;
  white-space: nowrap;
}

.floating-open-selected-icon {
  color: var(--brand-red, #c62828);
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
}

[data-night="true"] .floating-open-selected,
[data-theme="dark"] .floating-open-selected {
  background: #252525;
  color: #ffffff;
  border-color: #444444;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
}

[data-night="true"] .floating-open-selected-text,
[data-theme="dark"] .floating-open-selected-text {
  color: #ffffff;
}

.football-filters-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
}

.football-filters-btn.is-on {
  border-color: var(--brand-red);
  color: var(--brand-red);
}

.football-filters-btn-icon {
  font-size: 14px;
  line-height: 1;
}

.football-menu-toolbar--league {
  margin-bottom: 8px;
}

.football-filters-panel {
  margin-bottom: 10px;
  background: #ececec;
  border: 1px solid #d8d8d8;
  border-radius: 2px;
  overflow: hidden;
}

.football-filters-panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  background: #f7f7f7;
  border: 0;
  border-bottom: 1px solid #ddd;
  font-size: 13px;
  font-weight: 800;
  color: #222;
  cursor: pointer;
  text-align: left;
}

.football-filters-icon {
  font-size: 15px;
  color: #444;
}

.football-filters-chev {
  font-size: 11px;
  color: #666;
}

.football-filters-body {
  padding: 14px 16px 12px;
}

.football-time-slider-wrap {
  position: relative;
  padding: 0 4px 4px;
}

.football-time-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 14px;
  border-radius: 2px;
  background: var(--brand-red);
  border: 2px solid #fff;
  outline: none;
  cursor: pointer;
  margin: 0;
}

.football-time-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid #1a1a1a;
  background: transparent;
  margin-top: -2px;
  box-shadow: none;
}

.football-time-slider::-moz-range-thumb {
  width: 0;
  height: 0;
  border: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 14px solid #1a1a1a;
  background: transparent;
}

.football-time-slider::-moz-range-track {
  height: 14px;
  background: var(--brand-red);
  border: 2px solid #fff;
  border-radius: 2px;
}

.football-time-ticks {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-top: 2px;
}

.football-time-tick {
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 7px solid var(--brand-red);
}

.football-time-labels {
  display: flex;
  justify-content: space-between;
  gap: 4px;
  margin-top: 6px;
}

.football-time-label {
  flex: 1;
  min-width: 0;
  font-size: 10px;
  font-weight: 700;
  color: #555;
  text-align: center;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border: 0;
  background: transparent;
  padding: 0;
}

.football-time-label.is-on {
  color: var(--brand-red);
  font-weight: 800;
}

.football-menu-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--brand-red);
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 2px;
}

.football-menu-banner-actions {
  display: flex;
  gap: 6px;
}

.football-menu-banner-actions button {
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
}

.football-regions {
  background: #fff;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}

.football-region-head {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: #e8e8e8;
  border: 0;
  border-bottom: 1px solid #ddd;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  color: #333;
}

.football-region-dots {
  color: #888;
  letter-spacing: 2px;
}

.football-region-head .flag {
  width: 20px;
  height: 14px;
  object-fit: cover;
  border-radius: 2px;
}

.football-region-name {
  flex: 1;
}

.football-region-chev {
  color: #666;
  font-size: 10px;
}

.football-region-body {
  padding: 10px 12px 14px;
  background: #fff;
}

.football-leagues-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px 10px;
}

.football-league-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px;
  border-radius: 4px;
  background: #fafafa;
  border: 1px solid #eee;
}

.football-league-row.is-marked {
  border-color: rgba(198, 40, 40, 0.35);
  background: rgba(198, 40, 40, 0.06);
}

.football-league-check {
  display: flex;
  align-items: center;
  margin: 0;
  flex-shrink: 0;
}

.football-league-link {
  flex: 1;
  text-align: left;
  border: 0;
  background: transparent;
  font-size: 11px;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  padding: 4px 0;
  line-height: 1.3;
}

.football-league-link:hover {
  color: var(--brand-red);
  text-decoration: underline;
}

.football-league-check input {
  margin: 0;
  accent-color: var(--brand-red);
  flex-shrink: 0;
}

.league-page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  background: var(--brand-red);
  color: #fff;
  margin-bottom: 2px;
  flex-wrap: wrap;
}

.league-page-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
}

.league-page-head .board-markets {
  font-size: 10px;
  opacity: 0.9;
  display: flex;
  gap: 10px;
}

.league-page-board-wrap {
  background: #fff;
  border: 1px solid var(--line);
}

.football-region-loading,
.football-region-empty {
  font-size: 12px;
  color: var(--muted);
  padding: 8px 0;
}

#sports-home-wrap[hidden],
#football-menu-wrap[hidden] {
  display: none !important;
}

body.is-sports-home #view-sports .filter-bar,
body.is-sports-home #view-sports .board-head,
body.is-sports-home #view-sports .board-wrap {
  display: none !important;
}

/* ===================================================================
   NIGHT MODE TOGGLE SWITCH
   =================================================================== */
.night-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
  font-size: 12px;
  color: #fff;
  font-weight: 700;
}

.night-toggle-track {
  position: relative;
  width: 38px;
  height: 20px;
  background: rgba(255,255,255,0.2);
  border-radius: 10px;
  transition: background 0.3s;
}

[data-theme="dark"] .night-toggle-track {
  background: var(--nav-yellow);
}

.night-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.3s;
}

[data-theme="dark"] .night-toggle-thumb {
  transform: translateX(18px);
}

.night-toggle-label {
  font-size: 11px;
  opacity: 0.9;
}

/* ===================================================================
   THEME COLOR RULES — Ensuring all red parts follow brand variables
   =================================================================== */

/* Top matches & Top leagues header bars */
.top-matches-header-bar,
[data-theme] .top-matches-header-bar {
  background: var(--brand-red, #c62828) !important;
}

.top-leagues-bar,
[data-theme] .top-leagues-bar {
  background: var(--brand-red, #c62828) !important;
}

/* Betslip header & action buttons */
.betslip-header,
[data-theme] .betslip-header {
  background: var(--brand-red, #c62828) !important;
}
.betslip-header em,
[data-theme] .betslip-header em {
  color: var(--brand-red, #c62828) !important;
}

.btn-continue-bet,
[data-theme] .btn-continue-bet {
  background: var(--brand-red, #c62828) !important;
}
.btn-continue-bet:hover,
[data-theme] .btn-continue-bet:hover {
  background: var(--brand-red-hover, #b71c1c) !important;
}

.btn-load-red,
[data-theme] .btn-load-red {
  background: var(--brand-red, #e41b23) !important;
}
.btn-load-red:hover,
[data-theme] .btn-load-red:hover {
  background: var(--brand-red-hover, #b71c1c) !important;
}

.betslip-load-booked-bar,
[data-theme] .betslip-load-booked-bar {
  background: var(--brand-red, #c62828) !important;
}
.betslip-load-booked-bar:hover,
[data-theme] .betslip-load-booked-bar:hover {
  background: var(--brand-red-hover, #b71c1c) !important;
}

/* Sidebar red headers */
.sidebar-menu-top,
[data-theme] .sidebar-menu-top {
  background: var(--brand-red, #c62828) !important;
}
.sidebar-search-header,
[data-theme] .sidebar-search-header {
  background: var(--brand-red, #c62828) !important;
}
.sidebar-section-header,
[data-theme] .sidebar-section-header {
  background: var(--brand-red, #c62828) !important;
}
.btn-inplay,
[data-theme] .btn-inplay {
  background: var(--brand-red, #e41b23) !important;
}
.btn-inplay:hover,
[data-theme] .btn-inplay:hover {
  background: var(--brand-red-hover, #b71c1c) !important;
}
.filter-chips--sidebar .chip.is-on,
[data-theme] .filter-chips--sidebar .chip.is-on {
  background: var(--brand-red, #c62828) !important;
  border-color: var(--brand-red, #c62828) !important;
}

/* Navigation headers */
.top-nav-bar,
[data-theme] .top-nav-bar {
  background: var(--brand-top-bar, var(--brand-red-dark, #8e1515)) !important;
}
.main-nav,
[data-theme] .main-nav {
  background: var(--brand-red, #a61218) !important;
}
.sub-nav-item.is-on,
[data-theme] .sub-nav-item.is-on {
  color: var(--brand-red, #c62828) !important;
  border-bottom-color: var(--brand-red, #c62828) !important;
}

/* Account modal sidebar & header */
.acct-sidebar,
[data-theme] .acct-sidebar {
  background: var(--brand-red, #c62828) !important;
}
.acct-content-header,
[data-theme] .acct-content-header {
  background: var(--brand-red, #c62828) !important;
}

/* Mobile Menu Drawer & Account Drawer Themes */
.mobile-menu-drawer,
[data-theme] .mobile-menu-drawer,
[data-color] .mobile-menu-drawer {
  background: var(--drawer-bg, #9b0d16) !important;
}

.mmenu-nav-card,
[data-theme] .mmenu-nav-card,
[data-color] .mmenu-nav-card {
  background: var(--drawer-card-bg, #b0101a) !important;
}

.mmenu-nav-card:hover,
.mmenu-nav-card:active,
[data-theme] .mmenu-nav-card:hover,
[data-theme] .mmenu-nav-card:active,
[data-color] .mmenu-nav-card:hover,
[data-color] .mmenu-nav-card:active {
  background: var(--drawer-card-hover, #870912) !important;
}

.account-drawer,
[data-theme] .account-drawer,
[data-color] .account-drawer {
  background: var(--drawer-bg, #9b0d16) !important;
}

.account-cta,
[data-theme] .account-cta,
[data-color] .account-cta {
  background: var(--drawer-card-bg, #b0101a) !important;
}

.account-cta:hover,
.account-cta:active,
[data-theme] .account-cta:hover,
[data-theme] .account-cta:active,
[data-color] .account-cta:hover,
[data-color] .account-cta:active {
  background: var(--drawer-card-hover, #8b0a13) !important;
}

.account-row-btn,
[data-theme] .account-row-btn,
[data-color] .account-row-btn {
  background: var(--drawer-card-bg, #b0101a) !important;
}

.account-row-btn:hover,
[data-theme] .account-row-btn:hover,
[data-color] .account-row-btn:hover {
  background: var(--drawer-card-hover, #8b0a13) !important;
}

.theme-switch-knob,
[data-theme] .theme-switch-knob,
[data-color] .theme-switch-knob {
  background: var(--drawer-knob-bg, var(--brand-red, #9b0d16)) !important;
}

.acct-btn-withdraw-red,
[data-theme] .acct-btn-withdraw-red,
[data-color] .acct-btn-withdraw-red {
  background: var(--drawer-card-bg, #b0101a) !important;
}

.acct-btn-withdraw-red:hover,
[data-theme] .acct-btn-withdraw-red:hover,
[data-color] .acct-btn-withdraw-red:hover {
  background: var(--drawer-card-hover, #8b0a13) !important;
}

.acct-menu-group,
[data-theme] .acct-menu-group,
[data-color] .acct-menu-group {
  background: var(--drawer-card-bg, #b0101a) !important;
}

.acct-logout-circle,
[data-theme] .acct-logout-circle,
[data-color] .acct-logout-circle {
  color: var(--drawer-bg, #9b0d16) !important;
}

.mobile-slip-fab-count,
[data-theme] .mobile-slip-fab-count,
[data-color] .mobile-slip-fab-count {
  background: var(--brand-red, #c62828) !important;
}

/* Specific theme rules for all 5 colors */
/* Theme 1: Red (Default) */
[data-theme="red"] .mobile-menu-drawer, [data-color="red"] .mobile-menu-drawer,
[data-theme="red"] .account-drawer, [data-color="red"] .account-drawer {
  background: #9b0d16 !important;
}
[data-theme="red"] .mmenu-nav-card, [data-color="red"] .mmenu-nav-card,
[data-theme="red"] .account-cta, [data-color="red"] .account-cta,
[data-theme="red"] .account-row-btn, [data-color="red"] .account-row-btn,
[data-theme="red"] .acct-btn-withdraw-red, [data-color="red"] .acct-btn-withdraw-red,
[data-theme="red"] .acct-menu-group, [data-color="red"] .acct-menu-group {
  background: #b0101a !important;
}
[data-theme="red"] .theme-switch-knob, [data-color="red"] .theme-switch-knob {
  background: #9b0d16 !important;
}
[data-theme="red"] .acct-logout-circle, [data-color="red"] .acct-logout-circle {
  color: #9b0d16 !important;
}

/* Theme 2: Dark (Obsidian Charcoal) */
[data-theme="dark"] .mobile-menu-drawer, [data-color="dark"] .mobile-menu-drawer,
[data-theme="dark"] .account-drawer, [data-color="dark"] .account-drawer {
  background: #11151c !important;
}
[data-theme="dark"] .mmenu-nav-card, [data-color="dark"] .mmenu-nav-card,
[data-theme="dark"] .account-cta, [data-color="dark"] .account-cta,
[data-theme="dark"] .account-row-btn, [data-color="dark"] .account-row-btn,
[data-theme="dark"] .acct-btn-withdraw-red, [data-color="dark"] .acct-btn-withdraw-red,
[data-theme="dark"] .acct-menu-group, [data-color="dark"] .acct-menu-group {
  background: #1e2432 !important;
}
[data-theme="dark"] .mmenu-nav-card:hover, [data-color="dark"] .mmenu-nav-card:hover,
[data-theme="dark"] .account-cta:hover, [data-color="dark"] .account-cta:hover,
[data-theme="dark"] .account-row-btn:hover, [data-color="dark"] .account-row-btn:hover {
  background: #293144 !important;
}
[data-theme="dark"] .theme-switch-knob, [data-color="dark"] .theme-switch-knob {
  background: #1e2432 !important;
}
[data-theme="dark"] .acct-logout-circle, [data-color="dark"] .acct-logout-circle {
  color: #11151c !important;
}

/* Theme 3: Royal Blue */
[data-theme="blue"] .mobile-menu-drawer, [data-color="blue"] .mobile-menu-drawer,
[data-theme="blue"] .account-drawer, [data-color="blue"] .account-drawer {
  background: #083c79 !important;
}
[data-theme="blue"] .mmenu-nav-card, [data-color="blue"] .mmenu-nav-card,
[data-theme="blue"] .account-cta, [data-color="blue"] .account-cta,
[data-theme="blue"] .account-row-btn, [data-color="blue"] .account-row-btn,
[data-theme="blue"] .acct-btn-withdraw-red, [data-color="blue"] .acct-btn-withdraw-red,
[data-theme="blue"] .acct-menu-group, [data-color="blue"] .acct-menu-group {
  background: #0f56a8 !important;
}
[data-theme="blue"] .mmenu-nav-card:hover, [data-color="blue"] .mmenu-nav-card:hover,
[data-theme="blue"] .account-cta:hover, [data-color="blue"] .account-cta:hover,
[data-theme="blue"] .account-row-btn:hover, [data-color="blue"] .account-row-btn:hover {
  background: #0b4385 !important;
}
[data-theme="blue"] .theme-switch-knob, [data-color="blue"] .theme-switch-knob {
  background: #083c79 !important;
}
[data-theme="blue"] .acct-logout-circle, [data-color="blue"] .acct-logout-circle {
  color: #083c79 !important;
}

/* Theme 4: Emerald Green */
[data-theme="green"] .mobile-menu-drawer, [data-color="green"] .mobile-menu-drawer,
[data-theme="green"] .account-drawer, [data-color="green"] .account-drawer {
  background: #0f4f1f !important;
}
[data-theme="green"] .mmenu-nav-card, [data-color="green"] .mmenu-nav-card,
[data-theme="green"] .account-cta, [data-color="green"] .account-cta,
[data-theme="green"] .account-row-btn, [data-color="green"] .account-row-btn,
[data-theme="green"] .acct-btn-withdraw-red, [data-color="green"] .acct-btn-withdraw-red,
[data-theme="green"] .acct-menu-group, [data-color="green"] .acct-menu-group {
  background: #167a30 !important;
}
[data-theme="green"] .mmenu-nav-card:hover, [data-color="green"] .mmenu-nav-card:hover,
[data-theme="green"] .account-cta:hover, [data-color="green"] .account-cta:hover,
[data-theme="green"] .account-row-btn:hover, [data-color="green"] .account-row-btn:hover {
  background: #115c25 !important;
}
[data-theme="green"] .theme-switch-knob, [data-color="green"] .theme-switch-knob {
  background: #0f4f1f !important;
}
[data-theme="green"] .acct-logout-circle, [data-color="green"] .acct-logout-circle {
  color: #0f4f1f !important;
}

/* Theme 5: Midnight Purple */
[data-theme="purple"] .mobile-menu-drawer, [data-color="purple"] .mobile-menu-drawer,
[data-theme="purple"] .account-drawer, [data-color="purple"] .account-drawer {
  background: #441066 !important;
}
[data-theme="purple"] .mmenu-nav-card, [data-color="purple"] .mmenu-nav-card,
[data-theme="purple"] .account-cta, [data-color="purple"] .account-cta,
[data-theme="purple"] .account-row-btn, [data-color="purple"] .account-row-btn,
[data-theme="purple"] .acct-btn-withdraw-red, [data-color="purple"] .acct-btn-withdraw-red,
[data-theme="purple"] .acct-menu-group, [data-color="purple"] .acct-menu-group {
  background: #5c168c !important;
}
[data-theme="purple"] .mmenu-nav-card:hover, [data-color="purple"] .mmenu-nav-card:hover,
[data-theme="purple"] .account-cta:hover, [data-color="purple"] .account-cta:hover,
[data-theme="purple"] .account-row-btn:hover, [data-color="purple"] .account-row-btn:hover {
  background: #4b1273 !important;
}
[data-theme="purple"] .theme-switch-knob, [data-color="purple"] .theme-switch-knob {
  background: #441066 !important;
}
[data-theme="purple"] .acct-logout-circle, [data-color="purple"] .acct-logout-circle {
  color: #441066 !important;
}

/* Mobile navigation bars */
.mobile-top,
[data-theme] .mobile-top {
  background: var(--brand-red, #c62828) !important;
}
.mobile-main-nav,
[data-theme] .mobile-main-nav {
  background: var(--brand-red-dark, #b71c1c) !important;
}
.mobile-bottom-nav,
[data-theme] .mobile-bottom-nav {
  background: var(--brand-red-dark, #b71c1c) !important;
}

/* Selected odds pills */
.pop-odd-btn.is-selected,
[data-theme] .pop-odd-btn.is-selected,
.hmt-odd-btn.is-selected,
[data-theme] .hmt-odd-btn.is-selected {
  background: var(--brand-red, #c62828) !important;
  border-color: var(--brand-red, #c62828) !important;
  color: #ffffff !important;
}

/* Top app pill & badge */
.top-app-pill,
[data-theme] .top-app-pill {
  background: var(--brand-red-light, #e41b23) !important;
}
.tab-badge-new,
[data-theme] .tab-badge-new {
  background: var(--brand-red-light, #e41b23) !important;
}

/* ===================================================================
   COLOR PICKER STYLES (in top utility bar and drawer)
   =================================================================== */
.theme-color-picker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  background: rgba(0, 0, 0, 0.25);
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  vertical-align: middle;
}

.theme-color-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--dot-color);
  border: 1.5px solid rgba(255, 255, 255, 0.7);
  cursor: pointer;
  padding: 0;
  outline: none;
  box-sizing: border-box;
  transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s;
}

.theme-color-dot:hover {
  transform: scale(1.22);
  border-color: #ffffff;
}

.theme-color-dot.is-active {
  transform: scale(1.25);
  border-color: #ffffff;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.account-theme-color-picker {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 10px;
  padding: 8px;
  background: var(--surface);
  border-radius: 6px;
}

.account-theme-color-picker .theme-color-dot {
  width: 22px;
  height: 22px;
}

/* ===================================================================
   BESTBET UI CLONE — New Component Styles
   =================================================================== */

/* Main nav right section */
.main-nav-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding-right: 12px;
}

.main-nav-promo {
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 8px 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.main-nav-link {
  color: rgba(255,255,255,0.9);
  font-size: 11px;
  font-weight: 700;
  padding: 8px 12px;
  background: none;
  border: 0;
  cursor: pointer;
}

.main-nav-create {
  background: #4caf50;
  color: #fff;
  border: 0;
  border-radius: 3px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
}

.main-nav-create:hover {
  background: #43a047;
}

/* Section dots prefix */
.section-dots {
  color: var(--brand-red);
  margin-right: 8px;
  font-size: 10px;
  letter-spacing: 3px;
}

.section-head h2 {
  font-size: 13px;
  font-weight: 700;
  text-transform: none;
  letter-spacing: 0;
  color: var(--text);
}

/* League sport tabs */
.league-sport-tabs {
  display: flex;
  gap: 0;
  padding: 0;
  background: var(--panel2);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
}

.league-sport-tab {
  padding: 10px 20px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}

.league-sport-tab.is-on {
  color: var(--text);
  border-bottom-color: var(--brand-red);
}

[data-theme="dark"] .league-sport-tab.is-on {
  color: #fff;
  border-bottom-color: var(--brand-red);
}

[data-theme="dark"] .league-sport-tab {
  color: var(--muted);
}

/* Ranking / Right sidebar panel */
.ranking-panel {
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}

.ranking-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--panel2);
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}

.ranking-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: var(--brand-red);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.ranking-body {
  padding: 14px;
}

.ranking-notice {
  font-size: 12px;
  color: var(--muted);
  text-align: center;
  padding: 10px 0 16px;
  margin: 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.ranking-section {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.ranking-section:last-child {
  border-bottom: 0;
}

.ranking-section-title {
  font-size: 13px;
  font-weight: 800;
  color: var(--text);
  margin: 0 0 6px;
}

.ranking-section-hint {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.4;
}

.ranking-link {
  color: var(--brand-red);
  text-decoration: underline;
}

.ranking-input-row {
  display: flex;
  gap: 0;
}

.ranking-input {
  flex: 1;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--input-bg);
  color: var(--text);
  padding: 8px 10px;
  font-size: 12px;
  min-width: 0;
  border-radius: 0;
  outline: none;
}

.ranking-input::placeholder {
  color: var(--muted);
  font-size: 11px;
}

.ranking-load-btn {
  background: var(--brand-red);
  color: #fff;
  border: 0;
  padding: 8px 18px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.ranking-load-btn:hover {
  background: var(--brand-red-light);
}

.ranking-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11px;
}

.ranking-table th {
  text-align: left;
  padding: 8px 6px;
  font-weight: 700;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.ranking-table td {
  padding: 8px 6px;
  color: var(--text);
  font-size: 11px;
}

/* Sidebar sport row improvements */
.sidebar-sport {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  font-size: 12px;
  color: var(--text);
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}

.sidebar-sport:hover {
  background: var(--panel2);
}

.sidebar-sport-count {
  font-weight: 800;
  font-size: 12px;
  min-width: 32px;
  color: var(--muted);
}

.sidebar-sport-icon {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
  margin-left: auto;
  transition: color 0.15s;
}

.sidebar-sport-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sidebar-sport-name {
  flex: 1;
  font-weight: 600;
  font-size: 12px;
}

.sidebar-sport-gear {
  color: var(--muted);
  font-size: 14px;
  cursor: pointer;
  opacity: 0.6;
}

.sidebar-sport-gear:hover {
  opacity: 1;
}

/* ============================================================
   TOP MATCHES HORIZONTAL CAROUSEL (exact match for reference image)
   ============================================================ */
.top-matches-header-bar {
  background: #c62828;
  color: #fff;
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
  border-radius: 3px 3px 0 0;
  margin-top: 14px;
}

.top-matches-header-bar .section-dots {
  color: #fff;
  letter-spacing: 2px;
  font-size: 14px;
}

.top-matches-header-bar .header-bar-title {
  text-transform: capitalize;
  font-size: 14px;
  letter-spacing: 0.02em;
}

.top-matches-carousel-wrap {
  position: relative;
  width: 100%;
  background: #f4f4f4;
  padding: 10px 4px;
  border: 1px solid #e0e0e0;
  border-top: none;
  margin-bottom: 12px;
}



.top-matches-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 4px 6px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.top-matches-track::-webkit-scrollbar {
  height: 5px;
}

.top-matches-track::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.top-matches-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #bbb;
  box-shadow: 0 2px 8px rgba(0,0,0,0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.top-matches-nav-btn:hover {
  background: #fff;
  color: #111;
  transform: translateY(-50%) scale(1.08);
}

.top-matches-nav-btn--prev {
  left: 4px;
}

.top-matches-nav-btn--next {
  right: 4px;
}

/* VS with Lightning Bolt */
.pop-card-vs-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.pop-card-bolt {
  font-size: 14px;
  color: #ffb300;
  line-height: 1;
}

/* TOP LEAGUES RED BAR WITH SPORT TABS */
.top-leagues-bar {
  background: #c62828;
  color: #fff;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 40px;
  border-radius: 3px 3px 0 0;
  overflow: hidden;
  margin-top: 6px;
}

.top-leagues-bar-title {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.top-leagues-bar-title .section-dots {
  color: #fff;
  letter-spacing: 2px;
  font-size: 14px;
}

.top-leagues-bar .league-sport-tabs {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
  background: transparent;
  border: none;
  overflow-x: auto;
}

.top-leagues-bar .league-sport-tab {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 0;
  padding: 0 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  display: flex;
  align-items: center;
}

.top-leagues-bar .league-sport-tab:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}

.top-leagues-bar .league-sport-tab.is-on {
  background: #ffcc00 !important;
  color: #111 !important;
  font-weight: 800 !important;
}

/* Top league card & 4-column grid (matching reference image) */
.top-leagues-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--line, #e0e0e0);
  background: var(--panel, #fff);
  margin-bottom: 16px;
  overflow: hidden;
}

.top-league-card {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 600;
  border: none;
  border-right: 1px solid var(--line, #e0e0e0);
  border-bottom: 1px solid var(--line, #e0e0e0);
  cursor: pointer;
  background: var(--panel, #fff);
  color: var(--text, #222);
  text-align: left;
  transition: background 0.12s, color 0.12s;
  min-height: 44px;
}

.top-league-card:nth-child(4n) {
  border-right: none;
}

.top-league-card:hover {
  background: rgba(0, 0, 0, 0.03);
}

.top-league-card.is-on {
  background: #ffcc00 !important;
  color: #111 !important;
  font-weight: 700 !important;
  border-color: #e5b700 !important;
}

.top-league-card img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  flex-shrink: 0;
}

.top-league-card span {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ============================================================
   HOME MATCH TABLE (exact match for reference image 2)
   ============================================================ */
.home-matches-section {
  margin-top: 14px;
  margin-bottom: 22px;
  width: 100%;
}

.home-section-head {
  display: flex;
  align-items: center;
  margin-bottom: 8px;
}

.home-section-head h2 {
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin: 0;
  color: var(--text, #111);
  display: flex;
  align-items: center;
  gap: 6px;
}

.hmt-wrap {
  width: 100%;
  background: var(--panel, #fff);
  border: 1px solid var(--line, #e0e0e0);
  border-radius: 2px;
  overflow: hidden;
}

.hmt-head {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-bottom: 1px solid var(--line, #e0e0e0);
  padding: 8px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #666;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.hmt-col-id {
  width: 60px;
  flex-shrink: 0;
}

.hmt-col-time {
  width: 50px;
  flex-shrink: 0;
}

.hmt-col-event {
  flex: 1;
  min-width: 0;
  padding-right: 14px;
}

.hmt-col-odds {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  width: 250px;
  flex-shrink: 0;
}

.hmt-col-odds span {
  flex: 1;
  text-align: center;
}

.hmt-col-more {
  width: 36px;
  flex-shrink: 0;
  text-align: center;
}

/* Date banner */
.hmt-date-banner {
  background: #ececec;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #b71c1c;
}

/* Match row */
.hmt-row {
  display: flex;
  align-items: center;
  padding: 7px 14px;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  transition: background 0.12s;
}

.hmt-row:last-child {
  border-bottom: none;
}

.hmt-row:hover {
  background: #fbfbfb;
}

.hmt-id {
  font-size: 12px;
  font-weight: 700;
  color: #222;
}

.hmt-time {
  font-size: 12px;
  font-weight: 800;
  color: #111;
}

.hmt-event-name {
  font-size: 13px;
  font-weight: 600;
  color: #222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
}

.hmt-event-name:hover {
  color: #c62828;
}

.hmt-event-stacked {
  display: none;
}

/* Odds button in table */
.hmt-odd-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 4px;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  font-size: 13px;
  font-weight: 700;
  color: #1a1a1a;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.hmt-odd-btn:hover {
  background: #f2f2f2;
  border-color: #bbb;
}

.hmt-odd-btn.is-selected {
  background: var(--primary-color, #c62828) !important;
  color: #fff !important;
  border-color: var(--primary-color-hover, #b71c1c) !important;
}

/* Plus button to open markets */
.hmt-more-btn {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #d5d5d5;
  border-radius: 3px;
  font-size: 16px;
  font-weight: 700;
  color: #333;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  font-family: inherit;
}

.hmt-more-btn:hover {
  background: #f0f0f0;
  border-color: #999;
  color: #000;
}

/* Show more / See more bar */
.hmt-show-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 9px 16px;
  background: #ececec;
  border: 0;
  border-top: 1px solid #e0e0e0;
  font-size: 12px;
  font-weight: 700;
  color: #555;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.hmt-show-more-btn:hover {
  background: #e0e0e0;
  color: #111;
}

.hmt-show-more-chev {
  font-size: 11px;
}

/* Dark mode theme overrides */




[data-theme="dark"] .hmt-date-banner {
  background: #2a2a2a;
  border-color: #383838;
  color: #ff5252;
}







[data-theme="dark"] .hmt-odd-btn {
  background: #2a2a2a;
  border-color: #444;
  color: #fff;
}

[data-theme="dark"] .hmt-odd-btn:hover {
  background: #383838;
}

[data-theme="dark"] .match-row-id {
  color: #999;
}

[data-theme="dark"] .match-row-kickoff {
  color: #eee;
}

[data-theme="dark"] .match-row-more-btn {
  background: #2a2a2a;
  border-color: #444;
  color: #ddd;
}

[data-theme="dark"] .match-row-more-btn:hover {
  background: #383838;
  color: #fff;
}

[data-theme="dark"] .hmt-show-more-btn {
  background: #282828;
  border-top-color: #383838;
  color: #aaa;
}

[data-theme="dark"] .hmt-show-more-btn:hover {
  background: #333;
  color: #fff;
}

@media (max-width: 900px) {
  .top-leagues-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .top-league-card:nth-child(2n) {
    border-right: none;
  }

  .hmt-col-id,
  .hmt-col-more {
    display: none !important;
  }

  .hmt-event-name {
    display: none !important;
  }

  .hmt-event-stacked {
    display: flex !important;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
  }

  .hmt-team-name {
    font-size: 13px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hmt-team-name:last-child {
    font-weight: 500;
    color: #475569;
  }

  .hmt-head {
    padding: 6px 10px;
    background: #f8fafc;
    font-size: 11px;
  }

  .hmt-row {
    padding: 10px 10px;
    border-bottom: 1px solid #f1f5f9;
  }

  .hmt-col-time {
    width: 48px;
    font-size: 13px;
    font-weight: 800;
    color: #0f172a;
  }

  .hmt-col-event {
    padding-right: 8px;
  }

  .hmt-col-odds {
    width: 174px;
    gap: 0;
    border-left: 1px solid #f1f5f9;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  .hmt-head .hmt-col-odds {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
  }

  .hmt-odd-btn {
    font-size: 13px;
    font-weight: 700;
    height: 38px;
    border-radius: 0;
    border: 1px solid #e2e8f0;
    margin-left: -1px;
    background: #fff;
  }

  .hmt-odd-btn:first-child {
    margin-left: 0;
  }

  .hmt-date-banner {
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 800;
    color: #c62828;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
  }
}

/* Popular match card improvements */
.popular-card {
  min-width: 260px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: 0;
  overflow: hidden;
}

.popular-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--panel2);
  font-size: 11px;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}

.popular-card-teams {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 12px 8px;
}

.popular-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  text-align: center;
  max-width: 90px;
}

.popular-card-team img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.popular-card-vs {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.popular-card-label {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  padding: 4px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}

.popular-card-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  padding: 8px 12px 10px;
}

.popular-card-odd {
  display: flex;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  cursor: pointer;
}

.popular-card-odd-label {
  color: var(--muted);
  font-weight: 600;
  font-size: 11px;
}

.popular-card-odd-value {
  font-weight: 800;
  color: var(--nav-yellow);
  font-size: 12px;
}











/* ===================================================================
   BESTBET EXACT STYLING OVERHAUL
   =================================================================== */

/* Top utility bar */
.top-nav-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  height: 36px;
  background: #111111;
  font-size: 11px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-wrap: nowrap;
  overflow-x: auto;
}



.top-nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.top-link {
  color: #a0a0a0;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  padding: 4px 0;
  cursor: pointer;
  background: none;
  border: 0;
  transition: color 0.2s;
}

.top-link:hover {
  color: #ffffff;
}

.top-link.is-on {
  color: #e41b23;
  font-weight: 700;
}

[data-theme="light"] .top-link {
  color: rgba(255, 255, 255, 0.8);
}

[data-theme="light"] .top-link.is-on {
  color: #ffd54f;
}

.top-nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.top-app-pill {
  background: #e41b23;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
}

.top-util-link {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  background: none;
  border: 0;
  cursor: pointer;
}

.top-util-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  text-decoration: none;
}

.top-lang-dropdown {
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

/* Brand Bar */
.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 16px;
  height: 54px;
  background: #a61218;
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}



.main-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 100%;
}

.main-nav-tab {
  position: relative;
  height: 100%;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 800;
  color: #cccccc;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  white-space: nowrap;
}

.main-nav-tab:hover {
  color: #ffffff;
}

.main-nav-tab.is-on {
  color: #e41b23;
  border-bottom-color: #e41b23;
}

[data-theme="light"] .main-nav-tab.is-on {
  color: #ffd54f;
  border-bottom-color: #ffd54f;
}

.tab-badge-new {
  position: absolute;
  top: 6px;
  right: 6px;
  background: #e41b23;
  color: #ffffff;
  font-size: 8px;
  font-weight: 800;
  padding: 1px 4px;
  border-radius: 3px;
  line-height: 1;
}

.nav-arrow-down {
  color: #888;
  font-size: 12px;
  cursor: pointer;
  margin-left: 2px;
}

.nav-action-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px;
}

.nav-auth-guest {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-pipe {
  color: rgba(255, 255, 255, 0.2);
}

.main-nav-create {
  background: #e41b23 !important;
  color: #fff !important;
  border: 0;
  border-radius: 4px;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: opacity 0.2s;
}

.main-nav-create:hover {
  opacity: 0.9;
}

/* Logged-in Header Styling - BestBet Replica */
.nav-auth-logged {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-auth-logged[hidden] {
  display: none !important;
}

.nav-circle-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.22);
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  cursor: pointer;
  position: relative;
  padding: 0;
  flex-shrink: 0;
  transition: background 0.15s, transform 0.1s;
}

.nav-circle-btn:hover {
  background: rgba(0, 0, 0, 0.38);
  transform: translateY(-1px);
}

.nav-circle-btn:active {
  transform: translateY(0);
}

.nav-circle-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  background: #e50914;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  min-width: 15px;
  height: 15px;
  line-height: 15px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 1.5px solid #a61218;
}

.nav-avatar-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ffc107;
  color: #111111;
  font-weight: 800;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s;
  user-select: none;
}

.nav-avatar-badge:hover {
  transform: scale(1.06);
}

.nav-balance-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  line-height: 1.18;
  cursor: pointer;
  padding: 2px 6px;
  user-select: none;
}

.nav-balance-title {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.nav-balance-amount {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: 3px;
  white-space: nowrap;
}

.nav-balance-amount strong {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.nav-balance-amount em {
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}

.nav-balance-chevron {
  opacity: 0.85;
  margin-left: 2px;
  display: inline-block;
  color: #ffffff;
}

.btn-deposit-header {
  background: #38a169 !important;
  color: #ffffff !important;
  border: 0 !important;
  border-radius: 4px !important;
  padding: 6px 15px !important;
  font-weight: 800 !important;
  font-size: 13px !important;
  letter-spacing: 0.02em !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 32px !important;
  box-sizing: border-box !important;
  transition: background 0.15s, transform 0.1s !important;
  margin-left: 2px !important;
}

.btn-deposit-header:hover {
  background: #2e7d32 !important;
  transform: translateY(-1px);
}

.btn-deposit-header:active {
  transform: translateY(0);
}

.nav-logout-icon-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  margin-left: 4px;
  border-radius: 4px;
  transition: opacity 0.15s, transform 0.15s;
}

.nav-logout-icon-btn:hover {
  opacity: 0.82;
  transform: translateX(2px);
}

/* Sub-nav */
.sub-nav {
  display: flex;
  align-items: center;
  background: #161616;
  padding: 0 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  gap: 0;
  overflow-x: auto;
}

[data-theme="light"] .sub-nav {
  background: #f0f0f0;
}

.sub-nav-item {
  padding: 9px 14px;
  font-size: 11px;
  font-weight: 700;
  color: #888888;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
  white-space: nowrap;
}

.sub-nav-item:hover {
  color: #cccccc;
}

.sub-nav-item.is-on {
  color: #e41b23;
  border-bottom-color: #e41b23;
  background: none;
}



/* Sidebar Sports Menu (Exact match for Reference Image 2) */
.sidebar-menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.15);
  box-sizing: border-box;
}

.sidebar-menu-top .sidebar-menu-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.sidebar-menu-toggle-btn {
  background: transparent;
  border: 0;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  transition: opacity 0.15s;
}

.sidebar-menu-toggle-btn:hover {
  opacity: 0.85;
}

/* Sidebar Search Event Header (Red bar directly below Sports Menu) */
.sidebar-search-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  user-select: none;
  box-sizing: border-box;
}

.sidebar-search-title {
  color: #ffffff !important;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
}

.sidebar-search-arrow {
  font-size: 12px;
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  transition: transform 0.2s ease;
}

.sidebar-search-header.is-collapsed .sidebar-search-arrow {
  transform: rotate(180deg);
}

.sidebar-search {
  padding: 10px 14px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--panel, #fff);
  box-sizing: border-box;
}

.sidebar-search.is-collapsed {
  display: none;
}

.sidebar-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 800;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.sidebar-section-header span {
  color: #ffffff;
}

.sidebar-section-header .sidebar-arrow {
  font-size: 12px;
  color: #ffffff;
}

.sidebar-search-hint {
  font-size: 10px;
  color: var(--muted);
  margin: 0 0 8px;
  line-height: 1.35;
}

.sidebar-search-wrap {
  display: flex;
  align-items: center;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 10px;
}

[data-theme="light"] .sidebar-search-wrap {
  background: #f4f6f8;
  border-color: #d1d5db;
}

[data-theme="dark"] .sidebar-search-wrap {
  background: #141414;
  border-color: rgba(255, 255, 255, 0.1);
}

.sidebar-search-ico {
  color: var(--muted);
  margin-right: 6px;
  display: flex;
  align-items: center;
}

.sidebar-search-wrap input {
  flex: 1;
  background: transparent;
  border: 0;
  padding: 8px 0;
  color: var(--text);
  font-size: 11px;
  outline: none;
}

[data-theme="light"] .sidebar-search-wrap input {
  color: #111827;
}

[data-theme="light"] .sidebar-search-wrap input::placeholder {
  color: #9ca3af;
}

.btn-inplay {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: calc(100% - 28px);
  margin: 8px 14px 12px;
  background: #e41b23;
  color: #fff;
  border: 0;
  border-radius: 4px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.sidebar-sport-row {
  display: flex;
  align-items: center;
  padding: 8px 14px;
  width: 100%;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  cursor: pointer;
  font-size: 12px;
  transition: background 0.15s;
}

.sidebar-sport-row:hover {
  background: var(--panel2);
}

.sidebar-sport-count {
  font-weight: 800;
  color: var(--text);
  min-width: 38px;
  text-align: left;
  font-size: 11px;
}

[data-theme="light"] .sidebar-sport-count {
  color: #111827;
}

.sidebar-sport-dot {
  color: var(--muted);
  margin-right: 8px;
}

.sidebar-sport-name {
  flex: 1;
  text-align: left;
  font-weight: 600;
  font-size: 12px;
  color: var(--text);
}

.sidebar-sport-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  color: #666;
  margin-left: auto;
  flex-shrink: 0;
}

.sidebar-sport-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.sidebar-sport-row:hover .sidebar-sport-icon,
.sidebar-sport-row.is-on .sidebar-sport-icon {
  color: var(--brand-red, #c62828);
}

.sidebar-sport-row.is-on {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] .sidebar-sport-row.is-on {
  background: rgba(255, 255, 255, 0.08);
}

/* ============================================================
   COLLAPSIBLE SIDEBAR / SLIDE BAR (TOGGLE ON / OFF)
   ============================================================ */
body.sidebar-collapsed {
  --sidebar-w: 46px;
}
body.sidebar-collapsed .web-body {
  grid-template-columns: 46px 1fr var(--betslip-w) !important;
}

body.sidebar-collapsed .sidebar {
  width: 46px !important;
  min-width: 46px !important;
  max-width: 46px !important;
  overflow-x: hidden !important;
  padding: 0 !important;
}

body.sidebar-collapsed .sidebar-menu-top {
  padding: 10px 0;
  justify-content: center;
  cursor: pointer;
}

body.sidebar-collapsed .sidebar-menu-title {
  display: none !important;
}

body.sidebar-collapsed .icon-collapse {
  display: none !important;
}

body.sidebar-collapsed .icon-expand {
  display: block !important;
}

body.sidebar-collapsed .sidebar-search-header,
body.sidebar-collapsed .sidebar-search,
body.sidebar-collapsed #sidebar-menu-filters,
body.sidebar-collapsed .sidebar-block--compact,
body.sidebar-collapsed .sidebar-title {
  display: none !important;
}

body.sidebar-collapsed .sidebar-block {
  padding: 0 !important;
}

body.sidebar-collapsed .sidebar-sport-row {
  padding: 10px 0;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

body.sidebar-collapsed .sidebar-sport-count,
body.sidebar-collapsed .sidebar-sport-dot,
body.sidebar-collapsed .sidebar-sport-name {
  display: none !important;
}

body.sidebar-collapsed .sidebar-sport-icon {
  margin: 0 auto !important;
}

body.sidebar-collapsed .sidebar-sport-icon svg {
  width: 20px;
  height: 20px;
}

/* Popular Match Cards */
.pop-card {
  min-width: 270px;
  max-width: 290px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.2s, border-color 0.2s;
}

[data-theme="light"] .pop-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}



.pop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  font-size: 10px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .pop-card-header {
  background: #f8fafc;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}



.pop-card-teams-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 10px;
  cursor: pointer;
}

.pop-card-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  width: 95px;
  text-align: center;
}

.pop-card-team img {
  width: 38px;
  height: 38px;
  object-fit: contain;
}

.pop-card-name {
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
}

[data-theme="light"] .pop-card-name {
  color: #0f172a;
}



.pop-card-vs {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.pop-card-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 6px;
}

.pop-divider-line {
  flex: 1;
  height: 1px;
  background: var(--line);
}

[data-theme="light"] .pop-divider-line {
  background: #e2e8f0;
}



.pop-divider-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}

.pop-odds {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  padding: 4px 12px 12px;
}

.pop-odd-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 4px;
  padding: 6px 8px !important;
  cursor: pointer;
  transition: all 0.15s;
}

[data-theme="light"] .pop-odd-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
}

[data-theme="light"] .pop-odd-btn:hover {
  border-color: var(--brand-red, #c62828) !important;
  background: #e2e8f0 !important;
}

[data-theme="light"] .pop-odd-btn.is-selected {
  background: var(--brand-red, #c62828) !important;
  border-color: var(--brand-red-hover, #b71c1c) !important;
}

[data-theme="light"] .pop-odd-btn .odd-btn-label {
  font-size: 11px;
  color: #475569;
  font-weight: 600;
}

[data-theme="light"] .pop-odd-btn.is-selected .odd-btn-label {
  color: #ffffff;
}

[data-theme="light"] .pop-odd-val {
  font-size: 12px;
  font-weight: 800;
  color: #b45309 !important;
}

[data-theme="light"] .pop-odd-btn.is-selected .pop-odd-val {
  color: #ffffff !important;
}

[data-theme="dark"] .pop-odd-btn {
  background: #282828 !important;
  border: 1px solid #383838 !important;
}

[data-theme="dark"] .pop-odd-btn:hover {
  border-color: #e41b23 !important;
}

[data-theme="dark"] .pop-odd-btn.is-selected {
  background: #e41b23 !important;
  border-color: #e41b23 !important;
}

[data-theme="dark"] .pop-odd-btn .odd-btn-label {
  font-size: 11px;
  color: #aaaaaa;
  font-weight: 600;
}

[data-theme="dark"] .pop-odd-btn.is-selected .odd-btn-label {
  color: #ffffff;
}

[data-theme="dark"] .pop-odd-val {
  font-size: 12px;
  font-weight: 800;
  color: #ffd700 !important;
}

[data-theme="dark"] .pop-odd-btn.is-selected .pop-odd-val {
  color: #ffffff !important;
}

/* Betslip Panel */
.betslip-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: #c62828;
  border-bottom: none;
}

.betslip-title {
  font-size: 14px;
  font-weight: 800;
  color: #fff;
}

[data-theme="light"] .betslip-title {
  color: #fff;
}

.betslip-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  background: #fff;
  color: #c62828;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.betslip-empty-notice {
  padding: 16px 14px;
  font-size: 11px;
  color: var(--muted);
  line-height: 1.45;
  border-bottom: 1px solid var(--line);
}

[data-theme="light"] .betslip-empty-notice {
  color: #64748b;
}

/* Betslip Bet Placed Success Screen */
.betslip-panel-success {
  padding: 32px 16px 24px;
  background: #fdfdfd;
  border-bottom: 1px solid #e0e0e0;
  text-align: center;
}



.betslip-success-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.betslip-success-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #28a745;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  box-shadow: 0 3px 10px rgba(40, 167, 69, 0.35);
}

.betslip-success-title {
  font-size: 17px;
  font-weight: 700;
  color: #1f1f1f;
  margin: 0 0 6px;
  line-height: 1.3;
}



.betslip-success-subtitle {
  font-size: 15px;
  font-weight: 600;
  color: #333333;
  margin: 0 0 24px;
}



.betslip-success-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 10px;
}

.btn-repeat-bet,
.btn-print-ticket {
  flex: 1;
  height: 42px;
  background: #ffffff;
  border: 1.5px solid #222222;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 800;
  color: #111111;
  cursor: pointer;
  letter-spacing: 0.02em;
  font-family: inherit;
  transition: background 0.15s, border-color 0.15s;
}

.btn-repeat-bet:hover,
.btn-print-ticket:hover {
  background: #f0f0f0;
  border-color: #000000;
}

.btn-continue-bet {
  width: 100%;
  height: 44px;
  background: #c62828;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s;
}

.btn-continue-bet:hover {
  background: #b71c1c;
  transform: translateY(-1px);
}

.btn-continue-bet:active {
  transform: translateY(0);
}

.betslip-tool {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
}

.betslip-tool-head {
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 4px;
}

[data-theme="light"] .betslip-tool-head {
  color: #0f172a;
}



.betslip-tool p {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 8px;
}

.check-it-link {
  color: #e41b23;
  text-decoration: underline;
}

.betslip-tool-row {
  display: flex;
}

.betslip-tool-row input {
  flex: 1;
  background: var(--input-bg);
  border: 1px solid var(--line);
  border-right: 0;
  padding: 7px 10px;
  font-size: 11px;
  color: var(--text);
  outline: none;
}

[data-theme="light"] .betslip-tool-row input {
  background: #f8fafc;
  color: #0f172a;
  border-color: #cbd5e1;
}

[data-theme="light"] .betslip-tool-row input::placeholder {
  color: #94a3b8;
}





.btn-load-red {
  background: #e41b23;
  color: #fff;
  border: 0;
  padding: 7px 16px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
}

.btn-load-red:hover {
  opacity: 0.9;
}

/* Live In-Play Match Indicators */
.live-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1px 7px;
  background: #c62828;
  color: #ffffff;
  font-weight: 800;
  font-size: 11.5px;
  border-radius: 3px;
  margin: 0 6px;
  letter-spacing: 0.5px;
}

.match-live-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #c62828;
  font-size: 11px;
  font-weight: 800;
  margin-right: 8px;
}

.live-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #c62828;
  box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.7);
  animation: livePulse 1.4s infinite;
}

@keyframes livePulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(198, 40, 40, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(198, 40, 40, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}



/* ====== Load booked bet red footer bar ====== */
.betslip-load-booked-bar {
  display: block;
  width: 100%;
  padding: 12px 14px;
  background: #c62828;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  border: 0;
  cursor: pointer;
  letter-spacing: 0.02em;
}

.betslip-load-booked-bar:hover {
  background: #b71c1c;
}

/* ====== Betslip panel light mode overrides ====== */
[data-theme="light"] .betslip-panel {
  background: #f5f5f5;
}

[data-theme="light"] .slip-item {
  background: #fff;
  border-color: #ddd;
}

[data-theme="light"] .potential-winning-box {
  background: #e0e0e0;
}

[data-theme="light"] .betslip-auth-notice {
  background: #fff;
  border-color: #ddd;
  color: #333;
}

[data-theme="light"] .btn-betslip-mode {
  background: #f5c518;
  color: #333;
}

/* ====================================================
   THERMAL RECEIPT PRINT STYLING
   ==================================================== */
.print-receipt-container {
  position: fixed;
  left: -99999px;
  top: -99999px;
  width: 0;
  height: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  z-index: -1;
}

/* Receipt Paper */
.receipt-paper {
  position: relative;
  width: 360px;
  background: #ffffff;
  color: #000000;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Ethiopic", Arial, sans-serif;
  font-size: 11px;
  line-height: 1.35;
  padding: 14px 12px;
  box-sizing: border-box;
  overflow: hidden;
}

/* Watermark Overlay for non-original / reprinted tickets */
.receipt-watermark-overlay {
  position: absolute;
  top: -60px;
  left: -80px;
  right: -80px;
  bottom: -60px;
  pointer-events: none;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  opacity: 0.28;
  overflow: hidden;
}

.receipt-watermark-row {
  display: flex;
  justify-content: space-around;
  width: 170%;
  margin-left: -35%;
  transform: rotate(-32deg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Ethiopic", Arial, sans-serif;
  font-size: 32px;
  font-weight: 900;
  color: #000000;
  letter-spacing: 0.12em;
  white-space: nowrap;
  line-height: 2.3;
  user-select: none;
}

.receipt-box,
.receipt-events-list,
.receipt-barcode-wrap,
.receipt-footer-terms,
.receipt-footer-age,
.receipt-hotline-bar {
  position: relative;
  z-index: 2;
}

.receipt-box {
  border: 1.5px solid #000000;
  padding: 6px 8px;
  margin-bottom: 6px;
  box-sizing: border-box;
}

/* Header Brand Box */
.receipt-brand-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.receipt-brand-left {
  display: flex;
  align-items: center;
  flex: 1;
}

.receipt-brand-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.receipt-brand-text {
  font-size: 15px;
  font-weight: 900;
  color: #000000;
  letter-spacing: -0.02em;
  font-family: inherit;
  white-space: nowrap;
}

.receipt-logo {
  height: 20px;
  width: auto;
  object-fit: contain;
}

.receipt-brand-name {
  font-size: 15px;
  font-weight: 900;
  color: #000000;
  letter-spacing: -0.02em;
}

.receipt-brand-scan {
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #000000;
}

.receipt-status-pill {
  font-size: 10.5px;
  font-weight: 800;
  color: #333333;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.receipt-qr-wrap {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.receipt-qr-wrap svg {
  width: 100% !important;
  height: 100% !important;
  max-width: 52px !important;
  max-height: 52px !important;
  display: block;
}

/* Metadata Box */
.receipt-meta-box {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 600;
}

.receipt-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.receipt-meta-key {
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #000000;
}

.receipt-meta-val {
  font-weight: 700;
  color: #000000;
  word-break: break-all;
}

/* Age Warning Box */
.receipt-age-box {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 8px;
}

.receipt-age-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  flex-shrink: 0;
}

.receipt-age-circle--small {
  width: 28px;
  height: 28px;
  font-size: 11px;
  border-width: 1.5px;
}

.receipt-age-text {
  flex: 1;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.25;
}

.receipt-age-line {
  height: 1px;
  background: #000000;
  margin: 3px 14px;
}

/* Events List */
.receipt-events-list {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.receipt-event-item {
  padding: 4px 6px;
  border-bottom: 1.5px solid #000000;
  box-sizing: border-box;
}

.receipt-event-item.is-lost {
  background-color: #ffdcdb !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.receipt-event-item.is-won {
  background-color: #d7f0db !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

/* Receipt Outcome Stamp Box */
.receipt-outcome-box {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  padding: 6px 10px;
  margin-bottom: 6px;
  border: 2px solid #000000;
  box-sizing: border-box;
  text-transform: uppercase;
}

.receipt-outcome-box.is-lost {
  border-color: #c62828 !important;
  color: #c62828 !important;
  background-color: #ffdcdb !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.receipt-outcome-box.is-won {
  border-color: #2e7d32 !important;
  color: #2e7d32 !important;
  background-color: #d7f0db !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.receipt-status-badge {
  font-weight: 900 !important;
  padding: 1px 6px;
  border-radius: 2px;
  font-size: 10.5px;
}

.receipt-status-badge.is-lost {
  color: #c62828 !important;
  background-color: #ffdcdb !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.receipt-status-badge.is-won {
  color: #2e7d32 !important;
  background-color: #d7f0db !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.receipt-status-pill.is-lost {
  color: #c62828 !important;
  border: 1.5px solid #c62828 !important;
  padding: 1px 6px;
  border-radius: 2px;
  background-color: #ffdcdb !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.receipt-status-pill.is-won {
  color: #2e7d32 !important;
  border: 1.5px solid #2e7d32 !important;
  padding: 1px 6px;
  border-radius: 2px;
  background-color: #d7f0db !important;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.rec-match-title {
  font-size: 11.5px;
  font-weight: 800;
  color: #000000;
  margin-bottom: 2px;
  line-height: 1.3;
}

.rec-match-scores {
  color: #d32f2f !important;
  font-weight: 800;
  font-size: 11px;
  margin-left: 6px;
  white-space: nowrap;
  letter-spacing: 0.02em;
  -webkit-print-color-adjust: exact !important;
  print-color-adjust: exact !important;
}

.rec-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 10px;
  color: #111111;
  font-weight: 400;
  margin-bottom: 2px;
}

.rec-pick-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #000000;
}

.rec-market {
  flex: 1;
  font-weight: 800;
  color: #000000;
}

.rec-pick {
  font-weight: 800;
  padding: 0 10px;
  color: #000000;
}

.rec-odd {
  font-weight: 800;
  color: #000000;
  white-space: nowrap;
}

/* Summary Row Box */
.receipt-events-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

/* Financials Box */
.receipt-financials-box {
  border-width: 2px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.rec-fin-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  font-weight: 800;
}

.rec-fin-divider {
  height: 1.5px;
  background: #000000;
  margin: 4px 0 2px;
}

.rec-fin-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 2px;
}

.rec-fin-total-label {
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.rec-fin-total-amount {
  font-size: 17px;
  font-weight: 900;
  color: #000000;
}

/* Barcode Section */
.receipt-barcode-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 6px;
}

.receipt-barcode-svg {
  width: 88%;
  height: 48px;
  display: block;
}

.receipt-cashier-code {
  font-size: 10.5px;
  font-weight: 800;
  color: #000000;
  margin-top: 4px;
  text-align: center;
}

/* Footer Terms & Hotline */
.receipt-footer-terms {
  font-size: 9px;
  font-weight: 700;
  text-align: center;
  line-height: 1.35;
  color: #111111;
  padding: 6px 4px;
}

.receipt-footer-age {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 4px 0;
}

.receipt-footer-amharic {
  font-size: 9.5px;
  font-weight: 700;
  text-align: center;
  line-height: 1.25;
}

.receipt-hotline-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 6px 0 2px;
  font-size: 14px;
  font-weight: 900;
}

.receipt-hotline-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.receipt-hotline-number {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.receipt-hotline-amharic {
  font-size: 12px;
  font-weight: 700;
}

/* ====================================================
   SHARE ON SOCIALS / BOOKED BET MODAL
   ==================================================== */
.share-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 2500;
}
.share-modal-backdrop[hidden] {
  display: none !important;
}

.share-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2501;
  width: min(840px, 96vw);
  max-height: 90vh;
  background: #ffffff;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  font-family: inherit;
}
.share-modal[hidden] {
  display: none !important;
}

.share-modal-header {
  background: var(--brand-red, #c62828);
  color: #ffffff;
  padding: 12px 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}

.share-modal-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.share-modal-close {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 20px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: 0.85;
  transition: opacity 0.15s;
}
.share-modal-close:hover {
  opacity: 1;
}

.share-modal-body {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.share-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px 14px;
  gap: 20px;
  flex-wrap: wrap;
}

.share-code-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.share-booked-subtitle {
  font-style: italic;
  font-size: 14.5px;
  color: #444444;
  font-weight: 500;
}

.share-code-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-code-val {
  font-size: 26px;
  font-weight: 800;
  color: #111111;
  letter-spacing: 1.5px;
}

.share-copy-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: #333333;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, color 0.15s;
}
.share-copy-btn:hover {
  color: #c62828;
  transform: scale(1.1);
}

.share-stats-block {
  display: flex;
  align-items: center;
  gap: 32px;
}

.share-stat-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.share-stat-label {
  font-size: 11px;
  font-weight: 800;
  color: #c62828;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.share-stat-value {
  font-size: 14px;
  font-weight: 600;
  color: #444444;
}

.share-table-wrap {
  padding: 10px 24px 16px;
  overflow-x: auto;
}

.share-events-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.share-events-table thead tr {
  background: var(--brand-red, #c62828);
  color: #ffffff;
}

.share-events-table th {
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: 1px solid var(--brand-red-hover, #b71c1c);
  white-space: nowrap;
}

.share-events-table td {
  padding: 8px 12px;
  border: 1px solid #e0e0e0;
  color: #333333;
  text-align: center;
  font-size: 12px;
}

.share-events-table td.event-cell {
  text-align: left;
  font-weight: 500;
}

.share-events-table td.market-cell {
  text-align: center;
  font-weight: 600;
}

.share-events-table td.odd-cell {
  text-align: center;
  font-weight: 700;
}

.share-events-table tbody tr:hover td {
  background: #fbfbfb;
}

.share-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 24px 20px;
  border-top: 1px solid #f0f0f0;
  gap: 12px;
  flex-wrap: wrap;
}

.share-left-btns {
  display: flex;
  gap: 8px;
  align-items: center;
}

.btn-share-repeat,
.btn-share-print {
  background: #e0e0e0;
  color: #222222;
  font-weight: 700;
  font-size: 12px;
  padding: 8px 16px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-share-repeat:hover,
.btn-share-print:hover {
  background: #d4d4d4;
}

.share-center-socials {
  display: flex;
  align-items: center;
  gap: 8px;
}

.share-social-circle {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
}
.share-social-circle:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.share-social-circle.is-whatsapp {
  background: #25d366;
}
.share-social-circle.is-facebook {
  background: #1877f2;
}
.share-social-circle.is-x {
  background: #000000;
}
.share-social-circle.is-telegram {
  background: #229ed9;
}

.share-copy-link-btn {
  background: #ffffff;
  border: 1.5px solid #cccccc;
  border-radius: 18px;
  padding: 5px 12px;
  font-size: 12px;
  font-weight: 600;
  color: #333333;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  transition: border-color 0.15s, background 0.15s;
}
.share-copy-link-btn:hover {
  border-color: #888888;
  background: #f9f9f9;
}

.btn-share-continue {
  background: var(--brand-red, #c62828);
  color: #ffffff;
  font-weight: 800;
  font-size: 13px;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: inherit;
  transition: background 0.15s;
}

.btn-share-continue:hover {
  background: var(--brand-red-hover, #b71c1c);
}

/* Print Media Styles */
@media print {
  @page {
    size: auto;
    margin: 5mm;
  }
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  body * {
    visibility: hidden !important;
  }
  .print-receipt-container,
  .print-receipt-container * {
    visibility: visible !important;
  }
  .print-receipt-container {
    position: absolute !important;
    left: 0 !important;
    top: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
    opacity: 1 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: flex-start !important;
    background: transparent !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  .receipt-paper {
    display: block !important;
    position: relative !important;
    margin: 0 auto !important;
    width: 360px !important;
    max-width: 360px !important;
    box-shadow: none !important;
    border: none !important;
    padding: 6px !important;
    color: #000000 !important;
    background: #ffffff !important;
    overflow: hidden !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  /* Print only clean text, borders, barcode, and QR code - no watermarks, no background shading */
  .receipt-watermark-overlay,
  .receipt-watermark-overlay * {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
  }
  .receipt-paper * {
    background: none !important;
    background-color: transparent !important;
    color: #000000 !important;
    box-shadow: none !important;
    text-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .receipt-box,
  .receipt-meta-box,
  .receipt-age-box,
  .receipt-events-summary,
  .receipt-financials-box {
    border-color: #000000 !important;
  }
  .receipt-event-item {
    border-color: #000000 !important;
  }
  .rec-match-scores {
    color: #000000 !important;
  }
  .receipt-barcode-svg rect {
    fill: #000000 !important;
  }
}

/* ===================================================
   ODDS RISE / DROP FLASH INDICATORS
   =================================================== */

@keyframes oddArrowFade {
  0% {
    opacity: 1;
    transform: scale(1);
  }
  75% {
    opacity: 1;
    transform: scale(1);
  }
  100% {
    opacity: 0;
    transform: scale(0.4);
  }
}

@keyframes oddTextGreen {
  0% {
    color: var(--odd-up-color) !important;
  }
  75% {
    color: var(--odd-up-color) !important;
  }
  100% {
    color: inherit;
  }
}

@keyframes oddTextRed {
  0% {
    color: var(--odd-down-color) !important;
  }
  75% {
    color: var(--odd-down-color) !important;
  }
  100% {
    color: inherit;
  }
}

@keyframes oddGlowGreen {
  0% {
    box-shadow: inset 0 0 0 1px var(--odd-up-color), 0 0 5px rgba(76, 175, 80, 0.4);
  }
  75% {
    box-shadow: inset 0 0 0 1px var(--odd-up-color), 0 0 3px rgba(76, 175, 80, 0.25);
  }
  100% {
    box-shadow: none;
  }
}

@keyframes oddGlowRed {
  0% {
    box-shadow: inset 0 0 0 1px var(--odd-down-color), 0 0 5px rgba(239, 83, 80, 0.4);
  }
  75% {
    box-shadow: inset 0 0 0 1px var(--odd-down-color), 0 0 3px rgba(239, 83, 80, 0.25);
  }
  100% {
    box-shadow: none;
  }
}

/* Rising odd (Green): small triangle in bottom-right corner pointing up */
.odd-btn.odd-up::after,
.md-odd.odd-up::after {
  content: "";
  position: absolute;
  bottom: 2px;
  right: 3px;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-bottom: 5.5px solid var(--odd-up-color);
  animation: oddArrowFade 3s ease-out forwards;
  pointer-events: none;
  z-index: 5;
}

/* Dropping odd (Red): small triangle in top-right corner pointing down */
.odd-btn.odd-down::after,
.md-odd.odd-down::after {
  content: "";
  position: absolute;
  top: 3px;
  right: 3px;
  width: 0;
  height: 0;
  border-left: 3.5px solid transparent;
  border-right: 3.5px solid transparent;
  border-top: 5.5px solid var(--odd-down-color);
  animation: oddArrowFade 3s ease-out forwards;
  pointer-events: none;
  z-index: 5;
}

/* Subtle border & text animation */
.odd-btn.odd-up,
.md-odd.odd-up {
  animation: oddGlowGreen 3s ease-out forwards;
}

.odd-btn.odd-down,
.md-odd.odd-down {
  animation: oddGlowRed 3s ease-out forwards;
}

.odd-btn.odd-up .odd-btn-value,
.md-odd.odd-up .md-odd-value {
  animation: oddTextGreen 3s ease-out forwards;
}

.odd-btn.odd-down .odd-btn-value,
.md-odd.odd-down .md-odd-value {
  animation: oddTextRed 3s ease-out forwards;
}

/* ====================================================
   CASHOUT CONFIRMATION MODAL
   ==================================================== */
.cashout-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2200;
  background: rgba(0, 0, 0, 0.55);
}
.cashout-modal-backdrop[hidden] {
  display: none !important;
}

.cashout-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2201;
  width: min(390px, 92vw);
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
}
.cashout-modal[hidden] {
  display: none !important;
}

.cashout-modal-header {
  background: var(--brand-red, #c62828);
  color: #ffffff;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.cashout-modal-title {
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.02em;
}

.cashout-modal-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.9;
  transition: opacity 0.15s;
}
.cashout-modal-close:hover {
  opacity: 1;
}

.cashout-modal-body {
  padding: 16px 20px 20px;
  background: #ffffff;
}

.cashout-modal-ticket-id {
  font-size: 12.5px;
  color: #333333;
  font-weight: 600;
  margin-bottom: 14px;
  text-align: left;
}

.cashout-modal-center {
  text-align: center;
  margin-bottom: 20px;
}

.cashout-modal-label {
  font-size: 13.5px;
  color: #444444;
  font-weight: 700;
  margin-bottom: 6px;
}

.cashout-modal-amount {
  font-size: 18px;
  font-weight: 800;
  color: #111111;
}

.cashout-modal-btn-confirm {
  display: block;
  width: 100%;
  padding: 11px 16px;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  border: 0;
  border-radius: 3px;
  font-size: 14.5px;
  font-weight: 800;
  text-align: center;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.15s;
  font-family: inherit;
}
.cashout-modal-btn-confirm:hover {
  background: var(--brand-red-hover, #b71c1c);
}

.cashout-modal-btn-cancel {
  display: block;
  width: 100%;
  padding: 10px 16px;
  background: #f2f2f2;
  color: #333333;
  border: 0;
  border-radius: 3px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.cashout-modal-btn-cancel:hover {
  background: #e5e5e5;
}

/* Dark theme support */
[data-theme="dark"] .cashout-modal {
  background: #1e1e24;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.7);
}
[data-theme="dark"] .cashout-modal-body {
  background: #1e1e24;
}
[data-theme="dark"] .cashout-modal-ticket-id {
  color: #bbb;
}
[data-theme="dark"] .cashout-modal-label {
  color: #aaa;
}
[data-theme="dark"] .cashout-modal-amount {
  color: #fff;
}
[data-theme="dark"] .cashout-modal-btn-cancel {
  background: #2a2a34;
  color: #eee;
}
[data-theme="dark"] .cashout-modal-btn-cancel:hover {
  background: #353542;
}

/* ====================================================
   ADMIN PORTAL & DASHBOARD STYLES
   ==================================================== */

/* When in Admin Mode */
body.is-admin-mode {
  background: #eef2f5 !important;
  color: #2e383d !important;
}

body.is-admin-mode .site-header,
body.is-admin-mode .site-subnav,
body.is-admin-mode .mobile-slip-fab,
body.is-admin-mode .mobile-nav,
body.is-admin-mode .bottom-betslip-bar,
body.is-admin-mode #mobile-sports-strip,
body.is-admin-mode .betslip-quick-deposit,
body.is-admin-mode #betslip-quick-deposit {
  display: none !important;
}

body.is-admin-mode:not(.is-admin-bet-mode) .sidebar,
body.is-admin-mode:not(.is-admin-bet-mode) #sidebar,
body.is-admin-mode:not(.is-admin-bet-mode) .betslip-panel,
body.is-admin-mode:not(.is-admin-bet-mode) #betslip-panel,
body.is-admin-mode:not(.is-admin-bet-mode) .betslip,
body.is-admin-mode:not(.is-admin-bet-mode) #betslip,
body.is-admin-mode:not(.is-admin-bet-mode) .sub-nav,
body.is-admin-mode:not(.is-admin-bet-mode) #sub-nav {
  display: none !important;
}

body.is-admin-mode .admin-header {
  display: block !important;
}

body.is-admin-mode .admin-footer {
  display: block !important;
}

body.is-admin-mode:not(.is-admin-bet-mode) .web-body,
body.is-admin-mode:not(.is-admin-bet-mode) .main-layout {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: 1fr !important;
  background: #eef2f5 !important;
}

body.is-admin-mode:not(.is-admin-bet-mode) .content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 24px 32px 60px !important;
  background: transparent !important;
}

body.is-admin-mode.is-admin-bet-mode .web-body {
  display: grid !important;
  grid-template-columns: 240px minmax(0, 1fr) 300px !important;
  background: var(--bg) !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

body.is-admin-mode.is-admin-bet-mode #sidebar,
body.is-admin-mode.is-admin-bet-mode .sidebar {
  display: block !important;
  visibility: visible !important;
  width: 240px !important;
  min-width: 240px !important;
  max-width: 240px !important;
  background: #ffffff !important;
}

body.is-admin-mode.is-admin-bet-mode .content {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
  background: #f0f0f0 !important;
}

body.is-admin-mode.is-admin-bet-mode #betslip-panel,
body.is-admin-mode.is-admin-bet-mode .betslip-panel {
  display: flex !important;
  visibility: visible !important;
  width: 300px !important;
  min-width: 300px !important;
  max-width: 300px !important;
  flex-direction: column !important;
  background: #ffffff !important;
}

body.is-admin-mode.is-admin-bet-mode #view-sports,
body.is-admin-mode.is-admin-bet-mode #sports-home-wrap,
body.is-admin-mode.is-admin-bet-mode #view-my-bets,
body.is-admin-mode.is-admin-bet-mode #view-results,
body.is-admin-mode.is-admin-bet-mode #view-leagues,
body.is-admin-mode.is-admin-bet-mode #view-match {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.is-admin-mode.is-admin-bet-mode .sub-nav,
body.is-admin-mode.is-admin-bet-mode #sub-nav {
  display: flex !important;
  background: #181b1e !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  padding: 0 16px !important;
  gap: 0 !important;
  align-items: center !important;
  height: 42px !important;
  min-height: 42px !important;
  box-sizing: border-box !important;
  width: 100% !important;
  z-index: 10 !important;
  overflow-x: auto !important;
}

body.is-admin-mode.is-admin-bet-mode .sub-nav-item {
  color: #9aa0a6 !important;
  font-size: 11.5px !important;
  font-weight: 700 !important;
  padding: 11px 15px !important;
  border: none !important;
  border-bottom: 2px solid transparent !important;
  background: transparent !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-transform: none !important;
  transition: color 0.15s ease, border-color 0.15s ease !important;
}

body.is-admin-mode.is-admin-bet-mode .sub-nav-item:hover {
  color: #ffffff !important;
}

body.is-admin-mode.is-admin-bet-mode .sub-nav-item.is-on {
  color: #ffffff !important;
  border-bottom: 2px solid #e41b23 !important;
}

/* ADMIN TOP BAR */
.admin-header {
  width: 100%;
  background: #2e373d;
  color: #fff;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  z-index: 100;
  position: relative;
}

.admin-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 24px;
  background: #2e373d;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.admin-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  cursor: pointer;
}

.admin-brand-logo {
  height: 34px;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.admin-brand-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-brand-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: 0.05em;
  color: #ffffff;
  font-family: var(--display), 'Bebas Neue', sans-serif;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.admin-top-center {
  display: flex;
  align-items: center;
  gap: 20px;
}

.admin-top-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.admin-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: #38bdf8;
  letter-spacing: 0.02em;
}

.admin-stat-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.admin-top-stat-divider {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.18);
}

.admin-top-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-lang-pill {
  background: #ffffff;
  border-radius: 4px;
  padding: 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.admin-lang-pill svg {
  display: block;
  border-radius: 2px;
}

.admin-user-btn {
  background: #232b2f;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.admin-user-btn:hover {
  background: #1a2024;
}

.admin-logout-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #232b2f;
  color: #ff8a80;
  border: 1px solid rgba(255, 138, 128, 0.35);
  border-radius: 4px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  font-family: inherit;
}

.admin-logout-btn:hover {
  background: #c62828;
  color: #ffffff;
  border-color: #c62828;
}

.admin-logout-btn svg {
  flex-shrink: 0;
}

/* ADMIN SECONDARY NAV BAR */
.admin-nav-bar {
  display: flex;
  align-items: center;
  background: #22292d;
  padding: 0 16px;
  overflow: visible;
  position: relative;
  z-index: 50;
}
.admin-nav-bar::-webkit-scrollbar {
  display: none;
}

.admin-nav-dropdown-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 150px;
  background: #263238;
  border: 1px solid #37474f;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  padding: 4px 0;
  z-index: 1050;
}

.admin-nav-dropdown-menu[hidden] {
  display: none !important;
}

.admin-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: transparent;
  border: 0;
  color: #cfd8dc;
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  width: 100%;
  transition: background 0.15s, color 0.15s;
  font-family: inherit;
}

.admin-dropdown-item:hover {
  background: #37474f;
  color: #ffffff;
}

.admin-dropdown-item.is-active {
  background: #1e88e5;
  color: #ffffff;
}

/* Report Dropdown Menu matching media_1788806155653.png */
.admin-report-dropdown-menu {
  min-width: 230px;
  background: #161e27;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-top: 0;
  border-radius: 0 0 6px 6px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55);
  padding: 6px 0;
}

.admin-report-dropdown-menu .admin-dropdown-item {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 500;
  color: #f1f5f9;
  letter-spacing: 0.01em;
  transition: background 0.12s, color 0.12s;
}

.admin-report-dropdown-menu .admin-dropdown-item:hover {
  background: #222d3a;
  color: #ffffff;
}

.admin-report-dropdown-menu .admin-dropdown-item.is-active {
  background: #222d3a;
  color: #38bdf8;
  font-weight: 600;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: transparent;
  color: #b0bec5;
  border: 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
}

.admin-nav-item:hover {
  color: #ffffff;
}

.admin-nav-item.is-active {
  background: #ffffff;
  color: #22292d;
  border-radius: 4px 4px 0 0;
  font-weight: 700;
}

.admin-nav-item.is-active .admin-tab-icon {
  stroke: #22292d;
}

.admin-tab-icon {
  flex-shrink: 0;
}

.admin-nav-item--messages {
  margin-left: auto;
}

.admin-messages-badge {
  background: #ffffff;
  color: #22292d;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 800;
  padding: 1px 7px;
  display: inline-block;
  margin-left: 2px;
}

/* ADMIN DASHBOARD CONTAINER */
.admin-dashboard-view {
  width: 100%;
}

.admin-dashboard-container {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border: 1px solid #e3e8ec;
}

.admin-dashboard-heading {
  font-size: 26px;
  font-weight: 800;
  color: #2e383d;
  margin: 0 0 22px 0;
  letter-spacing: -0.01em;
}

/* KPI CARDS ROW */
.admin-kpi-row {
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  width: 100%;
}

.admin-kpi-card {
  flex: 1;
  max-width: 340px;
  height: 84px;
  border-radius: 6px;
  padding: 14px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

.admin-kpi-card--white {
  background: #ffffff;
  border: 1px solid #e5eaee;
  color: #4a555a;
}

.admin-kpi-card--white .admin-kpi-value {
  color: #1e262a;
}

.admin-kpi-card--dark {
  background: #333e43;
  border: 1px solid #283236;
  color: #ffffff;
}

.admin-kpi-card--dark .admin-kpi-value {
  color: #ffffff;
}

.admin-kpi-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
}

.admin-kpi-icon {
  display: flex;
  align-items: center;
}

.admin-kpi-value {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  line-height: 1;
}

.admin-kpi-connector {
  width: 32px;
  height: 6px;
  background: #4b565b;
  flex-shrink: 0;
}

/* PROMOTER CODE & AFFILIATION LINK */
.admin-promo-row {
  display: flex;
  gap: 20px;
  margin-bottom: 24px;
}

.admin-promo-card {
  border: 1px dashed #cfd8dc;
  border-radius: 6px;
  background: #fafbfc;
  padding: 14px 18px;
}

.admin-promo-card--code {
  width: 320px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-promo-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #455a64;
  font-size: 13.5px;
  font-weight: 600;
  margin-bottom: 10px;
}

.admin-promo-code-box {
  background: #ffffff;
  border: 1px solid #dbe2e6;
  border-radius: 4px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13.5px;
  font-weight: 700;
  color: #1e262a;
  letter-spacing: 0.02em;
}

.admin-promo-card--link {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.admin-promo-link-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.admin-promo-link-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #2e383d;
}

.admin-btn-qr {
  background: #2e383d;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s;
  font-family: inherit;
}
.admin-btn-qr:hover {
  background: #1f272a;
}

.admin-promo-input-wrap {
  display: flex;
  height: 40px;
}

.admin-promo-input {
  flex: 1;
  background: #ffffff;
  border: 1px solid #d0d7de;
  border-right: 0;
  border-radius: 4px 0 0 4px;
  padding: 0 12px;
  font-size: 13px;
  color: #374151;
  font-family: inherit;
  outline: none;
}

.admin-btn-copy {
  background: #2e383d;
  color: #ffffff;
  border: 0;
  border-radius: 0 4px 4px 0;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}
.admin-btn-copy:hover {
  background: #1f272a;
}

/* ADMIN SECTION PANEL */
.admin-section-panel {
  border: 1px solid #e4e9ed;
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 24px;
  background: #ffffff;
}

.admin-panel-header {
  background: #f4f6f8;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e4e9ed;
}

.admin-panel-title {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #2e383d;
  font-size: 13.5px;
  font-weight: 700;
}

.admin-panel-subtext {
  color: #78909c;
  font-size: 12px;
  font-weight: 500;
}

.admin-panel-body {
  padding: 18px 20px;
  display: flex;
  gap: 20px;
  align-items: center;
}

/* Stat Cards */
.admin-stat-card {
  width: 250px;
  background: #ffffff;
  border: 1px solid #edf0f3;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}

.admin-stat-card--total {
  height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
}

.admin-stat-total-label {
  color: #78909c;
  font-size: 12px;
  font-weight: 600;
}

.admin-stat-total-value {
  color: #1e262a;
  font-size: 22px;
  font-weight: 800;
  margin-top: 4px;
}

.admin-stat-total-accent {
  position: absolute;
  bottom: 0;
  left: 10%;
  width: 80%;
  height: 2px;
  background: #9fa8da;
}

.admin-stat-card--grid {
  height: 110px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.admin-grid-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 6px;
  border-right: 1px solid #f0f3f6;
  border-bottom: 1px solid #f0f3f6;
}

.admin-grid-cell:nth-child(2n) {
  border-right: 0;
}

.admin-grid-cell:nth-child(3),
.admin-grid-cell:nth-child(4) {
  border-bottom: 0;
}

.admin-grid-label {
  color: #78909c;
  font-size: 11px;
  font-weight: 600;
}

.admin-grid-value {
  color: #1e262a;
  font-size: 14px;
  font-weight: 800;
  margin-top: 2px;
}

/* Charts */
.admin-chart-wrapper {
  flex: 1;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.admin-svg-chart {
  width: 100%;
  height: auto;
  max-height: 160px;
}

/* FOOTER */
.admin-footer {
  width: 100%;
  background: #22292d;
  color: #b0bec5;
  padding: 14px 24px;
}

.admin-footer-inner {
  max-width: 1400px;
  margin: 0 auto;
  font-size: 13px;
  font-weight: 600;
}

/* QR MODAL */
.admin-qr-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
}
.admin-qr-modal-backdrop[hidden] {
  display: none !important;
}

.admin-qr-modal {
  background: #ffffff;
  border-radius: 8px;
  width: min(380px, 92vw);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.admin-qr-modal-header {
  background: #2e383d;
  color: #ffffff;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-qr-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.admin-qr-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
}

.admin-qr-modal-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.admin-qr-code-canvas {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
}

.admin-qr-code-canvas img,
.admin-qr-code-canvas canvas {
  width: 200px !important;
  height: 200px !important;
  display: block;
}

.admin-qr-url {
  font-size: 11px;
  color: #607d8b;
  word-break: break-all;
  text-align: center;
  margin: 0;
}

.admin-qr-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-top: 8px;
}

.admin-qr-btn-print {
  flex: 1;
  background: #2e383d;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.admin-qr-btn-close {
  flex: 1;
  background: #e0e0e0;
  color: #333333;
  border: 0;
  border-radius: 4px;
  padding: 9px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* ============================================================
   ADMIN PLAYERS SECTION & TABLE
   ============================================================ */
.admin-players-view {
  width: 100%;
  box-sizing: border-box;
}

.admin-players-container {
  width: 100%;
  box-sizing: border-box;
}


.admin-page-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-page-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-players-quick-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 330px;
  max-width: 100%;
}

.admin-players-search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  pointer-events: none;
}

.admin-players-search-input {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 36px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 13.5px;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.admin-players-search-input:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.admin-players-search-clear {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
}

.admin-players-search-clear:hover {
  color: #334155;
}

.admin-page-header-old {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.admin-page-title {
  font-size: 26px;
  font-weight: 800;
  color: #2e383d;
  margin: 0;
  letter-spacing: -0.01em;
}

.admin-btn-new-player {
  background: #2e383d;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.admin-btn-new-player:hover {
  background: #1b2226;
}

/* Filter Card */
.admin-filter-card {
  background: #f0f3f6;
  border: 1px solid #e1e7eb;
  border-radius: 6px;
  padding: 18px 22px;
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.03);
}

.admin-filter-row--six {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.admin-filter-row--bottom {
  display: grid;
  grid-template-columns: 1fr 1.6fr 1.6fr 1fr auto;
  gap: 12px;
  align-items: flex-end;
}

.admin-filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-filter-label {
  font-size: 12px;
  font-weight: 600;
  color: #455a64;
}

.admin-filter-input,
.admin-filter-select {
  height: 36px;
  background: #ffffff;
  border: 1px solid #cfd8dc;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
  color: #2e383d;
  outline: none;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.admin-filter-input:focus,
.admin-filter-select:focus {
  border-color: #1e88e5;
}

.admin-filter-select-wrap {
  position: relative;
}

.admin-filter-range-inputs {
  display: flex;
  gap: 6px;
}

.admin-filter-actions {
  display: flex;
  gap: 8px;
}

.admin-btn-blue {
  height: 36px;
  padding: 0 18px;
  border: 0;
  border-radius: 4px;
  background: #1e88e5;
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}
.admin-btn-blue:hover {
  background: #1976d2;
}

.admin-btn-setting {
  background: #2196f3;
}
.admin-btn-setting:hover {
  background: #1e88e5;
}

/* Data Table */
.admin-table-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.admin-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.admin-table tr:hover td {
  background: #f8fafc;
}

.admin-table-loading {
  text-align: center;
  padding: 40px !important;
  color: #94a3b8;
  font-style: italic;
}

.admin-table-empty {
  text-align: center;
  padding: 40px !important;
  color: #94a3b8;
}

.admin-table-footer {
  padding: 12px 18px;
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: #64748b;
}

.admin-btn-refresh-table {
  background: transparent;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}
.admin-btn-refresh-table:hover {
  background: #e2e8f0;
}

.admin-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-badge--active {
  background: #dcfce7;
  color: #15803d;
}

.admin-badge--disabled {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-action-btn {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 4px 9px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  margin-right: 4px;
  font-family: inherit;
  transition: all 0.12s;
}

.admin-action-btn:hover {
  background: #e2e8f0;
}

.admin-action-btn--topup {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}

.admin-action-btn--topup:hover {
  background: #d1fae5;
}

/* Modals */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 2100;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}
.admin-modal-backdrop[hidden] {
  display: none !important;
}

.admin-modal-dialog {
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.28);
  width: 92%;
  max-width: 580px;
  overflow: hidden;
  animation: adminModalPop 0.18s ease-out;
}

.admin-modal-dialog--sm {
  max-width: 420px;
}

@keyframes adminModalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.admin-modal-header {
  background: #2e383d;
  color: #ffffff;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-modal-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.admin-modal-close {
  background: transparent;
  border: 0;
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  opacity: 0.8;
  padding: 0;
}
.admin-modal-close:hover {
  opacity: 1;
}

.admin-modal-form {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.admin-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.admin-form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.admin-form-group label {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
}

.admin-form-group input {
  height: 38px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13.5px;
  outline: none;
  font-family: inherit;
  color: #1e293b;
  transition: border-color 0.15s;
}

.admin-form-group input:focus {
  border-color: #1e88e5;
}

.admin-topup-target {
  font-size: 13.5px;
  color: #334155;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.admin-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 8px;
}

.admin-modal-btn {
  padding: 9px 18px;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  border: 0;
  transition: all 0.12s;
}

.admin-modal-btn--cancel {
  background: #f1f5f9;
  color: #475569;
}
.admin-modal-btn--cancel:hover {
  background: #e2e8f0;
}

.admin-modal-btn--submit {
  background: #1e88e5;
  color: #ffffff;
}
.admin-modal-btn--submit:hover {
  background: #1976d2;
}

/* ==========================================================================
   ADMIN SPORT COUPONS VIEW & INSPECT MODAL
   ========================================================================== */

.admin-coupons-view {
  width: 100%;
}

.admin-coupons-container {
  padding: 24px;
  max-width: 1500px;
  margin: 0 auto;
}

/* 3-Row Filter Card */
.admin-coupons-filter-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 16px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.admin-coupons-row-1 {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr 1fr 1fr 1.1fr;
  gap: 12px;
  align-items: flex-end;
}

.admin-coupons-row-2 {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr auto auto 0.9fr 0.9fr;
  gap: 12px;
  align-items: flex-end;
}

.admin-coupons-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1.1fr 1.3fr 1.1fr 1.1fr 1.1fr auto;
  gap: 12px;
  align-items: flex-end;
}

@media (max-width: 1200px) {
  .admin-coupons-row-1,
  .admin-coupons-row-2,
  .admin-coupons-row-3 {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

.admin-filter-field--toggle {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  min-width: 105px;
}

.admin-filter-field--half {
  min-width: 80px;
}

/* Toggle Switch */
.admin-toggle-switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  cursor: pointer;
}

.admin-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #cbd5e1;
  border-radius: 24px;
  transition: background-color 0.2s;
}

.admin-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  border-radius: 50%;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.admin-toggle-switch input:checked + .admin-toggle-slider {
  background-color: #1e88e5;
}

.admin-toggle-switch input:checked + .admin-toggle-slider:before {
  transform: translateX(20px);
}

/* Action Buttons */
.admin-coupons-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.admin-btn-export {
  height: 36px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #64748b;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.admin-btn-export:hover {
  background: #475569;
}

/* Coupon Table Enhancements */
.admin-coupon-code-link {
  color: #1e88e5;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  font-family: monospace;
  font-size: 13px;
}

.admin-coupon-code-link:hover {
  text-decoration: underline;
  color: #1565c0;
}

/* Status Badges */
.admin-status-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-status-badge--open {
  background: #e0f2fe;
  color: #0369a1;
}

.admin-status-badge--won {
  background: #dcfce7;
  color: #15803d;
}

.admin-status-badge--lost {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-status-badge--cashed_out {
  background: #fef3c7;
  color: #b45309;
}

/* Coupon Modal */
.admin-modal-dialog--lg {
  max-width: 720px;
  width: 95%;
}

.admin-modal-title-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-coupon-modal-body {
  padding: 20px 24px;
  max-height: 70vh;
  overflow-y: auto;
}

.admin-coupon-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  background: #f8fafc;
  padding: 14px 16px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 20px;
}

.admin-coupon-meta-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12.5px;
}

.admin-coupon-meta-label {
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.admin-coupon-win-highlight {
  color: #15803d;
  font-size: 14px;
}

.admin-coupon-picks-title {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 1px solid #e2e8f0;
}

.admin-coupon-picks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.admin-coupon-pick-card {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: border-color 0.12s;
}

.admin-coupon-pick-card:hover {
  border-color: #cbd5e1;
}

.admin-coupon-pick-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-coupon-pick-match {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
}

.admin-coupon-pick-league {
  font-size: 11.5px;
  color: #64748b;
}

.admin-coupon-pick-market {
  font-size: 12px;
  color: #475569;
}

.admin-coupon-pick-market strong {
  color: #0284c7;
}

.admin-coupon-pick-odd-badge {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  font-weight: 800;
  font-size: 14px;
  padding: 6px 14px;
  border-radius: 4px;
}

/* ==========================================================================
   ADMIN BET CASHIER BAR
   ========================================================================== */

.admin-bet-bar {
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 16px 24px 20px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-bet-bar[hidden] {
  display: none !important;
}

.admin-bet-bar-container {
  max-width: 1500px;
  margin: 0 auto;
}

.admin-bet-heading {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 14px 0;
  letter-spacing: -0.01em;
}

.admin-bet-card {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  background: #ffffff;
}

.admin-bet-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-bet-label {
  font-size: 12px;
  font-weight: 700;
  color: #475569;
}

.admin-bet-select {
  height: 38px;
  min-width: 170px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 12px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  background: #ffffff;
  outline: none;
}

.admin-bet-balance-box {
  display: flex;
  align-items: center;
  height: 38px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 6px 0 12px;
  gap: 12px;
  box-sizing: border-box;
}

.admin-bet-balance-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.admin-bet-balance-amount {
  font-size: 14px;
  font-weight: 800;
  color: #15803d;
}

.admin-bet-balance-bonus {
  font-size: 10px;
  color: #64748b;
  font-weight: 600;
}

.admin-bet-balance-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 3px;
  background: #1e3a8a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s;
}

.admin-bet-balance-btn:hover {
  background: #1d4ed8;
}

/* Sport type toggle */
.admin-bet-toggle-group {
  display: flex;
  background: #e2e8f0;
  border-radius: 4px;
  padding: 2px;
  height: 38px;
  box-sizing: border-box;
}

.admin-bet-toggle-btn {
  border: 0;
  background: transparent;
  color: #475569;
  font-size: 13px;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 3px;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.admin-bet-toggle-btn.is-active {
  background: #334155;
  color: #ffffff;
}

/* Fast deposit buttons */
.admin-bet-fast-btns {
  display: flex;
  gap: 6px;
}

.admin-bet-btn-fast {
  height: 38px;
  padding: 0 14px;
  border: 0;
  border-radius: 4px;
  background: #334155;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  white-space: nowrap;
}

.admin-bet-btn-fast:hover {
  background: #1e293b;
}

/* Custom deposit input & Transfer button */
.admin-bet-custom-wrap {
  display: flex;
  gap: 6px;
}

.admin-bet-custom-input {
  height: 38px;
  width: 120px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 0 10px;
  font-size: 13px;
  color: #1e293b;
  font-family: inherit;
  outline: none;
  box-sizing: border-box;
}

.admin-bet-custom-input:focus {
  border-color: #1e88e5;
}

.admin-bet-btn-transfer {
  height: 38px;
  padding: 0 16px;
  border: 0;
  border-radius: 4px;
  background: #334155;
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
}

.admin-bet-btn-transfer:hover {
  background: #1e293b;
}

/* ====================================================
   ADMIN DEPOSIT (TRANSFER) SECTION
   ==================================================== */
.admin-deposit-view {
  background: #f1f5f9;
  min-height: calc(100vh - 120px);
  width: 100%;
}

.admin-transfer-container {
  padding: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
}

.admin-transfer-heading {
  font-size: 26px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 20px 0;
  letter-spacing: -0.01em;
}

.admin-transfer-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 28px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-transfer-left {
  display: flex;
  flex-direction: column;
}

.admin-transfer-user-box {
  background: #f8fafc;
  border: 1px solid #edf2f7;
  border-radius: 6px;
  padding: 18px 20px;
}

.admin-transfer-field-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 4px;
}

.admin-transfer-selected-name {
  font-size: 15px;
  color: #334155;
  margin-bottom: 24px;
  font-weight: 600;
}

.admin-transfer-balance-heading {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 12px;
}

.admin-transfer-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px dashed #cbd5e1;
  font-size: 13px;
}

.admin-transfer-stat-row:last-child {
  border-bottom: 0;
}

.admin-transfer-stat-label {
  color: #64748b;
  font-weight: 600;
}

.admin-transfer-stat-value {
  color: #1e40af;
  font-weight: 800;
}

.admin-transfer-right {
  display: flex;
  flex-direction: column;
}

.admin-transfer-form-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.admin-transfer-form-row {
  display: flex;
  gap: 20px;
  width: 100%;
}

.admin-transfer-form-row--two > .admin-transfer-form-group {
  flex: 1;
}

.admin-transfer-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.admin-transfer-form-group--full {
  flex: 1;
  width: 100%;
}

.admin-transfer-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.admin-transfer-select-user {
  width: 100%;
}

.admin-transfer-action-row {
  margin-top: 10px;
}

.admin-transfer-submit-btn {
  width: 100%;
  height: 46px;
  background: #334155;
  color: #ffffff;
  border: 0;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
  font-family: inherit;
}

.admin-transfer-submit-btn:hover {
  background: #1e293b;
}

.admin-transfer-submit-btn:active {
  transform: scale(0.99);
}

@media (max-width: 768px) {
  .admin-transfer-card {
    grid-template-columns: 1fr;
    padding: 20px 16px;
    gap: 20px;
  }
  .admin-transfer-container {
    padding: 16px;
  }
  .admin-transfer-form-row--two {
    flex-direction: column;
    gap: 14px;
  }
}

/* ====================================================
   ADMIN TRANSACTIONS SECTION (Matching Reference)
   ==================================================== */
.admin-transactions-view {
  background: #f1f5f9;
  min-height: calc(100vh - 120px);
  width: 100%;
}

.admin-trans-container {
  padding: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-trans-mode-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.admin-trans-heading {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.01em;
}

.admin-trans-mode-pills {
  display: flex;
  background: #e2e8f0;
  padding: 3px;
  border-radius: 6px;
  gap: 2px;
}

.admin-trans-mode-btn {
  border: 0;
  background: transparent;
  padding: 7px 18px;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s;
  font-family: inherit;
}

.admin-trans-mode-btn:hover {
  color: #1e293b;
}

.admin-trans-mode-btn.is-active {
  background: #ffffff;
  color: #1e293b;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Reference Card */
.admin-trans-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 22px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-trans-method-row {
  display: flex;
  align-items: center;
  gap: 32px;
}

.admin-trans-logo-col {
  flex: 0 0 160px;
  display: flex;
  align-items: center;
}

.admin-voucher-brand {
  display: flex;
  align-items: center;
}

.admin-trans-info-col {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 130px;
}

.admin-trans-info-label {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}

.admin-trans-info-value {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
}

.admin-trans-btn-col {
  margin-left: auto;
}

.admin-trans-action-btn {
  height: 40px;
  min-width: 140px;
  padding: 0 24px;
  border: 1.5px solid #16a34a;
  background: #ffffff;
  color: #16a34a;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.05s;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-trans-action-btn:hover {
  background: #16a34a;
  color: #ffffff;
}

.admin-trans-action-btn:active {
  transform: scale(0.98);
}

/* Transactions History Card */
.admin-trans-history-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 20px 24px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-trans-history-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.admin-trans-history-title-wrap {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.admin-trans-history-title {
  font-size: 16px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
}

.admin-trans-history-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

.admin-trans-history-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tx-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 3px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.admin-tx-badge--withdraw {
  background: #fee2e2;
  color: #b91c1c;
}

.admin-tx-badge--deposit {
  background: #dcfce7;
  color: #15803d;
}

.admin-tx-badge--voucher {
  background: #e0f2fe;
  color: #0369a1;
}

@media (max-width: 768px) {
  .admin-trans-container {
    padding: 16px;
  }
  .admin-trans-method-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }
  .admin-trans-btn-col {
    margin-left: 0;
    width: 100%;
  }
  .admin-trans-action-btn {
    width: 100%;
  }
}

/* ====================================================
   ADMIN REPORT SECTION
   ==================================================== */
.admin-report-view {
  background: #f1f5f9;
  min-height: calc(100vh - 120px);
  width: 100%;
}

.admin-report-container {
  padding: 24px 32px;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-report-heading {
  font-size: 24px;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.01em;
}

.admin-report-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 24px 32px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}

.admin-report-filter-bar {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-report-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
}




/* ===================================================================
   SYSTEM-WIDE ACCENT COLOR REPLACEMENTS (5 COLORS REPLACING RED)
   =================================================================== */

/* All header, navigation and bar containers */
.site-header {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.top-nav-bar {
  background: var(--brand-top-bar, var(--brand-red-dark)) !important;
  color: #ffffff !important;
}

.utility-bar {
  background: var(--brand-top-bar, var(--brand-red-dark)) !important;
  color: #ffffff !important;
}

.main-nav {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

/* "Create Account" and primary registration buttons */
.main-nav-create,
.btn-create-account,
.header-btn--register,
.btn-register {
  background: var(--brand-red-light, var(--brand-red)) !important;
  color: var(--brand-text-on-accent, #ffffff) !important;
  font-weight: 800 !important;
  border: 0 !important;
  transition: background-color 0.2s, transform 0.1s !important;
}

.main-nav-create:hover,
.btn-create-account:hover,
.header-btn--register:hover,
.btn-register:hover {
  background: var(--brand-red-hover, var(--brand-red-dark)) !important;
}

/* Active Main (1X2, DC, Totals) pill & board market tabs */
.board-m-tab.is-active {
  background: var(--brand-red) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
}

/* Top Matches & Top Leagues header bars */
.top-matches-header-bar,
.top-leagues-bar {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

/* Betslip header & primary action buttons */
.betslip-header {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.betslip-header em,
.betslip-badge {
  color: var(--brand-red) !important;
  background: #ffffff !important;
}

.btn-continue-bet {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.btn-continue-bet:hover {
  background: var(--brand-red-hover) !important;
}

.btn-load-red {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.btn-load-red:hover {
  background: var(--brand-red-hover) !important;
}

.betslip-load-booked-bar {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.betslip-load-booked-bar:hover {
  background: var(--brand-red-hover) !important;
}

/* In-Play & Search buttons */
.btn-inplay {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.btn-inplay:hover {
  background: var(--brand-red-hover) !important;
}

.sidebar-search-btn {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

/* Sidebar header bars */
.sidebar-menu-top,
.sidebar-search-header,
.sidebar-section-header {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

/* Active chips and tabs */
.filter-chips--sidebar .chip.is-on,
.chip.is-on {
  background: var(--brand-red) !important;
  border-color: var(--brand-red) !important;
  color: #ffffff !important;
}

.sub-nav-item.is-on,
.sub-nav-btn.is-active,
.league-sport-tab.is-on {
  color: var(--brand-red) !important;
  border-bottom-color: var(--brand-red) !important;
}

/* Selected odds pills (across Top matches carousel, board, and detail view) - ALWAYS BRIGHT RED */
.pop-odd-btn.is-selected,
.hmt-odd-btn.is-selected,
.odd-btn.is-selected,
.md-odd.is-selected,
.rec-odd.is-selected,
.combo-market-odd.is-selected,
[data-detail-odd].is-selected,
[data-odd-btn].is-selected {
  background: var(--brand-red, #c62828) !important;
  border-color: var(--brand-red-hover, #b71c1c) !important;
  color: #ffffff !important;
  box-shadow: 0 2px 6px rgba(198, 40, 40, 0.4) !important;
}

.pop-odd-btn.is-selected *,
.hmt-odd-btn.is-selected *,
.odd-btn.is-selected *,
.md-odd.is-selected *,
.rec-odd.is-selected *,
.combo-market-odd.is-selected *,
[data-detail-odd].is-selected *,
[data-odd-btn].is-selected *,
.md-odd.is-selected .md-odd-label,
.md-odd.is-selected .md-odd-value,
.odd-btn.is-selected .odd-btn-label,
.odd-btn.is-selected .odd-btn-value,
.pop-odd-btn.is-selected .odd-btn-label,
.pop-odd-btn.is-selected .pop-odd-val,
.hmt-odd-btn.is-selected .hmt-odd-label,
.hmt-odd-btn.is-selected .hmt-odd-val {
  color: #ffffff !important;
  fill: #ffffff !important;
}

.md-odd.is-selected .md-odd-label,
.odd-btn.is-selected .odd-btn-label,
.pop-odd-btn.is-selected .odd-btn-label,
.hmt-odd-btn.is-selected .hmt-odd-label {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}

.md-odd.is-selected .md-odd-value,
.odd-btn.is-selected .odd-btn-value,
.pop-odd-btn.is-selected .pop-odd-val,
.hmt-odd-btn.is-selected .hmt-odd-val {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
}

/* Selected odds adapt dynamically to the active theme color */
[data-theme] .pop-odd-btn.is-selected,
[data-theme] .hmt-odd-btn.is-selected,
[data-theme] .odd-btn.is-selected,
[data-theme] .md-odd.is-selected,
[data-theme] .rec-odd.is-selected,
[data-theme] .combo-market-odd.is-selected,
[data-color] .pop-odd-btn.is-selected,
[data-color] .hmt-odd-btn.is-selected,
[data-color] .odd-btn.is-selected,
[data-color] .md-odd.is-selected,
[data-color] .rec-odd.is-selected,
[data-color] .combo-market-odd.is-selected,
[data-night="true"] .pop-odd-btn.is-selected,
[data-night="true"] .hmt-odd-btn.is-selected,
[data-night="true"] .odd-btn.is-selected,
[data-night="true"] .md-odd.is-selected,
[data-night="true"] .rec-odd.is-selected,
[data-night="true"] .combo-market-odd.is-selected {
  background: var(--brand-red, #c62828) !important;
  border-color: var(--brand-red-hover, #b71c1c) !important;
  color: #ffffff !important;
}

[data-theme] .pop-odd-btn.is-selected *,
[data-theme] .hmt-odd-btn.is-selected *,
[data-theme] .odd-btn.is-selected *,
[data-theme] .md-odd.is-selected *,
[data-color] .pop-odd-btn.is-selected *,
[data-color] .hmt-odd-btn.is-selected *,
[data-color] .odd-btn.is-selected *,
[data-color] .md-odd.is-selected *,
[data-night="true"] .pop-odd-btn.is-selected *,
[data-night="true"] .hmt-odd-btn.is-selected *,
[data-night="true"] .odd-btn.is-selected *,
[data-night="true"] .md-odd.is-selected *,
[data-night="true"] .md-odd.is-selected .odd-label,
[data-night="true"] .md-odd.is-selected .odd-val,
[data-night="true"] .md-odd.is-selected .md-odd-label,
[data-night="true"] .md-odd.is-selected .md-odd-value {
  color: #ffffff !important;
  fill: #ffffff !important;
}

/* Section dots & live tags */
.section-dots {
  color: var(--brand-red) !important;
}

.match-live-tag {
  color: var(--brand-red) !important;
}

.live-score-badge,
.live-pulse-dot {
  background: var(--brand-red) !important;
}

/* App pill & top badges */
.top-app-pill,
.tab-badge-new {
  background: var(--brand-red-light) !important;
  color: #ffffff !important;
}

/* My Bets tabs & card headers */
.my-bets-tab.is-on,
.my-bets-card-header {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.my-bets-tab:hover:not(.is-on) {
  background: var(--brand-red-hover) !important;
  color: #ffffff !important;
}

.my-bets-search-btn {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

/* Account modal */
.acct-sidebar,
.acct-content-header {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.btn-profile-submit,
.deposit-form-submit {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

/* Mobile navigation */
.mobile-top {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

.mobile-main-nav,
.mobile-bottom-nav {
  background: var(--brand-red-dark) !important;
  color: #ffffff !important;
}

.mobile-slip-fab-count {
  background: var(--brand-red) !important;
  color: #ffffff !important;
}

/* ===================================================================
   NIGHT MODE ENGINE: REPLACES WHITE BACKGROUNDS ACROSS SYSTEM
   & ADAPTS TEXT VISIBILITY AND CONTRAST
   =================================================================== */

/* Night toggle switch UI state */
.night-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  user-select: none;
}

.night-toggle-track {
  position: relative;
  width: 40px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  border-radius: 12px;
  transition: background-color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.night-toggle.is-active .night-toggle-track,
[data-night="true"] .night-toggle-track {
  background: #2563eb !important;
}

.night-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 18px;
  height: 18px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.night-toggle.is-active .night-toggle-thumb,
[data-night="true"] .night-toggle-thumb {
  transform: translateX(18px) !important;
}

/* Color dot active indicator */
.theme-color-dot {
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
}

.theme-color-dot.is-active {
  transform: scale(1.22);
  border-color: #ffffff !important;
  box-shadow: 0 0 0 2.5px rgba(255, 255, 255, 0.85), 0 2px 6px rgba(0, 0, 0, 0.5) !important;
}

/* ===================================================
   NIGHT MODE — WARM OBSIDIAN & SPORTS AMBER-ORANGE
   (Exact Match to Visual Design Reference)
   =================================================== */

/* Shared Base Classes for Sports Menu & All Events */
.all-events-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  margin-bottom: 6px;
  background: #f4f4f5;
  border-radius: 4px;
}
.all-events-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}
.all-events-dots {
  color: #c62828;
  font-size: 16px;
  letter-spacing: 2px;
  font-weight: 900;
}
.all-events-heading {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #18181b;
}
.all-tournaments-pill-btn {
  border: 1px solid #c62828;
  background: rgba(198, 40, 40, 0.08);
  color: #c62828;
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
}
.sidebar-sport-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: 12px;
  color: #333;
  transition: background 0.15s, color 0.15s;
}
.sidebar-sport-count {
  min-width: 30px;
  font-weight: 700;
  font-size: 11px;
  text-align: right;
  color: #666;
}
.sidebar-sport-dot {
  font-size: 10px;
  color: #999;
}
.sidebar-sport-name {
  flex: 1;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-sport-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #666;
}
.sidebar-sports-show-more {
  background: transparent;
  border: 0;
  padding: 10px;
  width: 100%;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.04em;
  text-align: center;
  cursor: pointer;
  text-transform: uppercase;
  color: #c62828;
}
.football-banner-left {
  display: flex;
  align-items: center;
  gap: 6px;
}
.football-banner-chev {
  font-size: 14px;
  font-weight: 900;
}
.football-banner-dot {
  font-weight: 900;
}
.football-banner-title {
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.football-banner-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  margin-left: 6px;
}
.football-region-count {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
  margin-left: auto;
  margin-right: 4px;
}
.football-league-name {
  flex: 1;
  text-align: left;
}
.football-league-count {
  font-size: 11px;
  font-weight: 800;
  margin-left: auto;
}
.slip-pick-val {
  font-weight: 800;
}

/* Night Mode Root Variables */
[data-night="true"],
html.is-night-mode {
  --bg: #0d0a07;
  --bg2: #140f0b;
  --panel: #130e09;
  --panel2: #19120c;
  --surface: #1b140e;
  --card-bg: #18120c;
  --card-border: #2c1f15;
  --line: #241a11;
  --border-color: #2c1f15;
  --text: #f3f4f6;
  --text-color: #f3f4f6;
  --muted: #a1a1aa;
  --text-muted: #9ca3af;
  --accent: #f97316;
  --brand-orange: #f97316;
  --brand-orange-hover: #ea580c;
  --brand-red: #f97316;
  --brand-red-dark: #0e0a07;
  --brand-top-bar: #0e0a07;
  --primary: #f97316;
  --subnav-bg: #110d08;
  --subnav-text: #9ca3af;
  --subnav-active-bg: transparent;
  --header-input-bg: #16100b;
  --header-input-text: #ffffff;
  --header-input-border: #2c1e14;
  --search-input-bg: #16100b;
  --search-input-text: #ffffff;
  --drawer-bg: #130e09;
  --drawer-text: #f3f4f6;
  --odd-bg: #1b140e;
  --odd-bg-hover: #251b12;
  --my-bets-bg: #0d0a07;
  --ticket-bg: #18120c;
  --ticket-border: #2c1f15;
}

/* Global Canvas & Layout */
[data-night="true"] body,
html.is-night-mode body,
[data-night="true"] .web-body,
html.is-night-mode .web-body,
[data-night="true"] .content,
html.is-night-mode .content,
[data-night="true"] #sports-home-wrap,
[data-night="true"] .events-board-wrap,
[data-night="true"] #football-menu-wrap,
[data-night="true"] .content-view {
  background: #0d0a07 !important;
  color: #f3f4f6 !important;
}

/* Top Nav Bars */
[data-night="true"] .site-header,
[data-night="true"] .top-nav-bar,
[data-night="true"] .top-bar,
[data-night="true"] .main-nav,
[data-night="true"] .top-header,
[data-night="true"] .admin-header,
[data-night="true"] .admin-top-bar,
html.is-night-mode .site-header,
html.is-night-mode .top-nav-bar,
html.is-night-mode .main-nav,
html.is-night-mode .top-bar,
html.is-night-mode .admin-header {
  background: #0e0a07 !important;
  border-bottom: 1px solid #241a11 !important;
}

[data-night="true"] .main-nav-tab.is-on,
html.is-night-mode .main-nav-tab.is-on {
  background: #f97316 !important;
  color: #000000 !important;
  border-bottom-color: #f97316 !important;
}

[data-night="true"] .btn-create-account,
[data-night="true"] #btn-create-account-top,
[data-night="true"] .btn-register,
[data-night="true"] .main-nav-create,
[data-night="true"] #header-register-btn,
html.is-night-mode .btn-create-account,
html.is-night-mode #btn-create-account-top,
html.is-night-mode .btn-register,
html.is-night-mode .main-nav-create,
html.is-night-mode #header-register-btn {
  background: #f97316 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 0 !important;
}

[data-night="true"] .night-toggle.is-active .night-toggle-track,
[data-night="true"] .night-toggle-track {
  background: #f97316 !important;
}

[data-night="true"] .top-link,
html.is-night-mode .top-link {
  color: #9ca3af !important;
}

[data-night="true"] .top-link:hover,
[data-night="true"] .top-link.is-on,
html.is-night-mode .top-link.is-on {
  color: #f97316 !important;
}

/* Sub-Nav Bar (Active Orange Underline) */
[data-night="true"] .sub-nav,
html.is-night-mode .sub-nav {
  background: #110d08 !important;
  border-bottom: 1px solid #261c13 !important;
}

[data-night="true"] .sub-nav-item,
[data-night="true"] .sub-nav-btn,
html.is-night-mode .sub-nav-item {
  color: #9ca3af !important;
  background: transparent !important;
  border-bottom: 2px solid transparent !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  transition: color 0.15s, border-color 0.15s !important;
}

[data-night="true"] .sub-nav-item:hover,
[data-night="true"] .sub-nav-btn:hover,
html.is-night-mode .sub-nav-item:hover {
  color: #ffffff !important;
}

[data-night="true"] .sub-nav-item.is-on,
[data-night="true"] .sub-nav-item.active,
html.is-night-mode .sub-nav-item.is-on {
  color: #f97316 !important;
  border-bottom: 2px solid #f97316 !important;
  background: transparent !important;
  font-weight: 700 !important;
}

/* Left Sidebar */
[data-night="true"] .sidebar,
[data-night="true"] #sidebar,
html.is-night-mode .sidebar {
  background: #120e09 !important;
  border-right: 1px solid #241a11 !important;
  width: 240px !important;
  min-width: 240px !important;
}

[data-night="true"] .sidebar-menu-top {
  display: none !important;
}

[data-night="true"] .sidebar-search-header,
[data-night="true"] .sidebar-section-header {
  background: transparent !important;
  border: 0 !important;
  color: #d4d4d8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  padding: 10px 8px 4px !important;
  cursor: default !important;
}

[data-night="true"] .sidebar-search-arrow,
[data-night="true"] .sidebar-arrow {
  display: none !important;
}

[data-night="true"] .sidebar-search-title {
  color: #d4d4d8 !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  font-size: 11px !important;
  letter-spacing: 0.05em !important;
}

[data-night="true"] .sidebar-search-hint {
  color: #8a7c6f !important;
}

[data-night="true"] .sidebar-search-wrap input {
  background: #17110c !important;
  color: #ffffff !important;
  border: 1px solid #2d1f15 !important;
  border-radius: 4px !important;
}

[data-night="true"] .sidebar-search-wrap input::placeholder {
  color: #716255 !important;
}

[data-night="true"] .sidebar-section-header,
[data-night="true"] .sidebar-title {
  color: #a89a8c !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.08em !important;
  text-transform: uppercase !important;
}

[data-night="true"] .sidebar-title em,
[data-night="true"] .sidebar-section-header em {
  color: #f97316 !important;
  background: #1e150d !important;
  border: 1px solid #3d2512 !important;
  border-radius: 4px !important;
}

/* Quick Filter in Sidebar */
[data-night="true"] .filter-chips--sidebar {
  display: flex !important;
  gap: 4px !important;
  padding: 4px 0 !important;
}

[data-night="true"] .filter-chips--sidebar .chip {
  flex: 1 !important;
  padding: 6px 0 !important;
  text-align: center !important;
  background: #1b140e !important;
  border: 1px solid #2f2015 !important;
  color: #d4d4d8 !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
  font-size: 11px !important;
  cursor: pointer !important;
}

[data-night="true"] .filter-chips--sidebar .chip:hover {
  background: #271c12 !important;
  color: #ffffff !important;
  border-color: #4a3320 !important;
}

[data-night="true"] .filter-chips--sidebar .chip.is-on {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

/* IN-PLAY Button */
[data-night="true"] .btn-inplay {
  background: linear-gradient(90deg, #ea580c, #f97316) !important;
  color: #ffffff !important;
  border: 0 !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
  padding: 10px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  margin-top: 8px !important;
  box-shadow: 0 2px 10px rgba(249, 115, 22, 0.3) !important;
}

/* Sidebar SPORTS Section Title */
[data-night="true"] .sidebar.is-sports-menu #sidebar-sports-block,
html.is-night-mode .sidebar.is-sports-menu #sidebar-sports-block {
  display: block !important;
}

[data-night="true"] .sidebar.is-sports-menu #sidebar-sports-block .sidebar-title,
html.is-night-mode .sidebar.is-sports-menu #sidebar-sports-block .sidebar-title {
  display: flex !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.06em !important;
  color: #e4e4e7 !important;
  padding: 12px 10px 6px 10px !important;
}

/* Hide initial loading spinner when football menu / all events is displayed */
[data-night="true"] .sidebar.is-sports-menu ~ .content #main-brand-loader,
html.is-night-mode .sidebar.is-sports-menu ~ .content #main-brand-loader,
[data-night="true"] #main-brand-loader.is-night-hidden,
html.is-night-mode #main-brand-loader.is-night-hidden {
  display: none !important;
}

/* Sidebar Sports List */
[data-night="true"] .sidebar-sport-row {
  color: #e4e4e7 !important;
  padding: 7px 10px !important;
  border-radius: 4px !important;
  border: 1px solid transparent !important;
}

[data-night="true"] .sidebar-sport-row:hover {
  background: rgba(255, 255, 255, 0.04) !important;
}

[data-night="true"] .sidebar-sport-row .sidebar-sport-count {
  color: #a1a1aa !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

[data-night="true"] .sidebar-sport-row .sidebar-sport-dot {
  color: #71717a !important;
}

[data-night="true"] .sidebar-sport-row .sidebar-sport-name {
  color: #e4e4e7 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

[data-night="true"] .sidebar-sport-row .sidebar-sport-icon {
  color: #a1a1aa !important;
}

/* Active Sport Item (Football in reference screenshot) */
[data-night="true"] .sidebar-sport-row.is-on {
  background: #1c150e !important;
  border: 1px solid #382515 !important;
}

[data-night="true"] .sidebar-sport-row.is-on .sidebar-sport-count {
  background: #110c07 !important;
  color: #f97316 !important;
  border: 1px solid #3d2512 !important;
  border-radius: 999px !important;
  padding: 1px 8px !important;
  font-weight: 800 !important;
}

[data-night="true"] .sidebar-sport-row.is-on .sidebar-sport-dot {
  color: #f97316 !important;
}

[data-night="true"] .sidebar-sport-row.is-on .sidebar-sport-name {
  color: #f97316 !important;
  font-weight: 800 !important;
}

[data-night="true"] .sidebar-sport-row.is-on .sidebar-sport-icon {
  color: #f97316 !important;
}

[data-night="true"] .sidebar-sports-show-more {
  color: #f97316 !important;
  font-weight: 800 !important;
  padding: 10px 4px !important;
}

[data-night="true"] .sidebar-item {
  color: #d4d4d8 !important;
}

[data-night="true"] .sidebar-item:hover {
  background: #1a140e !important;
  color: #ffffff !important;
}

[data-night="true"] .sidebar-item.is-on {
  background: #24170d !important;
  color: #f97316 !important;
  border-left: 3px solid #f97316 !important;
}

[data-night="true"] .sidebar-item em {
  color: #a1a1aa !important;
}

[data-night="true"] .sidebar-item.is-on em {
  color: #f97316 !important;
}

/* ===================================================
   CENTER COLUMN: ALL EVENTS VIEW & TOURNAMENTS
   =================================================== */

/* Top Header Bar ("••• ALL EVENTS" & "All tournaments") */
[data-night="true"] .all-events-top-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 10px 14px !important;
  background: #140f0a !important;
  border-bottom: 1px solid #291e14 !important;
  margin-bottom: 6px !important;
  border-radius: 4px !important;
}

[data-night="true"] .all-events-dots {
  color: #f97316 !important;
  font-size: 16px !important;
  letter-spacing: 2px !important;
  font-weight: 900 !important;
}

[data-night="true"] .all-events-heading {
  color: #ffffff !important;
  font-size: 14px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

[data-night="true"] .all-tournaments-pill-btn {
  border: 1px solid #ea580c !important;
  background: rgba(249, 115, 22, 0.08) !important;
  color: #f97316 !important;
  border-radius: 999px !important;
  padding: 4px 14px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  outline: none !important;
}

[data-night="true"] .football-menu-toolbar {
  display: none !important;
}

/* Football Accordion Banner */
[data-night="true"] .football-menu-banner {
  background: #17110b !important;
  border: 1px solid #2a1e14 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
  padding: 10px 14px !important;
  margin-bottom: 6px !important;
}

[data-night="true"] .football-menu-banner-actions {
  display: none !important;
}

[data-night="true"] .football-banner-chev {
  color: #f97316 !important;
  font-size: 14px !important;
  margin-right: 4px !important;
}

[data-night="true"] .football-banner-dot {
  color: #f97316 !important;
  margin-right: 4px !important;
}

[data-night="true"] .football-banner-title {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

[data-night="true"] .football-banner-count {
  background: #100b07 !important;
  border: 1px solid #3a2618 !important;
  color: #f97316 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  margin-left: 8px !important;
}

/* Country Accordion Sections */
[data-night="true"] .football-regions {
  background: transparent !important;
  border: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 6px !important;
}

[data-night="true"] .football-region {
  background: #15100b !important;
  border: 1px solid #291e14 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  margin-bottom: 2px !important;
}

[data-night="true"] .football-region-head {
  background: #17110c !important;
  border: 0 !important;
  color: #ffffff !important;
  padding: 10px 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  cursor: pointer !important;
  width: 100% !important;
}

[data-night="true"] .football-region-dots {
  color: #f97316 !important;
  letter-spacing: 2px !important;
  font-weight: 900 !important;
  font-size: 15px !important;
}

[data-night="true"] .football-region-name {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  flex: 1 !important;
  text-align: left !important;
}

[data-night="true"] .football-region-count {
  background: #100b07 !important;
  border: 1px solid #352317 !important;
  color: #f97316 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  padding: 2px 8px !important;
  border-radius: 4px !important;
}

[data-night="true"] .football-region-chev {
  color: #9ca3af !important;
  font-size: 12px !important;
}

[data-night="true"] .football-region-body {
  background: #110d09 !important;
  border-top: 1px solid #241a11 !important;
  padding: 10px 12px 14px !important;
}

/* Tournament Chips Grid */
[data-night="true"] .football-leagues-grid {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 6px 8px !important;
}

[data-night="true"] .football-league-row {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  background: #1b140e !important;
  border: 1px solid #2d2016 !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  transition: background 0.15s, border-color 0.15s !important;
}

[data-night="true"] .football-league-row:hover {
  background: #231911 !important;
  border-color: #f97316 !important;
}

[data-night="true"] .football-league-row.is-marked {
  background: #251a11 !important;
  border-color: #f97316 !important;
}

[data-night="true"] .football-league-check input {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 14px !important;
  height: 14px !important;
  border: 1px solid #3d2c1e !important;
  border-radius: 2px !important;
  background: #150f09 !important;
  cursor: pointer !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  outline: none !important;
  margin: 0 !important;
  position: relative !important;
}

[data-night="true"] .football-league-check input:checked {
  background: #f97316 !important;
  border-color: #f97316 !important;
}

[data-night="true"] .football-league-check input:checked::after {
  content: '✓' !important;
  color: #000000 !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

[data-night="true"] .football-league-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: 0 !important;
  background: transparent !important;
  cursor: pointer !important;
  padding: 0 !important;
  text-decoration: none !important;
}

[data-night="true"] .football-league-link .football-league-name,
[data-night="true"] .football-league-link span:first-child {
  color: #f3f4f6 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
}

[data-night="true"] .football-league-link:hover .football-league-name,
[data-night="true"] .football-league-link:hover span:first-child {
  color: #ffffff !important;
}

[data-night="true"] .football-league-count {
  color: #f97316 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  margin-left: 2px !important;
}

/* ===================================================
   BETSLIP PANEL (Right Panel in Reference Screenshot)
   =================================================== */

[data-night="true"] .betslip-panel,
[data-night="true"] #betslip-panel,
html.is-night-mode .betslip-panel {
  background: #110d08 !important;
  border-left: 1px solid #241a11 !important;
}

[data-night="true"] .betslip-header,
html.is-night-mode .betslip-header {
  background: #140f0a !important;
  border-bottom: 1px solid #261c13 !important;
  color: #ffffff !important;
  padding: 12px 14px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}

[data-night="true"] .betslip-title {
  color: #ffffff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
}

/* Circled Count Badge ("②") */
[data-night="true"] .betslip-badge,
[data-night="true"] #slip-tab-count {
  border: 1.5px solid #f97316 !important;
  color: #f97316 !important;
  background: transparent !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

[data-night="true"] .betslip-empty-notice {
  color: #8a7c6f !important;
  background: transparent !important;
  border-bottom: 1px solid #241a11 !important;
  padding: 24px 16px !important;
}

/* Betslip Cards */
[data-night="true"] .slip-item,
[data-night="true"] .slip-item.is-suspended,
[data-night="true"] .slip-item.is-locked,
[data-night="true"] .slip-item.is-odd-up,
[data-night="true"] .slip-item.is-odd-down {
  background: #17110b !important;
  border: 1px solid #2b1e14 !important;
  border-radius: 4px !important;
  padding: 10px 12px !important;
  margin-bottom: 8px !important;
  color: #ffffff !important;
}

[data-night="true"] .slip-warning-msg {
  display: none !important;
}

[data-night="true"] .betslip-bonus-banner,
[data-night="true"] #betslip-bonus-banner {
  display: none !important;
}

[data-night="true"] .slip-item:hover {
  border-color: #3e2b1d !important;
}

[data-night="true"] .slip-match-name {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

[data-night="true"] .slip-remove {
  color: #a1a1aa !important;
  font-size: 14px !important;
}

[data-night="true"] .slip-remove:hover {
  color: #f87171 !important;
}

[data-night="true"] .slip-meta {
  color: #a89279 !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
  margin-top: 2px !important;
}

[data-night="true"] .slip-pick {
  font-size: 12px !important;
  margin-top: 4px !important;
}

[data-night="true"] .slip-pick-market {
  color: #d4d4d8 !important;
  font-weight: 600 !important;
}

[data-night="true"] .slip-pick-val {
  color: #f97316 !important;
  font-weight: 800 !important;
}

[data-night="true"] .slip-odd-badge {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 15px !important;
  background: transparent !important;
}

/* Betslip Mode Bar ("MULTIPLE") */
[data-night="true"] .betslip-mode-bar {
  margin: 8px 0 !important;
}

[data-night="true"] .btn-betslip-mode {
  background: #1a130d !important;
  border: 1px solid #332317 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 12px !important;
  letter-spacing: 0.05em !important;
  padding: 8px 12px !important;
  border-radius: 4px !important;
  width: 100% !important;
  text-align: center !important;
  text-transform: uppercase !important;
}

/* Odds Row */
[data-night="true"] .betslip-odds-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 6px 0 !important;
  border-bottom: 1px solid #241a11 !important;
}

[data-night="true"] .betslip-odds-label {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 13px !important;
}

[data-night="true"] .betslip-odds-val {
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 14px !important;
}

/* Stake Row & Steppers */
[data-night="true"] .stake-row {
  margin: 8px 0 !important;
}

[data-night="true"] .stake-label {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
}

[data-night="true"] .stake-stepper-pill {
  background: #17110c !important;
  border: 1px solid #2d1f15 !important;
  border-radius: 4px !important;
}

[data-night="true"] .stake-step-circle {
  background: #1f160e !important;
  border: 1px solid #3a2718 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

[data-night="true"] .stake-stepper-pill input {
  background: transparent !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

/* Quick Stakes */
[data-night="true"] .quick-stakes-row .chip,
[data-night="true"] .quick-stake-chip {
  background: #1a130d !important;
  border: 1px solid #2d1f15 !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  border-radius: 4px !important;
}

[data-night="true"] .quick-stakes-row .chip:hover,
[data-night="true"] .quick-stake-chip:hover {
  background: #251a11 !important;
  border-color: #f97316 !important;
}

[data-night="true"] .quick-stake-edit {
  background: #1a130d !important;
  border: 1px solid #2d1f15 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}

/* POTENTIAL WINNING Highlight Card */
[data-night="true"] .potential-winning-box {
  background: #1e150d !important;
  border: 1px solid #3d2615 !important;
  border-radius: 4px !important;
  padding: 10px 14px !important;
  text-align: center !important;
  margin: 10px 0 !important;
}

[data-night="true"] .pw-title {
  color: #f97316 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  letter-spacing: 0.05em !important;
  text-transform: uppercase !important;
  margin-bottom: 2px !important;
}

[data-night="true"] .pw-val,
[data-night="true"] .pw-cur {
  color: #f97316 !important;
  font-size: 22px !important;
  font-weight: 800 !important;
  font-style: normal !important;
}

/* Notice Text */
[data-night="true"] .betslip-auth-notice {
  background: transparent !important;
  border: 0 !important;
  color: #f97316 !important;
  font-size: 11px !important;
  padding: 6px 0 !important;
}

[data-night="true"] .betslip-auth-notice .auth-notice-ico {
  color: #f97316 !important;
}

/* Bottom Action Buttons */
[data-night="true"] .meta-settings {
  color: #a1a1aa !important;
}

[data-night="true"] .meta-settings:hover {
  color: #ffffff !important;
}

[data-night="true"] .btn-share-dark {
  background: #1a130d !important;
  border: 1px solid #2f2015 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
}

[data-night="true"] .btn-share-dark:hover {
  background: #231911 !important;
  border-color: #3f2a1b !important;
}

/* CANCEL Button (Dark Burgundy Wine) */
[data-night="true"] .btn-cancel-red {
  background: #331111 !important;
  border: 1px solid #4a1818 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
}

[data-night="true"] .btn-cancel-red:hover {
  background: #421515 !important;
}

/* PLACE BET Button (Deep Bronze Amber) */
[data-night="true"] .btn-place-green {
  background: #6e320d !important;
  border: 1px solid #8c4210 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  border-radius: 4px !important;
}

[data-night="true"] .btn-place-green:hover {
  background: #7d390f !important;
}

/* LOAD BOOKED BET Section */
[data-night="true"] .betslip-tools {
  border-top: 1px solid #241a11 !important;
  background: transparent !important;
}

[data-night="true"] .betslip-tool {
  border-bottom: 1px solid #241a11 !important;
  padding: 12px 14px !important;
}

[data-night="true"] .betslip-tool-head {
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
}

[data-night="true"] .betslip-tool p {
  color: #8b7d72 !important;
  font-size: 11px !important;
}

[data-night="true"] .betslip-tool-row input {
  background: #16100b !important;
  border: 1px solid #2c1e14 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}

[data-night="true"] .betslip-tool-row input::placeholder {
  color: #6e5f52 !important;
}

/* Solid Orange LOAD Button with Black Text */
[data-night="true"] .btn-load-red {
  background: #f97316 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: 0 !important;
  border-radius: 4px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.03em !important;
}

[data-night="true"] .btn-load-red:hover {
  background: #ea580c !important;
}

/* ===================================================
   ODDS BUTTONS & MATCH ROWS (Match / Board View)
   =================================================== */

[data-night="true"] .hmt-odd-btn,
[data-night="true"] .odd-btn,
[data-night="true"] .pop-odd-btn,
[data-night="true"] .md-odd,
[data-night="true"] .combo-market-odd,
[data-night="true"] .match-row-more-btn,
[data-night="true"] .hmt-show-more-btn {
  background: #1b140e !important;
  border: 1px solid #2d2016 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}

[data-night="true"] .hmt-odd-btn:hover:not(.is-selected),
[data-night="true"] .odd-btn:hover:not(.is-selected),
[data-night="true"] .pop-odd-btn:hover:not(.is-selected),
[data-night="true"] .md-odd:hover:not(.is-selected),
[data-night="true"] .combo-market-odd:hover:not(.is-selected),
[data-night="true"] .match-row-more-btn:hover,
[data-night="true"] .hmt-show-more-btn:hover {
  background: #251b12 !important;
  border-color: #4a3423 !important;
}

[data-night="true"] .odd-btn-label,
[data-night="true"] .odd-label {
  color: #a1a1aa !important;
}

[data-night="true"] .pop-odd-val,
[data-night="true"] .odd-val,
[data-night="true"] .hmt-odd-btn span,
[data-night="true"] .odd-btn span {
  color: #ffffff !important;
}

/* Selected Odds Button State: Solid Orange with Black Text */
[data-night="true"] .is-selected,
[data-night="true"] .odd-btn.is-selected,
[data-night="true"] .hmt-odd-btn.is-selected,
[data-night="true"] .pop-odd-btn.is-selected,
[data-night="true"] .md-odd.is-selected,
[data-night="true"] .combo-market-odd.is-selected {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #000000 !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4) !important;
}

[data-night="true"] .is-selected *,
[data-night="true"] .odd-btn.is-selected *,
[data-night="true"] .hmt-odd-btn.is-selected *,
[data-night="true"] .pop-odd-btn.is-selected * {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* Match Rows & League Blocks */
[data-night="true"] .league-block {
  background: #140f0a !important;
  border: 1px solid #281d13 !important;
}

[data-night="true"] .league-block-head {
  background: #18120c !important;
  border-bottom: 1px solid #2a1e14 !important;
  color: #ffffff !important;
}

[data-night="true"] .league-block-head span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-night="true"] .hmt-date-banner {
  background: #17110b !important;
  border-bottom: 1px solid #281d13 !important;
  color: #c4b5a5 !important;
}

[data-night="true"] .hmt-row,
[data-night="true"] .match-row {
  background: #130e09 !important;
  border-bottom: 1px solid #20170f !important;
  color: #f3f4f6 !important;
}

[data-night="true"] .hmt-row:nth-child(even),
[data-night="true"] .match-row:nth-child(even) {
  background: #15100b !important;
}

[data-night="true"] .hmt-row:hover,
[data-night="true"] .match-row:hover {
  background: #1c150e !important;
}

[data-night="true"] .match-row-teams,
[data-night="true"] .hmt-team-name,
[data-night="true"] .match-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-night="true"] .match-row-kickoff,
[data-night="true"] .match-row-id,
[data-night="true"] .hmt-match-time,
[data-night="true"] .hmt-match-id {
  color: #9ca3af !important;
}

/* Pop Cards Carousel & Top Leagues */
[data-night="true"] .top-matches-carousel-wrap,
[data-night="true"] .top-leagues-grid {
  background: #110d08 !important;
  border-bottom: 1px solid #241a11 !important;
}

[data-night="true"] .pop-card,
[data-night="true"] .top-league-card,
[data-night="true"] .top-league-chip {
  background: #17110b !important;
  border: 1px solid #2a1e14 !important;
  color: #ffffff !important;
}

[data-night="true"] .pop-card:hover,
[data-night="true"] .top-league-card:hover,
[data-night="true"] .top-league-chip:hover {
  background: #1f160e !important;
  border-color: #3d2919 !important;
}

[data-night="true"] .pop-card-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-night="true"] .pop-card-league,
[data-night="true"] .pop-card-date {
  color: #a89279 !important;
}

/* Modals & Dropdowns */
[data-night="true"] .auth-modal-dialog,
[data-night="true"] .admin-modal-dialog,
[data-night="true"] .cashout-modal,
[data-night="true"] .account-dropdown,
[data-night="true"] .league-select-dropdown,
[data-night="true"] .modal-content {
  background: #15100b !important;
  color: #ffffff !important;
  border: 1px solid #2f2015 !important;
}

[data-night="true"] .auth-input,
[data-night="true"] .admin-filter-input,
[data-night="true"] .admin-filter-select,
[data-night="true"] .form-control {
  background: #1b130c !important;
  color: #ffffff !important;
  border: 1px solid #332317 !important;
}

[data-night="true"] .auth-input::placeholder,
[data-night="true"] .admin-filter-input::placeholder {
  color: #6e5f52 !important;
}


/* Enhanced Deposit Method Card & Logo Styling */
.deposit-method-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.deposit-method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}
.deposit-method-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 68px;
  max-height: 74px;
  padding: 10px 16px;
  background: #ffffff;
  border-radius: 6px;
  margin-bottom: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.deposit-method-logo {
  max-height: 52px;
  max-width: 180px;
  object-fit: contain;
}
[data-night="true"] .deposit-method-card {
  background: #141a24 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
[data-night="true"] .deposit-method-logo-wrap {
  background: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}


/* ===================================================================
   DEPOSIT VIEW STYLING (Matching Reference Screenshot)
   =================================================================== */

.deposit-form-panel {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
}

/* 1. Top Summary Header Bar */
.deposit-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.deposit-view-logo-wrap {
  display: flex;
  align-items: center;
  min-width: 140px;
}

.deposit-view-logo {
  max-height: 48px;
  max-width: 150px;
  object-fit: contain;
}

.deposit-view-meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deposit-view-meta-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.deposit-view-meta-val {
  font-size: 15px;
  color: #1e293b;
  font-weight: 700;
}

/* 2. Main 2-Column Form Grid */
.deposit-view-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
}

@media (max-width: 768px) {
  .deposit-view-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

.deposit-view-col {
  display: flex;
  flex-direction: column;
}

.deposit-step-group {
  margin-bottom: 18px;
}

.deposit-step-title {
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  line-height: 1.45;
  margin-bottom: 8px;
}

.deposit-input-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 6px;
}

/* Copy Input with Copy Button */
.deposit-copy-input-wrap {
  display: inline-flex;
  align-items: stretch;
  background: #efefef;
  border-radius: 4px;
  overflow: hidden;
  max-width: 220px;
  border: 1px solid #ddd;
}

.deposit-copy-input {
  border: 0;
  background: #efefef;
  padding: 8px 12px;
  font-size: 15px;
  font-weight: 700;
  color: #1e293b;
  outline: none;
  width: 100%;
}

.deposit-copy-btn {
  background: #e2e8f0;
  border: 0;
  border-left: 1px solid #cbd5e1;
  padding: 0 12px;
  color: #475569;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.deposit-copy-btn:hover {
  background: #cbd5e1;
  color: #0f172a;
}

.deposit-field-input {
  width: 100%;
  max-width: 280px;
  padding: 9px 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.deposit-field-input:focus {
  border-color: #008be5;
}

/* Right Column: Amount Selection */
.deposit-amount-header {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
}

.deposit-quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  max-width: 320px;
  margin-bottom: 18px;
}

.deposit-quick-btn {
  background: #008be5;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  padding: 10px 0;
  font-size: 13.5px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.deposit-quick-btn:hover {
  background: #0077c8;
}

.deposit-quick-btn.is-active {
  background: #005a99;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #008be5;
}

.deposit-action-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  max-width: 320px;
}

.deposit-amount-input-wrap {
  flex: 1;
}

.deposit-amount-input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  text-align: right;
  box-sizing: border-box;
}

.deposit-amount-input:focus {
  border-color: #008be5;
}

.deposit-submit-btn {
  height: 44px;
  padding: 0 24px;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.deposit-submit-btn:hover {
  opacity: 0.92;
}

/* 3. Bottom Footer */
.deposit-view-footer {
  text-align: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.deposit-choose-another-btn {
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s;
}

.deposit-choose-another-btn:hover {
  color: #0f172a;
  text-decoration: underline;
}

/* Night Mode Overrides */
[data-night="true"] .deposit-form-panel {
  background: #141a24 !important;
}

[data-night="true"] .deposit-view-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .deposit-view-meta-label {
  color: #94a3b8 !important;
}

[data-night="true"] .deposit-view-meta-val {
  color: #f1f5f9 !important;
}

[data-night="true"] .deposit-step-title {
  color: #cbd5e1 !important;
}

[data-night="true"] .deposit-input-label,
[data-night="true"] .deposit-amount-header {
  color: #ffffff !important;
}

[data-night="true"] .deposit-copy-input-wrap {
  background: #1c2436 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

[data-night="true"] .deposit-copy-input {
  background: #1c2436 !important;
  color: #ffffff !important;
}

[data-night="true"] .deposit-copy-btn {
  background: #242f44 !important;
  border-left-color: rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
}

[data-night="true"] .deposit-copy-btn:hover {
  background: #2d3b54 !important;
  color: #ffffff !important;
}

[data-night="true"] .deposit-field-input,
[data-night="true"] .deposit-amount-input {
  background: #1c2436 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-night="true"] .deposit-view-footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .deposit-choose-another-btn {
  color: #94a3b8 !important;
}

[data-night="true"] .deposit-choose-another-btn:hover {
  color: #ffffff !important;
}


/* ===================================================================
   WITHDRAWAL SYSTEM STYLING (Matching Reference Screenshots)
   =================================================================== */

/* Payments Tabs Header */
.payments-nav-tabs {
  display: flex;
  gap: 12px;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
}

.payments-nav-tab {
  padding: 10px 24px;
  font-size: 15px;
  font-weight: 700;
  background: none;
  border: 0;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  cursor: pointer;
  color: #64748b;
  transition: all 0.15s ease;
}

.payments-nav-tab:hover {
  color: #1e293b;
}

.payments-nav-tab.is-active {
  color: var(--brand-red, #c62828);
  border-bottom-color: var(--brand-red, #c62828);
}

/* Withdrawal Method Card (Matching Image 1) */
.withdraw-method-card {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  padding: 20px 16px;
  margin-bottom: 14px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.withdraw-method-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.withdraw-method-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  margin-bottom: 14px;
}

.withdraw-method-logo {
  max-height: 48px;
  max-width: 180px;
  object-fit: contain;
}

.withdraw-method-info {
  margin-bottom: 16px;
}

.withdraw-method-info-row {
  margin-bottom: 10px;
}

.withdraw-method-info-label {
  font-size: 12px;
  color: #888888;
  font-weight: 600;
  display: block;
  margin-bottom: 2px;
}

.withdraw-method-info-value {
  font-size: 14px;
  color: #333333;
  display: block;
}

.withdraw-method-btn {
  display: block;
  width: 100%;
  padding: 11px;
  border: 1.5px solid #2e7d32;
  border-radius: 3px;
  background: #ffffff;
  color: #2e7d32;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.15s ease;
}

.withdraw-method-btn:hover {
  background: #2e7d32;
  color: #ffffff;
}

/* Withdrawal Form Panel (Matching Image 2) */
.withdraw-form-panel {
  background: #ffffff;
  border-radius: 8px;
  padding: 24px;
}

.withdraw-view-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.withdraw-view-logo-wrap {
  display: flex;
  align-items: center;
  min-width: 140px;
}

.withdraw-view-logo {
  max-height: 48px;
  max-width: 150px;
  object-fit: contain;
}

.withdraw-view-meta-col {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.withdraw-view-meta-label {
  font-size: 13px;
  color: #64748b;
  font-weight: 500;
}

.withdraw-view-meta-val {
  font-size: 15px;
  color: #1e293b;
  font-weight: 700;
}

/* Form Fields */
.withdraw-view-form {
  max-width: 540px;
  margin: 0 auto;
}

.withdraw-field-group {
  margin-bottom: 22px;
}

.withdraw-input-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 8px;
}

.withdraw-field-input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #ffffff;
  color: #1e293b;
  font-size: 14px;
  outline: none;
  box-sizing: border-box;
}

.withdraw-field-input:focus {
  border-color: #008be5;
}

.withdraw-amount-header {
  font-size: 14px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 14px;
}

.withdraw-quick-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.withdraw-quick-btn {
  background: #008be5;
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  padding: 11px 0;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.withdraw-quick-btn:hover {
  background: #0077c8;
}

.withdraw-quick-btn.is-active {
  background: #005a99;
  box-shadow: 0 0 0 2px #ffffff, 0 0 0 4px #008be5;
}

.withdraw-amount-input-wrap {
  margin-bottom: 18px;
}

.withdraw-amount-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 15px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  text-align: right;
  box-sizing: border-box;
}

.withdraw-amount-input:focus {
  border-color: #008be5;
}

.withdraw-submit-btn {
  width: 100%;
  height: 48px;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  border: 0;
  border-radius: 4px;
  font-size: 14.5px;
  font-weight: 800;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: opacity 0.15s;
}

.withdraw-submit-btn:hover {
  opacity: 0.92;
}

.withdraw-view-footer {
  text-align: center;
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.withdraw-choose-another-btn {
  background: none;
  border: 0;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 6px 12px;
  transition: color 0.15s;
}

.withdraw-choose-another-btn:hover {
  color: #0f172a;
  text-decoration: underline;
}

/* Night Mode Overrides for Withdrawal */
[data-night="true"] .payments-nav-tabs {
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

[data-night="true"] .payments-nav-tab {
  color: #94a3b8 !important;
}

[data-night="true"] .payments-nav-tab.is-active {
  color: var(--brand-red, #c62828) !important;
  border-bottom-color: var(--brand-red, #c62828) !important;
}

[data-night="true"] .withdraw-method-card {
  background: #141a24 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .withdraw-method-logo-wrap {
  background: #ffffff !important;
  border-radius: 6px;
  padding: 8px 12px;
}

[data-night="true"] .withdraw-method-info-label {
  color: #94a3b8 !important;
}

[data-night="true"] .withdraw-method-info-value {
  color: #f1f5f9 !important;
}

[data-night="true"] .withdraw-form-panel {
  background: #141a24 !important;
}

[data-night="true"] .withdraw-view-header {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .withdraw-view-meta-label {
  color: #94a3b8 !important;
}

[data-night="true"] .withdraw-view-meta-val {
  color: #f1f5f9 !important;
}

[data-night="true"] .withdraw-input-label,
[data-night="true"] .withdraw-amount-header {
  color: #ffffff !important;
}

[data-night="true"] .withdraw-field-input,
[data-night="true"] .withdraw-amount-input {
  background: #1c2436 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
}

[data-night="true"] .withdraw-view-footer {
  border-top-color: rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .withdraw-choose-another-btn {
  color: #94a3b8 !important;
}

[data-night="true"] .withdraw-choose-another-btn:hover {
  color: #ffffff !important;
}


/* ===================================================================
   ACCOUNT MODAL MOBILE & SMALLER SCREENS RESPONSIVE OVERHAUL
   (Hiding sidebar completely and providing full-width responsiveness)
   =================================================================== */

.acct-mobile-nav {
  display: none;
}

@media (max-width: 900px) {
  /* 1. Remove the blue sidebar entirely on smaller screens */
  .acct-sidebar {
    display: none !important;
  }

  /* 2. Fullscreen modal frame */
  .acct-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: 100vw !important;
    height: 100vh !important;
    max-height: 100vh !important;
    transform: none !important;
    border-radius: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    z-index: 9999 !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .acct-modal-backdrop {
    z-index: 9998 !important;
  }

  .acct-content {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    border-radius: 0 !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
  }

  .acct-content-header {
    min-height: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0 4px !important;
    flex-shrink: 0 !important;
  }

  .acct-header-inner {
    display: flex !important;
    align-items: center !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 4px !important;
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 4px !important;
  }

  .acct-header-inner::-webkit-scrollbar {
    display: none;
  }

  .acct-header-tab {
    padding: 8px 12px !important;
    font-size: 12.5px !important;
    white-space: nowrap !important;
  }

  .acct-close {
    width: 44px !important;
    height: 44px !important;
    flex-shrink: 0 !important;
    font-size: 22px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }

  /* 3. Mobile Navigation Bar (pills right below header) */
  .acct-mobile-nav {
    display: flex !important;
    align-items: center !important;
    background: #ffffff !important;
    border-bottom: 1px solid #e2e8f0 !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 8px 10px !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    scrollbar-width: none !important;
  }

  .acct-mobile-nav::-webkit-scrollbar {
    display: none !important;
  }

  .acct-mobile-nav-item {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px 14px !important;
    border-radius: 9999px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 0 !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    transition: all 0.15s ease !important;
    font-family: inherit !important;
    touch-action: manipulation !important;
    user-select: none !important;
    -webkit-tap-highlight-color: transparent !important;
  }

  .acct-mobile-nav-item:active {
    opacity: 0.8 !important;
    transform: scale(0.97) !important;
  }

  .acct-mobile-nav-item.is-active {
    background: #0066cc !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 6px rgba(0, 102, 204, 0.25) !important;
  }

  /* 4. Section General Styling */
  .acct-section {
    display: none !important;
    padding: 14px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    flex: 1 !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .acct-section.is-active {
    display: block !important;
  }

  /* 5. Profile Section Responsive */
  .profile-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .profile-col {
    width: 100% !important;
    gap: 10px !important;
  }

  .profile-field-input,
  .profile-field-select {
    width: 100% !important;
    font-size: 14px !important;
    height: 42px !important;
    box-sizing: border-box !important;
  }

  .profile-password-card {
    max-width: 100% !important;
    margin: 10px 0 !important;
    padding: 16px !important;
    box-sizing: border-box !important;
  }

  .btn-profile-submit {
    width: 100% !important;
    height: 44px !important;
  }

  /* 6. Bet History Section Responsive */
  .acct-header-subtabs {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    padding: 4px 6px !important;
    gap: 6px !important;
    max-width: 100% !important;
  }

  .acct-header-subtabs::-webkit-scrollbar {
    display: none;
  }

  .acct-subtab-btn {
    padding: 6px 10px !important;
    font-size: 12px !important;
    flex-shrink: 0 !important;
  }

  .acct-filters-bar {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 10px !important;
  }

  .acct-filter-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .acct-select-wrap,
  .acct-select {
    width: 100% !important;
  }

  .acct-filter-actions {
    width: 100% !important;
  }

  .btn-apply-filters {
    width: 100% !important;
    padding: 11px !important;
  }

  .acct-table-container,
  .bestbet-table-wrap {
    overflow-x: auto !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .bestbet-table-row,
  .bestbet-table-header {
    min-width: 620px !important;
  }

  /* 7. Payments (Deposit & Withdraw) Responsive */
  .deposit-form-panel,
  .withdraw-form-panel {
    padding: 14px 10px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .deposit-view-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .deposit-view-header,
  .withdraw-view-header {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding-bottom: 14px !important;
    margin-bottom: 18px !important;
  }

  .deposit-view-logo-wrap,
  .withdraw-view-logo-wrap {
    min-width: 100% !important;
    justify-content: center !important;
    margin-bottom: 4px !important;
  }

  .deposit-view-meta-col,
  .withdraw-view-meta-col {
    flex: 1 1 42% !important;
    min-width: 105px !important;
  }

  .deposit-copy-input-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }

  .deposit-field-input,
  .withdraw-field-input {
    max-width: 100% !important;
    width: 100% !important;
  }

  .deposit-quick-amounts,
  .withdraw-quick-amounts {
    grid-template-columns: repeat(3, 1fr) !important;
    max-width: 100% !important;
    gap: 8px !important;
  }

  .deposit-action-row {
    flex-direction: column !important;
    max-width: 100% !important;
    gap: 10px !important;
  }

  .deposit-amount-input-wrap,
  .withdraw-amount-input-wrap {
    width: 100% !important;
  }

  .deposit-submit-btn,
  .withdraw-submit-btn {
    width: 100% !important;
    height: 46px !important;
  }

  /* Night Mode on mobile */
  [data-night="true"] .acct-mobile-nav {
    background: #141a24 !important;
    border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  }

  [data-night="true"] .acct-mobile-nav-item {
    background: #1e293b !important;
    color: #94a3b8 !important;
  }

  [data-night="true"] .acct-mobile-nav-item.is-active {
    background: #0066cc !important;
    color: #ffffff !important;
  }
}


/* ===================================================================
   EXACT BET HISTORY ACCORDION & CRIMSON TABLE STYLING
   (Matching Reference Screenshot media_1788930359359.png)
   =================================================================== */

.bestbet-table-wrap {
  width: 100%;
  background: var(--brand-red, #a00e1e);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  color: #ffffff;
}

.bestbet-table-header {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1fr 1fr 0.9fr 1.3fr 1fr 1.1fr 0.4fr;
  background: rgba(0, 0, 0, 0.16);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  padding: 14px 16px;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.bestbet-ticket-group {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.bestbet-ticket-main {
  display: grid;
  grid-template-columns: 2.2fr 1.1fr 1fr 1fr 0.9fr 1.3fr 1fr 1.1fr 0.4fr;
  padding: 12px 16px;
  align-items: center;
  cursor: pointer;
  background: transparent;
  transition: background 0.15s;
  color: #ffffff;
}

.bestbet-ticket-main:hover {
  background: rgba(0, 0, 0, 0.08);
}

.bestbet-ticket-group.is-expanded .bestbet-ticket-main {
  background: rgba(0, 0, 0, 0.15);
}

.col-date-id {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.col-date-id .ticket-date {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}
.col-date-id .ticket-id-row {
  display: flex;
  align-items: center;
  gap: 4px;
}
.col-date-id .ticket-id-val {
  font-size: 12px;
  font-weight: 700;
  color: #ffeb3b;
  word-break: break-all;
}
.col-date-id .ticket-print-icon {
  font-size: 13px;
  cursor: pointer;
  color: #ffeb3b;
  margin-left: 2px;
  transition: transform 0.1s;
}
.col-date-id .ticket-print-icon:hover {
  transform: scale(1.2);
}

.col-odds {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.col-odds .odds-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}
.col-odds .possible-win-val {
  font-size: 11px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
}

.col-status {
  display: flex;
  align-items: center;
  gap: 6px;
}
.status-text {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
  text-transform: uppercase;
}

.badge-status-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.badge-status-circle.is-won {
  background: #22c55e;
}
.badge-status-circle.is-lost {
  background: #ef4444;
}
.badge-status-circle.is-pending {
  background: #eab308;
}

.ticket-chevron {
  font-size: 14px;
  color: #ffffff;
  transition: transform 0.2s ease;
  display: inline-block;
}
.bestbet-ticket-group.is-expanded .ticket-chevron {
  transform: rotate(180deg);
}

/* Expanded Sub-events Container */
.bestbet-ticket-events {
  display: none;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.bestbet-ticket-group.is-expanded .bestbet-ticket-events {
  display: block;
}

.bestbet-event-row {
  display: grid;
  grid-template-columns: 2.2fr 2.5fr 2.2fr 1.2fr;
  padding: 10px 16px;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  font-size: 12.5px;
  color: #ffffff;
}
.bestbet-event-row:last-child {
  border-bottom: 0;
}

.event-col-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.event-col-date {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}
.event-col-league {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.78);
  font-style: italic;
}

.event-col-match {
  font-size: 13px;
  font-weight: 700;
  color: #ffffff;
}

.event-col-market {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
}

.event-col-odds {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

/* Filter controls bar matching screenshot */
.acct-filters-bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  background: #ffffff;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  gap: 16px;
  border: 1px solid #e2e8f0;
}
[data-night="true"] .acct-filters-bar {
  background: #141a24 !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

.acct-filter-label {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  display: block;
}
[data-night="true"] .acct-filter-label {
  color: #f1f5f9 !important;
}

.acct-select {
  background: #ffffff;
  border: 1.5px solid #d1d5db;
  border-radius: 20px;
  padding: 8px 36px 8px 16px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23475569'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
[data-night="true"] .acct-select {
  background: #1c2436 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='%23ffffff'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}

.btn-apply-filters {
  background: var(--brand-red, #c62828);
  color: #ffffff;
  border: 0;
  border-radius: 20px;
  padding: 9px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  height: 40px;
  transition: opacity 0.15s ease;
}
.btn-apply-filters:hover {
  opacity: 0.9;
}




/* Mobile Tickets Container */
.mobile-tickets-list {
  background: var(--brand-red, #a00e1e);
  color: #ffffff;
}

.mb-ticket-card {
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mb-ticket-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  cursor: pointer;
  transition: background 0.12s;
  gap: 8px;
}

.mb-ticket-header-row:hover {
  background: rgba(0, 0, 0, 0.08);
}

.mb-ticket-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mb-ticket-date {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.mb-ticket-id-line {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.mb-ticket-id-val {
  font-size: 12px;
  font-weight: 800;
  color: #ffeb3b; /* Gold/yellow ID */
}

.mb-ticket-username {
  font-size: 12px;
  font-weight: 500;
  color: #ffffff;
}

.mb-ticket-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  gap: 2px;
}

.mb-ticket-stake {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}
.mb-ticket-stake em {
  font-style: italic;
  font-weight: 800;
}

.mb-ticket-odds-lbl {
  font-size: 12px;
  color: #ffffff;
}

.mb-ticket-win-lbl {
  font-size: 12px;
  font-weight: 600;
  color: #ffffff;
}

.mb-ticket-win-val {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}
.mb-ticket-win-val em {
  font-style: italic;
}

.mb-ticket-badge-wrap {
  margin-left: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Expanded Sub-events Container */
.mb-ticket-events-list {
  display: none;
  background: rgba(0, 0, 0, 0.2);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mb-ticket-card.is-expanded .mb-ticket-events-list {
  display: block;
}

.mb-event-card-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
  gap: 8px;
  font-size: 12px;
}

.mb-event-card-item:last-child {
  border-bottom: 0;
}

.mb-event-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.mb-event-match {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
}

.mb-event-time-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.82);
}

.mb-event-right {
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: right;
}

.mb-event-market-odd {
  font-size: 12.5px;
  font-weight: 600;
  color: #ffffff;
}


/* ===================================================================
   STRICT MOBILE LAYOUT & OVERLAP PREVENTION (Matching Image 1)
   =================================================================== */

.mb-ticket-card {
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.mb-ticket-header-row {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  padding: 14px 16px !important;
  cursor: pointer;
  transition: background 0.12s;
  gap: 12px !important;
}

.mb-ticket-header-row:hover {
  background: rgba(0, 0, 0, 0.08);
}

.mb-ticket-left {
  display: flex !important;
  flex-direction: column !important;
  text-align: left !important;
  gap: 3px !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
}

.mb-ticket-date {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
}

.mb-ticket-id-line {
  font-size: 12.5px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
  word-break: break-all !important;
}

.mb-ticket-id-val {
  color: #ffeb3b !important; /* Gold yellow ID */
  font-weight: 800 !important;
}

.mb-ticket-username {
  font-size: 12.5px !important;
  font-weight: 600 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}

.mb-ticket-right {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  text-align: right !important;
  gap: 2px !important;
  flex: 0 0 auto !important;
  white-space: nowrap !important;
}

.mb-ticket-stake {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}
.mb-ticket-stake em {
  font-style: italic !important;
  font-weight: 800 !important;
}

.mb-ticket-odds-lbl {
  font-size: 12px !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
}

.mb-ticket-win-lbl {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}

.mb-ticket-win-val {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  line-height: 1.3 !important;
}
.mb-ticket-win-val em {
  font-style: italic !important;
}

.mb-ticket-badge-wrap {
  margin-left: 8px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}

.badge-status-circle {
  width: 22px !important;
  height: 22px !important;
  border-radius: 50% !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
}
.badge-status-circle.is-won {
  background: #22c55e !important;
}
.badge-status-circle.is-lost {
  background: #ef4444 !important;
}
.badge-status-circle.is-pending {
  background: #eab308 !important;
}

/* Expanded Sub-events Container */
.mb-ticket-events-list {
  display: none;
  background: rgba(0, 0, 0, 0.18) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.mb-ticket-card.is-expanded .mb-ticket-events-list {
  display: block !important;
}

.mb-event-card-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 16px !important;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.15) !important;
  gap: 12px !important;
}

.mb-event-card-item:last-child {
  border-bottom: 0 !important;
}

.mb-event-left {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  flex: 1 1 auto !important;
  text-align: left !important;
}

.mb-event-match {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  line-height: 1.35 !important;
}

.mb-event-time-meta {
  font-size: 12px !important;
  color: rgba(255, 255, 255, 0.85) !important;
  font-weight: 500 !important;
}

.mb-event-right {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: right !important;
  flex-shrink: 0 !important;
}

.mb-event-market-odd {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #ffffff !important;
  white-space: nowrap !important;
}

/* On mobile/smaller screens, explicitly hide desktop table headers and prevent grid overlapping */
@media (max-width: 900px) {
  .bestbet-table-header {
    display: none !important;
  }
  
  .bestbet-table-wrap {
    overflow-x: hidden !important;
    background: var(--brand-red, #a00e1e) !important;
  }

  .bestbet-ticket-main {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }

  .bestbet-event-row {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
  }
}

/* ============================================================
   SUPER ADMIN MASTER PORTAL STYLING
   ============================================================ */

body.is-super-admin-mode {
  background: #eef2f5 !important;
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh !important;
  width: 100% !important;
}

body.is-super-admin-mode .site-header,
body.is-super-admin-mode .site-subnav,
body.is-super-admin-mode .top-nav-bar,
body.is-super-admin-mode .main-nav,
body.is-super-admin-mode .sub-nav,
body.is-super-admin-mode .mobile-slip-fab,
body.is-super-admin-mode .mobile-nav,
body.is-super-admin-mode .mobile-bottom-nav,
body.is-super-admin-mode .mobile-menu-drawer,
body.is-super-admin-mode .mobile-menu-backdrop,
body.is-super-admin-mode .bottom-betslip-bar,
body.is-super-admin-mode #mobile-sports-strip,
body.is-super-admin-mode .betslip-quick-deposit,
body.is-super-admin-mode #betslip-quick-deposit,
body.is-super-admin-mode #admin-header,
body.is-super-admin-mode #admin-footer,
body.is-super-admin-mode .admin-header,
body.is-super-admin-mode .admin-footer,
body.is-super-admin-mode .admin-bet-bar,
body.is-super-admin-mode #admin-bet-bar,
body.is-super-admin-mode #sidebar,
body.is-super-admin-mode .sidebar,
body.is-super-admin-mode #betslip-panel,
body.is-super-admin-mode .betslip-panel,
body.is-super-admin-mode .betslip,
body.is-super-admin-mode #betslip {
  display: none !important;
}

body.is-super-admin-mode .web-body,
body.is-super-admin-mode .main-layout {
  display: block !important;
  width: 100% !important;
  min-width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  grid-template-columns: 1fr !important;
  background: #eef2f5 !important;
}

body.is-super-admin-mode .content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: 24px 32px 60px !important;
  background: transparent !important;
}

.super-admin-portal-view {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  color: #1e293b;
  min-height: auto;
}

.sa-container {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.sa-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
  border-radius: 8px;
  padding: 18px 24px;
  margin-bottom: 20px;
}

.sa-header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sa-brand-badge {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 800;
  font-size: 11px;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  text-transform: uppercase;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.3);
}

.sa-brand-title h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.sa-brand-subtitle {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 500;
}

.sa-header-stats {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sa-stat-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 8px 16px;
  min-width: 120px;
}

.sa-stat-label {
  display: block;
  font-size: 0.7rem;
  text-transform: uppercase;
  color: #64748b;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.sa-stat-val {
  font-size: 1.15rem;
  font-weight: 800;
  color: #0f172a;
}

.sa-header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 0;
  transition: all 0.15s ease;
}

.sa-btn--primary {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(217, 119, 6, 0.25);
}

.sa-btn--primary:hover {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #ffffff;
  transform: translateY(-1px);
}

.sa-btn--secondary {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.sa-btn--secondary:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.sa-btn--danger {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.sa-btn--danger:hover {
  background: #fecaca;
  color: #b91c1c;
}

.sa-btn-action {
  padding: 0.3rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  border: 0;
  cursor: pointer;
  transition: all 0.15s;
}

.sa-btn-deposit {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
  margin-right: 4px;
}

.sa-btn-deposit:hover {
  background: #bbf7d0;
}

.sa-btn-withdraw {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.sa-btn-withdraw:hover {
  background: #fecaca;
}

.sa-btn-password {
  background: #eff6ff;
  color: #2563eb;
  border: 1px solid #bfdbfe;
  margin-right: 4px;
}

.sa-btn-password:hover {
  background: #dbeafe;
}

.sa-btn-block {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
  margin-right: 4px;
}

.sa-btn-block:hover {
  background: #fde68a;
}

.sa-btn-unblock {
  background: #d1fae5;
  color: #047857;
  border: 1px solid #a7f3d0;
  margin-right: 4px;
}

.sa-btn-unblock:hover {
  background: #a7f3d0;
}

.sa-btn-delete {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.sa-btn-delete:hover {
  background: #fca5a5;
  color: #991b1b;
}

.sa-nav-tabs {
  display: flex;
  gap: 0.5rem;
  border-bottom: 2px solid #e2e8f0;
  margin-bottom: 20px;
  overflow-x: auto;
}

.sa-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 18px;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  color: #64748b;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}

.sa-tab-btn:hover {
  color: #1e293b;
}

.sa-tab-btn.is-active {
  color: #d97706;
  border-bottom-color: #d97706;
  font-weight: 800;
}

.sa-tab-count {
  background: #e2e8f0;
  color: #475569;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 10px;
}

.sa-tab-btn.is-active .sa-tab-count {
  background: #fef3c7;
  color: #b45309;
}

.sa-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 24px 28px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}

.sa-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sa-panel-title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
}

.sa-panel-desc {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.sa-filter-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.sa-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  min-width: 250px;
  color: #64748b;
}

.sa-search-box input {
  background: transparent;
  border: 0;
  color: #1e293b;
  font-size: 0.85rem;
  width: 100%;
  outline: none;
}

.sa-select {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  outline: none;
}

.sa-table-wrapper {
  overflow-x: auto;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
}

.sa-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.85rem;
}

.sa-table th {
  background: #f8fafc;
  color: #64748b;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 10px 10px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.sa-table td {
  padding: 10px 10px;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  vertical-align: middle;
}

.sa-table tbody tr:hover td {
  background: #f8fafc;
}

.sa-table-empty {
  text-align: center;
  color: #94a3b8;
  padding: 40px !important;
  font-style: italic;
}

.sa-badge-shop {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #e0f2fe;
  color: #0284c7;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 600;
  font-size: 0.75rem;
}

.sa-badge-direct {
  background: #f1f5f9;
  color: #64748b;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
}

.sa-badge-status {
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sa-badge-status--active {
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.sa-badge-status--blocked {
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fca5a5;
}

.sa-password-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.sa-password-input-wrap .sa-form-input {
  padding-right: 2.6rem;
  width: 100%;
}

.sa-password-eye-btn {
  position: absolute;
  right: 0.5rem;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.sa-password-eye-btn:hover {
  color: #0f172a;
}

.sa-modal-danger-box {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 6px;
  padding: 12px 14px;
  color: #991b1b;
  font-size: 0.85rem;
  line-height: 1.45;
  margin-bottom: 12px;
}

.sa-settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
  margin-top: 0.5rem;
}

.sa-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.sa-form-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: #334155;
}

.sa-form-input {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 0.65rem 0.85rem;
  color: #1e293b;
  font-size: 0.88rem;
  box-sizing: border-box;
  outline: none;
  transition: border-color 0.15s;
}

.sa-form-input:focus {
  border-color: #d97706;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.15);
}

.sa-input-icon-wrap {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.sa-input-badge {
  background: #f1f5f9;
  color: #475569;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0 0.75rem;
  display: flex;
  align-items: center;
  border-right: 1px solid #cbd5e1;
}

.sa-input-icon-wrap .sa-form-input {
  border: 0;
  border-radius: 0;
  flex: 1;
}

.sa-form-hint {
  font-size: 0.72rem;
  color: #64748b;
}

.sa-form-actions {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.sa-status-indicator {
  font-size: 0.85rem;
  font-weight: 600;
}

.sa-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 99999;
  padding: 1rem;
}

.sa-modal {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  animation: saModalIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes saModalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.sa-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sa-modal-title-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.sa-modal-title-row h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.sa-modal-close {
  background: transparent;
  border: 0;
  color: #64748b;
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}

.sa-modal-close:hover {
  color: #0f172a;
}

.sa-modal-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sa-modal-summary {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  color: #334155;
}

.sa-op-selector {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}

.sa-op-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
}

.sa-modal-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

/* Night Mode Overrides for Super Admin */
body.is-night.is-super-admin-mode,
body.is-night.is-super-admin-mode .web-body,
body.is-night.is-super-admin-mode .main-layout {
  background: #0b1120 !important;
}

body.is-night.is-super-admin-mode .sa-header,
body.is-night.is-super-admin-mode .sa-panel,
body.is-night.is-super-admin-mode .sa-modal {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

body.is-night.is-super-admin-mode .sa-brand-title h1,
body.is-night.is-super-admin-mode .sa-panel-title,
body.is-night.is-super-admin-mode .sa-modal-title-row h3,
body.is-night.is-super-admin-mode .sa-stat-val {
  color: #ffffff !important;
}

body.is-night.is-super-admin-mode .sa-stat-card,
body.is-night.is-super-admin-mode .sa-search-box,
body.is-night.is-super-admin-mode .sa-modal-head,
body.is-night.is-super-admin-mode .sa-modal-summary,
body.is-night.is-super-admin-mode .sa-op-option {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

body.is-night.is-super-admin-mode .sa-table th {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.is-night.is-super-admin-mode .sa-table td {
  color: #e2e8f0 !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

body.is-night.is-super-admin-mode .sa-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.is-night.is-super-admin-mode .sa-form-input,
body.is-night.is-super-admin-mode .sa-select {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.is-night.is-super-admin-mode .sa-stat-val {
  color: #ffffff !important;
}

body.is-night.is-super-admin-mode .sa-stat-card,
body.is-night.is-super-admin-mode .sa-search-box,
body.is-night.is-super-admin-mode .sa-modal-head,
body.is-night.is-super-admin-mode .sa-modal-summary,
body.is-night.is-super-admin-mode .sa-op-option {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: #f8fafc !important;
}

body.is-night.is-super-admin-mode .sa-table th {
  background: #0f172a !important;
  color: #94a3b8 !important;
  border-bottom-color: rgba(255, 255, 255, 0.1) !important;
}

body.is-night.is-super-admin-mode .sa-table td {
  color: #e2e8f0 !important;
  border-bottom-color: rgba(255, 255, 255, 0.05) !important;
}

body.is-night.is-super-admin-mode .sa-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.03) !important;
}

body.is-night.is-super-admin-mode .sa-form-input,
body.is-night.is-super-admin-mode .sa-select {
  background: #0f172a !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.is-night.is-super-admin-mode .sa-input-badge {
  background: #334155 !important;
  color: #f8fafc !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

/* Super Admin Bonus System Styling */
.sa-bonus-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sa-bonus-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sa-bonus-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.sa-bonus-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.sa-bonus-card-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.sa-bonus-card-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.sa-bonus-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}

.sa-filter-chips {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.sa-filter-chip {
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sa-filter-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.sa-filter-chip.is-active {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
}

.sa-cut-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.sa-cut-badge.cut-1 {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.sa-cut-badge.cut-2 {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.sa-cut-badge.cut-3 {
  background: #f3e8ff;
  color: #7e22ce;
  border: 1px solid #e9d5ff;
}

.sa-cut-badge.cut-4 {
  background: #ffe4e6;
  color: #be123c;
  border: 1px solid #fecdd3;
}

.sa-multiplier-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.65rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 800;
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.sa-toggle-switch {
  position: relative;
  display: inline-block;
  width: 42px;
  height: 24px;
}

.sa-toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.sa-toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #cbd5e1;
  transition: .2s;
  border-radius: 24px;
}

.sa-toggle-slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .2s;
  border-radius: 50%;
}

input:checked + .sa-toggle-slider {
  background-color: #16a34a;
}

input:checked + .sa-toggle-slider:before {
  transform: translateX(18px);
}

.sa-modal--bonus {
  max-width: 560px;
}

.sa-form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.sa-form-hint {
  display: block;
  font-size: 0.72rem;
  color: #64748b;
  margin-top: 4px;
}

/* Night Mode Overrides for Bonus Dashboard */
body.is-night.is-super-admin-mode .sa-bonus-card,
body.is-night.is-super-admin-mode .sa-bonus-toolbar {
  background: #0f172a !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.is-night.is-super-admin-mode .sa-bonus-card-icon {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.is-night.is-super-admin-mode .sa-bonus-card-val {
  color: #ffffff !important;
}

body.is-night.is-super-admin-mode .sa-filter-chip {
  background: #1e293b !important;
  color: #cbd5e1 !important;
  border-color: rgba(255, 255, 255, 0.15) !important;
}

body.is-night.is-super-admin-mode .sa-filter-chip.is-active {
  background: #d97706 !important;
  border-color: #d97706 !important;
  color: #ffffff !important;
}


/* ============================================================
   SYSTEM PROVISIONING VIEW STYLING
   ============================================================ */
body.is-sys-mode .web-body,
body.is-sys-mode .content {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  grid-template-columns: 1fr !important;
  background: #f8f6fc !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.is-sys-mode .site-header,
body.is-sys-mode .top-nav-bar,
body.is-sys-mode .main-nav,
body.is-sys-mode #sidebar,
body.is-sys-mode #betslip-panel,
body.is-sys-mode #admin-header,
body.is-sys-mode #admin-footer,
body.is-sys-mode #admin-bet-bar {
  display: none !important;
}

.sys-portal-view {
  width: 100%;
  min-height: calc(100vh - 60px);
  background: #f8f6fc;
}

.sys-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 28px 24px 60px 24px;
  box-sizing: border-box;
}

.sys-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e2e8f0;
  gap: 16px;
  flex-wrap: wrap;
}

.sys-header-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sys-brand-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #334155;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: 4px;
  width: fit-content;
}

.sys-brand-title h1 {
  font-size: 24px;
  font-weight: 800;
  color: #0f172a;
  margin: 0;
  letter-spacing: -0.01em;
}

.sys-brand-subtitle {
  font-size: 13px;
  color: #64748b;
  margin-top: 2px;
  display: block;
}

.sys-header-stats {
  display: flex;
  align-items: center;
  gap: 14px;
}

.sys-stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 18px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.03);
}

.sys-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sys-stat-val {
  font-size: 20px;
  font-weight: 800;
  color: #2563eb;
  margin-top: 2px;
}

.sys-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sys-panel {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  margin-bottom: 24px;
}

.sys-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #f1f5f9;
  gap: 16px;
  flex-wrap: wrap;
}

.sys-panel-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 4px 0;
}

.sys-panel-desc {
  font-size: 13px;
  color: #64748b;
  margin: 0;
}

.sys-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  transition: all 0.15s;
  font-family: inherit;
}

.sys-btn--primary {
  background: #2563eb;
  color: #ffffff;
}
.sys-btn--primary:hover {
  background: #1d4ed8;
}

.sys-btn--secondary {
  background: #ffffff;
  color: #374151;
  border: 1px solid #d1d5db;
}
.sys-btn--secondary:hover {
  background: #f3f4f6;
}

.sys-btn--danger {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
.sys-btn--danger:hover {
  background: #fca5a5;
  color: #7f1d1d;
}

.sys-table-wrapper {
  overflow-x: auto;
  width: 100%;
}

.sys-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.sys-table th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 12px 18px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.sys-table td {
  padding: 14px 18px;
  border-bottom: 1px solid #f1f5f9;
  color: #1f2937;
  vertical-align: middle;
}

.sys-table tbody tr:hover td {
  background: #f8fafc;
}

.sys-table-loading,
.sys-table-empty {
  text-align: center;
  padding: 40px 20px !important;
  color: #64748b;
  font-style: italic;
}

.sys-badge-role {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
}

.sys-badge-status--active {
  display: inline-flex;
  background: #dcfce7;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

/* Modals */
.sys-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10000;
  padding: 20px;
  box-sizing: border-box;
}

.sys-modal-backdrop[hidden] {
  display: none !important;
}

.sys-modal-dialog {
  background: #ffffff;
  width: 100%;
  max-width: 480px;
  border-radius: 10px;
  box-shadow: 0 20px 40px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: sysModalPop 0.18s ease-out;
}

@keyframes sysModalPop {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.sys-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
}

.sys-modal-head h3 {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
}

.sys-modal-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #64748b;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
}
.sys-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.sys-modal-form {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sys-form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sys-form-group label {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}

.sys-form-group input {
  height: 38px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0 12px;
  font-size: 13.5px;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition: all 0.15s;
}

.sys-form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.sys-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.receipt-hotline-amharic {
  font-size: 12px;
  font-weight: 700;
}

/* ====================================================
   TICKET CHECK RECEIPT MODAL & PANEL
   ==================================================== */
.ticket-check-modal-backdrop {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(2px);
  z-index: 99998;
}

.ticket-check-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-width: 420px;
  width: 95%;
  max-height: 92vh;
  background: #f1f5f9;
  border-radius: 10px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-sizing: border-box;
}

.ticket-check-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #0f172a;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  flex-shrink: 0;
}

.ticket-check-modal-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #f8fafc;
  letter-spacing: 0.02em;
}

.ticket-check-modal-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.btn-check-modal-action {
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 800;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.btn-check-modal-print {
  background: #2563eb;
  color: #ffffff;
}

.btn-check-modal-print:hover {
  background: #1d4ed8;
}

.btn-check-modal-slip {
  background: #059669;
  color: #ffffff;
}

.btn-check-modal-slip:hover {
  background: #047857;
}

.ticket-check-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
}

.ticket-check-modal-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.15);
}

.ticket-check-modal-body {
  overflow-y: auto;
  padding: 14px 10px;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background: #cbd5e1;
}

.ticket-check-modal-body .receipt-paper {
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.22);
  border-radius: 3px;
  margin: 0 auto;
}

.cb-receipt-panel-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.camera-scan-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  z-index: 99990;
  backdrop-filter: blur(4px);
}

.camera-scan-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 92%;
  max-width: 400px;
  background: #1e293b;
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.5);
  z-index: 99991;
  overflow: hidden;
  color: #fff;
}

.camera-scan-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: #0f172a;
  border-bottom: 1px solid #334155;
}

.camera-scan-modal-title {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.camera-scan-modal-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  padding: 4px;
}

.camera-scan-modal-body {
  padding: 16px;
  text-align: center;
}

.camera-scan-viewport {
  position: relative;
  width: 100%;
  height: 280px;
  background: #000;
  border-radius: 8px;
  overflow: hidden;
}

.camera-scan-viewport video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-scan-overlay {
  position: absolute;
  inset: 30px;
  border: 2px dashed #38bdf8;
  border-radius: 8px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.4);
}

.camera-scan-laser {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: #ef4444;
  box-shadow: 0 0 8px #ef4444;
  animation: scanLaser 2s ease-in-out infinite alternate;
}

@keyframes scanLaser {
  0% { top: 5%; }
  100% { top: 95%; }
}

.camera-scan-hint {
  margin-top: 12px;
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4;
}

/* ====================================================
   SHARE ON SOCIALS / BOOKED BET MODAL
   ==================================================== */
.share-modal-backdrop {
}

/* ============================================================
   RESULTS VIEW STYLES
   ============================================================ */
#view-results {
  width: 100%;
}

.results-page {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

/* Flashscore Topbar */
.results-flashscore-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  gap: 12px;
  flex-wrap: wrap;
}

.results-status-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.results-tab-btn {
  background: #f1f5f9;
  color: #475569;
  border: none;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
  user-select: none;
}

.results-tab-btn:hover {
  background: #e2e8f0;
  color: #1e293b;
}

.results-tab-btn.is-active {
  background: #e60028;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(230, 0, 40, 0.25);
}

.results-tab-fav {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.results-fav-badge {
  display: inline-block;
  background: #f59e0b;
  color: #000000;
  font-size: 10px;
  font-weight: 800;
  padding: 1px 6px;
  border-radius: 9999px;
  line-height: 1.2;
}

.results-tab-btn.is-active .results-fav-badge {
  background: #ffffff;
  color: #e60028;
}

.results-date-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.results-date-arrow {
  width: 32px;
  height: 32px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: #ffffff;
  color: #475569;
  font-size: 18px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.results-date-arrow:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #0f172a;
}

.results-date-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 5px 12px;
  background: #ffffff;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
  cursor: pointer;
  position: relative;
  user-select: none;
  transition: all 0.15s;
}

.results-date-badge:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.results-cal-svg {
  color: #64748b;
  flex-shrink: 0;
}

.results-date-picker-input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  cursor: pointer;
}

/* Flashscore Body */
.results-flashscore-body {
  padding: 12px;
  background: #f8fafc;
  min-height: 480px;
}

/* League Group */
.results-league-group {
  margin-bottom: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.03);
}

.results-league-header {
  background: #edf2f7;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  user-select: none;
}

.results-league-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-league-star {
  color: #94a3b8;
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.results-league-star:hover {
  color: #f59e0b;
}

.results-league-star.is-favorited {
  color: #f59e0b;
}

.results-league-flag {
  width: 18px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.results-league-name {
  font-size: 12.5px;
  font-weight: 800;
  color: #1e293b;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.results-league-pin {
  color: #0284c7;
  font-size: 13px;
  line-height: 1;
  cursor: pointer;
}

.results-league-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.results-odds-col-headers {
  display: flex;
  align-items: center;
  gap: 6px;
}

.results-odds-col-header {
  width: 66px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
}

.results-league-collapse {
  background: none;
  border: none;
  font-size: 13px;
  color: #64748b;
  cursor: pointer;
  width: 20px;
  text-align: center;
  font-weight: 700;
  padding: 0;
  transition: transform 0.15s;
}

.results-league-collapse.is-collapsed {
  transform: rotate(180deg);
}

/* Match Row */
.results-match-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 14px;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background 0.12s;
  gap: 14px;
}

.results-match-row:last-child {
  border-bottom: none;
}

.results-match-row:hover {
  background: #fbfcfd;
}

.results-match-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 90px;
  flex-shrink: 0;
}

.results-match-star {
  color: #cbd5e1;
  font-size: 15px;
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s;
}

.results-match-star:hover {
  color: #f59e0b;
}

.results-match-star.is-favorited {
  color: #f59e0b;
}

.results-match-status {
  font-size: 12px;
  font-weight: 500;
  color: #64748b;
}

.results-match-status.is-finished {
  color: #64748b;
  font-weight: 600;
}

.results-match-status.is-live {
  color: #dc2626;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.results-match-status.is-scheduled {
  color: #1e293b;
  font-weight: 700;
}

/* Teams Column */
.results-match-teams {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 140px;
}

.results-team-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  color: #1e293b;
}

.results-team-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-team-crest {
  width: 17px;
  height: 17px;
  object-fit: contain;
  flex-shrink: 0;
}

.results-team-name {
  font-weight: 600;
  color: #0f172a;
}

.results-team-row.is-winner .results-team-name {
  font-weight: 800;
}

.results-team-score {
  font-weight: 800;
  font-size: 13.5px;
  color: #0f172a;
  min-width: 18px;
  text-align: right;
  flex-shrink: 0;
}

.results-red-card {
  display: inline-block;
  width: 7px;
  height: 11px;
  background: #dc2626;
  border-radius: 1px;
  margin-left: 3px;
  vertical-align: middle;
  box-shadow: 0 1px 1px rgba(220, 38, 38, 0.4);
}

/* Odds Column */
.results-odds-group {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.results-odd-btn {
  width: 66px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.results-odd-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}

/* WINNING OUTCOME HIGHLIGHT (Yellow/Gold as in Image 2) */
.results-odd-btn.is-winner {
  background: #ffc700 !important;
  color: #000000 !important;
  font-weight: 800 !important;
  border: none !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.results-trend-icon {
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1;
}

.results-trend-icon.trend-down {
  color: #dc2626;
}

.results-trend-icon.trend-up {
  color: #16a34a;
}

.results-odd-btn.is-winner .results-trend-icon {
  color: #000000 !important;
  font-weight: 900 !important;
}

/* Loading & Empty */
.results-loading,
.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 13.5px;
  text-align: center;
  gap: 12px;
}

.results-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #e60028;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Dark Theme Adaptations */
[data-theme="dark"] .results-page {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .results-flashscore-topbar {
  background: #1e293b;
  border-bottom-color: #334155;
}

[data-theme="dark"] .results-tab-btn {
  background: #334155;
  color: #cbd5e1;
}

[data-theme="dark"] .results-tab-btn:hover {
  background: #475569;
  color: #ffffff;
}

[data-theme="dark"] .results-tab-btn.is-active {
  background: #e60028;
  color: #ffffff;
}

[data-theme="dark"] .results-date-arrow,
[data-theme="dark"] .results-date-badge {
  background: #1e293b;
  border-color: #334155;
  color: #f1f5f9;
}

[data-theme="dark"] .results-flashscore-body {
  background: #0f172a;
}

[data-theme="dark"] .results-league-group {
  background: #1e293b;
  border-color: #334155;
}

[data-theme="dark"] .results-league-header {
  background: #283548;
  border-bottom-color: #334155;
}

[data-theme="dark"] .results-league-name {
  color: #f8fafc;
}

[data-theme="dark"] .results-match-row {
  background: #1e293b;
  border-bottom-color: #334155;
}

[data-theme="dark"] .results-match-row:hover {
  background: #243044;
}

[data-theme="dark"] .results-team-name,
[data-theme="dark"] .results-team-score {
  color: #f8fafc;
}

[data-theme="dark"] .results-odd-btn {
  background: #283548;
  border-color: #334155;
  color: #f8fafc;
}

[data-theme="dark"] .results-odd-btn:hover {
  background: #334155;
  border-color: #475569;
}

[data-theme="dark"] .results-odd-btn.is-winner {
  background: #ffc700 !important;
  color: #000000 !important;
}
}

.results-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 13.5px;
  gap: 12px;
}

.results-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #e2e8f0;
  border-top-color: #c8102e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Dark mode overrides for Results */
html[data-theme="dark"] .results-page,
body.night-mode .results-page,
body.is-admin-mode .results-page {
  background: #181b1e;
}

html[data-theme="dark"] .results-body,
body.night-mode .results-body,
body.is-admin-mode .results-body {
  background: #121417;
}

html[data-theme="dark"] .results-league-group,
body.night-mode .results-league-group,
body.is-admin-mode .results-league-group {
  background: #1e2227;
  border-color: #2b3038;
}

html[data-theme="dark"] .results-league-header,
body.night-mode .results-league-header,
body.is-admin-mode .results-league-header {
  background: #252a31;
  border-color: #2b3038;
}

html[data-theme="dark"] .results-league-name,
body.night-mode .results-league-name,
body.is-admin-mode .results-league-name {
  color: #f1f5f9;
}

html[data-theme="dark"] .result-match-row,
body.night-mode .result-match-row,
body.is-admin-mode .result-match-row {
  border-color: #252a31;
}

html[data-theme="dark"] .result-match-row:hover,
body.night-mode .result-match-row:hover,
body.is-admin-mode .result-match-row:hover {
  background: #23282f;
}

html[data-theme="dark"] .result-kickoff-val,
body.night-mode .result-kickoff-val,
body.is-admin-mode .result-kickoff-val {
  color: #f1f5f9;
}

html[data-theme="dark"] .result-team-line,
body.night-mode .result-team-line,
body.is-admin-mode .result-team-line {
  color: #cbd5e1;
}

html[data-theme="dark"] .result-team-line.is-winner,
body.night-mode .result-team-line.is-winner,
body.is-admin-mode .result-team-line.is-winner {
  color: #ffffff;
}

html[data-theme="dark"] .result-team-score-num,
body.night-mode .result-team-score-num,
body.is-admin-mode .result-team-score-num {
  color: #ffffff;
}

html[data-theme="dark"] .result-goals-timeline,
body.night-mode .result-goals-timeline,
body.is-admin-mode .result-goals-timeline {
  border-color: #2b3038;
}

html[data-theme="dark"] .result-goal-chip,
body.night-mode .result-goal-chip,
body.is-admin-mode .result-goal-chip {
  background: #282e37;
  border-color: #374151;
  color: #f1f5f9;
}

html[data-theme="dark"] .result-unstarted-badge,
body.night-mode .result-unstarted-badge,
body.is-admin-mode .result-unstarted-badge {
  background: #252a31;
  border-color: #374151;
  color: #f1f5f9;
}

html[data-theme="dark"] .result-status-tag.is-unstarted,
body.night-mode .result-status-tag.is-unstarted,
body.is-admin-mode .result-status-tag.is-unstarted {
  background: #475569;
}

/* ===== HOPE BET BRANDED LOADING SCREEN & SMOOTH TRANSITIONS ===== */
.hope-brand-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 380px;
  padding: 48px 24px;
  background: var(--panel, #ffffff);
  border-radius: 8px;
  box-sizing: border-box;
  position: relative;
  transition: opacity 0.35s cubic-bezier(0.4, 0, 0.2, 1), transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.35s ease;
  z-index: 20;
}

#main-brand-loader {
  min-height: 480px;
  margin-bottom: 20px;
  border: 1px solid var(--line, rgba(0, 0, 0, 0.08));
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

.hope-brand-loader[hidden] {
  display: none !important;
}

.hope-brand-loader.is-fading-out {
  opacity: 0 !important;
  transform: scale(0.97) !important;
  pointer-events: none;
}

.hope-brand-loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 18px;
  max-width: 320px;
}

.hope-brand-loader-logo {
  height: 48px;
  width: auto;
  max-width: 220px;
  object-fit: contain;
  filter: drop-shadow(0 4px 14px rgba(198, 40, 40, 0.22));
  animation: hopeLogoPulse 2.2s ease-in-out infinite;
  user-select: none;
  pointer-events: none;
}

@keyframes hopeLogoPulse {
  0% {
    transform: scale(1);
    opacity: 0.88;
    filter: drop-shadow(0 2px 8px rgba(198, 40, 40, 0.15));
  }
  50% {
    transform: scale(1.05);
    opacity: 1;
    filter: drop-shadow(0 6px 20px rgba(198, 40, 40, 0.38));
  }
  100% {
    transform: scale(1);
    opacity: 0.88;
    filter: drop-shadow(0 2px 8px rgba(198, 40, 40, 0.15));
  }
}

.hope-brand-loader-bar {
  width: 180px;
  height: 4px;
  background: var(--line, rgba(0, 0, 0, 0.08));
  border-radius: 999px;
  overflow: hidden;
  position: relative;
}

.hope-brand-loader-progress {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-red, #c62828), var(--brand-red-light, #e53935), var(--brand-red, #c62828));
  animation: hopeLoaderShimmer 1.4s ease-in-out infinite;
  box-shadow: 0 0 10px var(--brand-red-light, rgba(229, 57, 53, 0.7));
}

@keyframes hopeLoaderShimmer {
  0% {
    left: -45%;
  }
  50% {
    left: 45%;
  }
  100% {
    left: 105%;
  }
}

.hope-brand-loader-text {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--muted, #666666);
  animation: hopeTextBreathe 2.2s ease-in-out infinite;
}

@keyframes hopeTextBreathe {
  0%, 100% {
    opacity: 0.7;
  }
  50% {
    opacity: 1;
  }
}

/* Smooth reveal transition for loaded contents */
.hope-content-fade-in {
  animation: hopeContentFadeIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes hopeContentFadeIn {
  0% {
    opacity: 0;
    transform: translateY(6px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Night mode & dark theme support */
html[data-theme="dark"] .hope-brand-loader,
body.night-mode .hope-brand-loader,
body.is-admin-mode .hope-brand-loader {
  background: var(--panel, #1a1e24);
  border-color: #2b3038;
}

html[data-theme="dark"] .hope-brand-loader-bar,
body.night-mode .hope-brand-loader-bar,
body.is-admin-mode .hope-brand-loader-bar {
  background: rgba(255, 255, 255, 0.1);
}

html[data-theme="dark"] .hope-brand-loader-text,
body.night-mode .hope-brand-loader-text,
body.is-admin-mode .hope-brand-loader-text {
  color: #94a3b8;
}

/* ============================================================ */
/* SPORTSBOOK LEAGUE VIEW & MARKET TABS (CLEAN HOPE BET LIGHT)   */
/* ============================================================ */

#view-leagues {
  background: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
}

#view-leagues .league-page-board-wrap,
#view-leagues .board-wrap,
body.is-sports-home #view-leagues .league-page-board-wrap,
body.is-sports-home #view-leagues .board-wrap {
  display: block !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

#view-leagues .league-page-head {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  padding: 10px 14px;
  border-radius: 4px;
  margin-bottom: 8px;
}

#view-leagues #leagues-back {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  margin-bottom: 8px;
  background: #ffffff;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  color: var(--brand-red, #c62828);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.15s;
}

#view-leagues #leagues-back:hover {
  background: #f5f5f5;
  border-color: #bbbbbb;
}

/* Odds Choices / Market Tabs Bar at top of Leagues View */
.league-market-tabs-wrap {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  padding: 8px 10px;
  margin: 6px 0 10px 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.league-market-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.league-m-tab {
  background: #f0f0f0;
  color: #222222;
  border: 1px solid #d0d0d0;
  border-radius: 3px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 5px 12px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.15s ease;
}

.league-m-tab:hover {
  background: #e2e2e2;
  border-color: #bbbbbb;
  color: #000000;
}

.league-m-tab.is-active {
  background: var(--brand-red, #c62828) !important;
  color: #ffffff !important;
  border-color: var(--brand-red, #c62828) !important;
}

/* Header Columns */
.league-page-head .board-markets,
.board-head .board-markets {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #ffffff;
  flex-wrap: wrap;
}

.league-page-head .board-markets span,
.board-head .board-markets span {
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.18);
  white-space: nowrap;
}

/* Match rows and League blocks in light theme */
#view-leagues .league-block {
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

#view-leagues .league-block-head {
  background: #f2f3f5;
  color: #1a1a1a;
  border-bottom: 1px solid #e2e4e7;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}

#view-leagues .hmt-date-banner {
  background: #f8f9fa;
  color: var(--brand-red, #c62828);
  border-bottom: 1px solid #eef0f2;
  padding: 6px 12px;
  font-size: 11.5px;
  font-weight: 800;
}

#view-leagues .match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #f0f0f0;
  align-items: center;
  background: #ffffff;
  transition: background 0.1s ease;
}

#view-leagues .match-row:hover {
  background: #f9fbfd;
}

#view-leagues .match-row-id {
  font-size: 11px;
  font-weight: 700;
  color: #666666;
  margin-right: 4px;
}

#view-leagues .match-row-kickoff {
  font-size: 12px;
  font-weight: 800;
  color: #111111;
  margin-right: 8px;
}

#view-leagues .match-row-team {
  font-size: 12px;
  font-weight: 700;
  color: #222222;
}

#view-leagues .match-row-vs {
  font-size: 12px;
  font-weight: 700;
  color: #888888;
  margin: 0 4px;
}

/* Odds Column Grid Configurations */
.match-row-odds--main {
  grid-template-columns: repeat(3, 44px) repeat(3, 44px) repeat(2, 44px);
  gap: 4px;
}

.match-row-odds--2 {
  grid-template-columns: repeat(2, minmax(70px, 90px));
  gap: 4px;
}

.match-row-odds--3 {
  grid-template-columns: repeat(3, minmax(58px, 80px));
  gap: 4px;
}

.match-row-odds--5 {
  grid-template-columns: repeat(5, minmax(52px, 70px));
  gap: 4px;
}

.match-row-odds--7 {
  grid-template-columns: repeat(7, minmax(44px, 58px));
  gap: 3px;
}

.match-row-odds--8 {
  grid-template-columns: repeat(8, minmax(42px, 54px));
  gap: 3px;
}

.match-row-odds--9 {
  grid-template-columns: repeat(9, minmax(38px, 50px));
  gap: 3px;
}

/* Native Light Odds Button */
#view-leagues .odd-btn,
.odd-btn {
  background: #f0f0f0;
  border: 1px solid #d5d5d5;
  border-radius: 4px;
  padding: 4px 2px;
  cursor: pointer;
  text-align: center;
  transition: all 0.12s ease;
  min-height: 38px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: inherit;
}

#view-leagues .odd-btn:hover,
.odd-btn:hover {
  background: #e4e4e4;
  border-color: #b5b5b5;
}

#view-leagues .odd-btn .odd-btn-label,
.odd-btn .odd-btn-label {
  font-size: 9px;
  font-weight: 700;
  color: #666666;
  line-height: 1;
  margin-bottom: 2px;
}

#view-leagues .odd-btn .odd-btn-value,
.odd-btn .odd-btn-value {
  font-size: 11.5px;
  font-weight: 800;
  color: #111111;
  line-height: 1;
}

#view-leagues .odd-btn.is-selected,
.odd-btn.is-selected {
  background: var(--brand-red, #c62828) !important;
  border-color: var(--brand-red-hover, #b71c1c) !important;
  color: #ffffff !important;
}

#view-leagues .odd-btn.is-selected .odd-btn-label,
.odd-btn.is-selected .odd-btn-label,
#view-leagues .odd-btn.is-selected .odd-btn-value,
.odd-btn.is-selected .odd-btn-value {
  color: #ffffff !important;
}

/* ==========================================================================
   MOBILE LEAGUE TABLE VIEW (Matches Image 2 Specification)
   ========================================================================== */

.mobile-league-container {
  width: 100%;
  background: #ffffff;
  border: 1px solid #dcdcdc;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  margin-bottom: 14px;
}

.mobile-league-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ebebeb;
  padding: 8px 12px;
  border-bottom: 1px solid #dcdcdc;
  min-height: 46px;
}

.mobile-league-title {
  font-size: 15px;
  font-weight: 600;
  color: #2b3445;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 200px;
}

.mobile-league-select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.mobile-league-market-select {
  appearance: none;
  -webkit-appearance: none;
  background: linear-gradient(180deg, #ffffff 0%, #f1f3f5 100%);
  border: 1px solid #ced4da;
  border-radius: 4px;
  padding: 6px 28px 6px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #333333;
  cursor: pointer;
  outline: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23555555' d='M1.41 0L6 4.58L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.mobile-league-market-select:focus {
  border-color: #adb5bd;
}

.mobile-league-table-head {
  display: flex;
  align-items: center;
  background: #f8f9fa;
  border-bottom: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  color: #555555;
  height: 36px;
}

.mobile-league-col-time {
  width: 54px;
  flex-shrink: 0;
  padding-left: 10px;
  box-sizing: border-box;
}

.mobile-league-col-event {
  flex: 1;
  min-width: 0;
  padding-left: 8px;
  box-sizing: border-box;
}

.mobile-league-col-odds {
  width: 195px;
  flex-shrink: 0;
  display: grid;
  height: 100%;
}

.mobile-league-col-odds span {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e2e8f0;
  font-size: 12px;
  font-weight: 500;
  color: #555555;
  padding: 0 2px;
  text-align: center;
}

.mobile-league-col-odds span:last-child {
  border-right: 1px solid #e2e8f0;
}

.mobile-league-date-banner {
  background: #ebebeb;
  border-top: 1px solid #dedede;
  border-bottom: 1px solid #dedede;
  padding: 5px 10px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--primary-color, #b71c1c);
}

.mobile-league-row {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid #e5e5e5;
  min-height: 52px;
  transition: background 0.1s ease;
}

.mobile-league-row:hover {
  background: #fbfbfb;
}

.mobile-league-time {
  width: 54px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  padding-left: 10px;
  font-size: 13px;
  font-weight: 700;
  color: #111111;
  box-sizing: border-box;
}

.mobile-league-event {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  padding: 8px;
  cursor: pointer;
  box-sizing: border-box;
}

.mobile-league-team {
  font-size: 13px;
  font-weight: 500;
  color: #222222;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.25;
}

.mobile-league-odds {
  width: 195px;
  flex-shrink: 0;
  display: grid;
  align-items: stretch;
}

.mobile-league-odd-btn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 100% !important;
  min-height: 50px !important;
  background: #ffffff;
  border: none !important;
  border-left: 1px solid #e2e8f0 !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  outline: none;
  font-family: inherit;
  transition: background 0.12s ease, color 0.12s ease;
}

.mobile-league-odds .mobile-league-odd-btn:last-child {
  border-right: 1px solid #e2e8f0 !important;
}

.mobile-league-odd-val {
  font-size: 13.5px;
  font-weight: 700;
  color: #111111;
}

.mobile-league-odd-btn:hover {
  background: #f5f7fa !important;
}

.mobile-league-odd-btn.is-selected,
[data-theme] .mobile-league-odd-btn.is-selected,
[data-color] .mobile-league-odd-btn.is-selected {
  background: var(--brand-red, #c62828) !important;
  border-color: var(--brand-red-hover, #b71c1c) !important;
  color: #ffffff !important;
}

.mobile-league-odd-btn.is-selected .mobile-league-odd-val,
[data-theme] .mobile-league-odd-btn.is-selected .mobile-league-odd-val,
[data-color] .mobile-league-odd-btn.is-selected .mobile-league-odd-val {
  color: #ffffff !important;
}

.mobile-league-odd-btn.is-locked,
.mobile-league-odd-btn[disabled] {
  opacity: 0.55 !important;
  cursor: not-allowed !important;
  background: #f9f9f9 !important;
}

/* Dark mode theme overrides */
[data-theme="dark"] .mobile-league-container {
  background: #1e1e1e;
  border-color: #333333;
}
[data-theme="dark"] .mobile-league-bar {
  background: #252525;
  border-bottom-color: #333333;
}
[data-theme="dark"] .mobile-league-title {
  color: #eeeeee;
}
[data-theme="dark"] .mobile-league-market-select {
  background-color: #2f2f2f;
  border-color: #444444;
  color: #eeeeee;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23aaaaaa' d='M1.41 0L6 4.58L10.59 0L12 1.41l-6 6l-6-6z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 10px 7px;
}
[data-theme="dark"] .mobile-league-table-head {
  background: #222222;
  border-bottom-color: #333333;
  color: #aaaaaa;
}
[data-theme="dark"] .mobile-league-col-odds span {
  border-left-color: #333333;
  color: #aaaaaa;
}
[data-theme="dark"] .mobile-league-col-odds span:last-child {
  border-right-color: #333333;
}
[data-theme="dark"] .mobile-league-date-banner {
  background: #252525;
  border-top-color: #333333;
  border-bottom-color: #333333;
  color: #ff5252;
}
[data-theme="dark"] .mobile-league-row {
  background: #1e1e1e;
  border-bottom-color: #2a2a2a;
}
[data-theme="dark"] .mobile-league-row:hover {
  background: #242424;
}
[data-theme="dark"] .mobile-league-time {
  color: #f0f0f0;
}
[data-theme="dark"] .mobile-league-team {
  color: #dddddd;
}
[data-theme="dark"] .mobile-league-odd-btn,
[data-color="dark"] .mobile-league-odd-btn {
  background: #252525 !important;
  border-left-color: #383838 !important;
}
[data-theme="dark"] .mobile-league-odds .mobile-league-odd-btn:last-child,
[data-color="dark"] .mobile-league-odds .mobile-league-odd-btn:last-child {
  border-right-color: #383838 !important;
}
[data-theme="dark"] .mobile-league-odd-val,
[data-color="dark"] .mobile-league-odd-val {
  color: #ffffff !important;
}
[data-theme="dark"] .mobile-league-odd-btn:hover,
[data-color="dark"] .mobile-league-odd-btn:hover {
  background: #333333 !important;
}
[data-theme="dark"] .mobile-league-odd-btn.is-selected,
[data-color="dark"] .mobile-league-odd-btn.is-selected {
  background: #e41b23 !important;
  border-color: #e41b23 !important;
  color: #ffffff !important;
}
[data-theme="dark"] .mobile-league-odd-btn.is-selected .mobile-league-odd-val,
[data-color="dark"] .mobile-league-odd-btn.is-selected .mobile-league-odd-val {
  color: #ffffff !important;
}
[data-theme="dark"] .mobile-league-odd-btn.is-locked,
[data-theme="dark"] .mobile-league-odd-btn[disabled],
[data-color="dark"] .mobile-league-odd-btn.is-locked,
[data-color="dark"] .mobile-league-odd-btn[disabled] {
  background: #181818 !important;
}

@media (max-width: 980px) {
  #view-leagues .league-market-tabs-wrap,
  #view-leagues .league-page-head,
  #view-leagues .football-menu-toolbar--league,
  #view-leagues #leagues-back {
    display: none !important;
  }
}

/* ==========================================================================
   FLASHSCORE MATCH DETAIL MODAL (Scheduled, Finished & Live)
   ========================================================================== */

.flashscore-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  z-index: 9998;
  backdrop-filter: blur(3px);
  animation: fsFadeIn 0.18s ease-out;
}

.flashscore-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  pointer-events: auto;
}

.flashscore-modal-dialog {
  max-width: 820px;
  width: 100%;
  max-height: 92vh;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #0f172a;
  animation: fsSlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fsFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fsSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.flashscore-modal-content {
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  max-height: 92vh;
}

/* Modal Top Bar / Breadcrumb */
.fs-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.fs-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fs-breadcrumb-sep {
  color: #94a3b8;
  font-size: 12px;
}

.fs-breadcrumb-flag {
  width: 16px;
  height: 12px;
  object-fit: cover;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.fs-topbar-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.fs-new-window-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.15s;
}

.fs-new-window-btn:hover {
  color: #0f172a;
}

.fs-modal-close {
  background: none;
  border: none;
  font-size: 22px;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: all 0.15s;
}

.fs-modal-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Match Hero Header */
.fs-hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.fs-hero-team {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

.fs-hero-team--home {
  justify-content: flex-start;
}

.fs-hero-team--away {
  justify-content: flex-end;
  flex-direction: row-reverse;
}

.fs-hero-star {
  font-size: 22px;
  color: #cbd5e1;
  cursor: pointer;
  user-select: none;
  transition: all 0.15s ease;
  line-height: 1;
}

.fs-hero-star:hover {
  color: #f59e0b;
}

.fs-hero-star.is-favorited {
  color: #f59e0b !important;
  text-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
}

.fs-hero-crest {
  width: 68px;
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.08));
}

.fs-hero-crest-fallback {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 28px;
}

.fs-hero-team-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f172a;
  max-width: 170px;
  line-height: 1.25;
}

.fs-hero-team-name.is-winner {
  font-weight: 900;
  color: #000000;
}

.fs-hero-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 170px;
  text-align: center;
}

.fs-hero-datetime {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 4px;
}

.fs-hero-score {
  font-size: 40px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: 2px;
}

.fs-hero-score--scheduled {
  font-size: 38px;
  color: #1e293b;
  letter-spacing: 0;
  font-weight: 800;
}

.fs-hero-score--finished {
  color: #0f172a;
}

.fs-hero-score--live {
  color: #e11d48;
}

.fs-hero-status {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.fs-hero-status--finished {
  color: #475569;
}

.fs-hero-status--live {
  color: #e11d48;
  display: flex;
  align-items: center;
  gap: 5px;
}

.fs-live-dot {
  width: 7px;
  height: 7px;
  background: #e11d48;
  border-radius: 50%;
  animation: fsPulse 1.2s infinite;
}

@keyframes fsPulse {
  0% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.95); opacity: 0.8; }
}

/* Primary Nav Tabs */
.fs-nav-tabs {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 24px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.fs-nav-tab {
  padding: 12px 2px;
  font-size: 12.5px;
  font-weight: 700;
  color: #475569;
  border: none;
  background: none;
  cursor: pointer;
  position: relative;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  transition: color 0.15s;
}

.fs-nav-tab:hover {
  color: #0f172a;
}

.fs-nav-tab.is-active {
  color: #e11d48;
}

.fs-nav-tab.is-active::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 3px;
  background: #e11d48;
  border-radius: 2px 2px 0 0;
}

/* Secondary Sub-Pills (under MATCH) */
.fs-sub-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px 8px;
  background: #ffffff;
}

.fs-sub-pill {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 700;
  border: none;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  transition: all 0.15s ease;
}

.fs-sub-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.fs-sub-pill.is-active {
  background: #e11d48;
  color: #ffffff;
}

/* Section Header (Grey Bar) */
.fs-section-header {
  background: #f1f5f9;
  padding: 7px 14px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: #475569;
  border-radius: 4px;
  margin: 12px 24px 8px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-section-header-badge {
  background: #e11d48;
  color: #ffffff;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 9.5px;
  font-weight: 800;
}

/* FLASHSCORE PREVIEW (Scheduled) */
.fs-preview-box {
  padding: 4px 24px 14px;
  font-size: 14px;
  line-height: 1.55;
  color: #1e293b;
}

.fs-preview-team {
  color: #e11d48;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}

.fs-preview-toggle {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
  user-select: none;
}

.fs-preview-toggle:hover {
  color: #0f172a;
}

/* ODDS SECTION */
.fs-odds-filter-pills {
  display: flex;
  gap: 8px;
  padding: 0 24px 8px;
}

.fs-odds-pill {
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 5px;
  border: none;
  background: #f1f5f9;
  color: #475569;
  cursor: pointer;
  text-transform: uppercase;
  transition: all 0.15s;
}

.fs-odds-pill.is-active {
  background: #e11d48;
  color: #ffffff;
}

.fs-odds-table {
  margin: 0 24px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
}

.fs-odds-head {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 800;
  color: #64748b;
}

.fs-odds-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 14px;
}

.fs-odd-cell {
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13.5px;
  background: #ffffff;
  cursor: pointer;
  transition: all 0.15s;
}

.fs-odd-cell:hover {
  background: #f8fafc;
  border-color: #94a3b8;
}

.fs-odd-cell.is-winner {
  background: #ffc700 !important;
  border-color: #eab308 !important;
  color: #000000 !important;
}

/* WILL NOT PLAY (Injuries) */
.fs-injuries-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 6px 24px 16px;
}

.fs-injury-col-title {
  font-size: 12px;
  font-weight: 700;
  color: #64748b;
  margin-bottom: 6px;
}

.fs-injury-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  margin-bottom: 5px;
  color: #1e293b;
}

.fs-injury-icon {
  font-size: 13px;
}

/* MEDIA / VIDEO CARDS (Finished) */
.fs-media-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 4px 24px 14px;
}

.fs-media-card {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  background: #f8fafc;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.fs-media-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0,0,0,0.08);
}

.fs-media-thumb-wrap {
  width: 145px;
  height: 85px;
  flex-shrink: 0;
  position: relative;
  background: #0f172a;
}

.fs-media-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.fs-media-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 32px;
  height: 32px;
  background: #e11d48;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 12px;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.4);
}

.fs-media-info {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fs-media-tag {
  font-size: 9.5px;
  font-weight: 800;
  color: #e11d48;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.fs-media-tag--youtube {
  color: #64748b;
}

.fs-media-title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

/* MATCH TIMELINE / EVENTS */
.fs-timeline-wrap {
  padding: 0 24px 16px;
}

.fs-timeline-half-header {
  background: #f1f5f9;
  padding: 6px 14px;
  font-size: 11px;
  font-weight: 800;
  color: #475569;
  border-radius: 4px;
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fs-timeline-row {
  display: grid;
  grid-template-columns: 1fr 50px 1fr;
  align-items: center;
  padding: 6px 4px;
  font-size: 12.5px;
  min-height: 32px;
  border-bottom: 1px dashed #f1f5f9;
}

.fs-event-home {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.fs-event-away {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  font-weight: 600;
}

.fs-event-minute {
  text-align: center;
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.fs-event-score-pill {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 6px;
  font-weight: 800;
  font-size: 11px;
}

.fs-event-sub-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.fs-red-card-badge {
  width: 10px;
  height: 14px;
  background: #e11d48;
  border-radius: 2px;
  display: inline-block;
  box-shadow: 0 1px 3px rgba(225, 29, 72, 0.4);
}

/* STATS COMPARISON BARS */
.fs-stats-wrap {
  padding: 4px 24px 16px;
}

.fs-stats-row {
  display: grid;
  grid-template-columns: 45px 1fr 45px;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-size: 12.5px;
}

.fs-stats-val-left {
  font-weight: 800;
  text-align: left;
}

.fs-stats-val-right {
  font-weight: 800;
  text-align: right;
}

.fs-stats-center-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.fs-stats-name {
  font-size: 11.5px;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.fs-stats-bar-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  display: flex;
  overflow: hidden;
}

.fs-stats-bar-home {
  background: #e11d48;
  height: 100%;
}

.fs-stats-bar-away {
  background: #334155;
  height: 100%;
}

/* H2H & STANDINGS TABLES */
.fs-h2h-container {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  padding-bottom: 24px;
}

.fs-h2h-pills-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  flex-wrap: wrap;
}

.fs-h2h-pill {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  background: #f1f5f9;
  color: #334155;
  outline: none;
}

.fs-h2h-pill:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.fs-h2h-pill.is-active {
  background: #e11d48;
  color: #ffffff;
}

.fs-h2h-block {
  padding: 8px 24px 12px;
}

.fs-h2h-block-header {
  background: #f1f5f9;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 800;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-radius: 4px;
  margin-bottom: 2px;
}

.fs-h2h-list {
  display: flex;
  flex-direction: column;
}

.fs-h2h-row {
  display: flex;
  align-items: center;
  padding: 8px 6px;
  border-bottom: 1px solid #f1f5f9;
  font-size: 12px;
  transition: background 0.12s ease;
}

.fs-h2h-row:hover {
  background: #f8fafc;
}

.fs-h2h-date {
  width: 74px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  font-variant-numeric: tabular-nums;
}

.fs-h2h-league {
  width: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  color: #0f172a;
}

.fs-h2h-flag {
  width: 14px;
  height: 10px;
  object-fit: cover;
  border-radius: 1px;
  border: 1px solid #cbd5e1;
  display: inline-block;
  flex-shrink: 0;
}

.fs-h2h-flag-stgeorge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 10px;
  border: 1px solid #cbd5e1;
  border-radius: 1px;
  overflow: hidden;
  flex-shrink: 0;
}

.fs-h2h-teams {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  padding: 0 10px;
}

.fs-h2h-team-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  line-height: 1.3;
  color: #334155;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fs-h2h-team-item.is-winner {
  font-weight: 800;
  color: #0f172a;
}

.fs-h2h-team-item.is-winner .fs-h2h-team-name {
  font-weight: 800;
  color: #0f172a;
}

.fs-h2h-crest {
  width: 15px;
  height: 15px;
  object-fit: contain;
  flex-shrink: 0;
}

.fs-h2h-crest-fallback {
  width: 15px;
  height: 15px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.fs-h2h-advance {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 13px;
  height: 13px;
  border: 1px solid #94a3b8;
  border-radius: 2px;
  font-size: 9px;
  line-height: 1;
  color: #475569;
  margin-left: 4px;
  flex-shrink: 0;
}

.fs-h2h-scores {
  min-width: 24px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  line-height: 1.3;
  flex-shrink: 0;
  padding: 0 4px;
}

.fs-h2h-score-val.is-winner {
  font-weight: 800;
  color: #0f172a;
}

.fs-h2h-badge-col {
  width: 32px;
  text-align: right;
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
}

.fs-h2h-badge {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  flex-shrink: 0;
}

.fs-badge-w {
  background: #16a34a;
}

.fs-badge-d {
  background: #f59e0b;
}

.fs-badge-l {
  background: #dc2626;
}

.fs-show-more-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #0f172a;
  cursor: pointer;
  text-decoration: underline;
  background: transparent;
  border: none;
  width: 100%;
  transition: color 0.15s ease;
}

.fs-show-more-btn:hover {
  color: #e11d48;
}

.fs-table-wrap {
  padding: 4px 24px 16px;
  overflow-x: auto;
}

.fs-standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.admin-topup-target {
  font-size: 13.5px;
  color: #334155;
  background: #f8fafc;
  padding: 10px 14px;
  border-radius: 4px;
  border: 1px solid #e2e8f0;
}

.admin-topup-float-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 10px 14px;
  font-size: 13.5px;
}

.admin-topup-float-label {
  color: #166534;
  font-weight: 600;
}

.admin-topup-float-val {
  color: #15803d;
  font-weight: 800;
  font-size: 14px;
}

.admin-topup-zero-alert {
  background: #fef2f2;
  border: 1px solid #fecaca;
  border-left: 4px solid #ef4444;
  border-radius: 4px;
  padding: 12px 14px;
  color: #991b1b;
  font-size: 13px;
  line-height: 1.45;
}

.admin-topup-zero-alert-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 4px;
}

.admin-topup-zero-alert-msg {
  margin: 0;
  color: #7f1d1d;
  font-size: 12.5px;
}

.admin-topup-hint {
  font-size: 11.5px;
  color: #64748b;
  margin-top: 4px;
}

.fs-standings-table th {
  background: #f8fafc;
  padding: 8px 6px;
  text-align: center;
  font-weight: 800;
  color: #64748b;
  border-bottom: 1px solid #e2e8f0;
}

.fs-standings-table th:nth-child(2) {
  text-align: left;
}

.fs-standings-table td {
  padding: 8px 6px;
  text-align: center;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
}

.fs-standings-table td:nth-child(2) {
  text-align: left;
  font-weight: 700;
  white-space: nowrap;
}

.fs-standings-team-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.fs-standings-crest {
  width: 16px;
  height: 16px;
  object-fit: contain;
  flex-shrink: 0;
}

.fs-standings-indicator {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e11d48;
  flex-shrink: 0;
}

.fs-standings-row.is-highlighted {
  background: #fff1f2;
  font-weight: 700;
}

.fs-form-badge {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  margin: 0 1px;
}

.fs-form-w { background: #16a34a; }
.fs-form-d { background: #f59e0b; }
.fs-form-l { background: #dc2626; }

/* Responsive adjustments */
@media (max-width: 640px) {
  .fs-hero-header {
    flex-direction: column;
    gap: 16px;
    padding: 16px;
  }
  .fs-hero-team {
    width: 100%;
    justify-content: center !important;
    flex-direction: row !important;
  }
  .fs-media-grid,
  .fs-injuries-grid {
    grid-template-columns: 1fr;
  }
  .fs-nav-tabs {
    overflow-x: auto;
    gap: 16px;
    padding: 0 16px;
  }
}

/* ==========================================================================
   DYNAMIC LOCKED ODDS & BET SLIP REAL-TIME KICKOFF STYLES
   ========================================================================== */
.odd-btn.is-locked,
.pop-odd-btn.is-locked,
.hmt-odd-btn.is-locked,
.md-odd.is-locked {
  background-color: #eceff1 !important;
  color: #78909c !important;
  opacity: 0.6 !important;
  cursor: not-allowed !important;
  border-color: #cfd8dc !important;
  pointer-events: none;
  user-select: none;
  position: relative;
}

.odd-btn-value--locked {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-weight: 700;
  font-size: 11px;
}

.odd-lock-val {
  text-decoration: line-through;
  opacity: 0.65;
  font-size: 10.5px;
}

.slip-item.is-locked {
  background-color: #fff7ed !important;
  border-left: 3px solid #f97316 !important;
}

.slip-odd-badge.is-suspended {
  background-color: #fee2e2 !important;
  color: #dc2626 !important;
  font-weight: 800;
  padding: 3px 6px;
  border-radius: 4px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.slip-warning-msg {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  padding: 5px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
  margin: 4px 0 6px 0;
  line-height: 1.35;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   UPCOMING FEATURE (Leagues, Markets, Calendar Time Filter & Match Table)
   Matches Image 1 (media_1789446685905.png) & Image 2 (media_1789446954533.png)
   ========================================================================== */

.uf-container {
  width: 100%;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  margin-bottom: 24px;
}

/* 1. Top Crimson Toolbar */
.uf-toolbar {
  background: var(--brand-red, #c62828);
  height: 44px;
  display: flex;
  align-items: center;
  padding: 0 8px;
  position: relative;
  user-select: none;
}

.uf-btn {
  background: none;
  border: none;
  color: #ffffff;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  height: 100%;
  cursor: pointer;
  transition: opacity 0.15s, background-color 0.15s;
  white-space: nowrap;
}

.uf-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.uf-btn-sport {
  font-size: 16px;
  padding: 0 10px;
}

.uf-btn-calendar {
  margin-left: auto;
  font-size: 16px;
  padding: 0 10px;
}

.uf-divider {
  width: 1px;
  height: 22px;
  background: rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
}

.uf-chev {
  font-size: 11px;
  opacity: 0.9;
  transform: translateY(1px);
}

/* 2. Dropdown Panels */
.uf-panel {
  background: #ffffff;
  border-bottom: 1px solid #e0e0e0;
  animation: ufSlideDown 0.18s ease-out;
}

@keyframes ufSlideDown {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Calendar Filter Panel (Image 2) */
.uf-panel-calendar {
  background: #ffffff;
  padding: 4px 0 0 0;
}

.uf-calendar-list {
  display: flex;
  flex-direction: column;
}

.uf-radio-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 18px;
  cursor: pointer;
  border-bottom: 1px solid #f2f4f7;
  transition: background-color 0.15s;
}

.uf-radio-row:hover {
  background-color: #f7f9fa;
}

.uf-radio-circle {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid #b8bec9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: border-color 0.15s;
}

.uf-radio-row.is-checked .uf-radio-circle {
  border-color: var(--brand-red, #c62828);
}

.uf-radio-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.15s, transform 0.15s;
}

.uf-radio-row.is-checked .uf-radio-dot {
  background: var(--brand-red, #c62828);
}

.uf-radio-label {
  font-size: 15px;
  font-weight: 500;
  color: #2d3748;
}

.uf-radio-row.is-checked .uf-radio-label {
  font-weight: 600;
  color: #1a202c;
}

/* Action Buttons Bar (Image 2) */
.uf-actions-bar {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  background: #f8f9fa;
  border-top: 1px solid #e2e8f0;
}

.uf-btn-reset {
  flex: 1;
  height: 42px;
  background: #e2e8f0;
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s;
}

.uf-btn-reset:hover {
  background: #cbd5e1;
}

.uf-btn-apply {
  flex: 1;
  height: 42px;
  background: var(--brand-red, #c62828);
  color: #ffffff;
  font-size: 13.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.15s;
}

.uf-btn-apply:hover {
  filter: brightness(0.92);
}

/* Leagues Filter Panel */
.uf-panel-leagues {
  background: #ffffff;
  padding: 10px 0 0 0;
}

.uf-search-box {
  padding: 4px 16px 8px 16px;
}

.uf-search-input {
  width: 100%;
  box-sizing: border-box;
  height: 38px;
  padding: 0 12px;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  font-size: 14px;
  color: #1e293b;
  outline: none;
  background: #f8fafc;
}

.uf-search-input:focus {
  border-color: var(--brand-red, #c62828);
  background: #ffffff;
}

.uf-quick-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 16px 10px 16px;
  border-bottom: 1px solid #f1f5f9;
}

.uf-quick-link {
  background: none;
  border: none;
  color: var(--brand-red, #c62828);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.uf-quick-link:hover {
  text-decoration: underline;
}

.uf-quick-sep {
  color: #cbd5e1;
  font-size: 12px;
}

.uf-leagues-list {
  max-height: 280px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.uf-check-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  border-bottom: 1px solid #f1f5f9;
  transition: background-color 0.15s;
}

.uf-check-row:hover {
  background-color: #f8fafc;
}

.uf-checkbox-input {
  display: none;
}

.uf-check-box {
  width: 18px;
  height: 18px;
  border: 2px solid #94a3b8;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.15s;
}

.uf-check-tick {
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  display: none;
}

.uf-checkbox-input:checked + .uf-check-box {
  background: var(--brand-red, #c62828);
  border-color: var(--brand-red, #c62828);
}

.uf-checkbox-input:checked + .uf-check-box .uf-check-tick {
  display: block;
}

.uf-league-info {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
}

.uf-league-name {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-league-country {
  color: #64748b;
  font-size: 12px;
  flex-shrink: 0;
}

.uf-league-count {
  font-size: 12px;
  font-weight: 600;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 10px;
}

/* Markets Panel */
.uf-panel-markets,
.uf-panel-sport {
  background: #ffffff;
  padding: 6px 0;
}

.uf-markets-list,
.uf-sport-list {
  display: flex;
  flex-direction: column;
}

.uf-market-item,
.uf-sport-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 18px;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: #2d3748;
  cursor: pointer;
  border-bottom: 1px solid #f8fafc;
  transition: background 0.15s;
}

.uf-market-item:hover,
.uf-sport-item:hover {
  background-color: #f7f9fa;
}

.uf-market-item.is-active,
.uf-sport-item.is-active {
  font-weight: 700;
  color: var(--brand-red, #c62828);
  background-color: #fff5f5;
}

.uf-active-check {
  font-size: 15px;
  font-weight: 700;
  color: var(--brand-red, #c62828);
}

/* 3. Table Header (Image 1) */
.uf-table-head {
  display: flex;
  align-items: stretch;
  background: #f5f5f5;
  border-top: 1px solid #e0e0e0;
  border-bottom: 1px solid #e0e0e0;
  height: 36px;
  font-size: 13px;
  font-weight: 500;
  color: #4b5563;
  user-select: none;
}

.uf-th-event {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 12px;
}

.uf-th-odds {
  display: grid;
  width: 210px;
  flex-shrink: 0;
}

.uf-th-odd {
  display: flex;
  align-items: center;
  justify-content: center;
  border-left: 1px solid #e0e0e0;
  font-weight: 500;
  padding: 0 4px;
}

.uf-th-more {
  width: 42px;
  flex-shrink: 0;
  border-left: 1px solid #e0e0e0;
}

/* 4. Date & Kickoff Banners (Image 1) */
.uf-date-banner {
  background: #ebebeb;
  border-bottom: 1px solid #dedede;
  padding: 6px 12px;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-red, #b71c1c);
  user-select: none;
}

/* 5. Match Rows (Image 1) */
.uf-match-row {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-bottom: 1px solid #e9ecef;
  min-height: 64px;
  transition: background-color 0.12s;
}

.uf-match-row:hover {
  background-color: #fafbfc;
}

.uf-col-event {
  flex: 1;
  min-width: 0;
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  cursor: pointer;
}

.uf-team-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

.uf-team-name:last-of-type {
  margin-bottom: 3px;
}

.uf-breadcrumb {
  font-size: 11px;
  color: #718096;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.uf-col-odds {
  display: grid;
  width: 210px;
  flex-shrink: 0;
}

.uf-odd-btn {
  background: #ffffff;
  border: none;
  border-left: 1px solid #e0e0e0;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}

.uf-odd-btn:hover {
  background-color: #f1f5f9;
}

.uf-odd-val {
  font-size: 14.5px;
  font-weight: 700;
  color: #111827;
}

/* Selected Odd State - adapts to all 5 theme colors via --brand-red */
.uf-odd-btn.is-selected,
[data-theme] .uf-odd-btn.is-selected,
[data-color] .uf-odd-btn.is-selected {
  background: var(--brand-red, #c62828) !important;
  color: #ffffff !important;
}

.uf-odd-btn.is-selected .uf-odd-val,
[data-theme] .uf-odd-btn.is-selected .uf-odd-val,
[data-color] .uf-odd-btn.is-selected .uf-odd-val {
  color: #ffffff !important;
}

.uf-odd-btn.is-locked,
.uf-odd-btn[disabled] {
  opacity: 0.45;
  cursor: not-allowed;
}

.uf-col-more {
  width: 42px;
  flex-shrink: 0;
  border-left: 1px solid #e0e0e0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.uf-more-btn {
  background: none;
  border: none;
  width: 100%;
  height: 100%;
  font-size: 20px;
  font-weight: 600;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.12s, color 0.12s;
}

.uf-more-btn:hover {
  background-color: #e5e7eb;
  color: #111827;
}

.uf-empty {
  padding: 36px 16px;
  text-align: center;
  font-size: 14px;
  color: #6b7280;
  background: #ffffff;
}

/* ==========================================================================
   DARK THEME OVERRIDES FOR UPCOMING FEATURE
   ========================================================================== */
[data-theme="dark"] .uf-container {
  background: #141a29;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

[data-theme="dark"] .uf-panel,
[data-theme="dark"] .uf-panel-calendar,
[data-theme="dark"] .uf-panel-leagues,
[data-theme="dark"] .uf-panel-markets,
[data-theme="dark"] .uf-panel-sport {
  background: #141a29;
  border-color: #232d42;
}

[data-theme="dark"] .uf-radio-row {
  border-color: #1d2538;
}

[data-theme="dark"] .uf-radio-row:hover {
  background-color: #1b2336;
}

[data-theme="dark"] .uf-radio-circle {
  border-color: #475569;
}

[data-theme="dark"] .uf-radio-label {
  color: #e2e8f0;
}

[data-theme="dark"] .uf-radio-row.is-checked .uf-radio-label {
  color: #ffffff;
}

[data-theme="dark"] .uf-actions-bar {
  background: #0f1422;
  border-color: #232d42;
}

[data-theme="dark"] .uf-btn-reset {
  background: #232d42;
  color: #e2e8f0;
}

[data-theme="dark"] .uf-btn-reset:hover {
  background: #2f3c56;
}

[data-theme="dark"] .uf-search-input {
  background: #0f1422;
  border-color: #232d42;
  color: #f1f5f9;
}

[data-theme="dark"] .uf-search-input:focus {
  border-color: var(--brand-red, #c62828);
  background: #141a29;
}

[data-theme="dark"] .uf-check-row {
  border-color: #1d2538;
}

[data-theme="dark"] .uf-check-row:hover {
  background-color: #1b2336;
}

[data-theme="dark"] .uf-check-box {
  border-color: #475569;
}

[data-theme="dark"] .uf-league-info {
  color: #e2e8f0;
}

[data-theme="dark"] .uf-league-country {
  color: #94a3b8;
}

[data-theme="dark"] .uf-league-count {
  background: #1e263a;
  color: #94a3b8;
}

[data-theme="dark"] .uf-market-item,
[data-theme="dark"] .uf-sport-item {
  color: #e2e8f0;
  border-color: #1d2538;
}

[data-theme="dark"] .uf-market-item:hover,
[data-theme="dark"] .uf-sport-item:hover {
  background-color: #1b2336;
}

[data-theme="dark"] .uf-market-item.is-active,
[data-theme="dark"] .uf-sport-item.is-active {
  background-color: #1e263a;
}

[data-theme="dark"] .uf-table-head {
  background: #182032;
  border-color: #232d42;
  color: #94a3b8;
}

[data-theme="dark"] .uf-th-odd,
[data-theme="dark"] .uf-th-more {
  border-color: #232d42;
}

[data-theme="dark"] .uf-date-banner {
  background: #101624;
  border-color: #232d42;
  color: var(--brand-red-light, #f87171);
}

[data-theme="dark"] .uf-match-row {
  background: #141a29;
  border-color: #1f283d;
}

[data-theme="dark"] .uf-match-row:hover {
  background-color: #1a2235;
}

[data-theme="dark"] .uf-team-name {
  color: #f1f5f9;
}

[data-theme="dark"] .uf-breadcrumb {
  color: #8896ab;
}

[data-theme="dark"] .uf-odd-btn {
  background: #141a29;
  border-color: #232d42;
}

[data-theme="dark"] .uf-odd-btn:hover {
  background-color: #1f283d;
}

[data-theme="dark"] .uf-odd-val {
  color: #f1f5f9;
}

[data-theme="dark"] .uf-col-more {
  border-color: #232d42;
}

[data-theme="dark"] .uf-more-btn {
  color: #cbd5e1;
}

[data-theme="dark"] .uf-more-btn:hover {
  background-color: #232d42;
  color: #ffffff;
}

[data-theme="dark"] .uf-empty {
  background: #141a29;
  color: #94a3b8;
}

/* ==========================================================================
   DAILY EVENTS DAY CHIPS & BANNER STYLES
   ========================================================================== */
.uf-day-chips-wrap {
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
}

.uf-day-chips-scroll {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.uf-day-chips-scroll::-webkit-scrollbar {
  display: none;
}

.uf-day-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid #d0d7de;
  color: #334155;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.uf-day-chip:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.uf-day-chip.is-active,
[data-theme] .uf-day-chip.is-active,
[data-color] .uf-day-chip.is-active {
  background: var(--brand-red, #c62828) !important;
  color: #ffffff !important;
  border-color: var(--brand-red, #c62828) !important;
}

.uf-day-chip-count {
  font-size: 11px;
  padding: 1px 5px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.07);
  color: inherit;
  font-weight: 500;
}

.uf-day-chip.is-active .uf-day-chip-count {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

.uf-daily-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #eceff1;
  border-bottom: 1px solid #cfd8dc;
  padding: 7px 12px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-red, #b71c1c);
  user-select: none;
}

.uf-daily-title {
  display: flex;
  align-items: center;
  gap: 6px;
}

.uf-daily-count {
  font-size: 11.5px;
  font-weight: 500;
  color: #64748b;
}

.uf-time-pill {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-red, #c62828);
  background: rgba(198, 40, 40, 0.08);
  padding: 1px 6px;
  border-radius: 3px;
  margin-bottom: 3px;
  width: fit-content;
  letter-spacing: 0.2px;
}

.uf-time-icon {
  font-size: 10px;
  opacity: 0.85;
}

[data-theme="dark"] .uf-day-chips-wrap {
  background: #0f1422;
  border-bottom: 1px solid #1f283d;
}

[data-theme="dark"] .uf-day-chip {
  background: #182032;
  border-color: #2a374f;
  color: #cbd5e1;
}

[data-theme="dark"] .uf-day-chip:hover {
  background: #232d42;
}

[data-theme="dark"] .uf-day-chip-count {
  background: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .uf-daily-banner {
  background: #101624;
  border-bottom: 1px solid #1f283d;
  color: var(--brand-red-light, #f87171);
}

[data-theme="dark"] .uf-daily-count {
  color: #94a3b8;
}

[data-theme="dark"] .uf-time-pill {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.16);
}

/* Mobile viewport adjustments */
@media (max-width: 600px) {
  .uf-toolbar {
    padding: 0 4px;
    height: 42px;
  }
  .uf-btn {
    padding: 0 8px;
    font-size: 13px;
    gap: 4px;
  }
  .uf-btn-sport,
  .uf-btn-calendar {
    padding: 0 8px;
  }
  .uf-th-odds,
  .uf-col-odds {
    width: 180px;
  }
  .uf-odd-val {
    font-size: 13.5px;
  }
  .uf-th-more,
  .uf-col-more {
    width: 36px;
  }
  .uf-col-event {
    padding: 7px 8px;
  }
  .uf-team-name {
    font-size: 12.5px;
  }
  .uf-breadcrumb {
    font-size: 10.5px;
  }
  .uf-day-chips-scroll {
    padding: 6px 8px;
    gap: 6px;
  }
  .uf-day-chip {
    padding: 4px 10px;
    font-size: 11.5px;
  }
}

/* ==========================================================================
   MOBILE FLASHSCORE RESULTS VIEW (media_1789450964951.png)
   ========================================================================== */
.fs-mobile-results-container {
  width: 100%;
  padding-bottom: 74px; /* clearance for sticky 4-tab bottom bar */
  background: #f8fafc;
  min-height: 100vh;
}

.fs-mobile-header {
  background: #ffffff;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f0f3f6;
  position: sticky;
  top: 0;
  z-index: 10;
}

.fs-mobile-header-left {
  display: flex;
  flex-direction: column;
}

.fs-mobile-subtitle {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  line-height: 1.2;
}

.fs-mobile-date-label {
  font-size: 20px;
  font-weight: 800;
  color: #111827;
  letter-spacing: -0.3px;
  margin-top: 2px;
}

.fs-mobile-cal-btn {
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  padding: 6px;
  color: #374151;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fs-mobile-date-input-hidden {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: pointer;
}

/* Yellow / Cream League Banner */
.fs-mobile-league-banner {
  background: #FFF8E7;
  border-top: 1px solid #F6E6C2;
  border-bottom: 1px solid #F6E6C2;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.fs-mobile-league-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 6px;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  flex-shrink: 0;
}

.fs-mobile-league-info {
  display: flex;
  flex-direction: column;
}

.fs-mobile-league-name {
  font-size: 15px;
  font-weight: 700;
  color: #111827;
  line-height: 1.25;
}

.fs-mobile-league-country {
  font-size: 11px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
}

.fs-mobile-country-flag {
  font-size: 12px;
}

/* Match Row */
.fs-mobile-match-row {
  display: flex;
  align-items: center;
  padding: 10px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  min-height: 64px;
  cursor: pointer;
  transition: background-color 0.12s;
}

.fs-mobile-match-row:hover {
  background-color: #fafbfc;
}

.fs-mobile-star {
  background: none;
  border: none;
  font-size: 19px;
  color: #cbd5e1;
  cursor: pointer;
  padding: 4px 12px 4px 0;
  line-height: 1;
  flex-shrink: 0;
  transition: color 0.15s;
}

.fs-mobile-star.is-favorited {
  color: #f59e0b;
}

.fs-mobile-teams-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fs-mobile-team-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-mobile-team-crest {
  width: 18px;
  height: 18px;
  object-fit: contain;
  flex-shrink: 0;
}

.fs-mobile-team-name {
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-mobile-team-score {
  font-size: 14px;
  font-weight: 700;
  color: #111827;
  margin-left: auto;
  padding-right: 8px;
}

.fs-mobile-mid-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  padding: 0 12px;
  flex-shrink: 0;
}

.fs-mobile-preview-badge {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  padding: 1px 5px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: #ffffff;
}

.fs-mobile-time {
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}

.fs-mobile-odds-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  width: 44px;
  flex-shrink: 0;
  gap: 2px;
}

.fs-mobile-odd-line {
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  text-align: right;
  line-height: 1.25;
}

/* 4-Tab Bottom Navigation Bar (All Games, LIVE, Favorite, Finished) */
.fs-mobile-bnav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 58px;
  background: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  z-index: 9999;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.07);
}

.fs-mobile-bnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  gap: 3px;
  transition: color 0.15s;
}

.fs-mobile-bnav-item:hover {
  color: #1e293b;
}

.fs-mobile-bnav-item.is-active {
  color: var(--brand-red, #e60028) !important;
}

.fs-mobile-bnav-item.is-active svg {
  stroke: var(--brand-red, #e60028) !important;
}

.fs-bnav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-mobile-bnav-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1px;
}

/* Dark Theme Overrides for Mobile Results */
[data-theme="dark"] .fs-mobile-results-container {
  background: #0b0f19;
}

[data-theme="dark"] .fs-mobile-header {
  background: #141a29;
  border-color: #1f283d;
}

[data-theme="dark"] .fs-mobile-subtitle {
  color: #94a3b8;
}

[data-theme="dark"] .fs-mobile-date-label {
  color: #f1f5f9;
}

[data-theme="dark"] .fs-mobile-cal-btn {
  color: #cbd5e1;
}

[data-theme="dark"] .fs-mobile-league-banner {
  background: #232212;
  border-color: #3d3b20;
}

[data-theme="dark"] .fs-mobile-league-name {
  color: #f8fafc;
}

[data-theme="dark"] .fs-mobile-league-country {
  color: #a1a1aa;
}

[data-theme="dark"] .fs-mobile-match-row {
  background: #141a29;
  border-color: #1f283d;
}

[data-theme="dark"] .fs-mobile-match-row:hover {
  background-color: #1a2235;
}

[data-theme="dark"] .fs-mobile-team-name {
  color: #f1f5f9;
}

[data-theme="dark"] .fs-mobile-preview-badge {
  background: #1e263a;
  border-color: #334155;
  color: #94a3b8;
}

[data-theme="dark"] .fs-mobile-time {
  color: #cbd5e1;
}

[data-theme="dark"] .fs-mobile-odd-line {
  color: #94a3b8;
}

[data-theme="dark"] .fs-mobile-bnav {
  background: #141a29;
  border-color: #232d42;
}

[data-theme="dark"] .fs-mobile-bnav-item {
  color: #94a3b8;
}

.fs-mobile-back-btn {
  background: none;
  border: none;
  padding: 4px 10px 4px 0;
  cursor: pointer;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

[data-theme="dark"] .fs-mobile-back-btn {
  color: #cbd5e1;
}

@media (max-width: 768px) {
  .results-flashscore-topbar {
    display: none !important;
  }
}

/* ==========================================================================
   Results Competitions Landing Screen (Flashscore style: media_1789544332647.png)
   ========================================================================== */
.fs-comp-container {
  width: 100%;
  background: #ffffff;
  min-height: calc(100vh - 58px);
  padding-bottom: 74px;
}

/* 7-Day Date Bar */
.fs-comp-date-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  padding: 6px 2px 2px 2px;
  position: sticky;
  top: 0;
  z-index: 20;
}

.fs-comp-date-item {
  flex: 1;
  min-width: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 4px 0 2px 0;
  user-select: none;
  transition: opacity 0.15s;
}

.fs-comp-date-item:active {
  opacity: 0.7;
}

.fs-comp-date-day {
  font-size: 11px;
  font-weight: 700;
  color: #475569;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  line-height: 1.15;
}

.fs-comp-date-num {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
  margin-top: 2px;
  line-height: 1.15;
}

.fs-comp-date-indicator {
  width: 32px;
  height: 3px;
  background: transparent;
  border-radius: 2px;
  margin-top: 4px;
  transition: background 0.15s;
}

.fs-comp-date-item.is-active .fs-comp-date-day,
.fs-comp-date-item.is-active .fs-comp-date-num {
  color: #e11d48 !important;
  font-weight: 800;
}

.fs-comp-date-item.is-active .fs-comp-date-indicator {
  background: #e11d48 !important;
}

/* All Games Row */
.fs-comp-all-games-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  transition: background-color 0.15s;
}

.fs-comp-all-games-row:active {
  background-color: #f1f5f9;
}

.fs-comp-all-games-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fs-comp-all-games-title {
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.fs-comp-all-games-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.fs-comp-live-badge {
  background: #e11d48;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 6px;
  line-height: 1.2;
}

.fs-comp-total-badge {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  min-width: 28px;
  text-align: right;
}

/* Section Headers */
.fs-comp-section-fav {
  background: #fdf5d7;
  border-top: 1px solid #f6e6c2;
  border-bottom: 1px solid #f6e6c2;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  color: #78350f;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.fs-comp-section-other {
  background: #f1f5f9;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 8px 16px;
  font-size: 12px;
  font-weight: 800;
  color: #475569;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Competition List Rows */
.fs-comp-list {
  background: #ffffff;
}

.fs-comp-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  background: #ffffff;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background-color 0.15s;
}

.fs-comp-row:active {
  background-color: #f8fafc;
}

.fs-comp-row-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.fs-comp-flag-box {
  width: 26px;
  height: 16px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.fs-comp-flag {
  width: 100%;
  height: 100%;
  display: block;
}

.fs-comp-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.fs-comp-country {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.fs-comp-name {
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fs-comp-row-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.fs-comp-audio-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
}

.fs-comp-count-badge {
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  min-width: 20px;
  text-align: right;
}

/* Dark Theme Overrides for Competitions Landing Screen */
[data-theme="dark"] .fs-comp-container {
  background: #0b0f19;
}

[data-theme="dark"] .fs-comp-date-bar {
  background: #141a29;
  border-color: #1f283d;
}

[data-theme="dark"] .fs-comp-date-day {
  color: #94a3b8;
}

[data-theme="dark"] .fs-comp-date-num {
  color: #64748b;
}

[data-theme="dark"] .fs-comp-all-games-row {
  background: #141a29;
  border-color: #1f283d;
}

[data-theme="dark"] .fs-comp-all-games-row:active {
  background-color: #1a2235;
}

[data-theme="dark"] .fs-comp-all-games-title {
  color: #f1f5f9;
}

[data-theme="dark"] .fs-comp-all-games-left svg {
  stroke: #f1f5f9;
}

[data-theme="dark"] .fs-comp-all-games-left svg circle {
  fill: #f1f5f9;
}

[data-theme="dark"] .fs-comp-total-badge {
  color: #94a3b8;
}

[data-theme="dark"] .fs-comp-section-fav {
  background: #232212;
  border-color: #3d3b20;
  color: #fde047;
}

[data-theme="dark"] .fs-comp-section-other {
  background: #182030;
  border-color: #243048;
  color: #cbd5e1;
}

[data-theme="dark"] .fs-comp-list {
  background: #0b0f19;
}

[data-theme="dark"] .fs-comp-row {
  background: #141a29;
  border-color: #1f283d;
}

[data-theme="dark"] .fs-comp-row:active {
  background-color: #1a2235;
}

[data-theme="dark"] .fs-comp-name {
  color: #f1f5f9;
}

[data-theme="dark"] .fs-comp-country {
  color: #64748b;
}

[data-theme="dark"] .fs-comp-count-badge {
  color: #94a3b8;
}

/* ==========================================================================
   NIGHT MODE: MATCH TABLES, LEAGUE PAGES & MATCH DETAIL VIEW
   Completely identical to the obsidian & warm orange home page styling:
   - Pure white team names (#ffffff, font-weight: 700)
   - Slate match IDs (#9ca3af) and bright kickoff times (#e4e4e7)
   - Sleek dark obsidian backgrounds (#130e09 / #15100b / #18120c)
   - High-contrast odds buttons (obsidian card, slate label, white value)
   - Solid vibrant orange (#f97316) for selected odds with black text
   - Clean obsidian league headers, date banners, and breadcrumbs
   ========================================================================== */

/* 1. League Page & Match Board Container */
html[data-night="true"] #view-leagues,
html.is-night-mode #view-leagues,
[data-night="true"] #view-leagues,
html[data-night="true"] .match-board,
html.is-night-mode .match-board,
[data-night="true"] .match-board {
  background: #0d0a07 !important;
  color: #f3f4f6 !important;
}

/* 2. League Block & Headers */
html[data-night="true"] #view-leagues .league-block,
html.is-night-mode #view-leagues .league-block,
[data-night="true"] .league-block {
  background: #140f0a !important;
  border: 1px solid #281d13 !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  margin-bottom: 12px !important;
  box-shadow: none !important;
}

html[data-night="true"] #view-leagues .league-block-head,
html.is-night-mode #view-leagues .league-block-head,
[data-night="true"] .league-block-head {
  background: #18120c !important;
  color: #ffffff !important;
  border-bottom: 1px solid #2a1e14 !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

html[data-night="true"] #view-leagues .league-block-head span,
html.is-night-mode #view-leagues .league-block-head span,
[data-night="true"] .league-block-head span {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: 0.04em !important;
}

/* 3. Date Banners */
html[data-night="true"] #view-leagues .hmt-date-banner,
html.is-night-mode #view-leagues .hmt-date-banner,
[data-night="true"] .hmt-date-banner,
html[data-night="true"] .mobile-league-date-banner,
html.is-night-mode .mobile-league-date-banner,
[data-night="true"] .mobile-league-date-banner {
  background: #17110b !important;
  border-bottom: 1px solid #281d13 !important;
  color: #c4b5a5 !important;
  padding: 6px 12px !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

/* 4. Match Rows */
html[data-night="true"] #view-leagues .match-row,
html.is-night-mode #view-leagues .match-row,
[data-night="true"] .match-row,
html[data-night="true"] .hmt-row,
html.is-night-mode .hmt-row,
[data-night="true"] .hmt-row,
html[data-night="true"] .mobile-league-row,
html.is-night-mode .mobile-league-row,
[data-night="true"] .mobile-league-row {
  background: #130e09 !important;
  border-bottom: 1px solid #20170f !important;
  color: #f3f4f6 !important;
  transition: background 0.1s ease !important;
}

html[data-night="true"] #view-leagues .match-row:nth-child(even),
html.is-night-mode #view-leagues .match-row:nth-child(even),
[data-night="true"] .match-row:nth-child(even),
html[data-night="true"] .hmt-row:nth-child(even),
html.is-night-mode .hmt-row:nth-child(even),
[data-night="true"] .hmt-row:nth-child(even),
html[data-night="true"] .mobile-league-row:nth-child(even),
html.is-night-mode .mobile-league-row:nth-child(even),
[data-night="true"] .mobile-league-row:nth-child(even) {
  background: #15100b !important;
}

html[data-night="true"] #view-leagues .match-row:hover,
html.is-night-mode #view-leagues .match-row:hover,
[data-night="true"] .match-row:hover,
html[data-night="true"] .hmt-row:hover,
html.is-night-mode .hmt-row:hover,
[data-night="true"] .hmt-row:hover,
html[data-night="true"] .mobile-league-row:hover,
html.is-night-mode .mobile-league-row:hover,
[data-night="true"] .mobile-league-row:hover {
  background: #1c150e !important;
}

/* 5. TEAM NAMES: PURE HIGH-VISIBILITY WHITE (Matching Home Page) */
html[data-night="true"] #view-leagues .match-row-team,
html.is-night-mode #view-leagues .match-row-team,
html[data-night="true"] #view-leagues .match-row-teams,
html.is-night-mode #view-leagues .match-row-teams,
[data-night="true"] .match-row-team,
[data-night="true"] .match-row-teams,
[data-night="true"] .hmt-event-name,
[data-night="true"] .hmt-team-name,
[data-night="true"] .match-name,
[data-night="true"] .mobile-league-team,
[data-night="true"] .uf-team-name,
html[data-night="true"] .mobile-league-team,
html.is-night-mode .mobile-league-team,
html[data-night="true"] .uf-team-name,
html.is-night-mode .uf-team-name {
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12.5px !important;
  opacity: 1 !important;
}

html[data-night="true"] #view-leagues .match-row-team:hover,
html.is-night-mode #view-leagues .match-row-team:hover,
[data-night="true"] .match-row-team:hover,
[data-night="true"] .hmt-event-name:hover {
  color: #f97316 !important;
}

/* 6. Match IDs & Kickoff Times & VS Separator */
html[data-night="true"] #view-leagues .match-row-id,
html.is-night-mode #view-leagues .match-row-id,
[data-night="true"] .match-row-id,
[data-night="true"] .hmt-col-id,
[data-night="true"] .hmt-id {
  color: #9ca3af !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

html[data-night="true"] #view-leagues .match-row-kickoff,
html.is-night-mode #view-leagues .match-row-kickoff,
[data-night="true"] .match-row-kickoff,
[data-night="true"] .hmt-col-time,
[data-night="true"] .hmt-time,
[data-night="true"] .mobile-league-time {
  color: #e4e4e7 !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

html[data-night="true"] #view-leagues .match-row-vs,
html.is-night-mode #view-leagues .match-row-vs,
[data-night="true"] .match-row-vs {
  color: #71717a !important;
  font-weight: 700 !important;
}

/* 7. Odds Buttons */
html[data-night="true"] #view-leagues .odd-btn,
html.is-night-mode #view-leagues .odd-btn,
[data-night="true"] .odd-btn,
[data-night="true"] .hmt-odd-btn,
[data-night="true"] .mobile-league-odd-btn,
[data-night="true"] .uf-odd-btn {
  background: #1b140e !important;
  border: 1px solid #2d2016 !important;
  border-radius: 4px !important;
  color: #ffffff !important;
  transition: all 0.12s ease !important;
}

html[data-night="true"] #view-leagues .odd-btn:hover:not(.is-selected),
html.is-night-mode #view-leagues .odd-btn:hover:not(.is-selected),
[data-night="true"] .odd-btn:hover:not(.is-selected),
[data-night="true"] .hmt-odd-btn:hover:not(.is-selected),
[data-night="true"] .mobile-league-odd-btn:hover:not(.is-selected),
[data-night="true"] .uf-odd-btn:hover:not(.is-selected) {
  background: #251b12 !important;
  border-color: #4a3423 !important;
}

html[data-night="true"] #view-leagues .odd-btn .odd-btn-label,
html.is-night-mode #view-leagues .odd-btn .odd-btn-label,
[data-night="true"] .odd-btn .odd-btn-label,
[data-night="true"] .odd-btn-label,
[data-night="true"] .odd-label,
[data-night="true"] .uf-odd-label {
  color: #a1a1aa !important;
  font-size: 9px !important;
  font-weight: 700 !important;
}

html[data-night="true"] #view-leagues .odd-btn .odd-btn-value,
html.is-night-mode #view-leagues .odd-btn .odd-btn-value,
[data-night="true"] .odd-btn .odd-btn-value,
[data-night="true"] .odd-btn-value,
[data-night="true"] .odd-val,
[data-night="true"] .uf-odd-val,
[data-night="true"] .hmt-odd-btn span,
[data-night="true"] .odd-btn span,
[data-night="true"] .mobile-league-odd-val {
  color: #ffffff !important;
  font-size: 11.5px !important;
  font-weight: 800 !important;
}

/* 8. SELECTED ODDS BUTTON (Vibrant Amber-Orange with Black Bold Text) */
html[data-night="true"] #view-leagues .odd-btn.is-selected,
html.is-night-mode #view-leagues .odd-btn.is-selected,
[data-night="true"] .odd-btn.is-selected,
[data-night="true"] .hmt-odd-btn.is-selected,
[data-night="true"] .mobile-league-odd-btn.is-selected,
[data-night="true"] .uf-odd-btn.is-selected {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #000000 !important;
  box-shadow: 0 0 8px rgba(249, 115, 22, 0.4) !important;
}

html[data-night="true"] #view-leagues .odd-btn.is-selected *,
html.is-night-mode #view-leagues .odd-btn.is-selected *,
[data-night="true"] .odd-btn.is-selected *,
[data-night="true"] .hmt-odd-btn.is-selected *,
[data-night="true"] .mobile-league-odd-btn.is-selected *,
[data-night="true"] .uf-odd-btn.is-selected * {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* 9. More markets "+" button */
html[data-night="true"] #view-leagues .match-row-more-btn,
html.is-night-mode #view-leagues .match-row-more-btn,
[data-night="true"] .match-row-more-btn,
[data-night="true"] .hmt-more-btn,
[data-night="true"] .uf-more-btn {
  background: #1b140e !important;
  border: 1px solid #2d2016 !important;
  color: #ffffff !important;
  border-radius: 4px !important;
}

html[data-night="true"] #view-leagues .match-row-more-btn:hover,
html.is-night-mode #view-leagues .match-row-more-btn:hover,
[data-night="true"] .match-row-more-btn:hover,
[data-night="true"] .hmt-more-btn:hover,
[data-night="true"] .uf-more-btn:hover {
  background: #251b12 !important;
  border-color: #4a3423 !important;
}

/* 10. Leagues Page Controls & Market Tabs */
html[data-night="true"] #view-leagues #leagues-back,
html.is-night-mode #view-leagues #leagues-back {
  background: #18120c !important;
  border: 1px solid #2d2016 !important;
  color: #f97316 !important;
  font-weight: 700 !important;
}

html[data-night="true"] #view-leagues #leagues-back:hover,
html.is-night-mode #view-leagues #leagues-back:hover {
  background: #251b12 !important;
  border-color: #4a3423 !important;
  color: #ffffff !important;
}

html[data-night="true"] #view-leagues .league-page-head,
html.is-night-mode #view-leagues .league-page-head {
  background: #16100b !important;
  border: 1px solid #281d13 !important;
  color: #ffffff !important;
}

html[data-night="true"] #view-leagues .league-market-tabs-wrap,
html.is-night-mode #view-leagues .league-market-tabs-wrap,
[data-night="true"] .league-market-tabs-wrap {
  background: #140f0a !important;
  border: 1px solid #281d13 !important;
  box-shadow: none !important;
}

html[data-night="true"] .league-m-tab,
html.is-night-mode .league-m-tab,
[data-night="true"] .league-m-tab {
  background: #1b140e !important;
  color: #a1a1aa !important;
  border: 1px solid #2d2016 !important;
  font-weight: 700 !important;
}

html[data-night="true"] .league-m-tab:hover,
html.is-night-mode .league-m-tab:hover,
[data-night="true"] .league-m-tab:hover {
  background: #251b12 !important;
  border-color: #4a3423 !important;
  color: #ffffff !important;
}

html[data-night="true"] .league-m-tab.is-active,
html.is-night-mode .league-m-tab.is-active,
[data-night="true"] .league-m-tab.is-active {
  background: #f97316 !important;
  color: #000000 !important;
  border-color: #f97316 !important;
  font-weight: 800 !important;
}

/* 11. Match Detail View (#view-match) */
html[data-night="true"] #view-match,
html.is-night-mode #view-match,
[data-night="true"] .match-detail-view {
  background: #0d0a07 !important;
  border-color: #281d13 !important;
  color: #f3f4f6 !important;
}

html[data-night="true"] .md-breadcrumb,
html.is-night-mode .md-breadcrumb {
  background: #140f0a !important;
  border-bottom: 1px solid #281d13 !important;
  color: #d4d4d8 !important;
}

html[data-night="true"] .md-breadcrumb-back,
html.is-night-mode .md-breadcrumb-back,
html[data-night="true"] .md-breadcrumb-dots,
html.is-night-mode .md-breadcrumb-dots {
  color: #f97316 !important;
}

html[data-night="true"] .md-hero,
html.is-night-mode .md-hero {
  background: #140f0a !important;
  border-bottom: 1px solid #281d13 !important;
}

html[data-night="true"] .md-date,
html.is-night-mode .md-date {
  color: #c4b5a5 !important;
}

html[data-night="true"] .md-team span,
html.is-night-mode .md-team span {
  color: #ffffff !important;
  font-weight: 800 !important;
}

html[data-night="true"] .md-vs,
html.is-night-mode .md-vs {
  color: #f97316 !important;
}

html[data-night="true"] .md-tabs-wrap,
html.is-night-mode .md-tabs-wrap {
  background: #110d08 !important;
  border-bottom: 1px solid #241a11 !important;
}

html[data-night="true"] .md-tab,
html.is-night-mode .md-tab {
  background: #1b140e !important;
  border: 1px solid #2d2016 !important;
  color: #a1a1aa !important;
}

html[data-night="true"] .md-tab:hover,
html.is-night-mode .md-tab:hover {
  background: #251b12 !important;
  border-color: #4a3423 !important;
  color: #ffffff !important;
}

html[data-night="true"] .md-tab.is-on,
html.is-night-mode .md-tab.is-on {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #000000 !important;
  font-weight: 800 !important;
}

html[data-night="true"] .md-tab.is-on *,
html.is-night-mode .md-tab.is-on * {
  color: #000000 !important;
}

html[data-night="true"] .md-toolbar,
html.is-night-mode .md-toolbar {
  background: #140f0a !important;
  border-bottom: 1px solid #281d13 !important;
}

html[data-night="true"] .md-search input,
html.is-night-mode .md-search input {
  color: #ffffff !important;
}

html[data-night="true"] .md-market,
html.is-night-mode .md-market {
  background: #140f0a !important;
  border-bottom: 1px solid #241a11 !important;
}

html[data-night="true"] .md-market-head,
html.is-night-mode .md-market-head {
  background: #18120c !important;
  border-bottom: 1px solid #281d13 !important;
  color: #ffffff !important;
}

html[data-night="true"] .md-market-title,
html.is-night-mode .md-market-title {
  color: #ffffff !important;
  font-weight: 700 !important;
}

html[data-night="true"] .md-market-body,
html.is-night-mode .md-market-body {
  background: #110d08 !important;
}

html[data-night="true"] .md-odd,
html.is-night-mode .md-odd {
  background: #18120c !important;
  border-color: #281d13 !important;
  color: #ffffff !important;
}

html[data-night="true"] .md-odd:nth-child(even),
html.is-night-mode .md-odd:nth-child(even) {
  background: #15100b !important;
}

html[data-night="true"] .md-odd:hover,
html.is-night-mode .md-odd:hover {
  background: #22180f !important;
  border-color: #4a3423 !important;
}

html[data-night="true"] .md-odd-label,
html.is-night-mode .md-odd-label {
  color: #a1a1aa !important;
  font-weight: 600 !important;
}

html[data-night="true"] .md-odd-value,
html.is-night-mode .md-odd-value {
  color: #ffffff !important;
  font-weight: 800 !important;
}

html[data-night="true"] .md-odd.is-selected,
html.is-night-mode .md-odd.is-selected {
  background: #f97316 !important;
  border-color: #f97316 !important;
  color: #000000 !important;
}

html[data-night="true"] .md-odd.is-selected *,
html.is-night-mode .md-odd.is-selected * {
  color: #000000 !important;
  font-weight: 800 !important;
}

/* 12. Upcoming / Daily Events Boards (.uf-) */
html[data-night="true"] .uf-match-row,
html.is-night-mode .uf-match-row {
  background: #130e09 !important;
  border: 1px solid #20170f !important;
}

html[data-night="true"] .uf-match-row:hover,
html.is-night-mode .uf-match-row:hover {
  background: #1c150e !important;
}

html[data-night="true"] .uf-date-banner,
html[data-night="true"] .uf-daily-banner,
html.is-night-mode .uf-date-banner,
html.is-night-mode .uf-daily-banner {
  background: #17110b !important;
  border-bottom: 1px solid #281d13 !important;
  color: #c4b5a5 !important;
}

html[data-night="true"] .uf-breadcrumb,
html.is-night-mode .uf-breadcrumb {
  color: #a1a1aa !important;
}

