/* =========================================================
   Exchange Theme - Cricket (dark / orange)
   ========================================================= */
@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700;900&display=swap");

:root {
  --theme1: #f26b1d;          /* orange: market & panel headers */
  --theme2: #ff8a3d;
  --theme-dark: #000000;      /* header / footer */
  --accent: #f26b1d;
  --accent-dark: #d9560c;
  --gold: #f6c34a;            /* cash-out button */
  --green: #1e9e3e;           /* sidebar counts, pills */
  --page-bg: #262a31;         /* dark slate, kept apart from the black header/sidebar/footer */
  --surface: #111111;         /* dark cards: sidebar, nav */
  --surface-2: #262626;
  --line-dark: #333333;
  --panel-bg: #ffffff;
  --border: #e1e1e1;
  --text: #1a1a1a;
  --text-on-dark: #f1f1f1;
  --muted: #777777;
  --muted-on-dark: #a8a8a8;

  --back: #a6d8ff;
  --back-1: #c2e4ff;
  --back-2: #ddf0ff;
  --lay: #fac9d1;
  --lay-1: #fbd9df;
  --lay-2: #fde9ec;

  --win: #12a33a;
  --loss: #e0262f;
  --suspended: rgba(106, 125, 142, .95);

  --radius: 6px;
  --font: "Roboto", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  font-family: var(--font);
  font-size: 13px;
  color: var(--text);
  background: var(--page-bg);
  margin: 0;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); text-decoration: underline; }

