/* ============================================================
   BLAZE — casino & sportsbook platform
   Stake-style layout · dark-red gradient chrome + white content
   ============================================================ */

:root {
  /* dark red chrome (sidebar / topbar / hero / footer) */
  --shell-a:      #4d0c1a;
  --shell-b:      #2b060e;
  --shell-c:      #1e0409;
  --shell-grad:   linear-gradient(180deg, var(--shell-a) 0%, var(--shell-b) 100%);
  --shell-ink:      #ffffff;
  --shell-ink-soft: #eec3ca;
  --shell-ink-dim:  #c28e98;
  --shell-line:     rgba(255, 255, 255, .12);
  --shell-hover:    rgba(255, 255, 255, .09);

  /* light content */
  --page:         #f7f4f5;
  --card:         #ffffff;
  --card-tint:    #fdf9fa;
  --row-alt:      #faf4f5;
  --line:         #ecdfe2;
  --line-strong:  #ddc9cd;

  /* ink on light */
  --ink:          #23090f;
  --ink-soft:     #6e575c;
  --ink-dim:      #a08a8e;

  /* brand */
  --red:          #e5173a;
  --red-deep:     #ad0c2d;
  --grad-red:     linear-gradient(135deg, #ff5a3c 0%, #f01f3f 48%, #b00d33 100%);
  --glow-red:     0 6px 20px rgba(229, 23, 58, .35);

  /* semantics */
  --live:         #21c766;
  --win:          #0da750;
  --loss:         #b26a76;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;

  --header-h: 64px;
  --rail-w: 64px;
  --side-w: 248px;

  --font-ui: "Nunito Sans", sans-serif;
  --font-logo: "Fugaz One", cursive;

  --shadow-card: 0 1px 2px rgba(35, 9, 15, .05), 0 4px 14px rgba(35, 9, 15, .06);
  --shadow-pop:  0 12px 40px rgba(35, 9, 15, .18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

[hidden] { display: none !important; }

html { scrollbar-color: #d9c2c7 var(--page); }

body {
  font-family: var(--font-ui);
  background: var(--page);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
}

::selection { background: rgba(229, 23, 58, .25); }

svg { fill: currentColor; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
input { font: inherit; }

:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 800;
  font-size: 14px;
  border-radius: var(--r-sm);
  padding: 0 18px;
  height: 44px;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, filter .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(.97); }

.btn-primary {
  background: var(--grad-red);
  color: #fff;
  box-shadow: var(--glow-red);
}
.btn-primary:hover { filter: brightness(1.1); box-shadow: 0 8px 26px rgba(229, 23, 58, .45); }

/* on dark-red chrome, primary flips to white for contrast */
.topbar .btn-primary,
.hero-copy .btn-primary {
  background: #fff;
  color: var(--red-deep);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .3);
}
.topbar .btn-primary:hover,
.hero-copy .btn-primary:hover { filter: none; background: #ffeef1; box-shadow: 0 8px 28px rgba(0, 0, 0, .38); }

.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(35, 9, 15, .06); }
.topbar .btn-ghost { color: #fff; }
.topbar .btn-ghost:hover { background: var(--shell-hover); }

.btn-lg { height: 48px; padding: 0 28px; font-size: 15px; }
.btn-block { width: 100%; }

.btn-social {
  background: #fff;
  border: 1px solid var(--line-strong);
  color: var(--ink);
  height: 44px;
  box-shadow: var(--shadow-card);
}
.btn-social:hover { background: var(--card-tint); transform: translateY(-1px); }
.btn-social svg { width: 19px; height: 19px; }
.btn-social.sm { width: 52px; padding: 0; }
/* on the dark hero, social buttons need no extra border */
.hero .btn-social { border: 0; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: var(--r-sm);
  color: var(--ink-soft);
  transition: background .15s ease, color .15s ease;
}
.icon-btn:hover { background: rgba(35, 9, 15, .07); color: var(--ink); }
.icon-btn svg { width: 20px; height: 20px; }

.text-link { color: var(--red); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--red-deep); }
.text-link.small { font-size: 13px; align-self: flex-start; text-decoration: none; }
.text-link.small:hover { text-decoration: underline; }

/* ============================================================
   SIDEBAR  (dark red chrome)
   ============================================================ */
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--rail-w);
  background: var(--shell-grad);
  z-index: 60;
  display: flex;
  flex-direction: column;
  transition: width .22s cubic-bezier(.4, 0, .2, 1), transform .25s ease;
  box-shadow: 2px 0 14px rgba(35, 9, 15, .25);
}
body.sidebar-expanded .sidebar { width: var(--side-w); }

.sidebar-top {
  height: var(--header-h);
  flex: 0 0 var(--header-h);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px;
  background: rgba(0, 0, 0, .22);
}
.sidebar .icon-btn { color: var(--shell-ink-soft); }
.sidebar .icon-btn:hover { background: var(--shell-hover); color: #fff; }

.mode-pills {
  display: none;
  flex: 1;
  background: rgba(0, 0, 0, .3);
  border-radius: 0;
  padding: 3px;
  gap: 3px;
}
body.sidebar-expanded .mode-pills { display: flex; }
.mode-pill {
  flex: 1;
  padding: 8px 0;
  text-align: center;
  border-radius: 0;
  font-weight: 800;
  font-size: 13px;
  color: var(--shell-ink-soft);
  transition: background .15s, color .15s;
}
.mode-pill:hover { color: #fff; }
.mode-pill.active { background: var(--grad-red); color: #fff; box-shadow: 0 2px 10px rgba(240, 31, 63, .5); }

.sidebar-nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 10px 24px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, .22) transparent;
}

.rail-modes { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
body.sidebar-expanded .rail-modes { display: none; }
.rail-mode {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  color: var(--shell-ink-soft);
  transition: background .15s, color .15s;
}
.rail-mode:hover { background: var(--shell-hover); color: #fff; }
.rail-mode.active { background: var(--grad-red); color: #fff; box-shadow: 0 2px 10px rgba(240, 31, 63, .5); }
.rail-mode svg { width: 21px; height: 21px; }
.rail-divider { height: 1px; background: var(--shell-line); margin: 8px 2px; }

.nav-list { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.nav-sep { height: 1px; background: var(--shell-line); margin: 10px 2px; }

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: 42px;
  padding: 0 12px;
  border-radius: var(--r-sm);
  color: var(--shell-ink-soft);
  font-weight: 700;
  font-size: 13.5px;
  transition: background .15s, color .15s;
}
.nav-item:hover { background: var(--shell-hover); color: #fff; }
.nav-item svg { width: 19px; height: 19px; flex: 0 0 19px; }
.nav-label { flex: 1; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-label b { font-weight: 800; color: #fff; }
.chev { width: 15px !important; height: 15px !important; flex: 0 0 15px; opacity: .7; transition: transform .18s ease; }
.nav-group.open > .nav-item .chev { transform: rotate(180deg); }

body:not(.sidebar-expanded) .nav-label,
body:not(.sidebar-expanded) .chev { display: none; }
body:not(.sidebar-expanded) .nav-item { justify-content: center; padding: 0; }

/* tooltips on collapsed rail */
body:not(.sidebar-expanded) .nav-item::after,
body:not(.sidebar-expanded) .rail-mode::after {
  content: attr(data-tip);
  position: absolute;
  left: calc(100% + 10px);
  top: 50%;
  translate: 0 -50%;
  background: var(--ink);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .12s ease;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35);
  z-index: 5;
}
body:not(.sidebar-expanded) .nav-item:hover::after,
body:not(.sidebar-expanded) .rail-mode:hover::after { opacity: 1; }

.sub-list { list-style: none; display: none; padding: 2px 0 6px 43px; }
.nav-group.open .sub-list { display: block; }
body:not(.sidebar-expanded) .sub-list { display: none !important; }
.sub-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 7px 10px;
  border-radius: 6px;
  color: var(--shell-ink-dim);
  font-size: 13px;
  font-weight: 700;
  transition: color .12s, background .12s;
}
.sub-item:hover { color: #fff; background: var(--shell-hover); }
.sub-item.active { color: #ff8a9b; }

/* mobile Browse panel extras (search + top sports + odds) — hidden on desktop */
.sb-mobile { display: none; }
body.sidebar-mobile-open .sb-mobile { display: block; }
.sb-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 44px;
  padding: 0 14px;
  margin: 4px 0 14px;
  border-radius: var(--r-sm);
  background: rgba(0, 0, 0, .3);
  color: var(--shell-ink-dim);
  font-weight: 600;
  font-size: 14px;
}
.sb-search svg { width: 18px; height: 18px; flex: 0 0 18px; }
.sb-search:hover { background: rgba(0, 0, 0, .42); color: var(--shell-ink-soft); }
.sb-section-label {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--shell-ink-dim);
  padding: 4px 12px 8px;
}
.sb-topsports { margin-bottom: 4px; }

.sidebar-backdrop {
  position: fixed; inset: 0;
  background: rgba(35, 9, 15, .5);
  backdrop-filter: blur(2px);
  z-index: 55;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s;
}

/* ============================================================
   TOPBAR  (dark red chrome)
   ============================================================ */
.topbar {
  position: fixed;
  top: 0; right: 0;
  left: var(--rail-w);
  height: var(--header-h);
  background: linear-gradient(90deg, #3c0913 0%, #551020 55%, #3c0913 100%);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 50;
  transition: left .22s cubic-bezier(.4, 0, .2, 1);
  box-shadow: 0 2px 12px rgba(35, 9, 15, .35);
}
body.sidebar-expanded .topbar { left: var(--side-w); }

.topbar .icon-btn { color: var(--shell-ink-soft); }
.topbar .icon-btn:hover { background: var(--shell-hover); color: #fff; }

.mobile-burger { display: none; }

.logo {
  font-family: var(--font-logo);
  font-size: 27px;
  letter-spacing: .5px;
  margin-left: clamp(0px, 18vw - 120px, 220px);
  color: #fff;
  filter: drop-shadow(0 2px 10px rgba(255, 90, 110, .4));
  transition: margin .22s ease, transform .18s ease;
  display: inline-block;
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}
/* light sweep clipped INSIDE the letters — travels Blaze → Ace as one pass */
.logo-b {
  background-image:
    linear-gradient(105deg, transparent 42%, rgba(255, 206, 138, .95) 50%, transparent 58%),
    linear-gradient(#fff, #fff);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 110% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweepBlaze 4.5s ease-in-out infinite;
}
@keyframes sweepBlaze {
  0%     { background-position: 110% 0, 0 0; }
  20%    { background-position: -10% 0, 0 0; }
  99.99% { background-position: -10% 0, 0 0; }
  100%   { background-position: 110% 0, 0 0; }
}
/* "Ace" — slot-style roll window: text ⇄ real ace-of-hearts card every ~5s */
.logo em {
  font-style: normal;
  display: inline-block;
  height: 1em;
  overflow: hidden;
  vertical-align: -0.2em;
}
.roll-track { display: block; animation: aceRoll 10s ease-in-out infinite; }
.roll-slide {
  display: block;
  height: 1em;
  line-height: 1em;
}
.ace-text {
  background-image:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .95) 50%, transparent 60%),
    linear-gradient(160deg, #ffd23c 10%, #ff9f2e 55%, #f2811d 90%);
  background-size: 250% 100%, 100% 100%;
  background-repeat: no-repeat;
  background-position: 110% 0, 0 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: sweepAce 4.5s ease-in-out infinite;
}
@keyframes sweepAce {
  0%, 16% { background-position: 110% 0, 0 0; }
  36%     { background-position: -10% 0, 0 0; }
  99.99%  { background-position: -10% 0, 0 0; }
  100%    { background-position: 110% 0, 0 0; }
}
/* matching gloss pass over the ace card, clipped to the card shape */
.card-gloss { animation: cardGloss 4.5s ease-in-out infinite; }
@keyframes cardGloss {
  0%, 16% { transform: translateX(-18px) skewX(-14deg); }
  36%     { transform: translateX(62px) skewX(-14deg); }
  99.99%  { transform: translateX(62px) skewX(-14deg); }
  100%    { transform: translateX(-18px) skewX(-14deg); }
}
.roll-card { text-align: center; }
.ace-card {
  height: .94em;
  width: auto;
  vertical-align: top;
  margin-top: .03em;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3));
}
@keyframes aceRoll {
  0%, 44%  { transform: translateY(0); }
  50%, 94% { transform: translateY(-1em); }
  100%     { transform: translateY(-2em); }
}
.logo:hover { transform: scale(1.06) rotate(-1.5deg); }
@media (prefers-reduced-motion: reduce) {
  .logo-b, .ace-text, .card-gloss, .roll-track, .wheel { animation: none; }
}

.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.user-chip { display: flex; align-items: center; gap: 10px; }
.user-balance {
  background: rgba(0, 0, 0, .3);
  color: #fff;
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-variant-numeric: tabular-nums;
}
.user-avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--grad-red);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  display: grid;
  place-items: center;
  box-shadow: 0 2px 10px rgba(240, 31, 63, .5);
}
.user-name { color: #fff; font-weight: 800; font-size: 14px; }
.user-chip .icon-btn { color: var(--shell-ink-soft); }
.user-chip .icon-btn:hover { background: var(--shell-hover); color: #fff; }

/* wallet box */
.wallet-box { position: relative; display: flex; align-items: center; gap: 8px; }
.wallet-balance {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  min-width: 150px;
  padding: 0 10px;
  background: rgba(0, 0, 0, .32);
  border-radius: var(--r-sm);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  transition: background .15s;
}
.wallet-amt { flex: 1; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wallet-balance:hover { background: rgba(0, 0, 0, .45); }
.wallet-cur { width: 18px; height: 18px; }
.wallet-chev { width: 15px; height: 15px; opacity: .8; }
.wallet-btn { height: 40px; }
.wallet-ico { display: none; width: 19px; height: 19px; }
.wallet-dd { right: 0; min-width: 240px; }
.wallet-dd-row { display: flex; justify-content: space-between; align-items: center; padding: 9px 4px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.wallet-dd-row b { color: var(--ink); font-variant-numeric: tabular-nums; }
.wallet-dd-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.wallet-dd-actions .btn { height: 40px; }
.wallet-dd .btn-ghost { background: var(--card-tint); border: 1px solid var(--line-strong); color: var(--ink); }
.wallet-dd .btn-ghost:hover { background: #f0e5e8; }

/* topbar icon cluster */
.tb-icons { display: flex; align-items: center; gap: 2px; margin-left: 4px; }
.tb-menu { position: relative; }
.tb-ico { color: var(--shell-ink-soft); }
.tb-ico:hover { background: var(--shell-hover); color: #fff; }

/* dropdowns */
.dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: 8px;
  z-index: 80;
  animation: ddIn .16s ease both;
}
@keyframes ddIn { from { opacity: 0; transform: translateY(-6px); } }
.profile-dd, .panel-dd { min-width: 210px; }
.dd-user { display: flex; align-items: center; gap: 10px; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dd-user b { font-size: 14.5px; font-weight: 900; color: var(--ink); }
.dd-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 10px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: left;
  transition: background .12s, color .12s;
}
.dd-item svg { width: 18px; height: 18px; flex: 0 0 18px; color: var(--ink-dim); }
.dd-item:hover { background: var(--card-tint); color: var(--ink); }
.dd-item:hover svg { color: var(--red); }
.dd-logout { color: var(--red); margin-top: 4px; border-top: 1px solid var(--line); padding-top: 12px; }
.dd-logout svg { color: var(--red); }
.dd-head { display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 12px; border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.dd-head b { font-size: 14.5px; font-weight: 900; color: var(--ink); }
.dd-x { width: 30px; height: 30px; }
.dd-x svg { width: 16px; height: 16px; }
.notif-dd { min-width: 300px; }
.notif-empty { text-align: center; padding: 22px 10px 26px; }
.notif-empty svg { width: 46px; height: 46px; color: #d9c2c7; }
.notif-empty b { display: block; font-size: 14px; font-weight: 900; color: var(--ink); margin: 12px 0 4px; }
.notif-empty span { font-size: 12.5px; font-weight: 700; color: var(--ink-dim); }

@media (max-width: 640px) {
  .user-name { display: none; }
  .wallet-balance { padding: 0 10px; font-size: 12.5px; height: 38px; min-width: 120px; }
  /* Stake-style mobile header: icon-only wallet, drop search + panel */
  .wallet-btn { height: 38px; width: 40px; padding: 0; }
  .wallet-txt { display: none; }
  .wallet-ico { display: block; }
  #searchIco, #panelIco { display: none; }
  .tb-icons { gap: 0; margin-left: 2px; }
  .tb-ico { width: 38px; height: 38px; }
}
@media (max-width: 360px) {
  .topbar { padding: 0 8px; }
  .topbar-actions { gap: 6px; }
  .wallet-balance { min-width: 92px; font-size: 11.5px; gap: 5px; padding: 0 8px; }
  .wallet-cur { width: 15px; height: 15px; }
  .wallet-chev { width: 13px; height: 13px; }
  .wallet-btn { width: 36px; }
  .wallet-ico { width: 17px; height: 17px; }
  .tb-ico { width: 34px; height: 34px; }
  .tb-ico svg { width: 18px; height: 18px; }
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.main {
  margin-left: var(--rail-w);
  margin-top: var(--header-h);
  transition: margin-left .22s cubic-bezier(.4, 0, .2, 1);
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
}
body.sidebar-expanded .main { margin-left: var(--side-w); }

.content {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  padding-bottom: 24px;
}

/* ============================================================
   HERO  (dark red gradient banner on white page)
   ============================================================ */
.hero {
  background:
    radial-gradient(760px 360px at 16% -12%, rgba(255, 110, 80, .28), transparent 62%),
    radial-gradient(620px 320px at 88% 8%, rgba(255, 60, 100, .2), transparent 60%),
    linear-gradient(118deg, #5c1122 0%, #430b18 45%, #2c0610 100%);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: linear-gradient(115deg, transparent 30%, #000 100%);
  pointer-events: none;
}

.hero-inner {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  padding: 52px 0;
  display: flex;
  align-items: center;
  gap: 48px;
  position: relative;
}

.hero-copy { flex: 1 1 46%; min-width: 300px; }
.hero-copy h1 {
  font-size: clamp(26px, 2.6vw, 34px);
  font-weight: 900;
  line-height: 1.28;
  margin-bottom: 24px;
  animation: rise .5s ease both;
}
.cta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  animation: rise .5s .08s ease both;
}
.cta-or {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--shell-ink-soft);
}

.social-row { display: flex; gap: 10px; flex-wrap: wrap; }
.social-row.center { justify-content: center; }

/* VIP progress card (logged-in hero) */
.vip-card { max-width: 400px; animation: rise .5s ease both; }
.vip-title { font-size: 14px; font-weight: 800; color: var(--shell-ink-soft); margin-bottom: 12px; }
.vip-inner {
  background: rgba(0, 0, 0, .28);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.vip-user { display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 900; font-size: 16px; margin-bottom: 14px; }
.vip-user svg { width: 16px; height: 16px; opacity: .8; }
.vip-pct { display: flex; align-items: center; gap: 7px; color: #fff; margin-bottom: 8px; }
.vip-pct b { font-size: 15px; font-weight: 900; }
.vip-pct svg { width: 15px; height: 15px; color: #ffb02e; }
.vip-bar { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, .16); overflow: hidden; margin-bottom: 12px; }
.vip-bar i { display: block; height: 100%; width: 2%; background: var(--grad-red); border-radius: 99px; }
.vip-next { font-size: 13px; font-weight: 700; color: var(--shell-ink-soft); }
.vip-next b { color: #ffb46a; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  display: inline-block;
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: .55; } }

/* ============================================================
   EMPTY IMAGE SLOTS  (swap for <img> later)
   ============================================================ */
.img-slot {
  position: relative;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px),
    linear-gradient(150deg, #6b1830 0%, #471020 55%, #300813 100%);
}
.img-slot.alt {
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 10px, transparent 10px 20px),
    linear-gradient(150deg, #7c2418 0%, #521410 55%, #33090b 100%);
}
.slot-note {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .38);
  border: 1px dashed rgba(255, 255, 255, .3);
  border-radius: 999px;
  padding: 5px 13px;
}

/* ============================================================
   CATEGORY BAR
   ============================================================ */
.cat-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin: 24px 0 18px;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.cat-bar::-webkit-scrollbar { display: none; }
.cat-chip {
  flex: 0 0 auto;
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  font-weight: 800;
  font-size: 13px;
  color: var(--ink-soft);
  white-space: nowrap;
  transition: background .15s, color .15s, transform .12s;
}
.cat-chip:hover { color: var(--ink); transform: translateY(-1px); }
.cat-chip.active {
  background: var(--grad-red);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 4px 14px rgba(229, 23, 58, .35);
}

/* ============================================================
   SEARCH
   ============================================================ */
.search-wrap { position: relative; margin: 0 0 30px; z-index: 20; }

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 52px;
  padding: 0 18px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search-wrap.open .search-bar,
.search-bar:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 23, 58, .14), var(--shadow-card); }
.search-bar svg { width: 19px; height: 19px; color: var(--ink-dim); flex: 0 0 19px; }
.search-bar input {
  flex: 1;
  background: none;
  border: 0;
  outline: 0;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
}
.search-bar input::placeholder { color: var(--ink-dim); }

.search-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-pop);
  padding: 10px;
  display: none;
}
.search-wrap.open .search-panel { display: block; }
.search-hint {
  text-align: center;
  color: var(--ink-dim);
  font-size: 13.5px;
  font-weight: 700;
  padding: 18px 0;
}
.search-results { list-style: none; max-height: 320px; overflow-y: auto; }
.search-results li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: background .12s;
}
.search-results li:hover { background: var(--row-alt); }
.search-results .sr-name { font-weight: 800; font-size: 14px; color: var(--ink); }
.search-results .sr-provider { color: var(--ink-dim); font-size: 12.5px; font-weight: 700; }

/* ============================================================
   SHELVES (Trending Games / Sports)
   ============================================================ */
.shelf { margin-bottom: 44px; }

.shelf-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.shelf-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 19px;
  font-weight: 900;
  color: var(--ink);
}
.shelf-head h2 svg { width: 22px; height: 22px; flex: 0 0 22px; }
.view-all { font-size: 13.5px; font-weight: 800; color: var(--red); }
.view-all:hover { color: var(--red-deep); text-decoration: underline; text-underline-offset: 3px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 12px;
}

/* game / sport tile */
.tile { display: block; }
.tile-art {
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 8px;
  cursor: pointer;
  color: #fff;
  transition: transform .16s ease, box-shadow .16s ease;
  box-shadow: 0 2px 6px rgba(35, 9, 15, .18);
}
.tile:hover .tile-art {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(173, 12, 45, .28);
}
.tile-art::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, .16), transparent 55%);
  pointer-events: none;
}

/* real cover art fills the tile; a bottom scrim keeps the title/provider legible over it */
.tile-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.tile-art:has(.tile-img)::after {
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(255, 255, 255, .12), transparent 55%),
    linear-gradient(to top, rgba(20, 4, 9, .82) 0%, rgba(20, 4, 9, .30) 34%, transparent 60%);
}
.tile-art .tile-title,
.tile-art .tile-provider,
.tile-art .tile-badge,
.tile-art .tile-ribbon { position: relative; z-index: 1; }
/* when art is present, pin the title row to the bottom over the scrim */
.tile-art:has(.tile-img) {
  justify-content: flex-end;
  text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
}

/* red-family art variants — placeholder gradients until real art lands */
.tile-art.v1 { background: linear-gradient(160deg, #a02339, #4c0f1e); }
.tile-art.v2 { background: linear-gradient(160deg, #b03f1d, #521510); }
.tile-art.v3 { background: linear-gradient(160deg, #c22a55, #57122c); }
.tile-art.v4 { background: linear-gradient(160deg, #96193f, #400b1d); }
.tile-art.v5 { background: linear-gradient(160deg, #b52e26, #4c1013); }
.tile-art.v6 { background: linear-gradient(160deg, #8d2150, #3a0d24); }
.tile-art.v7 { background: linear-gradient(160deg, #c74a30, #591713); }
.tile-art.v8 { background: linear-gradient(160deg, #a81d49, #440c20); }

.tile-badge {
  position: absolute;
  top: 8px; left: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .5);
  color: #fff;
  font-family: var(--font-logo);
  font-size: 12px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.tile-ribbon {
  position: absolute;
  top: 10px; left: 50%;
  translate: -50% 0;
  font-size: 8.5px;
  font-weight: 900;
  letter-spacing: .12em;
  color: #ffd9a0;
  text-transform: uppercase;
  white-space: nowrap;
}

.tile-title {
  font-weight: 900;
  font-size: clamp(13px, 1.15vw, 16px);
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, .45);
  position: relative;
  z-index: 1;
}
.tile-provider {
  position: absolute;
  bottom: 10px; left: 0; right: 0;
  text-align: center;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .6);
}

.tile-stat {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 9px;
  font-size: 12.5px;
  font-weight: 800;
}
.tile-stat .dot { width: 7px; height: 7px; animation: none; box-shadow: none; }
.tile-stat b { color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 800; }
.tile-stat span { color: var(--ink-dim); font-weight: 700; }

.tile { animation: rise .4s ease both; }

.load-more-row { display: flex; justify-content: center; margin-top: 20px; }
.btn-load {
  color: var(--red);
  font-size: 14px;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
}
.btn-load:hover { background: var(--card-tint); color: var(--red-deep); }
.btn-load[disabled] { opacity: .5; cursor: default; color: var(--ink-dim); }

/* ============================================================
   SPORTSBOOK (API-Football · stake-style)
   ============================================================ */
#fixturesWrap { margin-bottom: 34px; }

/* sub-nav tabs */
.sports-subnav {
  display: inline-flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  padding: 5px;
  margin-bottom: 24px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.sports-subnav::-webkit-scrollbar { display: none; }
.subnav-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.subnav-tab svg { width: 17px; height: 17px; flex: 0 0 17px; }
.subnav-tab:hover { color: var(--ink); }
.subnav-tab.active { background: var(--grad-red); color: #fff; box-shadow: 0 3px 12px rgba(229, 23, 58, .35); }

.sub-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 16.5px;
  font-weight: 900;
  color: var(--ink);
}
.sub-title svg { width: 19px; height: 19px; color: var(--red); }

.caro-arrows { display: flex; gap: 8px; }
.caro-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-card);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.caro-btn:hover { color: var(--red); background: var(--card-tint); }
.caro-btn svg { width: 18px; height: 18px; }

/* match cards carousel */
.match-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(310px, calc((100% - 28px) / 3));
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  margin-bottom: 30px;
}
.match-carousel::-webkit-scrollbar { display: none; }

.match-card {
  cursor: pointer;
  scroll-snap-align: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.mc-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mc-time {
  background: #f4ebed;
  color: var(--ink-soft);
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 6px;
  padding: 4px 8px;
  white-space: nowrap;
}
.mc-time.live { background: var(--grad-red); color: #fff; }
.mc-viewers {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.mc-viewers svg { width: 15px; height: 15px; color: var(--ink-dim); }
.mc-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.mc-teams img {
  width: 34px; height: 34px;
  object-fit: contain;
  flex: 0 0 34px;
}
.mc-names { text-align: center; min-width: 0; }
.mc-names b {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mc-league {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}
.mc-hot {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
}
.mc-hot svg { width: 14px; height: 14px; color: #ff7a1f; flex: 0 0 14px; }
.mc-hot b { color: var(--ink); }
.mc-odds { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.odd-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  background: #f7f0f1;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 9px 11px;
  min-width: 0;
  transition: border-color .15s, background .15s, transform .12s;
}
.odd-btn:hover { border-color: var(--red); background: #fdeef0; }
.odd-btn:active { transform: scale(.96); }
.odd-btn span {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-soft);
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.odd-btn b { font-size: 14px; font-weight: 900; color: var(--red); }

/* SGM cards */
.sgm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.sgm-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.sgm-top {
  background:
    radial-gradient(300px 120px at 15% -30%, rgba(255, 110, 80, .35), transparent 70%),
    linear-gradient(118deg, #5c1122 0%, #3c0913 100%);
  color: #fff;
  padding: 12px 14px 14px;
}
.sgm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  font-weight: 800;
  color: var(--shell-ink-soft);
  margin-bottom: 10px;
}
.sgm-meta .mc-viewers { color: var(--shell-ink-soft); }
.sgm-meta .mc-viewers svg { color: var(--shell-ink-dim); }
.sgm-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.sgm-teams img { width: 30px; height: 30px; object-fit: contain; background: #fff; border-radius: 50%; padding: 2px; }
.sgm-teams .mc-names b { color: #fff; }
.sgm-body { padding: 14px; }
.sgm-legs-count {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 10px;
}
.sgm-leg { display: flex; gap: 10px; padding: 7px 0; }
.sgm-leg svg { width: 15px; height: 15px; flex: 0 0 15px; color: var(--red); margin-top: 2px; }
.sgm-leg b { display: block; font-size: 13px; font-weight: 800; color: var(--ink); }
.sgm-leg span { font-size: 11.5px; font-weight: 700; color: var(--ink-dim); }

@media (max-width: 1024px) {
  .sgm-grid { grid-template-columns: repeat(2, 1fr); }
  .sgm-card:nth-child(3) { display: none; }
}
@media (max-width: 640px) {
  .match-carousel { grid-auto-columns: minmax(272px, 86%); }
  .sgm-grid { grid-template-columns: 1fr; }
  .sgm-card:nth-child(3) { display: block; }
}

/* ============================================================
   MATCH DETAIL PAGE
   ============================================================ */
body.match-open .hero,
body.match-open .cat-bar,
body.match-open .sports-shelf,
body.match-open .faq-shelf { display: none; }

.mkt-tabs {
  display: flex;
  gap: 4px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-card);
  padding: 5px;
  margin-bottom: 18px;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: none;
}
.mkt-tabs::-webkit-scrollbar { display: none; }
.mkt-tab {
  flex: 0 0 auto;
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink-dim);
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.mkt-tab:hover { color: var(--ink); }
.mkt-tab.active { background: var(--grad-red); color: #fff; box-shadow: 0 3px 12px rgba(229, 23, 58, .35); }

.mkt-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 46px;
  padding: 0 16px;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 14px;
  transition: border-color .15s, box-shadow .15s;
}
.mkt-search:focus-within { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 23, 58, .13); }
.mkt-search svg { width: 17px; height: 17px; color: var(--ink-dim); flex: 0 0 17px; }
.mkt-search input { flex: 1; border: 0; outline: 0; background: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.mkt-search input::placeholder { color: var(--ink-dim); }

.match-view { margin-top: 22px; margin-bottom: 30px; }
.match-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink-soft);
  margin-bottom: 16px;
  padding: 8px 14px 8px 8px;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.match-back:hover { background: #f0e5e8; color: var(--ink); }
.match-back svg { width: 18px; height: 18px; }

.match-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 18px;
  align-items: start;
}
/* stretch the sidebar column to the markets' full height so the sticky card can
   follow the entire scroll (a sticky element only travels within its parent) */
.match-side { align-self: stretch; }

/* market accordions */
.market-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.market-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  font-weight: 900;
  font-size: 14.5px;
  color: var(--ink);
  text-align: left;
}
.market-head svg { width: 17px; height: 17px; color: var(--ink-dim); transition: transform .2s; flex: 0 0 17px; }
.market-card.closed .market-head svg { transform: rotate(180deg); }
.market-body { padding: 0 12px 14px; }
.market-card.closed .market-body { display: none; }

.market-odds { display: grid; gap: 8px; }
.market-odds.cols-2 { grid-template-columns: 1fr 1fr; }
.market-odds.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.mkt-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: #f7f0f1;
  border: 1px solid transparent;
  border-radius: var(--r-sm);
  padding: 12px 14px;
  min-width: 0;
  transition: border-color .15s, background .15s, transform .12s;
}
.mkt-btn:hover { border-color: var(--red); background: #fdeef0; }
.mkt-btn:active { transform: scale(.98); }
.mkt-btn span {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mkt-btn b { font-size: 14px; font-weight: 900; color: var(--red); flex: 0 0 auto; }

.ou-table { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ou-col-head {
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-dim);
  padding: 4px 0 2px;
}

/* sidebar */
.ms-card {
  background: linear-gradient(180deg, #3c0913 0%, #2a070e 100%);
  border: 1px solid var(--shell-line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  position: sticky;
  top: calc(var(--header-h) + 16px);
}
.ms-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 16px 14px;
  background:
    radial-gradient(280px 120px at 20% -30%, rgba(255, 110, 80, .3), transparent 70%),
    linear-gradient(118deg, #5c1122 0%, #3c0913 100%);
}
.ms-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  flex: 1;
  min-width: 0;
}
.ms-team img { width: 40px; height: 40px; object-fit: contain; }
.ms-team b {
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ms-kick {
  flex: 0 0 auto;
  background: rgba(0, 0, 0, .35);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 6px 10px;
  border-radius: 6px;
  white-space: nowrap;
}
/* scoreboard timeline (always visible) */
.ms-timeline { padding: 12px 14px; border-top: 1px solid var(--shell-line); }
.tl-line { display: flex; align-items: center; justify-content: space-between; font-size: 10px; font-weight: 700; color: var(--shell-ink-dim); }
.tl-line b { color: #fff; font-weight: 900; font-size: 11px; letter-spacing: .04em; }
.tl-ticks { display: grid; grid-template-columns: repeat(6, 1fr); height: 24px; margin: 3px 0; }
.tl-ticks i { border-left: 1px solid rgba(255, 255, 255, .12); }
.tl-ticks i:first-child { border-left: 0; }

/* collapsible panel */
.ms-panel { border-top: 1px solid var(--shell-line); }
.ms-tabpane { padding: 16px 14px; animation: fadeIn .2s ease; }
.ms-card.collapsed .ms-panel,
.ms-card.collapsed .ms-tabs { display: none; }
.ms-card.collapsed .ms-collapse svg { transform: rotate(180deg); }

.ms-pane-label {
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--shell-ink-dim);
  text-align: center;
  margin-bottom: 12px;
}

/* venue pane */
.ms-pitch {
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 30px, transparent 30px 60px),
    linear-gradient(160deg, #1f8a46, #0e5c2b);
  border-radius: 10px;
  padding: 18px 16px;
}
.ms-venue {
  border: 1px solid rgba(255, 255, 255, .4);
  border-radius: 10px;
  background: rgba(0, 0, 0, .18);
  text-align: center;
  padding: 12px;
  color: #fff;
}
.ms-venue-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, .7);
  border-bottom: 1px solid rgba(255, 255, 255, .3);
  padding-bottom: 7px;
  margin-bottom: 9px;
}
.ms-venue b { display: block; font-size: 14.5px; font-weight: 900; }
.ms-venue span { display: block; font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .75); margin-top: 3px; }
.ms-venue-stats { display: flex; justify-content: space-around; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .25); }
.ms-venue-stats div b { font-size: 15px; }
.ms-venue-stats div span { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }

/* win probability + previous meetings (dark) */
.prob-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.prob-col { text-align: center; min-width: 0; }
.prob-col b { display: block; font-size: 19px; font-weight: 900; color: #fff; }
.prob-col span {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--shell-ink-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 2px 0 7px;
}
.prob-bar { display: block; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, .14); position: relative; overflow: hidden; }
.prob-bar::after { content: ""; position: absolute; inset: 0; width: var(--p, 0%); border-radius: 99px; }
.prob-bar.home::after { background: #3d9bff; }
.prob-bar.draw::after { background: #9aa7b0; }
.prob-bar.away::after { background: #2fd35b; }
.prob-col:nth-child(1) b { color: #6cb6ff; }
.prob-col:nth-child(3) b { color: #4ade80; }

.ms-divider { height: 1px; background: var(--shell-line); margin: 16px 0; }

.h2h-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; }
.h2h-col { text-align: center; }
.h2h-col b { display: block; font-size: 22px; font-weight: 900; color: #fff; border-bottom: 3px solid rgba(255, 255, 255, .14); padding-bottom: 6px; }
.h2h-col.home b { border-color: #3d9bff; color: #6cb6ff; }
.h2h-col.away b { border-color: #2fd35b; color: #4ade80; }
.h2h-col span { display: block; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--shell-ink-dim); margin-top: 6px; }

/* standings table */
.ms-standings { width: 100%; border-collapse: collapse; }
.ms-standings caption { font-size: 11px; font-weight: 900; color: #fff; text-align: left; padding-bottom: 8px; letter-spacing: .04em; }
.ms-standings td { padding: 7px 4px; font-size: 12px; font-weight: 700; color: var(--shell-ink-soft); border-top: 1px solid rgba(255, 255, 255, .08); }
.ms-standings td:last-child { text-align: right; color: #fff; font-weight: 900; }

/* lineup / empty states */
.ms-empty { text-align: center; color: var(--shell-ink-dim); font-size: 12.5px; font-weight: 700; padding: 34px 12px; line-height: 1.5; }
.ms-empty svg { width: 34px; height: 34px; color: rgba(255, 255, 255, .18); margin-bottom: 10px; }

/* tab switcher + collapse */
.ms-tabs { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--shell-line); }
.ms-tab { position: relative; height: 46px; display: grid; place-items: center; color: var(--shell-ink-dim); transition: color .15s; }
.ms-tab svg { width: 19px; height: 19px; }
.ms-tab:hover { color: var(--shell-ink-soft); }
.ms-tab.active { color: #fff; }
.ms-tab.active::after { content: ""; position: absolute; bottom: 0; left: 22%; right: 22%; height: 2px; background: #fff; border-radius: 2px; }
.ms-collapse { width: 100%; height: 28px; display: grid; place-items: center; color: var(--shell-ink-soft); border-top: 1px solid var(--shell-line); transition: background .15s; }
.ms-collapse:hover { background: rgba(255, 255, 255, .05); }
.ms-collapse svg { width: 18px; height: 18px; transition: transform .2s ease; }

.market-loading { padding: 30px 0; text-align: center; color: var(--ink-dim); font-weight: 700; }

@media (max-width: 1024px) {
  .match-layout { grid-template-columns: 1fr; }
  .match-side { order: -1; }
  /* on mobile the card sits above the markets and scrolls normally (desktop stays sticky) */
  .ms-card { position: static; max-height: none; overflow: hidden; }
}

/* ============================================================
   LIVE BETS FEED
   ============================================================ */
.bets-tabs {
  display: inline-flex;
  background: #efe4e6;
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
  margin-bottom: 18px;
}
.bets-tab {
  padding: 9px 18px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13.5px;
  color: var(--ink-soft);
  transition: background .15s, color .15s;
}
.bets-tab:hover { color: var(--ink); }
.bets-tab.active { background: var(--grad-red); color: #fff; box-shadow: 0 2px 10px rgba(229, 23, 58, .35); }

.bets-table-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow-x: auto;
  padding: 6px 8px;
}
.bets-table { width: 100%; border-collapse: collapse; min-width: 640px; }
.bets-table th {
  text-align: left;
  font-size: 12.5px;
  font-weight: 800;
  color: var(--ink-dim);
  padding: 12px 16px 8px;
}
.bets-table th:nth-child(n+3), .bets-table td:nth-child(n+3) { text-align: right; }
.bets-table td {
  padding: 12px 16px;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  color: var(--ink-soft);
}
.bets-table tbody tr { animation: feedIn .3s ease both; }
.bets-table tbody tr:nth-child(odd) { background: var(--row-alt); }
.bets-table tbody tr td:first-child { border-radius: var(--r-sm) 0 0 var(--r-sm); font-weight: 800; color: var(--ink); }
.bets-table tbody tr td:last-child { border-radius: 0 var(--r-sm) var(--r-sm) 0; }
@keyframes feedIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: none; }
}
.bet-user { color: var(--ink-soft); }
.bet-user.hidden-user { color: var(--ink-dim); font-style: italic; }
.bet-time { color: var(--ink-dim); }
.bet-win { color: var(--win) !important; }
.bet-loss { color: var(--loss) !important; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-item {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 17px 18px;
  text-align: left;
  font-weight: 800;
  font-size: 14.5px;
  color: var(--ink);
  transition: background .15s;
}
.faq-q:hover { background: var(--card-tint); }
.faq-q svg {
  width: 18px; height: 18px;
  flex: 0 0 18px;
  color: var(--ink-dim);
  transition: transform .2s ease;
}
.faq-item.open .faq-q svg { transform: rotate(180deg); color: var(--red); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease;
}
.faq-a p {
  padding: 0 18px 17px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.6;
  color: var(--ink-soft);
}
.faq-item.open .faq-a { max-height: 260px; }

/* ============================================================
   FOOTER  (desktop — dark red chrome)
   ============================================================ */
.footer {
  margin-top: auto;
  background: linear-gradient(180deg, #33070f 0%, var(--shell-c) 100%);
  color: var(--shell-ink-soft);
  padding: 48px 0 0;
}
.footer-grid {
  width: min(1200px, 100% - 48px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr repeat(4, 1fr);
  gap: 32px;
  padding-bottom: 36px;
}
.footer-logo { font-size: 30px; margin: 0; display: inline-block; }
.footer-brand p { color: var(--shell-ink-dim); font-size: 13px; font-weight: 600; margin-top: 12px; line-height: 1.55; }
.footer-fine { font-size: 12px !important; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col a {
  display: block;
  color: var(--shell-ink-dim);
  font-size: 13.5px;
  font-weight: 700;
  padding: 5px 0;
  transition: color .12s;
}
.footer-col a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid var(--shell-line);
  padding: 18px 0;
  display: flex;
  align-items: center;
  gap: 14px;
  justify-content: center;
}
.footer-bottom p { color: var(--shell-ink-dim); font-size: 12.5px; font-weight: 600; }
.age-badge {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 2px solid #ff8a9b;
  color: #ff8a9b;
  font-weight: 900;
  font-size: 12px;
  display: grid;
  place-items: center;
}

/* ============================================================
   LEGAL STRIP + BOTTOM DOCK (mobile app-style footer)
   ============================================================ */
.legal-strip {
  text-align: center;
  color: var(--ink-dim);
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 24px 18px;
}
.age-mini {
  display: inline-grid;
  place-items: center;
  width: 24px; height: 24px;
  border: 2px solid var(--red);
  border-radius: 50%;
  color: var(--red);
  font-size: 9.5px;
  font-weight: 900;
  vertical-align: middle;
  margin: 0 5px;
}

.bottom-dock {
  position: fixed;
  left: var(--rail-w); right: 0; bottom: 0;
  z-index: 70;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
  transition: left .22s cubic-bezier(.4, 0, .2, 1);
}
body.sidebar-expanded .bottom-dock { left: var(--side-w); }

.add-desktop {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 42px;
  padding: 0 22px;
  margin-bottom: 12px;
  border-radius: 999px;
  background: var(--grad-red);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  box-shadow: 0 8px 26px rgba(229, 23, 58, .45);
  transition: transform .15s ease, filter .15s ease;
}
.add-desktop:hover { transform: translateY(-2px); filter: brightness(1.08); }
.ad-icon {
  width: 24px; height: 24px;
  border-radius: 7px;
  background: #fff;
  color: var(--red-deep);
  font-family: var(--font-logo);
  font-size: 13px;
  display: grid;
  place-items: center;
  line-height: 1;
}

.dock-bar {
  pointer-events: auto;
  width: min(720px, 100%);
  background: #fff;
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -8px 28px rgba(35, 9, 15, .16);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  padding: 8px 8px;
}

.dock-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 700;
  transition: color .15s ease, transform .12s ease;
}
.dock-item svg { width: 22px; height: 22px; }
.dock-item:hover { color: var(--ink-soft); }
.dock-item:active { transform: scale(.94); }
.dock-item.active { color: var(--red); }

.dock-wheel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.wheel-wrap {
  position: relative;
  width: 64px; height: 64px;
  margin-top: -36px;
  filter: drop-shadow(0 5px 12px rgba(229, 23, 58, .4));
}
.wheel {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  animation: wheelspin 10s linear infinite;
}
.dock-wheel.spinning .wheel { animation: wheelspin .5s linear infinite; }
@keyframes wheelspin { to { transform: rotate(360deg); } }
.wheel-go {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 27px; height: 27px;
  border-radius: 50%;
  background: #fff;
  color: var(--red);
  font-family: var(--font-logo);
  font-size: 11px;
  font-style: normal;
  display: grid;
  place-items: center;
  line-height: 1;
  box-shadow: 0 1px 5px rgba(0, 0, 0, .3);
  z-index: 2;
}
.wheel-pointer {
  position: absolute;
  top: -10px; left: 50%;
  translate: -50% 0;
  width: 0; height: 0;
  border: 7px solid transparent;
  border-top: 12px solid #ffd23c;
  z-index: 3;
}
.wheel-label {
  color: var(--red);
  font-size: 12.5px;
  font-weight: 900;
  white-space: nowrap;
}

/* dock + legal strip are mobile-only; desktop uses the full footer */
@media (min-width: 901px) {
  .bottom-dock, .legal-strip { display: none; }
}

/* ============================================================
   MODALS  (white)
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(35, 9, 15, .55);
  backdrop-filter: blur(3px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn .18s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

.modal {
  position: relative;
  width: min(430px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  background: #fff;
  border-radius: var(--r-lg);
  padding: 30px 28px 26px;
  box-shadow: 0 30px 80px rgba(35, 9, 15, .35);
  animation: modalIn .22s cubic-bezier(.34, 1.4, .64, 1) both;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(18px) scale(.97); }
  to   { opacity: 1; transform: none; }
}
.modal-close { position: absolute; top: 14px; right: 14px; }

.modal-title { font-size: 19px; font-weight: 900; margin-bottom: 4px; color: var(--ink); }
.modal-progress { color: var(--ink-dim); font-size: 13px; font-weight: 700; margin-bottom: 18px; }
.modal-progress span { color: var(--red); font-weight: 900; }

.modal-form { display: flex; flex-direction: column; gap: 14px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field span { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.field span i { color: var(--red); font-style: normal; }
.field input {
  height: 44px;
  background: var(--card-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 600;
  transition: border-color .15s, box-shadow .15s;
}
.field input:hover { border-color: #c9a9af; }
.field input:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 23, 58, .13); }
.field input.invalid { border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 23, 58, .13); }

.ts-slot { min-height: 65px; display: flex; justify-content: center; }
.ts-slot:empty { min-height: 0; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-soft); font-weight: 600; line-height: 1.5; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--red); width: 15px; height: 15px; }

.modal-or {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 20px 0 14px;
  color: var(--ink-dim);
  font-size: 12px;
  font-weight: 800;
}
.modal-or::before, .modal-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.modal-switch { text-align: center; margin-top: 20px; font-size: 13.5px; color: var(--ink-dim); font-weight: 700; }

/* ============================================================
   SUPPORT FAB + CHAT
   ============================================================ */
.support-fab {
  position: fixed;
  right: 22px; bottom: 22px;
  width: 54px; height: 54px;
  border-radius: 50%;
  background: var(--grad-red);
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: var(--glow-red), 0 8px 24px rgba(35, 9, 15, .3);
  z-index: 90;
  transition: transform .15s ease, filter .15s ease;
}
.support-fab:hover { transform: translateY(-3px); filter: brightness(1.08); }
.support-fab svg { width: 24px; height: 24px; }

.chat-widget {
  position: fixed;
  right: 22px; bottom: 88px;
  width: min(340px, calc(100vw - 44px));
  height: 430px;
  background: #fff;
  border-radius: var(--r-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 95;
  box-shadow: var(--shadow-pop);
  animation: modalIn .22s cubic-bezier(.34, 1.4, .64, 1) both;
}
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 12px 12px 16px;
  background: var(--shell-grad);
  color: #fff;
  font-weight: 900;
  font-size: 14px;
}
.chat-head span { display: flex; align-items: center; gap: 9px; }
.chat-head .icon-btn { color: var(--shell-ink-soft); }
.chat-head .icon-btn:hover { background: var(--shell-hover); color: #fff; }
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-tint);
}
.chat-msg {
  max-width: 82%;
  padding: 10px 13px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1.45;
  animation: rise .25s ease both;
}
.chat-msg.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink); }
.chat-msg.user { background: var(--grad-red); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-input {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat-input input {
  flex: 1;
  height: 40px;
  background: var(--card-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 0 12px;
  font-weight: 600;
}
.chat-input input:focus { outline: 0; border-color: var(--red); }
.btn-send { width: 44px; height: 40px; padding: 0; flex: 0 0 44px; }
.btn-send svg { width: 17px; height: 17px; }

/* ============================================================
   LIVE COMMUNITY CHAT PANEL
   ============================================================ */
.chat-panel {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: 360px;
  max-width: 100vw;
  background: var(--shell-grad);
  z-index: 108;
  display: flex;
  flex-direction: column;
  box-shadow: -6px 0 26px rgba(0, 0, 0, .4);
  animation: cpIn .22s cubic-bezier(.4, 0, .2, 1) both;
}
@keyframes cpIn { from { transform: translateX(100%); } }
.chat-panel-backdrop {
  position: fixed; inset: 0;
  background: rgba(20, 4, 8, .5);
  z-index: 107;
  animation: fadeIn .2s ease;
}
.cp-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(0, 0, 0, .28);
  flex: 0 0 auto;
}
.cp-lang { color: #fff; font-weight: 800; font-size: 14px; }
.cp-x { color: var(--shell-ink-soft); }
.cp-x:hover { background: var(--shell-hover); color: #fff; }
.cp-body {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.2) transparent;
}
.cp-msg {
  background: rgba(0, 0, 0, .28);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 13.5px;
  line-height: 1.4;
  color: #fff;
  animation: rise .2s ease both;
  word-break: break-word;
}
.cp-msg .cp-user { font-weight: 900; margin-right: 6px; }
.cp-msg .cp-user.player { color: #9fd0ff; }
.cp-msg .cp-user.admin {
  color: #fff;
  background: var(--grad-red);
  padding: 1px 7px;
  border-radius: 5px;
  font-size: 12px;
}
.cp-msg .cp-admin-tag { font-size: 10px; font-weight: 900; letter-spacing: .08em; color: #ffb46a; margin-right: 5px; text-transform: uppercase; }
.cp-input {
  flex: 0 0 auto;
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .2);
}
.cp-online { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; color: var(--shell-ink-soft); margin-bottom: 10px; }
.cp-online b { color: #fff; font-variant-numeric: tabular-nums; }
.cp-inputrow { display: flex; gap: 8px; }
.cp-inputrow input {
  flex: 1;
  height: 42px;
  background: rgba(0, 0, 0, .3);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--r-sm);
  color: #fff;
  padding: 0 12px;
  font-weight: 600;
}
.cp-inputrow input::placeholder { color: var(--shell-ink-dim); }
.cp-inputrow input:focus { outline: 0; border-color: var(--red); }
.cp-send { height: 42px; }
.cp-locked { text-align: center; color: var(--shell-ink-soft); font-size: 13px; font-weight: 700; padding: 6px 0; }
@media (max-width: 480px) { .chat-panel { width: 100vw; } }

/* ============================================================
   FEATURE MODAL (Wallet / Vault / Settings / VIP / … )
   ============================================================ */
.feat-overlay {
  position: fixed; inset: 0;
  background: rgba(35, 9, 15, .55);
  backdrop-filter: blur(3px);
  z-index: 105;
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fadeIn .18s ease;
}
.feat-modal {
  width: min(680px, 100%);
  max-height: calc(100vh - 40px);
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px rgba(35, 9, 15, .4);
  overflow: hidden;
  animation: modalIn .22s cubic-bezier(.34, 1.4, .64, 1) both;
}
.feat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}
.feat-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 900; color: var(--ink); }
.feat-title svg { width: 20px; height: 20px; color: var(--red); }
.feat-icon-img { width: 20px; height: 20px; object-fit: contain; }
.feat-body { overflow-y: auto; padding: 20px; }

/* settings 2-pane layout */
.settings-wrap { display: grid; grid-template-columns: 190px 1fr; gap: 20px; }
.settings-tabs { display: flex; flex-direction: column; gap: 2px; }
.settings-tab {
  text-align: left;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  font-weight: 800;
  font-size: 14px;
  color: var(--ink-soft);
  transition: background .12s, color .12s;
}
.settings-tab:hover { background: var(--card-tint); color: var(--ink); }
.settings-tab.active { background: var(--grad-red); color: #fff; }
.settings-pane { min-width: 0; }
.settings-pane h4 { font-size: 15px; font-weight: 900; color: var(--ink); margin-bottom: 4px; }
.settings-pane .pane-desc { font-size: 13px; color: var(--ink-dim); font-weight: 600; margin-bottom: 16px; }

/* generic feature form bits */
.feat-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.feat-field label { font-size: 13px; font-weight: 800; color: var(--ink-soft); }
.feat-field input, .feat-field select {
  height: 44px;
  background: var(--card-tint);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  color: var(--ink);
  padding: 0 14px;
  font-weight: 600;
}
.feat-field input:focus, .feat-field select:focus { outline: 0; border-color: var(--red); box-shadow: 0 0 0 3px rgba(229, 23, 58, .13); }
.feat-field input:disabled { color: var(--ink-dim); background: #f3ecee; }
.feat-row { display: flex; gap: 12px; }
.feat-row > * { flex: 1; }
.feat-toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; border-bottom: 1px solid var(--line); }
.feat-toggle:last-child { border-bottom: 0; }
.feat-toggle b { font-size: 14px; font-weight: 800; color: var(--ink); }
.feat-toggle span { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink-dim); margin-top: 2px; }
.switch { position: relative; width: 46px; height: 26px; flex: 0 0 46px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; background: #d9c2c7; border-radius: 99px; transition: background .18s; cursor: pointer; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .18s; }
.switch input:checked + i { background: var(--red); }
.switch input:checked + i::after { transform: translateX(20px); }

/* stat / info tiles */
.feat-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 16px; }
.feat-stat { background: var(--card-tint); border: 1px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; }
.feat-stat span { font-size: 12.5px; font-weight: 700; color: var(--ink-dim); }
.feat-stat b { display: block; font-size: 22px; font-weight: 900; color: var(--ink); margin-top: 4px; font-variant-numeric: tabular-nums; }
.feat-stat.accent b { color: var(--red); }
.feat-balance-box {
  background: linear-gradient(118deg, #5c1122, #3c0913);
  border-radius: var(--r-md);
  padding: 20px;
  color: #fff;
  text-align: center;
  margin-bottom: 18px;
}
.feat-balance-box span { font-size: 13px; font-weight: 700; color: var(--shell-ink-soft); }
.feat-balance-box b { display: block; font-size: 32px; font-weight: 900; margin-top: 4px; font-variant-numeric: tabular-nums; }
.feat-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat-actions .btn { height: 46px; }
.feat-note { font-size: 12.5px; color: var(--ink-dim); font-weight: 600; margin-top: 14px; text-align: center; }
.feat-empty { text-align: center; padding: 30px 10px; color: var(--ink-dim); font-weight: 700; }

/* transactions / bets table inside feature modal */
.feat-table { width: 100%; border-collapse: collapse; }
.feat-table th { text-align: left; font-size: 12px; font-weight: 800; color: var(--ink-dim); padding: 8px 10px; }
.feat-table td { padding: 11px 10px; font-size: 13px; font-weight: 700; border-top: 1px solid var(--line); color: var(--ink-soft); }
.feat-table td:last-child, .feat-table th:last-child { text-align: right; }

/* sports bet slip + shared helpers */
.slip-list { display: flex; flex-direction: column; gap: 8px; }
.slip-pick { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.slip-pick-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.slip-pick-main b { font-size: 14px; font-weight: 800; color: var(--ink); }
.slip-pick-main span { font-size: 11.5px; color: var(--ink-dim); font-weight: 700; }
.slip-odd { font-weight: 900; font-variant-numeric: tabular-nums; color: var(--ink); }
.slip-remove { width: 24px; height: 24px; border-radius: 6px; font-size: 18px; line-height: 1; color: var(--ink-dim); background: rgba(0, 0, 0, .05); }
.slip-remove:hover { color: var(--loss); }
.slip-summary { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.slip-summary > div { display: flex; justify-content: space-between; font-weight: 800; font-size: 13.5px; color: var(--ink-soft); }
.slip-summary .accent b { color: var(--red); }
.mono { font-variant-numeric: tabular-nums; }
.strong { color: var(--ink); font-weight: 800; }
.muted { color: var(--ink-dim); font-weight: 700; font-size: .92em; }
.badge { display: inline-block; padding: 3px 9px; border-radius: 99px; font-size: 11px; font-weight: 900; letter-spacing: .02em; }
.badge.active { background: #e5f7ec; color: #0da750; }
.badge.suspended { background: #fff3e0; color: #b06a00; }
.badge.banned { background: #fde8ea; color: #c0392b; }
.badge.self_excluded { background: #ececec; color: #666; }

/* bet confirmation dialog */
.bet-confirm-overlay { position: fixed; inset: 0; background: rgba(35, 9, 15, .55); display: grid; place-items: center; z-index: 4000; padding: 20px; }
.bet-confirm { width: min(400px, 100%); background: var(--card); border-radius: 16px; padding: 22px 22px 18px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.bet-confirm h3 { font-size: 18px; font-weight: 900; margin-bottom: 14px; }
.bc-picks { display: flex; flex-direction: column; gap: 6px; margin-bottom: 12px; }
.bc-pick { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; color: var(--ink-soft); background: rgba(0, 0, 0, .03); border-radius: 8px; padding: 8px 10px; }
.bc-pick b { color: var(--ink); font-variant-numeric: tabular-nums; }
.bc-row { display: flex; justify-content: space-between; font-weight: 800; font-size: 14px; color: var(--ink-soft); padding: 4px 2px; }
.bc-row.accent b { color: var(--red); }
.bc-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-dim); font-weight: 700; margin: 12px 0 4px; background: rgba(229, 23, 58, .06); border-radius: 8px; padding: 10px 12px; }
.bc-actions { display: flex; gap: 10px; margin-top: 14px; }
.bc-actions .btn { flex: 1; }
.mybets-cancel { font-size: 11.5px; font-weight: 800; color: var(--loss); background: rgba(192, 57, 43, .1); border-radius: 6px; padding: 3px 9px; margin-left: 6px; }
.mybets-cancel:hover { background: rgba(192, 57, 43, .2); }
.mybets-cancel:disabled { opacity: .5; }

/* in-site game overlay — embeds the game with a live wallet balance bar */
.game-overlay { position: fixed; inset: 0; z-index: 5000; background: #0d0206; display: flex; flex-direction: column; }
.game-bar { height: 54px; flex: 0 0 54px; display: flex; align-items: center; gap: 14px; padding: 0 14px; background: var(--shell-grad, linear-gradient(180deg, #4d0c1a, #2b060e)); color: #fff; }
/* reuse the animated site logo, but reset its header positioning margin + size for the bar */
.game-logo { margin-left: 0 !important; font-size: 22px; }
.game-bar-right { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.game-bal { text-align: right; line-height: 1.05; }
.game-bal span { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .07em; opacity: .65; font-weight: 800; }
.game-bal b { font-size: 16px; font-variant-numeric: tabular-nums; font-weight: 900; }
.game-newtab { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: rgba(255, 255, 255, .12); color: #fff; font-size: 15px; text-decoration: none; }
.game-close { width: 34px; height: 34px; border-radius: 8px; background: rgba(255, 255, 255, .14); color: #fff; font-size: 15px; }
.game-newtab:hover, .game-close:hover { background: rgba(255, 255, 255, .26); }
.game-frame { flex: 1; width: 100%; border: 0; background: #000; }
.feat-copy { display: flex; gap: 8px; }
.feat-copy input { flex: 1; }
.feat-copy .btn { flex: 0 0 auto; height: 44px; }

.vip-tiers { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.vip-tier { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card-tint); border: 1px solid var(--line); border-radius: var(--r-md); }
.vip-tier .vt-badge { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: 12px; color: #fff; }
.vip-tier b { font-size: 14px; font-weight: 800; color: var(--ink); }
.vip-tier span { font-size: 12px; color: var(--ink-dim); font-weight: 600; }
.vip-tier.done { opacity: .6; }

/* VIP panel (rich) */
.vip-progress-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 16px;
  background: var(--card-tint);
}
.vip-pc-name { font-size: 15px; font-weight: 900; color: var(--ink); }
.vip-pc-pct { display: flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 900; color: var(--ink); margin: 8px 0; }
.vip-pc-pct svg { width: 15px; height: 15px; color: var(--ink-dim); }
.vip-pc-bar { height: 6px; border-radius: 99px; background: #eadfe2; overflow: hidden; }
.vip-pc-bar i { display: block; height: 100%; width: 2%; background: var(--grad-red); border-radius: 99px; }
.vip-pc-next { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink-dim); margin-top: 10px; }
.vip-pc-next b { color: var(--red); }

.vip-reward {
  background: var(--card-tint);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: 10px;
  overflow: hidden;
}
.vip-reward-head {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  text-align: left;
}
.vip-reward.has-body .vip-reward-head { cursor: pointer; }
.vip-reward-ico {
  width: 40px; height: 40px;
  flex: 0 0 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #5c1122, #3c0913);
}
.vip-reward-ico svg { width: 22px; height: 22px; color: #fff; }
.vip-reward-txt { flex: 1; min-width: 0; }
.vip-reward-txt b { display: block; font-size: 14.5px; font-weight: 800; color: var(--ink); }
.vip-reward-txt span { font-size: 12.5px; font-weight: 600; color: var(--ink-dim); line-height: 1.45; }
.vip-lock { width: 17px; height: 17px; flex: 0 0 17px; color: var(--ink-dim); }
.vip-chev { width: 18px; height: 18px; flex: 0 0 18px; color: var(--ink-dim); transition: transform .2s; }
.vip-reward.locked { opacity: .72; }
.vip-reward.locked .vip-reward-ico { filter: grayscale(.4) brightness(.9); }
.vip-reward-body { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.vip-reward-body p { padding: 0 16px 14px; font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.55; }
.vip-reward.open .vip-reward-body { max-height: 220px; }
.vip-reward.open .vip-chev { transform: rotate(180deg); }

.vip-acc { border-top: 1px solid var(--line); margin-top: 4px; }
.vip-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 4px;
  font-size: 15px;
  font-weight: 900;
  color: var(--ink);
}
.vip-acc.open .vip-acc-head .vip-chev { transform: rotate(180deg); }
.vip-acc-body { max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.vip-acc.open .vip-acc-body { max-height: 2000px; }
.vip-acc-body p { font-size: 13px; font-weight: 600; color: var(--ink-soft); line-height: 1.6; margin-bottom: 12px; }
.vip-acc-body h5 { font-size: 14px; font-weight: 900; color: var(--ink); margin: 14px 0 8px; }
.vip-check { list-style: none; padding: 0; margin-bottom: 6px; }
.vip-check li {
  position: relative;
  padding: 6px 0 6px 26px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
}
.vip-check li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 16px; height: 16px;
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23e5173a'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}
.vip-tier2 { padding: 14px 0; border-top: 1px solid var(--line); }
.vip-tier2:first-child { border-top: 0; }
.vip-tier2-name { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 900; color: var(--ink); margin-bottom: 8px; }
.vip-tier2-name svg { width: 17px; height: 17px; }
.vip-tier2 ul { list-style: none; padding: 0; }
.vip-tier2 li {
  position: relative;
  padding: 4px 0 4px 16px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
}
.vip-tier2 li::before { content: "•"; position: absolute; left: 2px; color: var(--red); font-weight: 900; }

@media (max-width: 620px) {
  .settings-wrap { grid-template-columns: 1fr; }
  .settings-tabs { flex-direction: row; overflow-x: auto; scrollbar-width: none; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
  .settings-tabs::-webkit-scrollbar { display: none; }
  .settings-tab { white-space: nowrap; flex: 0 0 auto; }
  .feat-stats { grid-template-columns: 1fr; }
}

/* ============================================================
   TOAST
   ============================================================ */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  translate: -50% 0;
  background: var(--ink);
  border-radius: var(--r-md);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  padding: 13px 22px;
  z-index: 120;
  box-shadow: 0 12px 34px rgba(35, 9, 15, .4);
  animation: rise .25s ease both;
}

/* ============================================================
   SCROLLBARS
   ============================================================ */
::-webkit-scrollbar { width: 9px; height: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #d9c2c7; border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #c8adb3; }
.sidebar ::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .22); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .card-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; align-items: stretch; gap: 34px; }
  .card-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-100%); width: var(--side-w); }
  body.sidebar-expanded .sidebar { transform: translateX(-100%); }
  body.sidebar-mobile-open .sidebar { transform: none; width: var(--side-w); }
  body.sidebar-mobile-open .sidebar .mode-pills { display: flex; }
  body.sidebar-mobile-open .sidebar .rail-modes { display: none; }
  body.sidebar-mobile-open .sidebar .nav-label,
  body.sidebar-mobile-open .sidebar .chev { display: inline-block; }
  body.sidebar-mobile-open .sidebar .nav-item { justify-content: flex-start; padding: 0 12px; }
  body.sidebar-mobile-open .sidebar-backdrop { opacity: 1; pointer-events: auto; }
  .sidebar .burger { display: none; }
  .topbar, body.sidebar-expanded .topbar { left: 0; }
  .main, body.sidebar-expanded .main { margin-left: 0; }
  .mobile-burger { display: none; } /* hamburger removed on mobile — Browse tab opens the panel */
  .logo { margin-left: 12px; }

  /* mobile: swap footer for the app dock */
  .footer { display: none; }
  .bottom-dock, body.sidebar-expanded .bottom-dock { left: 0; }
  .main { padding-bottom: 190px; } /* clear fixed dock + floating pill */
  .support-fab { bottom: 118px; }
  .chat-widget { bottom: 184px; }
  .toast { bottom: 148px; }
}
@media (max-width: 640px) {
  .card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
  .hero-cards { grid-template-columns: 1fr; }
  .hero-inner { padding: 36px 0; }
  .content { width: calc(100% - 28px); }
  .hide-sm { display: none; }
  .bets-table { min-width: 0; }
  .topbar { padding: 0 14px; }
  .btn { padding: 0 14px; }
  .add-desktop { height: 38px; font-size: 13px; }
}
@media (max-width: 380px) {
  .topbar { padding: 0 10px; }
  .topbar-actions { gap: 6px; }
  .topbar-actions .btn { height: 38px; padding: 0 12px; font-size: 13px; }
  .logo { font-size: 23px; }
  .hero-copy h1 { font-size: 24px; }
  .cta-row { gap: 10px; }
  .dock-item { font-size: 11px; }
  .wheel-label { font-size: 11.5px; }
  .wheel-wrap { width: 58px; height: 58px; margin-top: -32px; }
  .search-bar { height: 46px; }
}
