/* ============================================================
   Virtusjack — app shell
   ============================================================ */

:root {
  --bg: #070a10;
  --bg-2: #0b0f17;
  --surface: #111725;
  --surface-2: #161d2e;
  --surface-3: #1d2639;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);

  --text: #eef2fb;
  --text-2: #97a3bd;
  --text-3: #5d6880;

  --green: #00e676;
  --green-2: #00b85f;
  --green-soft: rgba(0, 230, 118, .14);
  --gold: #ffcc33;
  --blue: #4d8dff;
  --purple: #8b5cff;
  --pink: #ff4d94;
  --red: #ff4757;
  --orange: #ff8a3d;

  --rail: 54px;
  --top: 62px;
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 18px;
  --shadow: 0 20px 50px rgba(0, 0, 0, .45);
  --ease: cubic-bezier(.22, .61, .36, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

/* keeps .btn's display from resurrecting elements the games hide mid-round */
[hidden] { display: none !important; }

button, input, select { font: inherit; color: inherit; }

/* every remaining native dropdown gets our arrow instead of the OS one */
select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  padding-right: 30px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237b8798' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M6 9.5l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 9px center;
  background-size: 15px 15px;
  cursor: pointer;
}
select:focus { border-color: rgba(0, 230, 118, .45); outline: none; }
select option { background: #131924; color: #e9eef7; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
code { font-family: ui-monospace, "SF Mono", Menlo, monospace; }

button svg, .search svg, .empty-icon svg, .vip-crown svg,
.rank-pill svg, .fair-pill svg, .promo-icon svg, .wallet-caret {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-3); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: #2c3752; }

.muted { color: var(--text-2); }
.green { color: var(--green); }
.gold { color: var(--gold); }
.red { color: var(--red); }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 18px;
  border-radius: 10px;
  font-size: 13.5px; font-weight: 700; letter-spacing: .2px;
  transition: transform .15s var(--ease), box-shadow .2s var(--ease), background .2s, opacity .2s;
  white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }

.btn-primary { background: linear-gradient(180deg, #00f083, var(--green-2)); color: #04150c; box-shadow: 0 6px 18px rgba(0, 230, 118, .22); }
.btn-primary:hover:not(:disabled) { box-shadow: 0 10px 26px rgba(0, 230, 118, .34); }
.btn-gold { background: linear-gradient(180deg, #ffd95e, #e0a100); color: #201500; box-shadow: 0 6px 18px rgba(255, 204, 51, .2); }
.btn-ghost { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover:not(:disabled) { background: var(--surface-3); border-color: var(--line-strong); }
.btn-danger { background: linear-gradient(180deg, #ff6b78, #e2313f); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { height: 46px; font-size: 15px; }

.icon-btn {
  width: 36px; height: 36px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--text-2);
  position: relative;
  transition: color .2s, background .2s, border-color .2s;
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { color: var(--text); background: var(--surface-3); border-color: var(--line-strong); }
.icon-btn .dot { position: absolute; top: 8px; right: 8px; width: 6px; height: 6px; border-radius: 99px; background: var(--red); }

/* ---------------- sidebar ---------------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0;
  width: var(--rail);
  background: var(--bg-2);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 9px 6px 14px;
  gap: 6px;
  z-index: 60;
  overflow-y: auto;
  overflow-x: hidden;
  transition: width .22s var(--ease);
}
.sidebar::-webkit-scrollbar { width: 0; }
.sidebar.expanded { width: 208px; }

.rail-group { display: flex; flex-direction: column; gap: 4px; }
.rail-bottom { margin-top: auto; }
.rail-sep { height: 1px; background: var(--line); margin: 6px 4px; }

.rail-btn {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  min-height: 42px; padding: 0 14px;
  border-radius: 11px;
  color: var(--text-2);
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.rail-btn svg { width: 20px; height: 20px; flex: 0 0 auto; }
.rail-btn:hover { background: var(--surface-2); color: var(--text); }
.rail-btn.active { background: var(--green-soft); color: var(--green); border-color: rgba(0, 230, 118, .28); }

.rail-text { font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.sidebar:not(.expanded) .rail-text { display: none; }
.sidebar:not(.expanded) .rail-btn { justify-content: center; gap: 0; padding: 0; }

.sidebar:not(.expanded) .rail-btn[data-tip]::after {
  content: attr(data-tip);
  position: absolute; left: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) scale(.92);
  background: var(--surface-3); color: var(--text);
  border: 1px solid var(--line-strong);
  padding: 6px 10px; border-radius: 8px;
  font-size: 12px; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s;
  z-index: 5;
}
.sidebar:not(.expanded) .rail-btn[data-tip]:hover::after { opacity: 1; transform: translateY(-50%) scale(1); }

.rail-toggle { color: var(--text-2); margin-bottom: 4px; }

/* Casino and Sports sit in one block while the rail is a rail, and read as
   plain rows once it is open, so their labels match every other entry */
.rail-hero { overflow: hidden; }
.rail-art {
  position: absolute; inset: 0; border-radius: inherit;
  background-size: cover; background-position: center;
}
.sidebar:not(.expanded) .rail-heroes {
  gap: 0; border-radius: 13px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
}
.sidebar:not(.expanded) .rail-heroes .rail-hero {
  min-height: 44px; border-radius: 0; border: 0; background: none;
}
.sidebar:not(.expanded) .rail-heroes .rail-hero + .rail-hero { box-shadow: inset 0 1px 0 var(--line); }
.sidebar:not(.expanded) .rail-hero svg { position: relative; z-index: 1; width: 21px; height: 21px; }
/* the artwork is a hover reveal; a click just turns the tile green */
.sidebar:not(.expanded) .rail-hero:hover .rail-art { display: block; }
.sidebar:not(.expanded) .rail-art.has-art::after {
  content: ''; position: absolute; inset: 0; background: rgba(6, 9, 15, .42);
}
.sidebar:not(.expanded) .rail-hero.active {
  background: linear-gradient(165deg, rgba(0, 230, 118, .28), rgba(0, 230, 118, .1));
  color: #eafff3;
}
.sidebar:not(.expanded) .rail-hero.active .rail-art.has-art::after {
  background: linear-gradient(165deg, rgba(0, 176, 90, .55), rgba(4, 21, 12, .5));
}

/* ---------------- topbar ---------------- */
.topbar {
  position: fixed; top: 0; left: var(--rail); right: 0;
  height: var(--top);
  display: flex; align-items: center; gap: 14px;
  padding: 0 18px;
  background: rgba(11, 15, 23, .92);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  z-index: 55;
}

.brand { display: flex; align-items: center; gap: 9px; }
.brand-mark { width: 28px; height: 28px; display: block; background-size: contain; background-repeat: no-repeat; background-position: center; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-mark.has-art svg { display: none; }
.brand-text { font-size: 21px; font-weight: 800; letter-spacing: -.5px; }

/* a full lockup from assets/img/logo replaces the mark and the word together */
.brand.has-logo, .footer-brand.has-logo {
  background-size: contain; background-repeat: no-repeat; background-position: left center;
}
.brand.has-logo { width: 132px; height: 34px; }
.footer-brand.has-logo { width: 168px; height: 46px; }
.brand.has-logo .brand-mark, .brand.has-logo .brand-text,
.footer-brand.has-logo .footer-logo, .footer-brand.has-logo .footer-sub { display: none; }

/* pinned to the middle of the viewport, not the middle of the flex row */
.topbar-center {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 10px;
}

.wallet {
  display: flex; align-items: center; gap: 9px;
  height: 38px; padding: 0 12px;
  border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .2s, background .2s;
}
.wallet:hover { border-color: var(--line-strong); background: var(--surface-2); }
.wallet-coin {
  width: 20px; height: 20px; border-radius: 99px;
  background: linear-gradient(180deg, #ffe27a, #e0a100);
  color: #241800; font-size: 12px; font-weight: 900;
  display: grid; place-items: center;
}
.wallet-amount { font-size: 14px; font-weight: 800; font-variant-numeric: tabular-nums; }
.wallet-caret { width: 15px; height: 15px; color: var(--text-3); }

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

.level-chip {
  display: flex; flex-direction: column; gap: 5px;
  min-width: 108px; padding: 6px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
.level-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 10.5px; font-weight: 700; }
.level-name { color: var(--gold); text-transform: uppercase; letter-spacing: .6px; }
.level-pct { color: var(--text-3); }
.level-bar { height: 4px; background: #0a0e16; border-radius: 99px; overflow: hidden; }
.level-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--orange)); }

.avatar {
  width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(140deg, var(--purple), var(--blue));
  font-size: 13px; font-weight: 800; color: #fff;
  display: grid; place-items: center;
  border: 2px solid transparent;
  transition: border-color .2s;
}
.avatar:hover { border-color: var(--green); }

.only-mobile { display: none; }

/* ---------------- main ---------------- */
.main {
  margin-left: var(--rail);
  padding: calc(var(--top) + 20px) 22px 60px;
}

.page { display: none; animation: fade .25s var(--ease); max-width: 1560px; margin: 0 auto; }
.page.active { display: block; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.section-head { margin-bottom: 20px; }
.section-head h1 { font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.section-head p { color: var(--text-2); font-size: 14px; margin-top: 5px; }

/* ---------------- live wins ---------------- */
.wins { margin-bottom: 20px; }
.wins-tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.wins-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 30px; padding: 0 13px; border-radius: 99px;
  font-size: 12.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  transition: color .2s, background .2s, border-color .2s;
}
.wins-tab svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wins-tab:hover { color: var(--text); }
.wins-tab.active { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }
.pulse { width: 7px; height: 7px; border-radius: 99px; background: var(--green); box-shadow: 0 0 0 0 rgba(0, 230, 118, .6); animation: pulse 1.8s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 7px rgba(0, 230, 118, 0); } 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, 0); } }

.wins-track {
  display: flex; gap: 10px;
  overflow-x: auto; padding-bottom: 4px;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 2%, #000 96%, transparent);
}
.wins-track::-webkit-scrollbar { height: 0; }

.win-card {
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 9px;
  padding: 6px 14px 6px 6px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px;
  animation: winIn .35s var(--ease);
  transition: border-color .18s, transform .18s var(--ease);
}
.win-card:hover { border-color: var(--line-strong); transform: translateY(-1px); }
@keyframes winIn { from { opacity: 0; transform: translateY(-8px) scale(.96); } to { opacity: 1; transform: none; } }
.win-thumb {
  width: 40px; height: 40px; border-radius: 10px;
  flex: 0 0 auto; overflow: hidden;
  display: grid; place-items: center;
  font-size: 15px; font-weight: 900; color: #04150c;
  background-size: cover; background-position: center;
}
/* the operator dropped in artwork for this game, so drop the letter */
.win-thumb.has-art { background-color: var(--surface-2); }
.win-thumb.has-art b, .win-thumb.has-art svg { display: none; }
.win-thumb.sports {
  background: linear-gradient(160deg, #ffe27a, #e0a100);
  color: #241800;
}
.win-thumb.sports svg { width: 24px; height: 24px; }

.win-meta { display: flex; flex-direction: column; gap: 2px; line-height: 1.2; }
.win-amount { font-size: 13px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.win-user { font-size: 11px; color: var(--text-3); font-weight: 600; }
.win-game { font-size: 10.5px; color: var(--text-2); font-weight: 600; }

/* ---------------- banners ---------------- */
.banners { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 22px; }

.banner {
  position: relative; overflow: hidden;
  min-height: 158px;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 20px 22px;
  display: flex; align-items: center;
  transition: transform .2s var(--ease), border-color .2s;
}
.banner:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.banner-race { background: radial-gradient(120% 140% at 100% 0%, rgba(0, 230, 118, .22), transparent 60%), linear-gradient(120deg, #08160f, #060a10 70%); }
.banner-vip { background: radial-gradient(120% 140% at 100% 0%, rgba(255, 204, 51, .2), transparent 60%), linear-gradient(120deg, #171208, #060a10 70%); }

.banner-body { position: relative; z-index: 2; max-width: 62%; }
.banner-kicker { font-size: 11px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--text-2); }
.banner-amount { font-family: Rajdhani, Inter, sans-serif; font-size: 42px; font-weight: 700; line-height: 1; margin: 6px 0 4px; color: var(--green); }
.banner-vip .banner-amount { color: var(--gold); }
.banner-title { font-family: Rajdhani, Inter, sans-serif; font-size: 38px; font-weight: 700; line-height: 1.02; margin: 6px 0 4px; color: var(--gold); }
.banner-copy { font-size: 13px; color: var(--text-2); margin-bottom: 14px; }
.banner-art { position: absolute; right: -6px; bottom: 0; width: 250px; opacity: .55; pointer-events: none; }
.banner-art svg { width: 100%; height: auto; display: block; }

/* a background from assets/img/banners takes over, with a scrim so the copy stays readable */
.banner.has-art { background-size: cover; background-position: center; }
.banner.has-art .banner-art { display: none; }
.banner.has-art::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(0, 0, 0, .78) 0%, rgba(0, 0, 0, .45) 52%, rgba(0, 0, 0, .12) 82%);
}

/* ---------------- category tabs ---------------- */
.cat-row { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.cat-tabs {
  display: flex; gap: 4px; padding: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  overflow-x: auto; scrollbar-width: none;
}
.cat-tabs::-webkit-scrollbar { height: 0; }
.cat-tab {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  white-space: nowrap;
  transition: background .18s, color .18s;
}
.cat-tab svg { width: 16px; height: 16px; }
.cat-tab:hover { color: var(--text); background: var(--surface-2); }
.cat-tab.active { background: var(--green-soft); color: var(--green); }

.search {
  flex: 1; min-width: 230px;
  display: flex; align-items: center; gap: 10px;
  height: 42px; padding: 0 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  color: var(--text-3);
  transition: border-color .2s;
}
.search:focus-within { border-color: rgba(0, 230, 118, .4); }
.search svg { width: 16px; height: 16px; }
.search input { flex: 1; background: none; border: none; outline: none; font-size: 13.5px; }
.search input::placeholder { color: var(--text-3); }
.search kbd {
  font-family: inherit; font-size: 10.5px; font-weight: 700;
  padding: 3px 7px; border-radius: 6px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3);
}

/* ---------------- game grid ---------------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(172px, 1fr));
  gap: 14px;
}

.tile {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--line);
  cursor: pointer;
  transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  isolation: isolate;
}
.tile:hover { transform: translateY(-6px); border-color: var(--line-strong); box-shadow: 0 18px 34px rgba(0, 0, 0, .5); }

.tile-art { position: absolute; inset: 0; }
.tile-art::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 38%, rgba(0, 0, 0, .72) 100%);
}

/* artwork from assets/img/games replaces the built-in tile art */
.tile.has-art { background-size: cover; background-position: center; }
.tile.has-art .tile-art { display: none; }
.tile.has-art::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, transparent 34%, rgba(0, 0, 0, .78) 100%);
}
.tile-blob { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .85; }
.tile-shape { position: absolute; }

.tile-foot {
  position: absolute; left: 12px; right: 12px; bottom: 11px; z-index: 2;
  display: flex; align-items: center; gap: 6px;
  font-size: 10.5px; color: rgba(255, 255, 255, .7); font-weight: 600;
  white-space: nowrap; overflow: hidden;
}
.tile-foot .live-dot { width: 5px; height: 5px; border-radius: 99px; background: var(--green); }

.tile-badge {
  position: absolute; top: 10px; left: 10px; z-index: 3;
  font-size: 9.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  padding: 4px 7px; border-radius: 6px;
  backdrop-filter: blur(4px);
}
.badge-hot { background: rgba(255, 71, 87, .9); color: #fff; }
.badge-new { background: rgba(0, 230, 118, .9); color: #04150c; }
.badge-original { background: rgba(255, 255, 255, .16); color: #fff; }

.tile-hover {
  position: absolute; inset: 0; z-index: 4;
  display: grid; place-items: center;
  background: rgba(4, 8, 14, .55);
  backdrop-filter: blur(2px);
  opacity: 0; transition: opacity .2s;
}
.tile:hover .tile-hover { opacity: 1; }
.tile-hover .btn { transform: translateY(8px); transition: transform .2s var(--ease); }
.tile:hover .tile-hover .btn { transform: none; }

.tile-soon { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(4, 8, 14, .45); font-size: 11px; font-weight: 700; color: var(--text-2); opacity: 0; transition: opacity .2s; }
.tile.soon:hover .tile-soon { opacity: 1; }
.tile.soon { cursor: default; }
.tile.soon:hover { transform: none; }

.empty { text-align: center; padding: 60px 20px; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 16px; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--line); color: var(--text-3); }
.empty-icon svg { width: 24px; height: 24px; }
.empty h3 { font-size: 17px; font-weight: 700; }
.empty p { color: var(--text-2); font-size: 13.5px; margin-top: 6px; }

/* ---------------- panels & rows ---------------- */
.panel {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 20px;
}
.panel-head {
  display: flex; align-items: center; gap: 9px;
  font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  color: var(--text-2); margin-bottom: 16px;
}
.dot-green, .dot-gold, .dot-blue { width: 7px; height: 7px; border-radius: 99px; }
.dot-green { background: var(--green); }
.dot-gold { background: var(--gold); }
.dot-blue { background: var(--blue); }

.rows { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.row:last-child { border-bottom: none; }
.row span { color: var(--text-2); }
.row b { font-weight: 700; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.note-card {
  margin-top: 16px; padding: 14px 16px;
  background: rgba(77, 141, 255, .08); border: 1px solid rgba(77, 141, 255, .2);
  border-radius: var(--r-md); font-size: 13px; color: #bcd3ff;
}

/* ---------------- sports ---------------- */
.sports-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.match { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.match-top { display: flex; align-items: center; justify-content: space-between; font-size: 11px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .6px; margin-bottom: 12px; }
.match-live { color: var(--red); display: inline-flex; align-items: center; gap: 6px; }
.match-live i { width: 6px; height: 6px; border-radius: 99px; background: var(--red); }
.match-teams { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.match-team { display: flex; justify-content: space-between; font-size: 14px; font-weight: 600; }
.match-team b { font-variant-numeric: tabular-nums; color: var(--text-2); }
.odds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.odd { background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px; padding: 9px 6px; text-align: center; transition: background .18s, border-color .18s; }
.odd:hover { background: var(--surface-3); border-color: rgba(0, 230, 118, .35); }
.odd span { display: block; font-size: 10.5px; color: var(--text-3); font-weight: 700; }
.odd b { font-size: 14px; font-weight: 800; color: var(--green); }

/* ---------------- races ---------------- */
.race-top { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.race-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; text-align: center; }
.race-card b { display: block; font-family: Rajdhani, Inter, sans-serif; font-size: 26px; font-weight: 700; color: var(--green); }
.race-card span { font-size: 11.5px; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }

.lb { display: flex; flex-direction: column; gap: 8px; }
.lb-row { display: grid; grid-template-columns: 44px 1fr auto auto; gap: 12px; align-items: center; padding: 11px 14px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; }
.lb-rank { font-weight: 800; color: var(--text-3); }
.lb-row.top1 .lb-rank { color: var(--gold); }
.lb-row.top2 .lb-rank { color: #cfd8e6; }
.lb-row.top3 .lb-rank { color: #d59b62; }
.lb-user { font-weight: 600; }
.lb-wager { color: var(--text-2); font-variant-numeric: tabular-nums; }
.lb-prize { font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }

/* ---------------- vip ---------------- */
.vip-hero {
  position: relative; overflow: hidden;
  text-align: center; padding: 48px 24px 40px;
  border-radius: var(--r-lg); border: 1px solid rgba(255, 204, 51, .2);
  background: radial-gradient(90% 130% at 50% 0%, rgba(255, 204, 51, .16), transparent 62%), linear-gradient(180deg, #12100a, #080b11);
  margin-bottom: 18px;
}
.vip-crown {
  width: 66px; height: 66px; margin: 0 auto 18px;
  border-radius: 99px; display: grid; place-items: center;
  background: linear-gradient(180deg, #ffe27a, #d99b00); color: #241800;
  box-shadow: 0 0 40px rgba(255, 204, 51, .35);
}
.vip-crown svg { width: 32px; height: 32px; stroke-width: 2; }
.vip-hero h1 { font-family: Rajdhani, Inter, sans-serif; font-size: 46px; font-weight: 700; letter-spacing: 1px; }
.vip-hero h1 span { color: var(--gold); }
.vip-hero p { max-width: 520px; margin: 10px auto 0; color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.vip-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 26px; }
.vip-stat { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 22px; }
.vip-stat b { display: block; font-family: Rajdhani, Inter, sans-serif; font-size: 24px; color: var(--gold); }
.vip-stat span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .7px; font-weight: 700; }

.vip-progress { margin-bottom: 18px; }
.prog-copy { font-size: 13.5px; color: var(--text-2); margin-bottom: 12px; }
.prog-copy b { color: var(--gold); }
.prog-bar { height: 10px; border-radius: 99px; background: #0a0e16; overflow: hidden; }
.prog-bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--orange)); border-radius: 99px; }
.prog-labels { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12px; color: var(--text-3); }

.ranks { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.rank {
  position: relative; border-radius: var(--r-lg); padding: 22px 20px;
  border: 1px solid var(--line); background: var(--surface);
  transition: transform .2s var(--ease);
}
.rank:hover { transform: translateY(-4px); }
.rank-badge-now { position: absolute; top: 12px; right: 12px; font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; background: var(--green); color: #04150c; padding: 4px 8px; border-radius: 6px; }
.rank-icon { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; font-size: 20px; font-weight: 900; margin-bottom: 14px; }
.rank h3 { font-family: Rajdhani, Inter, sans-serif; font-size: 21px; font-weight: 700; }
.rank .wager { font-size: 12px; color: var(--text-3); margin-bottom: 12px; }
.rank ul { list-style: none; display: flex; flex-direction: column; gap: 7px; }
.rank li { font-size: 12.5px; color: var(--text-2); display: flex; gap: 8px; align-items: flex-start; }
.rank li::before { content: "+"; font-weight: 800; }

/* ---------------- promos ---------------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.promo { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.promo-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; }
.promo-icon svg { width: 21px; height: 21px; }
.promo h3 { font-size: 16px; font-weight: 700; }
.promo p { font-size: 13px; color: var(--text-2); margin: 6px 0 14px; line-height: 1.55; }
.promo .tag { font-size: 10.5px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; color: var(--text-3); }

/* ---------------- profile ---------------- */
.profile-hero {
  display: flex; align-items: center; gap: 22px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg); padding: 24px; margin-bottom: 16px;
}
.profile-avatar {
  width: 82px; height: 82px; border-radius: 20px;
  background: linear-gradient(140deg, var(--purple), var(--blue));
  display: grid; place-items: center; font-size: 27px; font-weight: 800;
  border: 3px solid rgba(0, 230, 118, .5);
}
.profile-id { flex: 1; min-width: 200px; display: flex; flex-direction: column; gap: 5px; }
.profile-id h1 { font-size: 25px; font-weight: 800; }
.profile-id .muted { font-size: 12.5px; }
.rank-pill {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 800; color: var(--gold);
  background: rgba(255, 204, 51, .1); border: 1px solid rgba(255, 204, 51, .25);
  padding: 5px 11px; border-radius: 99px;
}
.rank-pill svg { width: 13px; height: 13px; }
.profile-balance { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.profile-balance b { font-family: Rajdhani, Inter, sans-serif; font-size: 30px; color: var(--gold); font-variant-numeric: tabular-nums; }
.profile-balance .muted { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }

.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 16px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; text-align: center; }
.stat b { display: block; font-family: Rajdhani, Inter, sans-serif; font-size: 25px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: .8px; font-weight: 700; }

.bets { display: flex; flex-direction: column; gap: 8px; max-height: 340px; overflow-y: auto; }
.bet-row { display: grid; grid-template-columns: 32px 1fr auto auto; gap: 11px; align-items: center; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; }
.win-thumb.bet-icon { width: 30px; height: 30px; border-radius: 8px; font-size: 13px; }
.win-thumb.bet-icon svg { width: 19px; height: 19px; }
.bet-name { font-size: 13px; font-weight: 600; }
.bet-time { font-size: 11px; color: var(--text-3); }
.bet-mult { font-size: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.bet-amount { font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
.bet-amount.win { color: var(--green); }
.bet-amount.loss { color: var(--red); }
.bets-empty { text-align: center; color: var(--text-3); font-size: 13px; padding: 26px 0; }

/* ---------------- modals ---------------- */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(3, 5, 9, .78);
  backdrop-filter: blur(8px);
  display: grid; place-items: center;
  padding: 18px;
  animation: fade .18s var(--ease);
}
.overlay[hidden] { display: none; }

.modal {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  animation: pop .22s var(--ease);
  overflow: hidden;
}
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.modal-cashier { max-width: 540px; max-height: 92vh; display: flex; flex-direction: column; }

.modal-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.modal-head h2 { font-size: 17px; font-weight: 800; }

.seg { display: flex; gap: 4px; padding: 12px 18px 0; }
.seg-btn { flex: 1; height: 36px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); transition: all .18s; }
.seg-btn:hover { color: var(--text); }
.seg-btn.active { color: var(--green); background: var(--green-soft); border-color: rgba(0, 230, 118, .3); }

.modal-body { padding: 16px 18px 20px; overflow-y: auto; }
.tab { display: none; }
.tab.active { display: block; }

/* even tiles, three to a row, so any number of coins stays tidy */
.coins { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.coin {
  display: flex; align-items: center; gap: 9px;
  padding: 11px 12px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line);
  transition: all .18s;
}
.coin:hover { border-color: var(--line-strong); }
.coin.active { border-color: rgba(0, 230, 118, .55); background: var(--green-soft); }
.coin-ico {
  width: 26px; height: 26px; flex: none; border-radius: 99px; overflow: hidden;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #fff;
  background-size: cover; background-position: center;
}
/* an icon file from assets/img/coins replaces the letter */
.coin-ico.has-art { background-color: transparent; }
.coin-ico.has-art b { display: none; }
.coin-sym { font-size: 13px; font-weight: 800; letter-spacing: .2px; }

/* network picker, only present for coins that live on more than one chain */
.nets { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: -6px 0 16px; }
.nets-label {
  font-size: 10.5px; font-weight: 800; letter-spacing: .8px;
  text-transform: uppercase; color: var(--text-3);
}
.net-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 99px;
  font-size: 12px; font-weight: 700; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  transition: all .18s;
}
.net-btn:hover { border-color: var(--line-strong); color: var(--text); }
.net-btn.active { border-color: rgba(0, 230, 118, .45); background: var(--green-soft); color: var(--text); }
.net-tag { font-size: 10px; font-weight: 700; color: var(--text-3); }
.net-btn.active .net-tag { color: var(--green); }

.addr-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px; }
.addr-card .label { font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; color: var(--text-3); }
/* big enough that a phone camera locks on straight away */
.qr { width: 152px; height: 152px; margin: 14px auto; background: #fff; border-radius: 10px; padding: 6px; display: grid; place-items: center; }
.qr svg { width: 100%; height: 100%; }
.addr-row { display: flex; gap: 9px; align-items: stretch; }
.addr-row code { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-size: 11.5px; word-break: break-all; color: var(--text-2); }

.hint { font-size: 12px; color: var(--text-3); margin: 14px 0; line-height: 1.55; }
.hint b { color: var(--green); }

.field { display: block; margin-bottom: 13px; }
.field span, .field > label { display: block; font-size: 12px; color: var(--text-2); margin-bottom: 6px; }
.field input {
  width: 100%; height: 42px; padding: 0 13px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13.5px; outline: none; transition: border-color .18s;
}
.field input:focus { border-color: rgba(0, 230, 118, .45); }
.field input::placeholder { color: var(--text-3); }

.tx-head, .tx-row { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; gap: 8px; align-items: center; }
.tx-head { font-size: 10.5px; text-transform: uppercase; letter-spacing: .7px; color: var(--text-3); font-weight: 800; padding: 0 12px 8px; }
.tx-list { display: flex; flex-direction: column; gap: 8px; }
.tx-row { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; }
.tx-row .amt { font-weight: 800; font-variant-numeric: tabular-nums; }

/* ---------------- deposit alert ---------------- */
.deposit-alert {
  display: flex; align-items: center; gap: 9px;
  height: 36px; padding: 0 12px 0 7px;
  border-radius: 10px;
  background: rgba(0, 230, 118, .12);
  border: 1px solid rgba(0, 230, 118, .45);
  color: var(--text);
  animation: depositGlow 1.6s ease-in-out infinite;
}
.deposit-alert:hover { background: rgba(0, 230, 118, .2); }
.deposit-alert.pop { animation: depositPop .45s var(--ease), depositGlow 1.6s ease-in-out infinite .45s; }
.deposit-alert-coin {
  width: 22px; height: 22px; border-radius: 99px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 900; color: #fff;
  background: var(--green);
}
.deposit-alert-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.deposit-alert-text b { font-size: 13px; font-weight: 800; color: var(--green); font-variant-numeric: tabular-nums; }
.deposit-alert-text span { font-size: 9.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: var(--text-3); }
@keyframes depositGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 230, 118, .35); }
  50% { box-shadow: 0 0 0 7px rgba(0, 230, 118, 0), 0 4px 18px rgba(0, 230, 118, .3); }
}
@keyframes depositPop { from { opacity: 0; transform: translateY(-8px) scale(.9); } to { opacity: 1; transform: none; } }

/* the sports rail button while a free bet is waiting */
.rail-btn.glow-gold { color: var(--gold); background: rgba(255, 204, 51, .12); border-color: rgba(255, 204, 51, .4); }
.rail-btn.glow-gold svg { animation: railGlow 2s ease-in-out infinite; }
@keyframes railGlow {
  0%, 100% { filter: drop-shadow(0 0 0 rgba(255, 204, 51, 0)); }
  50% { filter: drop-shadow(0 0 7px rgba(255, 204, 51, .85)); }
}

.modal-freebet { max-width: 420px; }
.freebet-hero {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 22px 16px 20px; margin-bottom: 16px;
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 204, 51, .35);
  background: radial-gradient(90% 120% at 50% 0%, rgba(255, 204, 51, .18), transparent 70%);
}
.freebet-icon {
  width: 52px; height: 52px; border-radius: 99px;
  display: grid; place-items: center;
  background: rgba(255, 204, 51, .16); color: var(--gold);
  animation: rewardGlow 2.4s ease-in-out infinite;
}
.freebet-icon svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.freebet-icon svg .fill { fill: currentColor; stroke: none; }
.freebet-amount { font-family: Rajdhani, Inter, sans-serif; font-size: 40px; font-weight: 700; color: var(--gold); line-height: 1; }
.freebet-sub { font-size: 12.5px; color: var(--text-2); text-align: center; }
.freebet-terms { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px; }

/* ---------------- rewards ---------------- */
.rewards-btn {
  position: relative;
  width: 36px; height: 36px; flex: 0 0 auto;
  display: grid; place-items: center;
  border-radius: 10px;
  color: #241800;
  background: linear-gradient(180deg, #ffe27a, #e0a100);
  border: 1px solid rgba(255, 226, 122, .6);
  animation: rewardGlow 2.6s ease-in-out infinite;
  transition: transform .18s var(--ease);
}
.rewards-btn:hover { transform: translateY(-1px) scale(1.04); }
.rewards-btn svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rewards-btn.ready { animation-duration: 1.4s; }
.rewards-dot {
  position: absolute; top: -3px; right: -3px;
  width: 9px; height: 9px; border-radius: 99px;
  background: var(--green); border: 2px solid var(--bg-2);
}
@keyframes rewardGlow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 204, 51, .45), 0 4px 14px rgba(255, 204, 51, .25); }
  50% { box-shadow: 0 0 0 7px rgba(255, 204, 51, 0), 0 6px 20px rgba(255, 204, 51, .45); }
}

.modal-rewards { max-width: 520px; max-height: 92vh; display: flex; flex-direction: column; }
.modal-rewards .modal-body { overflow-y: auto; }
.reward-list { display: flex; flex-direction: column; gap: 10px; }
.reward-card {
  display: flex; align-items: center; gap: 13px;
  padding: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
  transition: border-color .2s;
}
.reward-card.ready { border-color: rgba(255, 204, 51, .4); background: linear-gradient(120deg, rgba(255, 204, 51, .09), transparent 70%); }
.reward-icon {
  width: 40px; height: 40px; flex: 0 0 auto;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 204, 51, .13); color: var(--gold);
}
.reward-icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.reward-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.reward-main b { font-size: 14px; font-weight: 700; }
.reward-rate { font-size: 11.5px; font-weight: 700; color: var(--gold); }
.reward-note { font-size: 11.5px; color: var(--text-3); line-height: 1.4; }
.reward-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: 0 0 auto; }
.reward-amount { font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; }
.reward-side .btn { height: 30px; padding: 0 14px; font-size: 12px; }
.reward-locked { font-size: 11px; color: var(--text-3); font-weight: 600; }
.reward-lock {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--text-3);
}
.reward-lock svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------- deposit bonus ---------------- */
.bonus-card {
  border-radius: var(--r-md);
  border: 1px solid rgba(255, 204, 51, .38);
  background: linear-gradient(135deg, rgba(255, 204, 51, .14), rgba(255, 138, 61, .06) 60%, transparent);
  margin-bottom: 16px;
  overflow: hidden;
}
.bonus-top { display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
.bonus-icon {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 12px; display: grid; place-items: center;
  background: rgba(255, 204, 51, .16); color: var(--gold);
}
.bonus-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.bonus-icon svg .fill { fill: currentColor; stroke: none; }
.bonus-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bonus-copy b { font-size: 15px; font-weight: 800; color: var(--gold); letter-spacing: .2px; }
.bonus-copy span { font-size: 12.5px; color: #f0dca8; }
.bonus-foot {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border-top: 1px solid rgba(255, 204, 51, .2);
  background: rgba(0, 0, 0, .22);
  font-size: 12px; font-weight: 700; color: #ffe9a8;
}
.bonus-foot svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

.addr-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.net-pill {
  font-size: 10.5px; font-weight: 700; color: var(--text-2);
  background: var(--surface-2); border: 1px solid var(--line);
  padding: 4px 9px; border-radius: 99px; white-space: nowrap;
}
/* the one thing worth shouting about: coins on the wrong chain never arrive */
.addr-warn {
  margin-top: 10px; padding: 8px 11px; border-radius: 9px;
  background: rgba(255, 196, 0, .09); border: 1px solid rgba(255, 196, 0, .28);
  font-size: 11.5px; font-weight: 600; color: var(--gold); line-height: 1.45;
}
.addr-ref { margin-top: 10px; font-size: 11.5px; color: var(--text-3); }
.addr-ref b { color: var(--text-2); font-family: ui-monospace, Menlo, monospace; }
.field-row { display: flex; gap: 8px; }
.field-row input { flex: 1; min-width: 0; height: 42px; padding: 0 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: 13px; outline: none; }
.field-row input:focus { border-color: rgba(0, 230, 118, .45); }
.field-row .btn { height: 42px; }
.field-inline.slim { height: 32px; min-width: 118px; font-size: 12px; }

.dep-recent { margin-top: 4px; }
.dep-recent-head {
  font-size: 10.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 8px;
}
.dep-recent-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; margin-bottom: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  font-size: 12.5px; font-weight: 600;
}
.dep-recent-row .muted { font-weight: 500; }
.dep-recent-empty { font-size: 12px; color: var(--text-3); line-height: 1.5; }

.race-cols { align-items: start; }
.lb-row.is-me { border-color: rgba(0, 230, 118, .45); background: rgba(0, 230, 118, .07); }
.lb-user em { font-style: normal; font-size: 10.5px; font-weight: 800; color: var(--green); text-transform: uppercase; letter-spacing: .5px; }
.pill-bonus {
  margin-left: 7px; font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
  background: rgba(255, 204, 51, .16); color: var(--gold);
}

/* ---------------- bet feed ---------------- */
.feed { margin-top: 22px; padding: 14px 16px 6px; }
.feed-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.feed-tabs { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.feed-tabs::-webkit-scrollbar { height: 0; }
.feed-tab {
  height: 34px; padding: 0 14px; border-radius: 9px; white-space: nowrap;
  font-size: 13px; font-weight: 600; color: var(--text-2);
  border: 1px solid transparent;
  transition: background .18s, color .18s, border-color .18s;
}
.feed-tab:hover { color: var(--text); background: var(--surface-2); }
.feed-tab.active { color: var(--green); background: var(--green-soft); border-color: rgba(0, 230, 118, .3); }
.feed-rows {
  margin-left: auto; height: 34px; padding: 0 10px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; font-weight: 600; color: var(--text-2); outline: none;
}

.feed-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.feed-table th {
  text-align: left; white-space: nowrap; padding: 10px 12px;
  font-size: 11px; font-weight: 700; color: var(--text-3);
  border-bottom: 1px solid var(--line);
}
.feed-table td { padding: 11px 12px; border-bottom: 1px solid rgba(255, 255, 255, .04); white-space: nowrap; }
.feed-table tbody tr:last-child td { border-bottom: none; opacity: .45; }
.feed-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.feed-table .cell-flex { display: inline-flex; align-items: center; gap: 9px; min-width: 0; }
.feed-table .feed-game { display: inline-block; max-width: 190px; overflow: hidden; text-overflow: ellipsis; vertical-align: middle; }
.feed-rank { font-weight: 800; color: var(--text-3); }
.feed-empty { text-align: center; color: var(--text-3); padding: 28px 0; }

.feed-avatar {
  width: 24px; height: 24px; flex: 0 0 auto; border-radius: 99px;
  display: grid; place-items: center;
  font-size: 11px; font-weight: 800; color: #04150c;
  background: linear-gradient(140deg, var(--gold), var(--orange));
}
.feed-avatar.anon { background: var(--surface-3); color: var(--text-3); }
/* the feed reuses the win thumbnail, just a touch smaller */
.win-thumb.feed-thumb { width: 26px; height: 26px; border-radius: 7px; font-size: 12px; }
.win-thumb.feed-thumb svg { width: 17px; height: 17px; }
.feed-coin {
  display: inline-grid; place-items: center;
  width: 15px; height: 15px; border-radius: 99px; margin-right: 6px;
  background: linear-gradient(180deg, #ffe27a, #e0a100);
  color: #241800; font-size: 9px; font-weight: 900;
  vertical-align: -2px;
}

/* ---------------- auth ---------------- */
.auth-actions { display: flex; gap: 8px; }
.modal-auth { max-width: 420px; }
.modal-auth .field .optional { font-style: normal; color: var(--text-3); font-size: 11px; margin-left: 4px; }
.form-error {
  font-size: 12.5px; font-weight: 600; color: var(--red);
  background: rgba(255, 71, 87, .1); border: 1px solid rgba(255, 71, 87, .25);
  border-radius: 9px; padding: 9px 12px; margin-bottom: 12px;
}

/* ---------------- admin ---------------- */
.admin-list { display: flex; flex-direction: column; gap: 8px; }

.admin-row {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 14px;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px;
}
.admin-row-main { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.admin-row-main .muted { font-size: 11.5px; }
.admin-amount { font-variant-numeric: tabular-nums; }
.admin-row-actions { display: flex; gap: 6px; }
.admin-row-actions .btn { height: 32px; padding: 0 13px; font-size: 12px; }

.tag-in, .tag-out {
  font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase;
  padding: 5px 9px; border-radius: 6px;
}
.tag-in { background: rgba(0, 230, 118, .14); color: var(--green); }
.tag-out { background: rgba(255, 71, 87, .14); color: var(--red); }
.tag-neutral { background: var(--surface-3); color: var(--text-2); font-size: 10px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; }

.admin-picks { display: flex; flex-direction: column; gap: 2px; margin-top: 4px; }
.admin-pick { font-size: 11.5px; color: var(--text-2); }
.admin-pick em { font-style: normal; color: var(--text-3); }

.table-scroll { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th {
  text-align: left; white-space: nowrap;
  font-size: 10.5px; font-weight: 800; letter-spacing: .7px; text-transform: uppercase;
  color: var(--text-3); padding: 8px 10px; border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 11px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-table tbody tr:hover { background: var(--surface-2); }
.admin-table .num { text-align: right; font-variant-numeric: tabular-nums; }
.admin-table .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text-2); }
.admin-table code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; font-size: 11.5px; }
.admin-table .btn { height: 30px; padding: 0 12px; font-size: 12px; }

.pill-admin, .pill-blocked {
  margin-left: 7px; font-size: 9.5px; font-weight: 800; text-transform: uppercase;
  padding: 3px 7px; border-radius: 5px;
}
.pill-admin { background: rgba(255, 204, 51, .15); color: var(--gold); }
.pill-blocked { background: rgba(255, 71, 87, .15); color: var(--red); }

.modal-admin-user { max-width: 940px; max-height: 92vh; display: flex; flex-direction: column; }
.modal-admin-user .modal-body { overflow-y: auto; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 10px; margin-bottom: 16px; }
.admin-grid .stat b { font-size: 19px; }
.admin-facts { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 4px 14px; margin-bottom: 16px; }
.admin-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.field-inline {
  flex: 1; min-width: 150px; height: 38px; padding: 0 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 9px;
  font-size: 13px; outline: none;
}
.field-inline:focus { border-color: rgba(0, 230, 118, .45); }
.admin-sub { font-size: 12px; font-weight: 800; letter-spacing: .9px; text-transform: uppercase; color: var(--text-2); margin: 20px 0 10px; }

/* one row per original: name, smallest, biggest */
.playing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 8px; }
.playing-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px; gap: 8px; align-items: center;
  padding: 7px 10px; border-radius: 10px;
  background: var(--surface); border: 1px solid var(--line);
}
.playing-row span { font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.playing-row .field-inline { min-width: 0; flex: none; }

.tn-find { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 4px; }
.tn-find .field-inline.slim { flex: 0 0 150px; }

/* the player's own deposit address on every chain */
.addr-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px; }
.addr-line { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 13px; }
.addr-line-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.addr-line-head b { font-size: 12.5px; }
.addr-line-head .muted { font-size: 11px; }
.addr-copy {
  display: block; width: 100%; cursor: pointer;
  font-family: ui-monospace, Menlo, monospace; font-size: 11.5px; color: var(--text-2);
  word-break: break-all; line-height: 1.5;
}
.addr-copy:hover { color: var(--green); }

/* ---------------- toasts ---------------- */
.toast-wrap { position: fixed; top: 74px; right: 18px; z-index: 400; display: flex; flex-direction: column; gap: 9px; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 10px;
  min-width: 210px; max-width: 330px;
  padding: 11px 15px; border-radius: 11px;
  background: var(--surface-2); border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  font-size: 13px; font-weight: 600;
  animation: toastIn .25s var(--ease);
}
.toast.out { animation: toastOut .25s var(--ease) forwards; }
.toast i { width: 7px; height: 7px; border-radius: 99px; flex: 0 0 auto; }
.toast.win { border-color: rgba(0, 230, 118, .4); }
.toast.win i { background: var(--green); }
.toast.lose i { background: var(--red); }
.toast.info i { background: var(--blue); }
@keyframes toastIn { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateX(40px); } }

/* ---------------- loading screens ---------------- */
.loader {
  position: fixed; inset: 0; z-index: 900;
  display: grid; place-items: center;
  background:
    radial-gradient(70% 60% at 50% 40%, rgba(0, 230, 118, .1), transparent 70%),
    var(--bg);
  transition: opacity .36s var(--ease);
}
.loader.gone { opacity: 0; pointer-events: none; }
.loader-inner { position: relative; display: grid; place-items: center; width: 168px; height: 168px; }

.loader-mark { width: 78px; height: 78px; display: block; animation: loaderSpin 1.6s cubic-bezier(.66, .12, .3, .93) infinite; }
.loader-mark svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 10px 26px rgba(0, 230, 118, .35)); }
.loader-mark.sports svg { filter: drop-shadow(0 10px 26px rgba(255, 204, 51, .35)); }
@keyframes loaderSpin {
  0% { transform: rotateY(0) scale(1); }
  50% { transform: rotateY(180deg) scale(1.07); }
  100% { transform: rotateY(360deg) scale(1); }
}

/* the ring sweeping around the mark */
.loader-ring {
  position: absolute; inset: 0; border-radius: 99px;
  border: 2px solid rgba(255, 255, 255, .06);
  border-top-color: var(--green);
  animation: loaderRing 1s linear infinite;
}
.loader-inner:has(.loader-mark.sports) .loader-ring { border-top-color: var(--gold); }
@keyframes loaderRing { to { transform: rotate(360deg); } }

/* an operator clip fills the screen instead */
.loader-clip { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; }

/* ---------------- footer ---------------- */
/* bleeds past the main padding so it spans the content area edge to edge */
.footer {
  margin: 44px -22px -60px;
  padding: 34px 26px 34px;
  background: var(--bg-2);
  border-top: 1px solid var(--line);
}
.footer-cols {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) .9fr;
  gap: 22px; padding-bottom: 26px;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-logo { font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1; }
.footer-sub { font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-3); }

.footer-col { display: flex; flex-direction: column; gap: 11px; }
.footer-col h3 { font-size: 13.5px; font-weight: 800; margin-bottom: 3px; }
.footer-col a { font-size: 13px; color: var(--text-2); cursor: pointer; transition: color .16s; }
.footer-col a:hover { color: var(--green); }

.footer-icons { display: flex; gap: 10px; }
.footer-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center; color: var(--text-2);
  background: var(--surface); border: 1px solid var(--line);
  transition: color .16s, border-color .16s;
}
.footer-ico svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.footer-ico:hover { color: var(--text); border-color: var(--line-strong); }

.footer-mission { font-size: 13.5px; font-weight: 700; padding-top: 22px; border-top: 1px solid var(--line); }
.footer-copy { font-size: 13px; color: var(--text-2); margin-top: 12px; }
.footer-legal { font-size: 11.5px; line-height: 1.65; color: var(--text-3); margin-top: 16px; max-width: 900px; }

.footer-badges { display: flex; align-items: center; gap: 12px; margin-top: 20px; }
.footer-badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 30px; padding: 0 11px; border-radius: 8px;
  font-size: 11.5px; font-weight: 800; letter-spacing: .3px;
  border: 1px solid var(--line); color: var(--text-2);
}
.footer-badge.age { border-radius: 99px; border-color: var(--line-strong); color: var(--text); }
.footer-badge.cert { color: var(--gold); border-color: rgba(255, 204, 51, .35); }
.footer-badge.cert svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.5; }