/* ---------- Header ---------- */
.site-header {
  background: var(--theme-dark);
  color: #fff;
  border-bottom: 1px solid var(--line-dark);
}
.site-header .top-bar { padding-top: 9px; padding-bottom: 9px; }
.container-fluid { padding-left: 16px; padding-right: 16px; }
.brand {
  flex-shrink: 0;
  white-space: nowrap;
  font-family: var(--font);
  font-size: 25px;
  font-weight: 900;
  font-style: italic;
  color: #fff;
  letter-spacing: -.5px;
  line-height: 1;
}
.brand span { color: var(--accent); }
.brand:hover { color: #fff; text-decoration: none; }
.brand small {
  display: block;
  font-size: 8.5px;
  font-weight: 500;
  font-style: normal;
  letter-spacing: 2.6px;
  color: var(--muted-on-dark);
  margin-top: 3px;
}

/* rounded outline pills used across the header */
.hdr-pill,
.wallet-box,
.user-menu .dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border: 1px solid #5a5a5a;
  border-radius: 20px;
  background: #0d0d0d;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}
.hdr-pill:hover,
.user-menu .dropdown-toggle:hover { border-color: var(--accent); color: #fff; text-decoration: none; }
.hdr-pill { font-size: 11px; font-weight: 700; text-transform: uppercase; }
.hdr-pill i { color: var(--accent); }
.hdr-pill.spinning i { animation: spin .7s linear infinite; }

/* balance and exposure: two separate pills */
.wallet-box { gap: 5px; }
.wallet-box .wl { color: var(--muted-on-dark); }
.wallet-box b { color: #fff; font-weight: 700; }
.wallet-box.expo b { color: #ff8c8c; }

.btn-classic {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  border-radius: 20px;
  padding: 5px 14px;
  text-transform: uppercase;
}
.btn-classic:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }

.btn-classic-dark {
  background: #2b2b2b;
  border: 1px solid #444;
  color: #fff;
  font-size: 12px;
  border-radius: 20px;
  padding: 5px 14px;
}
.btn-classic-dark:hover { background: #111; color: #fff; }

.user-menu .dropdown-toggle i { color: #fff; }
.user-menu .dropdown-menu {
  font-size: 12px;
  border-radius: var(--radius);
  padding: 6px 0;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--line-dark);
}
.user-menu .dropdown-item { padding: 9px 16px; color: #eee; }
.user-menu .dropdown-item i { color: var(--accent); width: 16px; }
.user-menu .dropdown-item:hover { background: #222; color: #fff; }
.user-menu .dropdown-item.text-danger, .user-menu .dropdown-item.text-danger i { color: #ff6b6b !important; }
.user-menu .dropdown-divider { border-color: var(--line-dark); }
.user-menu li.border-bottom { border-color: var(--line-dark) !important; color: #fff; }

/* ---------- Main Nav (icon strip) ---------- */
.main-nav {
  background: #141414;
  border-top: 1px solid #3a3a3a;   /* separates the logo/wallet bar from the menu */
  border-bottom: 1px solid var(--line-dark);
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav ul { list-style: none; margin: 0; padding: 0 8px; display: flex; justify-content: center; gap: 4px; }
.main-nav li a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 11px 16px;
  color: #d6d6d6;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}
.main-nav li a i { color: var(--accent); font-size: 14px; margin: 0 !important; }
.main-nav li a:hover,
.main-nav li a.active {
  color: #fff;
  border-bottom-color: var(--accent);
  text-decoration: none;
}
.main-nav .badge-live {
  background: var(--loss);
  color: #fff;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 10px;
  margin-left: 2px;
  animation: blink 1.2s infinite;
}

/* ---------- News Ticker ---------- */
.news-ticker {
  display: flex;
  align-items: center;
  background: var(--surface);
  border-bottom: 1px solid var(--line-dark);
  font-size: 12px;
  overflow: hidden;
}
.news-ticker .label {
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  padding: 6px 16px;
  flex-shrink: 0;
}
.news-ticker .track { overflow: hidden; flex: 1; padding: 0 8px; }
.news-ticker .track span {
  display: inline-block;
  white-space: nowrap;
  padding-left: 100%;
  animation: ticker 35s linear infinite;
  color: #cfcfcf;
}

/* ---------- Layout ---------- */
.layout { padding-top: 12px; padding-bottom: 16px; }
.layout > .row { --bs-gutter-x: 12px; }

.panel {
  background: var(--panel-bg);
  border: 0;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.panel-head {
  background: var(--theme1);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2px 8px;
}
.panel-head .sub { font-weight: 400; font-size: 11px; color: #ffe3d1; text-transform: none; }
.panel-head-light {
  background: #f1f1f1;
  color: #333;
  border-bottom: 1px solid var(--border);
}

/* ---------- Left Sidebar (dark card, orange edge) ---------- */
aside .side-canvas .panel:has(.sports-menu) {
  background: var(--surface);
  border: 1px solid var(--accent);
}
.sports-menu { list-style: none; margin: 0; padding: 4px 0; }
.sports-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  color: var(--text-on-dark);
  font-size: 12px;
}
.sports-menu > li > a i.sport-ico { width: 18px; color: var(--accent); margin-right: 8px; }
.sports-menu > li > a:hover,
.sports-menu > li > a.active {
  background: #222;
  color: #fff;
  text-decoration: none;
}
.sports-menu > li > a.active { box-shadow: inset 3px 0 0 var(--accent); font-weight: 700; }
.sports-menu .count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  border-radius: 9px;
  padding: 0 5px;
}
.sports-menu .sub-menu { list-style: none; padding: 0; margin: 0; background: #0a0a0a; }
.sports-menu .sub-menu a {
  display: block;
  padding: 7px 12px 7px 38px;
  font-size: 11px;
  color: #cfcfcf;
  border-top: 1px solid #1f1f1f;
}
.sports-menu .sub-menu a:hover { background: #1d1d1d; color: #fff; text-decoration: none; }
.sports-menu .caret { font-size: 10px; transition: transform .2s; }
.sports-menu a[aria-expanded="true"] .caret { transform: rotate(90deg); }

/* ---------- Banner ---------- */
.promo-banner {
  position: relative;
  height: 170px;
  background:
    radial-gradient(circle at 80% 50%, rgba(255, 184, 12, .35) 0, transparent 40%),
    linear-gradient(120deg, #0f3d1f 0%, #1f6b33 45%, #144a24 100%);
  border: 1px solid var(--border);
  color: #fff;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 14px;
}
.promo-banner::after {
  /* pitch stripes */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .04) 0 40px, transparent 40px 80px);
}
.promo-banner .content { position: relative; z-index: 1; padding: 28px 32px; max-width: 75%; }
.promo-banner h2 {
  font-family: Georgia, serif;
  font-size: 28px;
  margin: 0 0 6px;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, .4);
}
.promo-banner h2 span { color: var(--accent); }
.promo-banner p { margin: 0 0 16px; color: #d9f0de; }
.promo-banner .btn-classic { padding: 7px 18px; }
.promo-banner .ball {
  position: absolute;
  right: 48px;
  top: 40px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #ff6b6b, #a30000 70%);
  box-shadow: inset -8px -8px 18px rgba(0, 0, 0, .4), 0 6px 18px rgba(0, 0, 0, .5);
  z-index: 1;
}
.promo-banner .ball::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 4px;
  bottom: 4px;
  width: 8px;
  margin-left: -4px;
  border-left: 2px dashed #fff;
  border-right: 2px dashed #fff;
  border-radius: 50%;
  opacity: .8;
}

/* ---------- Tabs (dark pills) ---------- */
.classic-tabs {
  display: flex;
  gap: 6px;
  padding: 0 0 10px;
  overflow-x: auto;
  scrollbar-width: none;
}
.classic-tabs::-webkit-scrollbar { display: none; }
.classic-tabs button,
.classic-tabs a {
  border: 1px solid #444;
  background: var(--surface);
  padding: 6px 16px;
  font-size: 12px;
  font-weight: 700;
  color: #ddd;
  border-radius: 20px;
  white-space: nowrap;
}
.classic-tabs button.active,
.classic-tabs a.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.classic-tabs a { display: inline-block; text-decoration: none; }
.classic-tabs button:hover:not(.active),
.classic-tabs a:hover:not(.active) { border-color: var(--accent); color: #fff; }
/* tabs inside a panel (My Bets): off the panel edge, with a line above the table */
.panel > .classic-tabs { padding: 10px 12px; border-bottom: 1px solid var(--border); }
@media (max-width: 575.98px) {
  .panel > .classic-tabs a { flex: 1; text-align: center; padding: 6px 8px; font-size: 11px; }
}

/* ---------- Match list table ---------- */
.sport-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--theme1);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 10px;
}
.sport-head .sh-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
  color: var(--theme1);
  font-size: 11px;
  margin-right: 7px;
}
.sport-head .sh-tags { display: flex; gap: 5px; }
.sport-head .sh-tags span {
  background: #fff;
  color: var(--theme1);
  border-radius: 10px;
  font-size: 9px;
  padding: 2px 8px;
}
.game-list { width: 100%; border-collapse: collapse; background: #fff; }
.game-list thead th {
  background: #f1f1f1;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  padding: 6px 4px;
  border-bottom: 1px solid var(--border);
  color: #333;
}
.game-list thead th:first-child { text-align: left; padding-left: 12px; }
.game-list tbody tr { border-bottom: 1px solid #e6e6e6; }
.game-list tbody tr:hover td.game-name { background: #fff7f1; }
.game-list td { padding: 0; vertical-align: middle; }
.game-list td.game-name { padding: 8px 12px; }
/* every back/lay column gets the same fixed width, whatever the odds text */
.game-list td.odd-td { width: 60px; min-width: 60px; max-width: 60px; padding: 3px 1px; }
.game-list td.odd-td .odd-box { height: 36px; }
.game-name a { color: #111; font-weight: 700; font-size: 12px; }
.game-name a:hover { color: var(--accent); text-decoration: none; }
.game-name .meta { margin-top: 3px; font-size: 10.5px; color: var(--muted); }
.game-name .meta .live {
  color: #fff;
  background: var(--green);
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 3px;
}
.game-icons { white-space: nowrap; text-align: right; padding-right: 8px !important; }
.game-icons .gi {
  display: inline-block;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: 2px;
  color: #fff;
}
.gi-f { background: #6f42c1; }
.gi-bm { background: var(--accent); }
.gi-tv { background: none; color: var(--green) !important; font-size: 13px !important; padding: 0 !important; vertical-align: middle; }

/* ---------- Odds boxes ---------- */
.odd-box {
  display: block;
  width: 100%;
  min-width: 0;
  height: 40px;
  border: 0;
  border-radius: 3px;
  text-align: center;
  cursor: pointer;
  padding: 3px 2px;
  line-height: 1.1;
  font-family: var(--font);
  transition: filter .15s;
}
.odd-box:hover { filter: brightness(.94); }
.odd-box strong { display: block; font-size: 13px; font-weight: 700; color: #111; }
.odd-box small { display: block; font-size: 9.5px; color: #555; }
.odd-box.back { background: var(--back); }
.odd-box.back-1 { background: var(--back-1); }
.odd-box.back-2 { background: var(--back-2); }
.odd-box.lay { background: var(--lay); }
.odd-box.lay-1 { background: var(--lay-1); }
.odd-box.lay-2 { background: var(--lay-2); }
.odd-box.empty strong::before { content: "-"; }
.odd-box.flash { animation: flash .6s; }
.odd-box.selected { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Match page: scoreboard ---------- */
.scoreboard {
  background: var(--surface);
  color: #fff;
  border: 1px solid var(--line-dark);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 12px;
}
.scoreboard .sb-head {
  background: #1f1f1f;
  border-bottom: 1px solid var(--line-dark);
  padding: 8px 14px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
}
.scoreboard .sb-body { padding: 12px 16px 14px; }
.scoreboard .team-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
  padding: 3px 0;
}
.scoreboard .team-line.batting { font-weight: bold; }
.scoreboard .team-line.batting::before {
  content: "\f111";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  font-size: 7px;
  color: var(--accent);
  margin-right: 6px;
}
.scoreboard .team-line .name { flex: 1; }
.scoreboard .score { color: var(--accent); font-weight: 700; font-size: 18px; }
.scoreboard .rr { font-size: 11px; color: var(--muted-on-dark); }
/* live score card text from the feed */
.sb-feed .sb-line-main { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.sb-feed .sb-line { font-size: 13px; color: #ddd; padding: 2px 0; }
.sb-feed .score { font-size: inherit; }
.balls { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; align-items: center; }
.balls .lbl { font-size: 11px; color: var(--muted-on-dark); margin-right: 4px; white-space: nowrap; }
.balls span:not(.lbl) {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f2f2f2;
  color: #222;
  font-size: 11px;
  font-weight: bold;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.balls span.b4 { background: #1e88e5; color: #fff; }
.balls span.b6 { background: #8e24aa; color: #fff; }
.balls span.bw { background: #d0021b; color: #fff; }
.balls span.bwd { background: #ffb80c; }

/* ---------- Market tables ---------- */
.market { margin-bottom: 12px; background: #fff; border: 0; border-radius: var(--radius); overflow: hidden; }
.market-title {
  background: var(--theme1);
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  padding: 7px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
}
.market-title > span:first-child::before {
  content: "\f005";
  font-family: "Font Awesome 6 Free";
  font-weight: 400;
  color: var(--gold);
  margin-right: 7px;
}
.market-title .tag {
  background: rgba(0, 0, 0, .22);
  color: #fff;
  font-size: 9px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-left: 6px;
}
.market-title .cashout {
  background: var(--gold);
  border: 0;
  color: #111;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 4px;
}
.market-table { width: 100%; border-collapse: collapse; }
.market-table th {
  font-size: 11px;
  font-weight: 700;
  padding: 0;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.market-table th.min-max { text-align: left; padding: 6px 12px; color: #333; font-weight: 500; }
.market-table .h-back { background: var(--back); }
.market-table .h-lay { background: var(--lay); }
.market-table td { padding: 0; border-bottom: 1px solid #ececec; vertical-align: middle; }
.market-table td.runner { padding: 8px 12px; font-weight: 700; font-size: 12px; color: #111; }
.runner .book { display: block; font-size: 11px; font-weight: bold; min-height: 14px; }
.runner .book.pos { color: var(--win); }
.runner .book.neg { color: var(--loss); }
.runner .fancy-info { font-weight: normal; font-size: 10px; color: var(--muted); }
.runner-row { position: relative; }
.runner-row.suspended td.odds-cell { position: relative; }
.market-table .odds-cell { width: 1%; white-space: nowrap; padding: 0; }
.odds-wrap { position: relative; display: flex; gap: 2px; padding: 2px 0; }
.odds-wrap > * { flex: 0 0 58px; width: 58px; }
.odds-wrap > .susp-overlay { width: auto; }
.odds-head { padding: 0; }
.odds-head > span { display: block; padding: 5px 0; text-align: center; }
.susp-overlay {
  position: absolute;
  inset: 2px 0;
  background: var(--suspended);
  border-radius: 3px;
  color: #1c2833;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  z-index: 2;
}
.susp-overlay.ball-running { background: rgba(20, 20, 20, .85); color: var(--gold); }
.market-remark {
  font-size: 11px;
  color: #555;
  padding: 7px 12px;
  background: #fafafa;
  border-top: 1px solid #ececec;
}

/* fancy category pills (match page) */
.market-pills { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 10px; scrollbar-width: none; }
.market-pills::-webkit-scrollbar { display: none; }
.market-pills button {
  flex-shrink: 0;
  border: 0;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
}
.market-pills button.active { background: var(--accent); }

/* ---------- Bet Slip ---------- */
.betslip-empty { padding: 26px 18px; text-align: center; color: var(--muted); font-size: 12px; }
.betslip-empty i { font-size: 28px; color: #c5ccd2; display: block; margin-bottom: 6px; }
.slip { padding: 12px 14px; border-left: 5px solid var(--back); background: var(--back-2); }
.slip.is-lay { border-left-color: var(--lay); background: var(--lay-2); }
.slip .slip-title { font-weight: bold; font-size: 12px; margin-bottom: 2px; }
.slip .slip-market { font-size: 11px; color: var(--muted); margin-bottom: 10px; }
.slip label { font-size: 11px; font-weight: bold; color: #444; margin-bottom: 2px; }
.slip .input-group .btn { padding: 2px 8px; font-size: 12px; background: #fff; border: 1px solid #b9c2ca; }
.slip .form-control { font-size: 13px; height: 30px; text-align: center; font-weight: bold; border-color: #b9c2ca; }
.stake-btns { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 12px 0; }
.stake-btns button {
  border: 1px solid #d0d0d0;
  background: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 0;
  border-radius: 4px;
}
.stake-btns button:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.slip-profit { font-size: 12px; display: flex; justify-content: space-between; margin-bottom: 8px; }
.slip-profit b.pos { color: var(--win); }
.slip-profit b.neg { color: var(--loss); }
.slip-actions { display: flex; gap: 8px; margin-top: 4px; }
.slip-actions .btn { flex: 1; font-size: 12px; font-weight: 700; padding: 8px 0; border-radius: 20px; }
.btn-place { background: var(--accent); color: #fff; border: 1px solid var(--accent); }
.btn-place:hover { color: #fff; background: var(--accent-dark); }
.btn-place:disabled { background: #a5a5a5; border-color: #a5a5a5; }

.open-bets { width: 100%; font-size: 11px; border-collapse: collapse; }
.open-bets th { background: #f0f0f0; padding: 7px 12px; border-bottom: 1px solid var(--border); }
.open-bets td { padding: 7px 12px; border-bottom: 1px solid #eee; }
.open-bets tr.back td { background: var(--back-2); }
.open-bets tr.lay td { background: var(--lay-2); }

/* ---------- Side widgets ---------- */
.casino-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 10px; }
.casino-tile {
  height: 76px;
  border-radius: 3px;
  color: #fff;
  font-weight: bold;
  font-size: 12px;
  display: flex;
  align-items: flex-end;
  padding: 8px 10px;
  text-shadow: 1px 1px 0 #000;
  position: relative;
  overflow: hidden;
}
.casino-tile i { position: absolute; right: 8px; top: 8px; font-size: 24px; opacity: .45; }
.casino-tile:hover { color: #fff; text-decoration: none; filter: brightness(1.1); }
.ct-1 { background: linear-gradient(135deg, #7b1fa2, #3f0d58); }
.ct-2 { background: linear-gradient(135deg, #c62828, #5d0f0f); }
.ct-3 { background: linear-gradient(135deg, #00796b, #00352f); }
.ct-4 { background: linear-gradient(135deg, #ef6c00, #6d3200); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--theme-dark);
  color: var(--muted-on-dark);
  font-size: 11px;
  padding: 14px 0;
  border-top: 1px solid var(--line-dark);
  margin-top: 8px;
}
.site-footer .copy { text-align: center; }

/* ---------- Mobile bottom bar ---------- */
.mobile-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1030;
  background: var(--theme-dark);
  border-top: 1px solid var(--line-dark);
  display: flex;
}
.mobile-bar a {
  flex: 1;
  color: #cfcfcf;
  text-align: center;
  font-size: 10px;
  padding: 8px 0 6px;
}
.mobile-bar a i { display: block; font-size: 16px; margin-bottom: 2px; }
.mobile-bar a.active, .mobile-bar a:hover { color: var(--accent); text-decoration: none; }
.mobile-bar .slip-count {
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 9px;
  padding: 0 5px;
  font-weight: bold;
}

/* ---------- Toast ---------- */
.toast-classic { border-radius: var(--radius); font-size: 12px; border-left: 5px solid var(--win); }
.toast-classic.error { border-left-color: var(--loss); }

/* ---------- Login modal ---------- */
.modal-classic .modal-content { border-radius: var(--radius); border: 0; overflow: hidden; }
.modal-classic .modal-header {
  background: var(--theme1);
  color: #fff;
  border-radius: 0;
  padding: 10px 14px;
}
.modal-classic .modal-header .btn-close { filter: invert(1) brightness(2); }
.modal-classic .form-control { border-radius: 4px; font-size: 13px; }
.modal-classic .form-control:focus { border-color: var(--accent); box-shadow: none; }
.stake-edit { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stake-edit .form-control { text-align: center; font-weight: 700; }

/* ---------- Animations ---------- */
@keyframes blink { 50% { opacity: .35; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@keyframes flash {
  0% { box-shadow: inset 0 0 0 40px #ffe680; }
  100% { box-shadow: inset 0 0 0 40px rgba(255, 230, 128, 0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  body { padding-bottom: 58px; }
  body[data-page="match"] { padding-bottom: 0; }   /* no bottom bar on the match page */
  .container-fluid { padding-left: 10px; padding-right: 10px; }
  .layout { padding-top: 10px; }
  .layout > .row { --bs-gutter-x: 10px; }
  .panel, .market, .scoreboard, .promo-banner { margin-bottom: 10px; }
  .promo-banner .content { padding: 20px 18px; max-width: 80%; }
  .promo-banner { height: 120px; }
  .promo-banner h2 { font-size: 21px; }
  .promo-banner .ball { width: 60px; height: 60px; right: 18px; top: 28px; }
}
@media (max-width: 575.98px) {
  .brand { font-size: 21px; }
  .odd-box { height: 36px; }
  .odd-box strong { font-size: 12px; }
  .market-table .hide-xs { display: none; }
  .odds-wrap > * { flex-basis: 56px; width: 56px; }
  .odds-wrap > .hide-xs { display: none; }
  .game-list .hide-xs { display: none; }
  .game-list td.odd-td { width: 48px; min-width: 48px; max-width: 48px; }
  .game-list td.game-name { padding: 8px 10px; }
  .game-name .meta-series, .game-icons { display: none; }
}

/* ---------- Responsive drawers (sidebar / bet slip) ---------- */
@media (min-width: 992px) {
  .side-canvas .offcanvas-body { display: block !important; }
  /* bet slip stays in view while the markets scroll (no scrolling back up after a click) */
  .betslip-canvas {
    position: sticky;
    top: 10px;
    max-height: calc(100vh - 20px);
    overflow-y: auto;
    scrollbar-width: thin;
  }
}
@media (max-width: 991.98px) {
  .side-canvas { background: var(--page-bg); color: #fff; }
  .side-canvas .offcanvas-header { border-radius: 0; }
  .side-canvas .offcanvas-body { padding: 10px; }
  .side-canvas .offcanvas-header { padding: 12px 14px; }
  .betslip-canvas.offcanvas-bottom { height: auto; max-height: 85vh; }
}

/* =========================================================
   Login page
   ========================================================= */
body.login-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding-bottom: 0;
  background:
    radial-gradient(ellipse at 50% 115%, rgba(var(--accent-rgb, 242, 107, 29), .35) 0, transparent 60%),
    linear-gradient(160deg, #0a0a0a 0%, #1b1b1b 60%, #0a0a0a 100%);
}
.login-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 16px 24px;
}
.login-box {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 18px 45px rgba(0, 0, 0, .6);
}
.login-box .lb-head {
  background: #000;
  border-bottom: 3px solid var(--accent);
  text-align: center;
  padding: 26px 24px 20px;
}
.login-box .lb-head .brand { font-size: 32px; }
.login-box .lb-head .brand small { margin-top: 0; }
.login-box .lb-body { padding: 26px 28px 22px; }
.login-box h1 {
  font-size: 15px;
  font-weight: bold;
  color: var(--theme1);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin: 0 0 18px;
  text-align: center;
}
.login-box .form-label { font-size: 12px; font-weight: bold; color: #444; margin-bottom: 5px; }
.login-box .input-group-text {
  background: #f1f4f7;
  border-color: #c3ccd4;
  color: var(--theme2);
  width: 40px;
  justify-content: center;
}
.login-box .form-control {
  border-color: #c3ccd4;
  font-size: 13px;
  height: 40px;
}
.login-box .form-control:focus { border-color: var(--accent); box-shadow: 0 0 0 .15rem rgba(var(--accent-rgb, 242, 107, 29), .2); }
.login-box .btn-eye { border: 1px solid #c3ccd4; border-left: 0; background: #fff; color: var(--muted); width: 40px; }
.captcha-row { display: flex; gap: 8px; }
.captcha-row .form-control { flex: 1; min-width: 0; }
.captcha-code {
  flex: 0 0 110px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Courier New", monospace;
  font-size: 20px;
  font-weight: bold;
  font-style: italic;
  letter-spacing: 5px;
  color: var(--theme1);
  user-select: none;
  border: 1px solid #c3ccd4;
  border-radius: 4px;
  background: repeating-linear-gradient(45deg, #fff3ea 0 6px, #ffe3d1 6px 12px);
}
.captcha-refresh { flex: 0 0 40px; border: 1px solid #c3ccd4; background: #fff; border-radius: 4px; color: var(--theme1); }
.captcha-refresh:hover { background: #fff3ea; }
.login-box .btn-classic,
.login-box .btn-classic-dark { font-size: 13px; padding: 10px 0; }
.login-error {
  font-size: 12px;
  color: #a30000;
  background: #fff3f3;
  border: 1px solid #f2d2d2;
  border-radius: 3px;
  padding: 8px 12px;
  margin-bottom: 14px;
}
.login-meta { font-size: 12px; display: flex; justify-content: space-between; align-items: center; margin: 4px 0 18px; }
.login-meta .form-check-label { color: #555; }
.login-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 18px; line-height: 1.6; }
.login-feats {
  display: flex;
  gap: 12px 28px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 28px;
  color: #d6d6d6;
  font-size: 12px;
}
.login-feats div { display: flex; align-items: center; gap: 8px; }
.login-feats i { color: var(--accent); font-size: 16px; }
.login-foot { text-align: center; color: #8a8a8a; font-size: 11px; padding: 14px 16px 18px; }
.login-foot a { color: #d6d6d6; margin: 0 8px; }

/* =========================================================
   Ledger / account pages
   ========================================================= */
.crumbs { font-size: 12px; font-weight: 500; margin-bottom: 10px; color: var(--muted-on-dark); }
.crumbs a { color: #fff; }
.crumbs .text-muted { color: var(--muted-on-dark) !important; }
.page-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}
.page-title h1 { font-size: 18px; font-weight: 700; color: #fff; margin: 0; }
.page-title h1 i { color: var(--accent); }
.page-title h1 small { display: block; font-size: 12px; font-weight: normal; color: var(--muted-on-dark); margin-top: 4px; }
.page-title .actions { display: flex; gap: 8px; }
.page-title .actions .btn { padding: 7px 14px; }

.summary-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.sum-card {
  background: #fff;
  border: 0;
  border-left: 4px solid #555;
  border-radius: var(--radius);
  padding: 14px 16px;
}
.sum-card .lbl { font-size: 11px; text-transform: uppercase; color: var(--muted); letter-spacing: .4px; }
.sum-card .val { font-size: 20px; font-weight: 700; margin-top: 4px; color: #111; }
.sum-card.cr { border-left-color: var(--win); }
.sum-card.cr .val { color: var(--win); }
.sum-card.dr { border-left-color: var(--loss); }
.sum-card.dr .val { color: var(--loss); }
.sum-card.cl { border-left-color: var(--accent); }

.filter-bar { padding: 14px; display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 12px; align-items: end; }
.filter-bar label { font-size: 11px; font-weight: bold; color: #444; margin-bottom: 4px; display: block; }
.filter-bar .form-control,
.filter-bar .form-select { font-size: 12px; height: 34px; border-radius: 2px; border-color: #c3ccd4; }
.filter-bar .btns { display: flex; gap: 8px; }
.filter-bar .btns .btn { height: 34px; padding: 0 16px; }

.ledger-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ledger-table th {
  background: #f1f1f1;
  border-bottom: 1px solid var(--border);
  padding: 9px 12px;
  white-space: nowrap;
  font-weight: bold;
  color: #333;
}
.ledger-table td { padding: 9px 12px; border-bottom: 1px solid #e8ebee; vertical-align: middle; }
.ledger-table tbody tr:nth-child(even) td { background: #fafbfc; }
.ledger-table tbody tr:hover td { background: #fff3ea; }
.ledger-table .num { text-align: right; white-space: nowrap; }
.ledger-table .cr { color: var(--win); font-weight: bold; }
.ledger-table .dr { color: var(--loss); font-weight: bold; }
.ledger-table .bal { font-weight: bold; }
.ledger-table .date { white-space: nowrap; color: #444; }
.ledger-table .date small { display: block; color: var(--muted); }
.ledger-table .desc b { display: block; color: #222; }
.ledger-table .desc small { color: var(--muted); }
.ledger-table tfoot td { background: #f4f4f4; font-weight: bold; border-top: 2px solid var(--border); }
.type-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 7px;
  border-radius: 2px;
  color: #fff;
  white-space: nowrap;
}
.tb-sports { background: var(--accent); }
.tb-casino { background: #7b1fa2; }
.tb-deposit { background: #0a8a2a; }
.tb-withdraw { background: #c62828; }
.tb-commission { background: #6c757d; }
.tb-bonus { background: #e09e00; }

.table-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px 14px;
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
.table-foot .form-select { width: auto; display: inline-block; font-size: 12px; height: 30px; padding-top: 2px; padding-bottom: 2px; }
.pager { display: flex; gap: 4px; flex-wrap: wrap; }
.pager button {
  min-width: 32px;
  height: 30px;
  border: 1px solid #c3ccd4;
  background: #fff;
  font-size: 12px;
  border-radius: 2px;
  padding: 0 8px;
}
.pager button:hover:not(:disabled) { background: #fff3ea; }
.pager button.active { background: var(--accent); color: #fff; border-color: var(--accent); font-weight: 700; }
.pager button:disabled { opacity: .45; }

@media (max-width: 1199.98px) {
  .filter-bar { grid-template-columns: repeat(3, 1fr); }
  .filter-bar .btns { grid-column: span 3; }
}
@media (max-width: 767.98px) {
  .summary-cards { grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 10px; }
  .sum-card { padding: 12px; }
  .sum-card .val { font-size: 16px; }
  .filter-bar { grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px; }
  .filter-bar .btns { grid-column: span 2; }
  .filter-bar .btns .btn { flex: 1; }
  .ledger-table .hide-sm { display: none; }
  .login-box .lb-body { padding: 22px 20px 18px; }
}

@media print {
  .site-header, .news-ticker, .site-footer, .mobile-bar, aside, .filter-panel, .page-title .actions, .table-foot { display: none !important; }
  .layout main { flex: 0 0 100% !important; max-width: 100% !important; width: 100% !important; }
  body { background: #fff; }
}

/* ---------- Cricket sidebar groups ---------- */
.menu-group {
  background: #1d1d1d;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 7px 12px;
  border-top: 1px solid var(--line-dark);
  border-bottom: 1px solid var(--line-dark);
}
.sports-menu .count-live { background: var(--loss); }
.clear-filter { color: var(--accent); margin-right: 10px; }
.clear-filter:hover { color: #fff; }

/* ---------- Tournament > matches menu ---------- */
.tour-menu > li > a { align-items: flex-start; }
.tour-menu .tour-name { display: flex; align-items: baseline; line-height: 1.35; }
.tour-menu .tour-name .sport-ico { flex-shrink: 0; }
.tour-menu .sub-menu a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 8px 12px 8px 38px;
  line-height: 1.35;
}
.tour-menu .sub-menu a.current {
  background: #1d1d1d;
  box-shadow: inset 3px 0 0 var(--accent);
  font-weight: 700;
  color: #fff;
}
.tour-menu .tm-time { flex-shrink: 0; font-size: 10px; color: var(--muted-on-dark); white-space: nowrap; }
.tour-menu .tm-live {
  background: var(--green);
  color: #fff;
  font-weight: bold;
  font-size: 9px;
  padding: 1px 5px;
  border-radius: 2px;
}
.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #d0021b;
  margin-right: 6px;
  vertical-align: middle;
  animation: blink 1.2s infinite;
}

/* ---------- My Bets ---------- */
.bets-table tbody tr.row-back td { background: var(--back-2); }
.bets-table tbody tr.row-lay td { background: var(--lay-2); }
.side-badge, .result-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: bold;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 2px;
}
.side-badge.back { background: var(--back); color: #000; }
.side-badge.lay { background: var(--lay); color: #000; }
.result-badge.won { background: #dff3e4; color: var(--win); }
.result-badge.lost { background: #fde3e6; color: var(--loss); }
.table-foot a { font-size: 12px; }

/* ---------- Rules ---------- */
.rules-acc .accordion-item { border-color: var(--border); }
.rules-acc .accordion-item:first-of-type, .rules-acc .accordion-item:first-of-type .accordion-button { border-radius: 3px 3px 0 0; }
.rules-acc .accordion-button {
  font-size: 13px;
  font-weight: bold;
  padding: 12px 16px;
  color: #111;
  background: #fff;
}
.rules-acc .accordion-button:not(.collapsed) {
  background: var(--theme1);
  color: #fff;
  box-shadow: none;
}
.rules-acc .accordion-button:not(.collapsed)::after { filter: invert(1) brightness(2); }
.rules-acc .accordion-button:focus { box-shadow: none; }
.rules-acc .accordion-body { padding: 16px 20px; font-size: 13px; line-height: 1.7; background: #fff; }
.rules-acc .accordion-body ol { margin: 0; padding-left: 20px; }
.rules-acc .accordion-body li { margin-bottom: 6px; }

/* =========================================================
   Mobile refinements
   ========================================================= */
.wallet-box .ws { display: none; }
.show-sm { display: none; }

@media (max-width: 767.98px) {
  .ledger-table .show-sm, .bets-table .show-sm { display: table-cell; }
  .ledger-table th, .ledger-table td { padding: 9px 8px; }
  .ledger-table th:first-child, .ledger-table td:first-child { padding-left: 12px; }
  .ledger-table th:last-child, .ledger-table td:last-child { padding-right: 12px; }
  .ledger-table .desc { min-width: 130px; }
  .ledger-table .desc b { font-size: 12px; }
  .ledger-table .desc small { display: block; line-height: 1.35; margin-top: 2px; }
  .ledger-table .date { font-size: 11px; }
  .table-foot { justify-content: center; text-align: center; }
  .page-title h1 { font-size: 17px; }
}

@media (max-width: 575.98px) {
  /* header: compact wallet, icon-only user button */
  .site-header .top-bar { padding-top: 8px; padding-bottom: 8px; }
  .site-header .top-bar > .d-flex { gap: 8px !important; }
  .site-header .top-bar .ms-auto { gap: 6px !important; }
  .brand { font-size: 19px; letter-spacing: .5px; }
  .brand small { font-size: 7.5px; letter-spacing: 1.4px; }
  /* balance / exposure: small rounded boxes, label over amount, all header controls 36px tall */
  .wallet-box {
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 1px;
    height: 36px;
    padding: 0 9px;
    border-radius: 8px;
    font-size: 11.5px;
    line-height: 1.1;
  }
  .wallet-box .wl { display: none; }
  .wallet-box .ws { display: block; font-size: 9px; font-weight: 500; text-transform: uppercase; letter-spacing: .4px; color: var(--muted-on-dark); }
  .user-menu .dropdown-toggle,
  .hdr-pill { width: 36px; height: 36px; padding: 0; justify-content: center; flex-shrink: 0; }
  .user-menu .dropdown-toggle::after { display: none; }

  /* top menu: one swipeable row, icon above a single-line label */
  .main-nav ul { justify-content: flex-start; padding: 0 4px; gap: 0; }
  .main-nav li { flex: 0 0 auto; }
  .main-nav li a { flex-direction: column; gap: 4px; padding: 8px 12px 7px; font-size: 10px; line-height: 1; white-space: nowrap; }
  .main-nav .badge-live { display: none; }

  .news-ticker { font-size: 11px; }
  .news-ticker .label { padding: 6px 10px; }

  /* home list */
  .classic-tabs button { flex: 1; padding: 6px 8px; font-size: 11px; }

  /* panels & markets */
  .panel-head { padding: 8px 12px; }
  .market-title { padding: 7px 12px; }
  .market-table td.runner { padding: 8px 12px; }
  .market-table th.min-max { padding: 6px 12px; }
  .market-remark { padding: 7px 12px; }
  .scoreboard .sb-body { padding: 10px 12px 12px; }
  .scoreboard .team-line { font-size: 14px; }
  .scoreboard .score { font-size: 16px; }
  .crumbs { margin-bottom: 8px; }

  /* account pages */
  .page-title { align-items: flex-start; }
  .page-title .actions .btn { padding: 6px 10px; font-size: 11px; }
  .sum-card .lbl { font-size: 10px; }
  .bets-table th, .bets-table td { padding: 9px 8px; }

  .site-footer { padding: 12px 0; }

  /* login */
  .login-wrap { justify-content: flex-start; padding-top: 32px; }
  .login-box .lb-head { padding: 22px 20px 16px; }
  .login-box .lb-head .brand { font-size: 28px; }
  .login-feats { gap: 10px 20px; margin-top: 22px; }
}

/* bet slip drawer on phones */
@media (max-width: 991.98px) {
  .betslip-canvas .offcanvas-body { padding-bottom: 16px; }
  .betslip-canvas .slip .form-control { height: 36px; }
  .betslip-canvas .stake-btns button { padding: 8px 0; }
  .betslip-canvas .slip-actions .btn { padding: 10px 0; }
}

/* uploaded logo (admin Settings > Branding) */
.brand.has-logo { display: inline-flex; align-items: center; }
.brand .brand-logo { display: block; max-height: 40px; max-width: 190px; width: auto; height: auto; object-fit: contain; }
@media (max-width: 575.98px) { .brand .brand-logo { max-height: 32px; max-width: 140px; } }

/* cricket score card drawn from the provider's data (app.js renderScoreCard) */
.sc-card { background: linear-gradient(180deg, #17191d 0%, #111 100%); font-size: 12px; }
.sc-top { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 12px 14px 10px; }
.sc-team { min-width: 0; opacity: .7; }
.sc-team.right { text-align: right; }
.sc-team.batting { opacity: 1; }
.sc-name { font-size: 13px; font-weight: 600; color: var(--muted-on-dark); text-transform: uppercase; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-team.batting .sc-name { color: #fff; }
.sc-team.batting .sc-name::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 6px; vertical-align: middle; }
.sc-team.right.batting .sc-name::before { display: none; }
.sc-team.right.batting .sc-name::after { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-left: 6px; vertical-align: middle; }
.sc-runs { font-size: 22px; font-weight: 700; line-height: 1.2; color: #fff; font-variant-numeric: tabular-nums; }
.sc-team.batting .sc-runs { color: var(--accent); }
.sc-runs small { font-size: 12px; font-weight: 500; color: var(--muted-on-dark); margin-left: 4px; }
.sc-mid { text-align: center; }
.sc-comment { display: inline-block; background: var(--accent); color: #fff; font-weight: 700; font-size: 11px; letter-spacing: .5px; text-transform: uppercase; padding: 3px 12px; border-radius: 20px; white-space: nowrap; }
.sc-comment { animation: sc-zoom 1.6s ease-in-out infinite; }
.sc-comment.pop { animation: sc-pop .7s cubic-bezier(.28, 1.6, .5, 1), sc-zoom 1.6s ease-in-out .7s infinite; }
@keyframes sc-pop {
  0% { transform: scale(.4); opacity: 0; }
  55% { transform: scale(1.18); opacity: 1; }
  75% { transform: scale(.94); }
  100% { transform: scale(1); }
}
@keyframes sc-zoom {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(.88); }
}
@media (prefers-reduced-motion: reduce) { .sc-comment, .sc-comment.pop { animation: none; } }
.sc-rates { margin-top: 5px; font-size: 11px; color: var(--muted-on-dark); white-space: nowrap; }
.sc-rates b { color: #fff; }
.sc-rates .sep { margin: 0 6px; opacity: .4; }
.sc-target { margin-top: 3px; font-size: 11px; color: var(--gold); }
.sc-info { display: flex; justify-content: space-between; gap: 10px; padding: 6px 14px; background: rgba(255, 255, 255, .04); border-top: 1px solid var(--line-dark); color: var(--muted-on-dark); font-size: 11px; }
.sc-info b { color: #fff; font-weight: 600; }
.sc-overs { display: flex; gap: 14px; padding: 8px 14px; overflow-x: auto; scrollbar-width: none; border-top: 1px solid var(--line-dark); }
.sc-overs::-webkit-scrollbar { display: none; }
.sc-over { display: flex; align-items: center; gap: 4px; flex: none; opacity: .6; }
.sc-over.now { opacity: 1; }
.sc-over + .sc-over { padding-left: 14px; border-left: 1px solid var(--line-dark); }
.sc-over .lbl { font-size: 10px; font-weight: 600; color: var(--muted-on-dark); text-transform: uppercase; margin-right: 2px; white-space: nowrap; }
.sc-over .ball { min-width: 22px; height: 22px; padding: 0 4px; border-radius: 11px; background: #2c2f35; color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.sc-over .ball.b0 { background: #24272c; color: var(--muted-on-dark); }
.sc-over .ball.b4 { background: #1e88e5; }
.sc-over .ball.b6 { background: #8e24aa; }
.sc-over .ball.bw { background: var(--loss); }
.sc-over .ball.bx { background: #ffb80c; color: #222; }
.sc-tables { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line-dark); }
.sc-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.sc-table + .sc-table { border-left: 1px solid var(--line-dark); }
.sc-table th, .sc-table td { padding: 5px 8px; text-align: right; white-space: nowrap; }
.sc-table th:first-child, .sc-table td:first-child { text-align: left; padding-left: 14px; }
.sc-table th { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--muted-on-dark); background: rgba(255, 255, 255, .04); }
.sc-table td { color: #ddd; border-top: 1px solid rgba(255, 255, 255, .05); }
.sc-table td.nm { max-width: 140px; overflow: hidden; text-overflow: ellipsis; color: #fff; }
.sc-table td.hi { color: #fff; font-weight: 700; }
.sc-table tr.striker td.nm { font-weight: 600; }
.sc-table tr.striker td.nm i { color: var(--accent); font-size: 9px; margin-left: 5px; vertical-align: 1px; }
@media (max-width: 767.98px) {
  .sc-tables { grid-template-columns: 1fr; }
  .sc-table + .sc-table { border-left: 0; border-top: 1px solid var(--line-dark); }
}
@media (max-width: 575.98px) {
  .sc-top { padding: 10px 12px 8px; gap: 6px; }
  .sc-runs { font-size: 18px; }
  .sc-runs small { display: block; margin-left: 0; font-size: 11px; }
  .sc-name { font-size: 12px; }
  .sc-info, .sc-overs { padding-left: 12px; padding-right: 12px; }
  .sc-table th, .sc-table td { padding: 5px 6px; }
  .sc-table th:first-child, .sc-table td:first-child { padding-left: 12px; }
}

/* provider score card (sandboxed iframe, see app.js renderScore) */
.sb-frame-wrap { padding: 0; line-height: 0; }
.sb-frame { display: block; width: 100%; height: 90px; border: 0; background: transparent; color-scheme: normal; }

/* ---- two-factor sign-in (site security page) ---- */
.tfa-status { display: flex; gap: 12px; align-items: center; background: #f6f7f9; border: 1px solid #e1e1e1; border-radius: 8px; padding: 12px; color: #1a1a1a; }
.tfa-status i { font-size: 26px; color: #9aa1ab; }
.tfa-status.on { background: #e9f8ee; border-color: #b7e4c4; }
.tfa-status.on i { color: var(--win); }
.tfa-status small { display: block; color: #666; }
.tfa-steps { padding-left: 18px; font-size: 13px; }
.tfa-qr { display: flex; justify-content: center; padding: 12px; background: #fff; border: 1px solid #e1e1e1; border-radius: 8px; width: fit-content; margin: 0 auto 10px; }
.tfa-secret { font-size: 14px; letter-spacing: 1px; background: #f2f4f7; padding: 4px 8px; border-radius: 6px; color: #1a1a1a; }
.tfa-codes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.tfa-codes code { background: #f2f4f7; color: #1a1a1a; padding: 6px; border-radius: 6px; text-align: center; }

/* ---- deposit / withdraw ---- */
.pay-card { color: #1a1a1a; }
.pay-card .p-3 { background: #fff; }
.pay-amount { text-align: center; font-size: 15px; margin-bottom: 10px; }
.pay-amount b { font-size: 22px; color: var(--accent); display: block; }
.pay-amount small { display: block; color: #777; font-size: 11px; }
.pay-qr { display: flex; justify-content: center; padding: 10px; background: #fff; border: 1px solid #e1e1e1; border-radius: 8px; width: fit-content; margin: 8px auto; }
.pay-upi { display: flex; align-items: center; gap: 8px; justify-content: center; background: #f6f7f9; border-radius: 8px; padding: 8px 10px; flex-wrap: wrap; }
.pay-upi span { color: #555; font-size: 12px; }
.pay-timer { text-align: center; margin-top: 10px; font-size: 13px; color: #555; }
.pay-step { font-weight: 700; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.pay-step span { width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; }
.pay-acc { display: flex; gap: 10px; align-items: center; border: 1px solid #e1e1e1; border-radius: 8px; padding: 8px 10px; margin-bottom: 6px; cursor: pointer; }
.pay-acc small, .pay-acc-row small { display: block; color: #777; }
.pay-acc-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #eee; color: #1a1a1a; }
.pay-history { font-size: 12.5px; }
.pay-history small { display: block; color: #777; }
.pay-st { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 11px; font-weight: 700; background: #eee; color: #555; }
.pay-st.st-approved { background: #e7f7ec; color: #12813a; }
.pay-st.st-pending { background: #fff5e0; color: #a86400; }
.pay-st.st-rejected, .pay-st.st-expired { background: #fdecec; color: #c62828; }

/* ---- notifications bell (site header) ---- */
.site-bell > a { position: relative; color: #fff; font-size: 17px; padding: 4px 6px; display: inline-block; }
.site-bell .bell-count { position: absolute; top: -4px; right: -6px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--loss); color: #fff; font-size: 10px; font-weight: 700; line-height: 17px; text-align: center; }
.sbell-menu { width: 320px; max-width: calc(100vw - 20px); padding: 0; border-radius: 10px; overflow: hidden; }
.sbell-head { display: flex; justify-content: space-between; padding: 9px 12px; border-bottom: 1px solid #eee; font-size: 13px; }
.sbell-head a { color: var(--accent-dark); text-decoration: none; font-size: 12px; }
.js-sbell-list { max-height: 360px; overflow-y: auto; }
.sbell-item { display: block; padding: 9px 12px; border-bottom: 1px solid #f1f1f1; color: #1a1a1a; text-decoration: none; font-size: 12.5px; }
.sbell-item.unread { background: #fff6ef; }
.sbell-item b, .sbell-item span { display: block; }
.sbell-item span { color: #555; }
.sbell-item small { color: #888; font-size: 11px; }
.sbell-empty { padding: 20px; text-align: center; color: #888; font-size: 12px; }
/* ---- deposit (+) / withdraw buttons next to the balance ---- */
.wallet-group { display: inline-flex; align-items: center; gap: 6px; }
.wallet-act {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 34px; padding: 0 12px; border-radius: 20px;
  font-size: 11px; font-weight: 700; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  border: 1px solid #5a5a5a; background: #0d0d0d; color: #fff;
}
.wallet-act:hover { color: #fff; text-decoration: none; filter: brightness(1.1); }
.wallet-act.dep { background: var(--win); border-color: var(--win); }
.wallet-act.dep i { font-size: 12px; }
.wallet-act.wd i { color: var(--accent); }
.wallet-act.wd:hover { border-color: var(--accent); }
@media (max-width: 991.98px) {
  .wallet-act span { display: none; }
  .wallet-act { width: 34px; padding: 0; border-radius: 50%; }
}
@media (max-width: 575.98px) {
  .wallet-group { gap: 4px; }
  .wallet-act { width: 30px; height: 30px; }

}@media (max-width: 575.98px) {
  .wallet-act.wd { display: none; } /* phones: only "+" fits; Withdraw is in the user menu */
}
@media (max-width: 575.98px) {
  .site-header .hdr-pill[data-refresh] { display: none; } /* phones: room for balance + deposit; odds update live anyway */
  .site-bell > a { padding: 4px 2px; }
}

/* blinking live dot of the "In-Play" menu item */
.nav-live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #ff3b3b; margin-left: 4px; vertical-align: middle; animation: livePulse 1.2s ease-in-out infinite; }
@keyframes livePulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
/* phones / tablets: the bottom bar has Home, In-Play, Open Bets, Deposit, Withdraw,
   so the top menu shows only Home and the sports */
@media (max-width: 991.98px) {
  .main-nav li.nav-desk { display: none; }
  .main-nav ul { justify-content: center; justify-content: safe center; } /* safe: never cut items when they overflow */
}
/* phones / tablets: Deposit and Withdraw are in the bottom bar, not in the header;
   the freed room brings back the Refresh button on phones */
@media (max-width: 991.98px) {
  .wallet-act { display: none !important; }
}
@media (max-width: 575.98px) {
  .site-header .hdr-pill[data-refresh] { display: inline-flex; }
}
/* My Bets: sport column */
.sport-cell { white-space: nowrap; color: #333; }
.sport-cell i { color: var(--accent); }
/* ---- Deposit (green) and Withdraw (orange) stand out wherever they appear ---- */
:root { --dep: #16a34a; --dep-soft: rgba(22, 163, 74, .14); --wd: #f59e0b; --wd-soft: rgba(245, 158, 11, .14); }
/* header buttons */
.wallet-act.dep { background: var(--dep); border-color: var(--dep); color: #fff; box-shadow: 0 0 0 2px var(--dep-soft); }
.wallet-act.wd { background: var(--wd); border-color: var(--wd); color: #111; box-shadow: 0 0 0 2px var(--wd-soft); }
.wallet-act.wd i { color: #111; }
/* profile dropdown */
.dropdown-item.hl-dep { color: var(--dep); font-weight: 700; background: var(--dep-soft); }
.dropdown-item.hl-wd { color: #b45309; font-weight: 700; background: var(--wd-soft); margin-top: 2px; }
.dropdown-item.hl-dep:hover { background: var(--dep); color: #fff; }
.dropdown-item.hl-wd:hover { background: var(--wd); color: #111; }
/* bottom bar */
.mobile-bar a.hl-dep, .mobile-bar a.hl-dep i { color: #22c55e; }
.mobile-bar a.hl-wd, .mobile-bar a.hl-wd i { color: var(--wd); }
.mobile-bar a.hl-dep.active, .mobile-bar a.hl-wd.active { background: rgba(255, 255, 255, .06); }
/* My Account side menu */
.sports-menu a.hl-dep { color: #4ade80; font-weight: 700; box-shadow: inset 3px 0 0 var(--dep); }
.sports-menu a.hl-dep .sport-ico { color: #4ade80; }
.sports-menu a.hl-wd { color: #fbbf24; font-weight: 700; box-shadow: inset 3px 0 0 var(--wd); }
.sports-menu a.hl-wd .sport-ico { color: #fbbf24; }
.sports-menu a.hl-dep.active { background: var(--dep-soft); }
.sports-menu a.hl-wd.active { background: var(--wd-soft); }