/* SB12 Sports — core design system and app shell */
:root {
  --bg: #0a0d13;
  --bg-2: #0f131b;
  --panel: #141a24;
  --panel-2: #1a2130;
  --panel-3: #222b3d;
  --line: #232c3d;
  --line-2: #2c374b;
  --text: #e9eef8;
  --muted: #8d9ab0;
  --muted-2: #6b778c;
  --red: #e11d2e;
  --red-2: #ff3347;
  --red-dim: rgba(225, 29, 46, 0.12);
  --gold: #f5b942;
  --gold-2: #ffd479;
  --green: #20c15a;
  --green-dim: rgba(32, 193, 90, 0.12);
  --blue: #3b82f6;
  --amber: #f59e0b;
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 18px;
  --hdr: 62px;
  --maxw: 1280px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(1100px 500px at 85% -120px, rgba(225, 29, 46, 0.16), transparent 60%),
    radial-gradient(900px 420px at 0% -80px, rgba(245, 185, 66, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: 26px; }
h2 { font-size: 20px; }
h3 { font-size: 16px; }
p { margin: 0 0 10px; }
small { font-size: 12px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
::selection { background: var(--red); color: #fff; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--red); color: #fff; padding: 10px; z-index: 999; }
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------- header --------------------------------- */
.hdr {
  position: sticky; top: 0; z-index: 60;
  display: flex; align-items: center; gap: 18px;
  height: var(--hdr); padding: 0 20px;
  background: rgba(9, 12, 18, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center;
  background: linear-gradient(145deg, var(--red), #8e0f1c);
  box-shadow: 0 6px 16px rgba(225, 29, 46, 0.35);
  font-size: 15px; color: #fff;
}
.logo b { color: #fff; }
.logo span { color: var(--red-2); }
.hdr-nav { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.hdr-nav a {
  padding: 8px 12px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--muted);
  transition: 0.15s;
}
.hdr-nav a:hover, .hdr-nav a.active { color: #fff; background: var(--panel-2); }
.hdr-nav a.active { box-shadow: inset 0 -2px 0 var(--red); }
.hdr-spacer { flex: 1; }
.hdr-actions { display: flex; align-items: center; gap: 8px; }
.balance-pill {
  display: flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px;
}
.balance-pill small { color: var(--muted); font-weight: 500; }
.icon-btn {
  width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); cursor: pointer; font-size: 16px;
  display: grid; place-items: center; transition: 0.15s; position: relative;
}
.icon-btn:hover { background: var(--panel-2); border-color: var(--line-2); }
.dot-badge {
  position: absolute; top: 4px; right: 4px; min-width: 15px; height: 15px; padding: 0 4px;
  border-radius: 999px; background: var(--red); color: #fff; font-size: 10px; font-weight: 800;
  display: grid; place-items: center;
}
.avatar {
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(145deg, #2a3548, #1a2231); border: 1px solid var(--line-2);
  font-weight: 800; font-size: 13px; color: var(--gold); cursor: pointer;
}
.menu {
  position: absolute; right: 14px; top: 58px; width: 236px; background: var(--panel);
  border: 1px solid var(--line-2); border-radius: 14px; box-shadow: var(--shadow); padding: 6px;
  z-index: 70; animation: pop 0.14s ease-out;
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 9px;
  background: none; border: 0; color: var(--text); font-size: 14px; text-align: left; cursor: pointer;
}
.menu a:hover, .menu button:hover { background: var(--panel-2); }
.menu .sep { border-top: 1px solid var(--line); margin: 5px 0; }
.menu .muted { color: var(--muted); font-size: 12px; }

/* -------------------------- currency & language menu ----------------------- */
.lang-ctl { position: relative; }
.lang-btn {
  display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 11px;
  border-radius: 10px; background: var(--panel); border: 1px solid var(--line);
  color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; transition: 0.15s;
}
.lang-btn:hover { background: var(--panel-2); border-color: var(--line-2); }
.lang-globe { font-size: 15px; line-height: 1; }
.lang-caret { color: var(--muted); font-size: 10px; }
.lang-current { max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-panel {
  position: absolute; right: 0; top: 46px; width: 300px; max-height: min(74vh, 560px); overflow-y: auto;
  background: #2b2b2b; border: 1px solid #3d3d3d; border-radius: 5px;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.58); z-index: 130; padding-bottom: 4px;
  animation: pop 0.12s ease-out;
}
.lang-panel-head {
  position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between;
  gap: 8px; padding: 12px 14px; background: #2b2b2b; border-bottom: 1px solid #3d3d3d;
}
.lang-panel-head b { font-size: 13px; color: #fff; font-weight: 700; }
.lang-group { padding: 11px 14px 13px; border-bottom: 1px solid #3a3a3a; }
.lang-group:last-child { border-bottom: 0; }
.lang-code { font-size: 15px; font-weight: 700; color: #fff; letter-spacing: 0.02em; }
.lang-links { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 9px; }
.lang-link { background: none; border: 0; color: #9aa4b5; font-size: 13px; cursor: pointer; padding: 2px 0; font-family: inherit; }
.lang-link:hover { color: #fff; }
.lang-link.active { color: var(--gold); font-weight: 700; }
.lang-sep { color: #555; font-size: 12px; }
.lang-panel::-webkit-scrollbar { width: 8px; }
.lang-panel::-webkit-scrollbar-thumb { background: #4a4a4a; border-radius: 4px; }
.lang-panel::-webkit-scrollbar-track { background: #232323; }

/* ---------------------------------- subnav --------------------------------- */
.subnav {
  position: sticky; top: var(--hdr); z-index: 55;
  display: flex; gap: 6px; padding: 9px 20px; overflow-x: auto;
  background: rgba(12, 16, 23, 0.94); border-bottom: 1px solid var(--line);
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  white-space: nowrap; display: flex; align-items: center; gap: 7px; padding: 6px 12px;
  border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--muted);
  border: 1px solid transparent;
}
.subnav a:hover { color: #fff; background: var(--panel-2); }
.subnav a.active { color: #fff; background: var(--red-dim); border-color: rgba(225, 29, 46, 0.4); }
.subnav .count { font-size: 11px; color: var(--gold); font-weight: 800; }

/* ----------------------------------- main ---------------------------------- */
.main { max-width: var(--maxw); margin: 0 auto; padding: 20px 20px 90px; min-height: 60vh; }
.boot { padding: 80px 0; text-align: center; color: var(--muted); }
.page-head { display: flex; align-items: center; gap: 14px; margin: 6px 0 18px; flex-wrap: wrap; }
.page-head h1 { font-size: 24px; }
.page-head .sub { color: var(--muted); font-size: 13px; }
.crumb { color: var(--muted); font-size: 13px; }
.crumb a:hover { color: var(--text); }

/* ---------------------------------- cards ---------------------------------- */
.card {
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px;
}
.card.tight { padding: 14px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title h3 { display: flex; align-items: center; gap: 8px; }
.card-title a { color: var(--gold); font-size: 13px; font-weight: 700; }
.section { margin: 30px 0; }
.section-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; gap: 12px; }
.section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head .more { color: var(--gold); font-size: 13px; font-weight: 700; }
.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 20px; align-items: start; }
.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.gold { color: var(--gold); }
.green { color: var(--green); }
.red { color: var(--red-2); }
.mono { font-variant-numeric: tabular-nums; font-family: ui-monospace, "SF Mono", Consolas, monospace; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ---------------------------------- buttons -------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 1px solid transparent;
  background: var(--panel-2); color: var(--text); font-size: 14px; font-weight: 700;
  cursor: pointer; transition: 0.15s; white-space: nowrap;
}
.btn:hover { background: var(--panel-3); }
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn.primary { background: linear-gradient(160deg, var(--red-2), #b3121f); color: #fff; box-shadow: 0 8px 22px rgba(225, 29, 46, 0.3); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.gold { background: linear-gradient(160deg, var(--gold-2), #d99a1e); color: #201603; }
.btn.ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn.ghost:hover { background: var(--panel-2); }
.btn.green { background: linear-gradient(160deg, #35d873, #159c46); color: #04160a; }
.btn.sm { padding: 7px 12px; font-size: 13px; border-radius: 8px; }
.btn.block { width: 100%; }
.btn.link { background: none; color: var(--gold); padding: 4px 6px; }
.btn.danger { background: var(--red-dim); color: var(--red-2); border-color: rgba(225, 29, 46, 0.3); }

/* ---------------------------------- forms ---------------------------------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 13px; }
.label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; padding: 12px 13px; border-radius: 10px; background: var(--bg-2);
  border: 1px solid var(--line-2); color: var(--text); font-size: 14px; font-family: inherit;
  transition: 0.15s;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(245, 185, 66, 0.12); }
.input::placeholder { color: var(--muted-2); }
.input-group { display: flex; gap: 8px; }
.input-group .input { flex: 1; }
.hint { font-size: 12px; color: var(--muted); }
.err { font-size: 12.5px; color: var(--red-2); }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--muted); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--red); width: 16px; height: 16px; }
.seg { display: inline-flex; background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  padding: 7px 14px; border: 0; background: none; color: var(--muted); font-weight: 700; font-size: 13px;
  border-radius: 8px; cursor: pointer;
}
.seg button.active { background: var(--panel-3); color: #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px;
  background: var(--panel-2); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 600;
  color: var(--muted); cursor: pointer;
}
.chip:hover, .chip.active { color: #fff; border-color: var(--gold); }
.badge {
  display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 800;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 3px 7px; border-radius: 6px;
  background: var(--panel-3); color: var(--muted);
}
.badge.red { background: var(--red); color: #fff; }
.badge.gold { background: rgba(245, 185, 66, 0.15); color: var(--gold); }
.badge.green { background: var(--green-dim); color: var(--green); }
.badge.blue { background: rgba(59, 130, 246, 0.15); color: #7aaeff; }
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.25; } }
@keyframes pop { from { opacity: 0; transform: translateY(-5px) scale(0.99); } to { opacity: 1; transform: none; } }

/* ----------------------------------- hero ---------------------------------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 16px; }
.hero-main {
  position: relative; overflow: hidden; border-radius: 20px; padding: 30px;
  min-height: 240px; display: flex; flex-direction: column; justify-content: flex-end;
  border: 1px solid rgba(245, 185, 66, 0.22);
  background:
    radial-gradient(600px 260px at 85% 15%, rgba(245, 185, 66, 0.22), transparent 70%),
    radial-gradient(500px 300px at 10% 100%, rgba(225, 29, 46, 0.35), transparent 70%),
    linear-gradient(140deg, #1a1226, #0d1119 60%);
}
.hero-main::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px; mask-image: radial-gradient(circle at 70% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero-main h1 { font-size: clamp(24px, 3.2vw, 38px); line-height: 1.1; margin: 8px 0 8px; }
.hero-main p { color: #c8d2e4; max-width: 520px; }
.hero-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.hero-side { display: grid; gap: 14px; }
.hero-side .card { display: flex; flex-direction: column; justify-content: space-between; min-height: 0; }
.hero-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.hero-stat { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); border-radius: 12px; padding: 12px; }
.hero-stat b { display: block; font-size: 20px; }
.hero-stat span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* --------------------------------- matches --------------------------------- */
.mcard {
  background: linear-gradient(180deg, var(--panel), var(--bg-2)); border: 1px solid var(--line);
  border-radius: 14px; overflow: hidden; transition: 0.15s;
}
.mcard:hover { border-color: var(--line-2); }
.mcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 13px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.mcard-body { padding: 12px 13px; display: grid; gap: 8px; }
.team-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.team-name { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 14px; min-width: 0; }
.team-name .tla {
  width: 26px; height: 26px; border-radius: 7px; background: var(--panel-3); display: grid; place-items: center;
  font-size: 10px; font-weight: 800; color: var(--gold); flex: none;
}
.team-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team-score { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; min-width: 20px; text-align: right; }
.score-box { display: flex; align-items: center; gap: 8px; font-weight: 800; }
.clock { color: var(--red-2); font-weight: 700; font-size: 12px; display: inline-flex; align-items: center; gap: 5px; }

.odds-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
.odds-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.odd {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  background: var(--panel-2); border: 1px solid var(--line-2); border-radius: 9px;
  padding: 9px 10px; color: var(--text); cursor: pointer; transition: 0.13s; min-height: 42px;
  font-size: 13px;
}
.odd:hover { background: var(--panel-3); border-color: var(--gold); }
.odd.active { background: linear-gradient(160deg, var(--red), #9f0f1b); border-color: var(--red-2); color: #fff; }
.odd:disabled { opacity: 0.45; cursor: not-allowed; }
.odd .oname { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.odd.active .oname { color: rgba(255, 255, 255, 0.8); }
.odd b { font-variant-numeric: tabular-nums; font-size: 14px; }
.odd .up { color: var(--green); font-size: 10px; }
.odd .down { color: var(--red-2); font-size: 10px; }

.mrow {
  display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 14px; align-items: center;
  padding: 12px 14px; border-bottom: 1px solid var(--line);
}
.mrow:last-child { border-bottom: 0; }
.mrow:hover { background: rgba(255, 255, 255, 0.015); }
.mrow .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 6px; }
.mrow .teams { display: grid; gap: 5px; }
.mrow .odd { min-height: 38px; padding: 6px 9px; }

.live-list { display: grid; gap: 10px; }
.live-item {
  display: grid; grid-template-columns: 78px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
}
.live-item .score { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.live-item .league { font-size: 11px; color: var(--muted); }

/* -------------------------------- bet slip -------------------------------- */
.betslip {
  position: fixed; top: 0; right: 0; bottom: 0; width: 350px; z-index: 90;
  background: var(--bg-2); border-left: 1px solid var(--line-2); box-shadow: -20px 0 50px rgba(0, 0, 0, 0.5);
  transform: translateX(102%); transition: transform 0.24s ease; display: flex; flex-direction: column;
}
.betslip.open { transform: none; }
.betslip-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.betslip-head h3 { display: flex; align-items: center; gap: 8px; }
.betslip-body { flex: 1; overflow-y: auto; padding: 12px 16px; }
.betslip-foot { border-top: 1px solid var(--line); padding: 14px 16px; background: var(--bg); }
.leg {
  display: grid; gap: 4px; padding: 11px 12px; border-radius: 11px; background: var(--panel);
  border: 1px solid var(--line); margin-bottom: 9px; position: relative;
}
.leg .sel { font-weight: 700; font-size: 14px; }
.leg .mk { font-size: 12px; color: var(--muted); }
.leg .top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.leg .x { background: none; border: 0; color: var(--muted-2); cursor: pointer; font-size: 16px; padding: 0 2px; }
.leg .x:hover { color: var(--red-2); }
.leg .odds-tag { font-weight: 800; color: var(--gold); font-variant-numeric: tabular-nums; }
.betslip-empty { text-align: center; color: var(--muted); padding: 50px 10px; }
.betslip-empty .big { font-size: 34px; margin-bottom: 10px; }
.stake-row { display: flex; gap: 8px; margin-bottom: 10px; }
.quick-stakes { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.quick-stakes button { padding: 5px 10px; font-size: 12px; border-radius: 7px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--muted); cursor: pointer; }
.quick-stakes button:hover { color: #fff; border-color: var(--gold); }
.summary-row { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 6px; color: var(--muted); }
.summary-row b { color: var(--text); font-variant-numeric: tabular-nums; }
.summary-row.total b { color: var(--gold); font-size: 17px; }
.betslip-fab { display: none; }

/* -------------------------------- games grid ------------------------------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.game-tile {
  position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--line);
  background: var(--panel); aspect-ratio: 1 / 1.12; display: flex; flex-direction: column; justify-content: flex-end;
  padding: 12px; transition: 0.16s;
}
.game-tile:hover { transform: translateY(-3px); border-color: var(--gold); box-shadow: var(--shadow); }
.game-tile .art { position: absolute; inset: 0; opacity: 0.9; }
.game-tile .art.dice { background: radial-gradient(120px 90px at 70% 20%, #7c3aed55, transparent), linear-gradient(160deg, #1c1330, #0d1119); }
.game-tile .art.crash { background: radial-gradient(120px 90px at 70% 20%, #f9731655, transparent), linear-gradient(160deg, #2a1510, #0d1119); }
.game-tile .art.mines { background: radial-gradient(120px 90px at 70% 20%, #ef444455, transparent), linear-gradient(160deg, #26121a, #0d1119); }
.game-tile .art.slots { background: radial-gradient(120px 90px at 70% 20%, #22c55e55, transparent), linear-gradient(160deg, #10241a, #0d1119); }
.game-tile .art.roulette { background: radial-gradient(120px 90px at 70% 20%, #e11d2e55, transparent), linear-gradient(160deg, #241014, #0d1119); }
.game-tile .art.baccarat { background: radial-gradient(120px 90px at 70% 20%, #3b82f655, transparent), linear-gradient(160deg, #101a2c, #0d1119); }
.game-tile .art.blackjack { background: radial-gradient(120px 90px at 70% 20%, #f5b94255, transparent), linear-gradient(160deg, #1f1a0f, #0d1119); }
.game-tile .icon { position: relative; font-size: 38px; margin-bottom: auto; }
.game-tile h4 { position: relative; font-size: 14px; }
.game-tile .meta { position: relative; font-size: 11px; color: var(--muted); display: flex; gap: 6px; align-items: center; }
.game-tile .rtp { position: absolute; top: 10px; right: 10px; z-index: 2; }

/* -------------------------------- promotions ------------------------------- */
.promo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.promo {
  position: relative; border-radius: 16px; padding: 20px; border: 1px solid var(--line);
  background: linear-gradient(150deg, var(--panel-2), var(--bg-2)); overflow: hidden;
}
.promo.gold { border-color: rgba(245, 185, 66, 0.35); background: linear-gradient(150deg, #2a2110, var(--bg-2)); }
.promo.red { border-color: rgba(225, 29, 46, 0.35); background: linear-gradient(150deg, #2a1216, var(--bg-2)); }
.promo.green { border-color: rgba(32, 193, 90, 0.3); background: linear-gradient(150deg, #10241a, var(--bg-2)); }
.promo.blue { border-color: rgba(59, 130, 246, 0.3); background: linear-gradient(150deg, #101a2c, var(--bg-2)); }
.promo h3 { font-size: 19px; margin: 8px 0 4px; }
.promo .big { font-size: 30px; font-weight: 800; color: var(--gold); letter-spacing: -0.02em; }
.promo ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 12.5px; }
.promo li { margin-bottom: 3px; }
.promo .actions { display: flex; gap: 8px; margin-top: 14px; }

/* -------------------------------- trust / seo ------------------------------ */
.trust { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.trust div { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.trust .ico { font-size: 20px; }
.footer { border-top: 1px solid var(--line); background: #080b10; padding: 34px 20px 100px; color: var(--muted); font-size: 13px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 26px; }
.footer h5 { color: var(--text); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; margin: 0 0 12px; }
.footer a { display: block; padding: 3px 0; }
.footer a:hover { color: var(--gold); }
.footer-bottom { max-width: var(--maxw); margin: 26px auto 0; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12px; }
.pay-icons { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icons span { padding: 5px 9px; border: 1px solid var(--line-2); border-radius: 7px; font-size: 11px; font-weight: 700; color: var(--muted); }

/* ---------------------------------- toast ---------------------------------- */
.toasts { position: fixed; right: 18px; bottom: 18px; z-index: 200; display: flex; flex-direction: column; gap: 8px; max-width: min(360px, 90vw); }
.toast {
  display: flex; gap: 10px; align-items: flex-start; padding: 13px 15px; border-radius: 12px;
  background: var(--panel-2); border: 1px solid var(--line-2); box-shadow: var(--shadow);
  font-size: 13.5px; animation: slidein 0.2s ease-out;
}
.toast.success { border-color: rgba(32, 193, 90, 0.5); }
.toast.error { border-color: rgba(225, 29, 46, 0.55); }
.toast.warn { border-color: rgba(245, 158, 11, 0.5); }
@keyframes slidein { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: none; } }

/* ---------------------------------- modal ---------------------------------- */
.modal-backdrop {
  position: fixed; inset: 0; background: rgba(4, 6, 10, 0.72); backdrop-filter: blur(3px);
  z-index: 150; display: grid; place-items: center; padding: 18px;
}
.modal {
  width: min(520px, 100%); max-height: 88vh; overflow-y: auto; background: var(--bg-2);
  border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow); animation: pop 0.16s ease-out;
}
.modal-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.modal-body { padding: 18px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 9px; padding: 14px 18px; border-top: 1px solid var(--line); }

/* --------------------------------- tables --------------------------------- */
.tablewrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
table.tbl th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding: 9px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
table.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:hover td { background: rgba(255, 255, 255, 0.015); }
table.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.stat span { display: block; color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 5px; }
.stat b { font-size: 20px; font-variant-numeric: tabular-nums; }
.stat small { color: var(--muted); }

/* -------------------------------- chat widget ------------------------------ */
.chat-fab {
  position: fixed; right: 18px; bottom: 84px; z-index: 80; width: 50px; height: 50px; border-radius: 50%;
  border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--panel-2), var(--panel));
  color: var(--text); font-size: 21px; cursor: pointer; box-shadow: var(--shadow);
}
.chat-fab:hover { border-color: var(--gold); }
.chat-panel { position: fixed; right: 18px; bottom: 142px; z-index: 120; width: min(360px, 92vw); height: 460px; display: flex; flex-direction: column; }
.chat-msgs { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; padding: 12px; }
.chat-msg { max-width: 84%; padding: 9px 12px; border-radius: 12px; font-size: 13px; background: var(--panel-2); align-self: flex-start; }
.chat-msg.me { background: var(--red-dim); border: 1px solid rgba(225, 29, 46, 0.3); align-self: flex-end; }
.chat-msg .who { font-size: 10px; color: var(--muted); margin-bottom: 3px; text-transform: uppercase; letter-spacing: 0.05em; }
.chat-input { display: flex; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }

/* --------------------------------- bottom nav ------------------------------ */
.bottomnav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70;
  background: rgba(10, 13, 19, 0.97); border-top: 1px solid var(--line);
  padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
}
.bottomnav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10.5px; color: var(--muted); padding: 5px 0; border-radius: 8px; }
.bottomnav a .i { font-size: 18px; line-height: 1; }
.bottomnav a.active { color: var(--red-2); }

/* ---------------------------------- misc ---------------------------------- */
.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty .big { font-size: 36px; margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, var(--panel) 25%, var(--panel-2) 50%, var(--panel) 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 10px; }
@keyframes shimmer { to { background-position: -200% 0; } }
.pill-tabs { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.pill-tabs button { white-space: nowrap; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--panel); color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; }
.pill-tabs button.active { background: var(--red); border-color: var(--red); color: #fff; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.kv:last-child { border-bottom: 0; }
.kv span { color: var(--muted); }
.alert { padding: 12px 14px; border-radius: 10px; font-size: 13px; border: 1px solid var(--line-2); background: var(--panel); }
.alert.warn { border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); }
.alert.danger { border-color: rgba(225, 29, 46, 0.4); background: rgba(225, 29, 46, 0.08); }
.alert.success { border-color: rgba(32, 193, 90, 0.35); background: rgba(32, 193, 90, 0.08); }

/* -------------------------------- responsive ------------------------------- */
@media (max-width: 1120px) {
  .hero { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .hdr-nav { display: none; }
  .split { grid-template-columns: 1fr; }
  .mrow { grid-template-columns: 1fr; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  :root { --hdr: 56px; }
  body { font-size: 14px; }
  .main { padding: 14px 12px 120px; }
  .subnav { padding: 8px 12px; }
  .hdr { padding: 0 12px; gap: 10px; }
  .hdr-actions .balance-pill small { display: none; }
  .hdr-actions .deposit-btn { display: none; }
  .lang-current { display: none; }
  .lang-btn { padding: 0 9px; }
  .lang-panel { position: fixed; left: 10px; right: 10px; top: calc(var(--hdr) + 6px); width: auto; }
  .bottomnav { display: flex; }
  .footer { padding-bottom: 96px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero-main { padding: 20px; min-height: 210px; }
  .betslip {
    top: auto; left: 0; right: 0; bottom: 0; width: 100%; max-height: 82vh;
    border-left: 0; border-top: 1px solid var(--line-2); border-radius: 18px 18px 0 0;
    transform: translateY(102%);
  }
  .betslip.open { transform: none; }
  .betslip-fab {
    display: flex; position: fixed; left: 12px; right: 12px; bottom: 74px; z-index: 75;
    align-items: center; justify-content: space-between; gap: 10px;
    background: linear-gradient(160deg, var(--red-2), #a5101d); color: #fff; font-weight: 700;
    padding: 12px 16px; border-radius: 12px; border: 0; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  }
  .betslip-fab[hidden] { display: none; }
  .chat-fab { bottom: 140px; width: 44px; height: 44px; }
  .toasts { left: 12px; right: 12px; bottom: 130px; max-width: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 18px; }
  .modal { max-height: 92vh; }
  .page-head h1 { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ------------------------------ live casino lobby --------------------------- */
.live-table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.live-table-card {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden;
  background: linear-gradient(180deg, var(--panel), var(--bg-2));
  border: 1px solid var(--line); transition: 0.16s;
}
.live-table-card:hover { border-color: rgba(245, 185, 66, 0.5); transform: translateY(-3px); box-shadow: var(--shadow); }
.live-table-thumb {
  position: relative; height: 132px; overflow: hidden;
  background: radial-gradient(300px 140px at 50% 20%, rgba(245, 185, 66, 0.18), transparent 70%), #0a1018;
}
.live-table-feed {
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 3px),
    radial-gradient(220px 120px at 30% 70%, rgba(225, 29, 46, 0.16), transparent 70%);
  animation: live-feed 6s linear infinite;
}
@keyframes live-feed { from { background-position: 0 0, 0 0; } to { background-position: 60px 0, 0 0; } }
.live-badge { position: absolute; top: 10px; left: 10px; }
.live-table-seats { position: absolute; top: 12px; right: 10px; color: var(--muted); background: rgba(0, 0, 0, 0.45); padding: 2px 7px; border-radius: 5px; }
.live-table-icon { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); font-size: 40px; filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.55)); }
.live-table-body { padding: 13px 14px 14px; display: flex; flex-direction: column; gap: 7px; flex: 1; }
.live-table-body h3 { font-size: 15px; }
.live-table-meta { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--muted); margin-top: 2px; }
.live-frame-wrap { display: flex; flex-direction: column; }
.live-iframe {
  width: 100%; height: min(72vh, 720px); border: 1px solid var(--line-2); border-radius: 12px; background: #05070b;
}
@media (max-width: 720px) {
  .live-iframe { height: 66vh; }
  .live-table-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .live-table-thumb { height: 108px; }
}