/* ---------------- footer pages ---------------- */
.doc-kicker { font-size: 10.5px; font-weight: 800; letter-spacing: 1.1px; text-transform: uppercase; color: var(--green); }
.doc { max-width: 780px; }
.doc-section { padding: 18px 0; border-top: 1px solid var(--line); }
.doc-section h2 { font-size: 16px; font-weight: 800; margin-bottom: 9px; }
.doc-section p { font-size: 14px; line-height: 1.7; color: var(--text-2); }
.doc-section p + p { margin-top: 10px; }
.doc-section ul { margin: 8px 0 0 18px; }
.doc-section li { font-size: 14px; line-height: 1.75; color: var(--text-2); }
.doc-foot { font-size: 12px; color: var(--text-3); padding-top: 18px; border-top: 1px solid var(--line); }
.doc-foot b { color: var(--text-2); }

/* ---------------- responsive ---------------- */
@media (max-width: 1080px) {
  .banners { grid-template-columns: 1fr; }
  .two-col { grid-template-columns: 1fr; }
  .level-chip { display: none; }
}

@media (max-width: 760px) {
  :root { --rail: 0px; }
  .sidebar {
    width: 240px;
    transform: translateX(-100%);
    transition: transform .24s var(--ease);
  }
  .sidebar.open { transform: none; box-shadow: 0 0 60px rgba(0, 0, 0, .6); }
  /* the drawer has room for words, so it reads like the desktop rail expanded */
  .sidebar.open:not(.expanded) .rail-text { display: inline; opacity: 1; transform: none; }
  .sidebar.open:not(.expanded) .rail-btn { justify-content: flex-start; gap: 12px; padding: 0 14px; }
  .sidebar.open .rail-btn[data-tip]::after { display: none; }
  .sidebar.open:not(.expanded) .rail-art { display: none; }
  .sidebar .rail-toggle { display: none; }
  .topbar { left: 0; padding: 0 12px; gap: 8px; }
  .only-mobile { display: inline-flex; }
  .topbar-center { position: static; transform: none; margin: 0 0 0 auto; }
  /* chat and notifications go, so the avatar and the log-out button both fit */
  #notifBtn, #chatBtn { display: none; }
  .btn-cashier { width: 38px; padding: 0; }
  .btn-cashier-text { display: none; }
  .wallet { height: 36px; padding: 0 10px; gap: 7px; }
  .wallet-amount { font-size: 13px; }
  .avatar { width: 34px; height: 34px; border-radius: 10px; }
  .rewards-btn, #logoutBtn { flex: none; }
  /* both auth buttons stay whole rather than being squeezed off the edge */
  .topbar-right { gap: 7px; }
  .auth-actions { gap: 6px; }
  .auth-actions .btn { flex: none; height: 36px; padding: 0 13px; font-size: 12.5px; white-space: nowrap; }
  .main { padding: calc(var(--top) + 16px) 14px 60px; }
  .brand-text { display: none; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
  .banner-art { opacity: .25; }
  .banner-body { max-width: 100%; }
  .profile-balance { align-items: flex-start; }
  .footer { margin: 34px -14px -60px; padding: 26px 16px; }
  .footer-cols { grid-template-columns: 1fr 1fr; gap: 20px; }
  .footer-brand { grid-column: 1 / -1; }
}
