/* ===== 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: #fff;
  --drawer-text: #333;
  --odd-up-color: #2e7d32;
  --odd-down-color: #d32f2f;
}

/* 1. Dark Theme (Obsidian / Dark Charcoal replacing Red) */
[data-theme="dark"],
[data-color="dark"] {
  --brand-red: #c62828;
  --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;
}

/* 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;
}

/* 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;
}

/* 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;
}

* {
  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: #b71c1c;
  color: #fff;
}

.my-bets-tab.is-on {
  background: #c62828;
  color: #fff;
  font-weight: 800;
}

.my-bets-tabs--time {
  margin-left: auto;
}

.my-bets-tabs--time .my-bets-tab {
  background: #9b1c1c;
}

.my-bets-tabs--time .my-bets-tab.is-on {
  background: #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: #c62828;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: 0.15s;
}

.my-bets-search-btn:hover {
  background: #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: #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: #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: #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;
}

/* ====== 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: #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: #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: 100;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.55);
  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: 2px;
  padding: 14px 12px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.04em;
  background: #fff;
  color: #111;
  cursor: pointer;
}

.auth-card--hope.is-register .auth-submit {
  background: #e8a0a6;
  color: #222;
}

.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: #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: #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: #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: #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: #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: #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: #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: #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: #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: #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: #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: #9b0d16;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 2px;
    right: 2px;
    transition: transform 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  }

  [data-theme="light"] .theme-switch-knob {
    right: auto;
    left: 2px;
    background: #e53935;
  }

  .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: #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: #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: #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: #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: #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 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: #c62828 !important;
  color: #fff !important;
  border-color: #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: #c62828 !important;
  background: #e2e8f0 !important;
}

[data-theme="light"] .pop-odd-btn.is-selected {
  background: #c62828 !important;
  border-color: #c62828 !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: #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: #c62828;
  color: #ffffff;
}

.share-events-table th {
  padding: 9px 12px;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  border: 1px solid #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: #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: #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;
  }
  .receipt-watermark-overlay {
    display: flex !important;
    visibility: visible !important;
    opacity: 0.28 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .receipt-watermark-overlay * {
    visibility: visible !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .receipt-watermark-row {
    color: #000000 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .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-box.is-lost {
    background-color: #ffdcdb !important;
    color: #c62828 !important;
    border-color: #c62828 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .receipt-outcome-box.is-won {
    background-color: #d7f0db !important;
    color: #2e7d32 !important;
    border-color: #2e7d32 !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .receipt-status-badge.is-lost,
  .receipt-status-pill.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,
  .receipt-status-pill.is-won {
    color: #2e7d32 !important;
    background-color: #d7f0db !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  .rec-match-scores {
    color: #d32f2f !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !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: #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: #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: #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: #c62828 !important;
  border-color: #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;
}

/* Ensure ALL themes (Dark, Night, Blue, Green, Purple, Red) display vibrant RED selected odds */
[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: #c62828 !important;
  border-color: #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 Root Variables */
[data-night="true"],
html.is-night-mode {
  --bg: #0c1017;
  --bg2: #141a24;
  --panel: #141a24;
  --panel2: #1b2331;
  --surface: #1b2331;
  --card-bg: #141a24;
  --line: rgba(255, 255, 255, 0.08);
  --border-color: rgba(255, 255, 255, 0.1);
  --text: #f1f5f9;
  --text-color: #f1f5f9;
  --muted: #94a3b8;
  --text-muted: #94a3b8;
  --subnav-bg: #0f141d;
  --subnav-text: #cbd5e1;
  --subnav-active-bg: #1b2331;
  --header-input-bg: #171f2c;
  --header-input-text: #ffffff;
  --header-input-border: rgba(255, 255, 255, 0.15);
  --search-input-bg: #171f2c;
  --search-input-text: #ffffff;
  --drawer-bg: #141a24;
  --drawer-text: #f1f5f9;
  --odd-bg: #1c2434;
  --odd-bg-hover: #263146;
  --my-bets-bg: #0e1219;
  --ticket-bg: #141a24;
  --ticket-border: rgba(255, 255, 255, 0.1);
}

/* Global Body & Main View in Night Mode */
[data-night="true"] body,
html.is-night-mode body {
  background: #0c1017 !important;
  color: #f1f5f9 !important;
}

/* Sidebar in Night Mode */
[data-night="true"] .sidebar,
[data-night="true"] #sidebar,
html.is-night-mode .sidebar {
  background: #121722 !important;
  border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .sidebar-title {
  color: #94a3b8 !important;
}

[data-night="true"] .sidebar-title em {
  color: #cbd5e1 !important;
  background: #1c2434 !important;
}

[data-night="true"] .sidebar-item {
  color: #e2e8f0 !important;
}

[data-night="true"] .sidebar-item:hover {
  background: rgba(255, 255, 255, 0.06) !important;
  color: #ffffff !important;
}

[data-night="true"] .sidebar-item.is-on {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}

[data-night="true"] .sidebar-item em {
  color: #94a3b8 !important;
}

[data-night="true"] .sidebar-search-wrap input {
  background: #171f2c !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-night="true"] .sidebar-search-wrap input::placeholder {
  color: #64748b !important;
}

/* Content Area & Containers in Night Mode */
[data-night="true"] .content,
[data-night="true"] #sports-home-wrap,
[data-night="true"] .events-board-wrap {
  background: #0c1017 !important;
}

/* Sub-Nav in Night Mode */
[data-night="true"] .sub-nav {
  background: #121722 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .sub-nav-item,
[data-night="true"] .sub-nav-btn {
  color: #94a3b8 !important;
}

[data-night="true"] .sub-nav-item:hover,
[data-night="true"] .sub-nav-btn:hover {
  color: #f1f5f9 !important;
}

/* Top Matches Carousel & Pop Cards in Night Mode */
[data-night="true"] .top-matches-carousel-wrap {
  background: #121722 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .pop-card {
  background: #161c28 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .pop-card-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-night="true"] .pop-card-league {
  color: #94a3b8 !important;
}

[data-night="true"] .pop-card-date {
  color: #94a3b8 !important;
}

[data-night="true"] .pop-divider-line {
  background: rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .pop-odd-btn {
  background: #1c2436 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

[data-night="true"] .pop-odd-btn:hover:not(.is-selected) {
  background: #242f44 !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
}

[data-night="true"] .pop-odd-btn .odd-btn-label {
  color: #94a3b8 !important;
}

[data-night="true"] .pop-odd-val {
  color: #ffffff !important;
}

/* Top Leagues Grid in Night Mode */
[data-night="true"] .top-leagues-grid {
  background: #121722 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .top-league-chip,
[data-night="true"] .top-league-card {
  background: #161c28 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .top-league-chip:hover,
[data-night="true"] .top-league-card:hover {
  background: #1e2636 !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* League Block & Match Rows in Night Mode */
[data-night="true"] .league-block {
  background: #141a24 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .league-block-head {
  background: #18212e !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .league-block-head span {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-night="true"] .hmt-date-banner {
  background: #18202d !important;
  color: #cbd5e1 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .hmt-row,
[data-night="true"] .match-row {
  background: #131823 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05) !important;
  color: #f1f5f9 !important;
}

[data-night="true"] .hmt-row:nth-child(even),
[data-night="true"] .match-row:nth-child(even) {
  background: #151b27 !important;
}

[data-night="true"] .hmt-row:hover,
[data-night="true"] .match-row:hover {
  background: #1b2332 !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: #94a3b8 !important;
}

/* Odds Buttons in Night Mode */
[data-night="true"] .hmt-odd-btn,
[data-night="true"] .odd-btn,
[data-night="true"] .match-row-more-btn,
[data-night="true"] .hmt-show-more-btn {
  background: #1c2436 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

[data-night="true"] .hmt-odd-btn:hover:not(.is-selected),
[data-night="true"] .odd-btn:hover:not(.is-selected),
[data-night="true"] .match-row-more-btn:hover,
[data-night="true"] .hmt-show-more-btn:hover {
  background: #242f44 !important;
  border-color: rgba(255, 255, 255, 0.22) !important;
}

[data-night="true"] .hmt-odd-btn span,
[data-night="true"] .odd-btn span {
  color: #ffffff !important;
}

/* Betslip Panel in Night Mode */
[data-night="true"] .betslip-panel,
[data-night="true"] #betslip-panel {
  background: #121722 !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .betslip-body {
  background: #121722 !important;
}

[data-night="true"] .betslip-empty-notice {
  color: #94a3b8 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .slip-item {
  background: #161c28 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

[data-night="true"] .slip-match-name {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-night="true"] .slip-market-name,
[data-night="true"] .slip-pick {
  color: #94a3b8 !important;
}

[data-night="true"] .potential-winning-box {
  background: #18202d !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #94a3b8 !important;
}

[data-night="true"] .pw-val,
[data-night="true"] .pw-cur {
  color: #ffffff !important;
}

[data-night="true"] .betslip-auth-notice {
  background: #18202d !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

[data-night="true"] .betslip-tool-head {
  color: #ffffff !important;
  font-weight: 700 !important;
}

[data-night="true"] .betslip-tool p {
  color: #94a3b8 !important;
}

[data-night="true"] .betslip-tool-row input {
  background: #1a2232 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-night="true"] .betslip-tool-row input::placeholder {
  color: #64748b !important;
}

[data-night="true"] .stake-input {
  background: #1a2232 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

/* Modals & Dropdowns in Night Mode */
[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 {
  background: #141a26 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

[data-night="true"] .auth-input,
[data-night="true"] .admin-filter-input,
[data-night="true"] .admin-filter-select {
  background: #1a2233 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
}

[data-night="true"] .auth-input::placeholder,
[data-night="true"] .admin-filter-input::placeholder {
  color: #64748b !important;
}

/* Detail Match View & Combo Accordions in Night Mode */
[data-night="true"] .md-header {
  background: #141a26 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

[data-night="true"] .md-team-name {
  color: #ffffff !important;
}

[data-night="true"] .md-league-name,
[data-night="true"] .md-match-time {
  color: #94a3b8 !important;
}

[data-night="true"] .md-market-accordion {
  background: #141a26 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .md-market-head {
  background: #18202f !important;
  color: #ffffff !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

[data-night="true"] .md-odd,
[data-night="true"] .combo-market-odd {
  background: #1c2436 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

[data-night="true"] .md-odd:hover:not(.is-selected),
[data-night="true"] .combo-market-odd:hover:not(.is-selected) {
  background: #242f44 !important;
}

[data-night="true"] .md-odd:not(.is-selected) .odd-label,
[data-night="true"] .combo-market-odd .odd-label {
  color: #94a3b8 !important;
}

[data-night="true"] .md-odd .odd-val,
[data-night="true"] .combo-market-odd .odd-val {
  color: #ffffff !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.35rem 0.65rem;
  font-size: 0.75rem;
  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-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: 12px 14px;
  border-bottom: 1px solid #e2e8f0;
  white-space: nowrap;
}

.sa-table td {
  padding: 12px 14px;
  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-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%;
}

/* ====================================================
   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: 6px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.results-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  background: #c8102e;
  padding: 8px 14px;
  color: #ffffff;
}

.results-date-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.results-nav-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  width: 30px;
  height: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: background 0.15s;
}

.results-nav-btn:hover {
  background: rgba(255, 255, 255, 0.35);
}

.results-date-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  padding: 3px 8px;
  border-radius: 4px;
}

.results-date-input {
  border: none;
  outline: none;
  font-size: 13px;
  font-weight: 700;
  color: #111827;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
}

.results-date-label {
  font-size: 11.5px;
  font-weight: 700;
  color: #c8102e;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.results-today-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.3);
  padding: 5px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.results-today-btn:hover,
.results-today-btn.is-on {
  background: #ffffff;
  color: #c8102e;
}

.results-sport-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
}

.results-sport-tab {
  background: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  border: none;
  padding: 5px 11px;
  border-radius: 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
}

.results-sport-tab:hover {
  background: rgba(255, 255, 255, 0.25);
}

.results-sport-tab.is-on {
  background: #ffffff;
  color: #c8102e;
  font-weight: 700;
}

.results-search {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 4px;
  overflow: hidden;
  height: 30px;
  padding-left: 8px;
}

.results-search input {
  border: none;
  outline: none;
  font-size: 12.5px;
  color: #111827;
  padding: 4px 6px;
  width: 170px;
}

.results-search-btn {
  background: none;
  border: none;
  color: #6b7280;
  cursor: pointer;
  padding: 0 8px;
  display: flex;
  align-items: center;
}

.results-close {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  border: none;
  border-radius: 4px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s;
}

.results-close:hover {
  background: rgba(255, 255, 255, 0.35);
}

.results-body {
  padding: 14px;
  background: #f8fafc;
  min-height: 420px;
}

.results-league-group {
  background: #ffffff;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.results-league-header {
  background: #f1f5f9;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
}

.results-league-title-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.results-league-flag {
  width: 18px;
  height: 13px;
  object-fit: cover;
  border-radius: 2px;
}

.results-league-name {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
}

.results-league-count {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
  background: #e2e8f0;
  padding: 2px 7px;
  border-radius: 10px;
}

.result-match-row {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.12s;
}

.result-match-row:last-child {
  border-bottom: none;
}

.result-match-row:hover {
  background: #fcfcfd;
}

.result-match-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.result-match-time-col {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 75px;
}

.result-kickoff-val {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
}

.result-status-tag {
  font-size: 10px;
  font-weight: 800;
  background: #16a34a;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 3px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.result-status-tag.is-unstarted {
  background: #64748b;
}

.result-status-tag.is-live {
  background: #dc2626;
}

.result-unstarted-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 3px 9px;
  border-radius: 4px;
  font-size: 12.5px;
  font-weight: 700;
  color: #1e293b;
}

.result-team-score-num.is-unstarted {
  visibility: hidden;
}

.result-match-teams-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.result-team-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13.5px;
  font-weight: 600;
  color: #1e293b;
}

.result-team-line.is-winner {
  font-weight: 800;
  color: #0f172a;
}

.result-team-score-num {
  font-size: 14.5px;
  font-weight: 800;
  color: #0f172a;
  min-width: 20px;
  text-align: right;
}

.result-match-scores-summary {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  min-width: 95px;
}

.result-ft-score {
  font-size: 13.5px;
  font-weight: 800;
  color: #c8102e;
  background: rgba(200, 16, 46, 0.08);
  padding: 2px 7px;
  border-radius: 4px;
}

.result-ht-score {
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}

.result-goals-timeline {
  margin-top: 8px;
  padding-top: 7px;
  border-top: 1px dashed #e2e8f0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
}

.result-goal-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11.5px;
  color: #1e293b;
}

.result-goal-minute {
  font-weight: 800;
  color: #c8102e;
}

.result-goal-player {
  font-weight: 600;
}

.result-goal-team {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
}

.result-no-goals {
  font-size: 11.5px;
  color: #94a3b8;
  font-style: italic;
}

.results-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  color: #64748b;
  font-size: 14px;
  text-align: center;
}

.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;
}

/* When selected in slip -> Hope Bet Red! */
#view-leagues .odd-btn.is-selected,
.odd-btn.is-selected {
  background: var(--brand-red, #c62828) !important;
  border-color: #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;
}