/* GuruTips.online — teal / gold / black */
:root {
  --bg-deep: #061211;
  --bg-base: #0a1919;
  --bg-panel: #0d2220;
  --bg-card: #102826;
  --bg-card-hover: #163330;
  --bg-input: #0b1c1a;
  --ink: #f4fffd;
  --ink-soft: #c5e8e4;
  --muted: #7aa8a3;
  --line: rgba(0, 196, 180, 0.12);
  --line-strong: rgba(0, 196, 180, 0.22);
  --accent: #00c4b4;
  --accent-dim: rgba(0, 196, 180, 0.12);
  --accent-glow: rgba(0, 196, 180, 0.4);
  --blue: #5ee8dc;
  --gold: #ffd700;
  --gold-dim: rgba(255, 215, 0, 0.16);
  --won: #00c4b4;
  --won-dim: rgba(0, 196, 180, 0.15);
  --lost: #f87171;
  --lost-dim: rgba(248, 113, 113, 0.15);
  --void: #94a3b8;
  --cashout: #ffd700;
  --open: #5ee8dc;
  --live: #ff6b8a;
  --vip: #ffd700;
  --shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.35);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1220px;
  --font: "Outfit", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  color-scheme: dark;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.12) transparent;
}
::-webkit-scrollbar {
  width: 2px;
  height: 2px;
}
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255, 215, 0, 0.14);
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255, 215, 0, 0.32); }
::selection { background: rgba(0, 196, 180, 0.28); color: var(--ink); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  z-index: 200;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--bg-deep);
  font-weight: 700;
  font-size: 0.8rem;
}
.skip-link:focus { top: 0.5rem; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  font-family: var(--font);
  line-height: 1.55;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(0, 196, 180, 0.1), transparent),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(255, 215, 0, 0.06), transparent),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-base) 40%, var(--bg-base) 100%);
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--gold); text-decoration: none; }

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  --nav-h: 96px;
  background: linear-gradient(180deg, #0b4a38 0%, #072f26 58%, #041c18 100%);
  border-bottom: 1px solid rgba(255, 215, 0, 0.42);
}
.nav-bar {
  border-bottom: none;
  background: transparent;
}
.nav-bar--top,
.nav-bar--main,
.nav-bar--links {
  background: transparent;
}
.nav-bar--top .nav-bar-inner {
  min-height: 48px;
  padding: 0.4rem 0;
  gap: 0.45rem;
  min-width: 0;
}
.nav-logo {
  min-width: 0;
  overflow: hidden;
}
.nav-side {
  flex-shrink: 0;
  gap: 0.35rem;
}
.nav-tg-label { white-space: nowrap; }
.nav-settings-ico {
  width: 18px;
  height: 18px;
  display: block;
  flex-shrink: 0;
}
.nav-settings-label { white-space: nowrap; }
.nav-bar--links .nav-bar-inner {
  min-height: 44px;
  padding: 0.2rem 0 0.4rem;
  justify-content: flex-start;
}
.nav-bar--links .main-nav {
  justify-content: flex-start;
  flex: 1;
}
.nav-bar-inner {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 44px;
  padding: 0.45rem 0;
}
.nav-bar--main .nav-bar-inner {
  min-height: 40px;
  padding: 0.35rem 0;
}
.nav-bar-left,
.nav-bar-right,
.nav-side {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}
.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: #f4fffd;
  text-decoration: none;
  font-weight: 800;
  white-space: nowrap;
}
.nav-logo:hover { color: #fff; }
.nav-logo-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.nav-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 0.14rem;
}
.nav-logo-name {
  font-size: 1.22rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  color: #f7fffc;
}
.nav-logo-name span {
  font-style: normal;
  background: linear-gradient(180deg, #ffe566 0%, #ffd700 55%, #c9a227 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}
.nav-logo-domain {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
}
.nav-tg {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.38rem 0.85rem;
  border: none;
  border-radius: 999px;
  background: #229ed9;
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.7);
  animation: tg-blink 1.35s ease-in-out infinite;
}
.nav-tg svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.nav-tg:hover {
  color: #fff;
  background: #1c8fc8;
}

.share-bar {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  flex-shrink: 0;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  color: #fff;
  text-decoration: none;
  flex-shrink: 0;
}
.share-btn svg { width: 0.95rem; height: 0.95rem; display: block; }
.share-wa { background: #25d366; }
.share-tg { background: #229ed9; }
.share-fb { background: #1877f2; }
.share-btn:hover { color: #fff; filter: brightness(1.12); }
.share-bar--sm .share-btn { width: 1.65rem; height: 1.65rem; }
.share-bar--sm .share-btn svg { width: 0.85rem; height: 0.85rem; }
@keyframes tg-blink {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(34, 158, 217, 0.15);
    filter: brightness(1);
  }
  50% {
    box-shadow: 0 0 16px 4px rgba(34, 158, 217, 0.85);
    filter: brightness(1.18);
  }
}
@media (prefers-reduced-motion: reduce) {
  .nav-tg { animation: none; }
}
.nav-settings-wrap {
  position: relative;
}
.nav-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(244, 255, 253, 0.22);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d7ebe7;
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.nav-settings:hover,
.nav-settings[aria-expanded="true"] {
  color: #fff;
  border-color: rgba(244, 255, 253, 0.4);
  background: rgba(255, 255, 255, 0.12);
}
.nav-settings-menu {
  position: absolute;
  top: calc(100% + 0.45rem);
  left: 0;
  z-index: 120;
  min-width: 11rem;
  padding: 0.5rem;
  border-radius: var(--radius-sm);
  background: #0e2a27;
  border: 1px solid rgba(0, 196, 180, 0.25);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}
.nav-settings-menu[hidden] { display: none; }
.nav-settings-title {
  margin: 0 0 0.35rem;
  padding: 0.25rem 0.5rem;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.nav-settings-opt {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: var(--ink-soft);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
}
.nav-settings-opt:hover { background: rgba(0, 0, 0, 0.2); color: var(--ink); }
.nav-settings-opt.active {
  color: var(--bg-deep);
  background: var(--accent);
}
.nav-bar-right a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  white-space: nowrap;
  transition: color 0.15s;
}
.nav-bar-right a:hover { color: var(--accent); }
.nav-divider {
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.75rem;
  user-select: none;
}
.nav-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  text-decoration: none;
}
.nav-stat-label {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}
.nav-stat-value {
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--accent);
}
.main-nav {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.55rem;
  flex: 1;
  min-width: 0;
  overflow-x: auto;
  padding: 0.2rem 0.45rem;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a {
  padding: 0.35rem 0.6rem;
  color: #d7ebe7;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.main-nav a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}
.main-nav a.active:hover {
  color: #041c18;
  background: transparent;
}
.main-nav a.active {
  color: #041c18;
  background: transparent;
  box-shadow: none;
  font-weight: 800;
  position: relative;
  z-index: 1;
  padding: 0.42rem 0.95rem;
}
.nav-side {
  flex-shrink: 0;
  gap: 0.85rem;
}
.nav-hot {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  white-space: nowrap;
  padding-top: 0.35rem;
}
.nav-hot:hover { color: var(--accent); }
.nav-hot-badge {
  position: absolute;
  top: -0.15rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.05rem 0.3rem;
  border-radius: 3px;
  background: var(--gold);
  color: #1a1200;
  font-size: 0.55rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1.3;
}
.nav-tz {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.55);
  white-space: nowrap;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img, .brand-logo {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 1.15rem; }
.brand-name span, .brand-name em {
  font-style: normal;
  background: linear-gradient(180deg, #ffe566 0%, #ffd700 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-tag {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.menu-toggle {
  display: none;
  border: 1px solid rgba(244, 255, 253, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #f4fffd;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.6rem;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}

/* ── Layout ── */
.page, .wrap {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  padding: 1.25rem 0 3rem;
  flex: 1;
}

main.page, main.wrap {
  flex: 1;
}

/* ── Hero ── */
.hero {
  padding: 2rem 0 1.5rem;
  position: relative;
}
.hero::before {
  content: "";
  position: absolute;
  inset: -2rem -1rem auto;
  height: 280px;
  background: radial-gradient(ellipse at 30% 50%, var(--accent-dim), transparent 70%);
  pointer-events: none;
  z-index: -1;
}
.hero h1 {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.04em;
  margin: 0.4rem 0 0.85rem;
  max-width: 14ch;
  background: linear-gradient(180deg, #fff 30%, var(--ink-soft));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 1.5rem;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin: 0;
}
.eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

/* ── Buttons ── */
.cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  background: linear-gradient(135deg, var(--accent), #009e92);
  color: var(--bg-deep);
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.9rem;
  cursor: pointer;
  text-decoration: none;
  box-shadow: 0 4px 20px var(--accent-glow);
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 8px 28px var(--accent-glow);
  color: var(--bg-deep);
}
.btn.is-loading {
  pointer-events: none;
  opacity: 0.88;
  transform: none;
}
.btn-spin {
  width: 0.95rem;
  height: 0.95rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin 0.7s linear infinite;
  flex-shrink: 0;
}
@keyframes btn-spin { to { transform: rotate(360deg); } }
.slip-loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  min-height: 9rem;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}
.slip-loader .btn-spin {
  width: 1.55rem;
  height: 1.55rem;
  border-color: var(--accent);
  border-right-color: transparent;
}
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}
.btn.secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
  box-shadow: none;
}
.btn.ghost {
  background: var(--bg-card);
  color: var(--ink-soft);
  border: 1px solid var(--line);
  box-shadow: none;
  font-size: 0.85rem;
  padding: 0.55rem 1rem;
}
.btn.ghost:hover {
  background: var(--bg-card-hover);
  color: var(--accent);
  border-color: rgba(0, 196, 180, 0.3);
}

/* ── Stats / pulse ── */
.pulse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.75rem;
  margin: 1.25rem 0;
}
.pulse-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  position: relative;
  overflow: hidden;
}
.pulse-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
  opacity: 0.6;
}
.pulse-card .label {
  font-size: 0.68rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.pulse-card .value {
  font-family: var(--mono);
  font-size: 1.45rem;
  font-weight: 600;
  margin-top: 0.25rem;
  color: var(--ink);
}

/* ── Filters bar ── */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.filters label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.filters input,
.filters select,
.search-input,
.field {
  font: inherit;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-input);
  color: var(--ink);
  min-width: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.filters input:focus,
.filters select:focus,
.search-input:focus {
  outline: none;
  border-color: rgba(0, 196, 180, 0.5);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.filters .grow { flex: 1 1 160px; }

/* ── Tabs ── */
.tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
  padding: 0.25rem;
  background: var(--bg-panel);
  border-radius: 999px;
  border: 1px solid var(--line);
  width: fit-content;
  max-width: 100%;
}
.tabs button {
  border: none;
  background: transparent;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
  transition: all 0.15s;
}
.tabs button:hover { color: var(--ink-soft); }
.tabs button.active {
  background: var(--bg-card);
  color: var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* ── Bet cards (sportsbook slip style) ── */
.bet-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
}

.bet-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 200px;
  gap: 0;
  padding: 0;
  background: linear-gradient(145deg, #151f30 0%, #111827 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  overflow: hidden;
  position: relative;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  box-shadow: var(--shadow-card);
}
.bet-card:hover {
  border-color: rgba(0, 196, 180, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(0, 196, 180, 0.12);
}
.bet-card-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent);
}
.bet-card--vip .bet-card-accent { background: linear-gradient(180deg, var(--gold), #e6a020); }
.bet-card--won .bet-card-accent { background: var(--won); }
.bet-card--lost .bet-card-accent { background: var(--lost); }
.bet-card--live .bet-card-accent {
  background: linear-gradient(180deg, var(--live), #ff4757);
  box-shadow: 0 0 12px rgba(251, 113, 133, 0.5);
}
.bet-card-main {
  padding: 0.85rem 1rem 0.85rem 1.1rem;
  min-width: 0;
}
.bet-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.bet-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.slip-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(0, 0, 0, 0.2);
}
.slip-chip--type { color: var(--ink); border-color: var(--line-strong); }
.slip-chip--live {
  color: #fff;
  background: rgba(251, 113, 133, 0.25);
  border-color: rgba(251, 113, 133, 0.5);
}
.slip-chip--vip {
  color: #1a1200;
  background: var(--gold);
  border-color: var(--gold);
}
.slip-chip--status { color: var(--accent); border-color: rgba(0, 196, 180, 0.35); }
.bet-card-odds {
  flex-shrink: 0;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  background: rgba(0, 196, 180, 0.1);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
}
.bet-card-legs {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.slip-leg {
  padding: 0.5rem 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.04);
}
.slip-leg-top {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.2rem;
}
.slip-leg-live {
  font-size: 0.58rem;
  font-weight: 800;
  color: #fff;
  background: var(--live);
  padding: 0.1rem 0.3rem;
  border-radius: 3px;
  letter-spacing: 0.05em;
}
.slip-leg-fixture {
  font-size: 0.75rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.slip-leg-pick {
  font-size: 0.9rem;
  line-height: 1.35;
}
.slip-leg-pick strong { color: var(--ink); }
.slip-leg-market {
  display: block;
  margin-top: 0.1rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.slip-leg-odds {
  margin-top: 0.25rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
}
.slip-leg-more {
  font-size: 0.75rem;
  color: var(--muted);
  padding: 0.25rem 0.5rem;
}
.bet-card-foot {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.6rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
  font-size: 0.72rem;
  color: var(--muted);
}
.bet-card-user { color: var(--ink-soft); }
.bet-card-stake {
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 200px;
  min-width: 200px;
  padding: 0.85rem 1rem;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.5) 100%);
  border-left: 1px solid var(--line);
  text-align: right;
}
.bet-card-stake-label,
.bet-card-win-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}
.bet-card-stake-value {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink);
  margin-top: 0.1rem;
  line-height: 1.2;
}
.bet-card-stake-value--big {
  color: var(--gold);
  text-shadow: 0 0 20px rgba(255, 200, 87, 0.25);
}
.bet-card-stake-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.bet-card-win {
  margin-top: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.bet-card-win-value {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--won);
  margin-top: 0.1rem;
}
.bet-card-win-value .profit {
  display: block;
  font-size: 0.68rem;
  color: var(--muted);
  font-weight: 500;
  margin-top: 0.1rem;
}
.bet-card-win-sub {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.1rem;
}

/* Legacy stake-panel aliases */
.bet-card .stake-panel,
.bet-card .stake-amount,
.bet-card .stake-meta,
.bet-card .possible-win,
.bet-card .possible-win-ksh { display: none; }
.bet-card-body,
.bet-card-tags,
.bet-card-pick { display: none; }

/* Legacy .stake class support */
.bet-card .stake {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 140px;
  padding: 0.9rem 1.1rem;
  background: rgba(0, 0, 0, 0.25);
  border-left: 1px solid var(--line);
  text-align: right;
  font-family: var(--mono);
  font-weight: 700;
  font-size: 1.2rem;
}
.bet-card .stake small {
  display: block;
  font-weight: 400;
  font-family: var(--font);
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 0.15rem;
}

/* ── Badges ── */
.badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(96, 165, 250, 0.15);
  color: var(--open);
  border: 1px solid rgba(96, 165, 250, 0.25);
}
.badge-won, .badge-win {
  background: var(--won-dim);
  color: var(--won);
  border-color: rgba(52, 211, 153, 0.3);
}
.badge-lost, .badge-loss {
  background: var(--lost-dim);
  color: var(--lost);
  border-color: rgba(248, 113, 113, 0.3);
}
.badge-void {
  background: rgba(148, 163, 184, 0.12);
  color: var(--void);
  border-color: rgba(148, 163, 184, 0.25);
}
.badge-cashout {
  background: rgba(251, 191, 36, 0.12);
  color: var(--cashout);
  border-color: rgba(251, 191, 36, 0.3);
}
.badge-open, .badge-pending, .badge-active, .badge-confirmed, .badge-accepted {
  background: rgba(96, 165, 250, 0.12);
  color: var(--open);
  border-color: rgba(96, 165, 250, 0.25);
}
.badge-live {
  background: rgba(251, 113, 133, 0.15);
  color: var(--live);
  border-color: rgba(251, 113, 133, 0.35);
  animation: liveGlow 2s ease-in-out infinite;
}
@keyframes liveGlow {
  50% { box-shadow: 0 0 12px rgba(251, 113, 133, 0.4); }
}
.badge-highroller {
  background: var(--gold-dim);
  color: var(--gold);
  border-color: rgba(255, 200, 87, 0.35);
}
.badge-multi, .badge-single {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink-soft);
  border-color: var(--line);
}
.badge-live.badge { /* live pill in titles */ }

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--live);
  vertical-align: middle;
}
.live-pill::before {
  content: "";
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  50% { opacity: 0.5; transform: scale(0.85); }
}

/* ── Tables ── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.data-table th {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  background: var(--bg-panel);
}
.data-table tbody tr {
  transition: background 0.12s;
}
.data-table tbody tr:hover {
  background: rgba(255, 255, 255, 0.02);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table .num {
  font-family: var(--mono);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* ── Stat cards ── */
.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
}
.stat-row > div,
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
}
.stat-row .label,
.stat-card .label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.stat-row .mono,
.stat-card .mono {
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 600;
  margin-top: 0.2rem;
}
.possible-win { color: var(--won) !important; }

.section-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 2rem 0 0.85rem;
  color: var(--ink);
}

.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }

/* ── Opposing markets ── */
.opp-grid { display: grid; gap: 0.65rem; }
.opp-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.opp-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.6rem;
}
.bar-track {
  height: 8px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  overflow: hidden;
}
.bar-fill-a { height: 100%; background: linear-gradient(90deg, var(--accent), #009e92); border-radius: 999px; }
.bar-fill-b { height: 100%; background: linear-gradient(90deg, var(--gold), #e6c200); border-radius: 999px; margin-left: auto; }

/* ── Modal ── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 15, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.modal-backdrop.open { display: flex; }
.modal {
  width: min(100%, 720px);
  max-height: min(90vh, 900px);
  overflow: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem 1.5rem;
}
.modal header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: start;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}
.modal h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}
.icon-btn {
  border: 1px solid var(--line);
  background: var(--bg-card);
  color: var(--muted);
  font-size: 1.25rem;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  line-height: 1;
  transition: color 0.15s, border-color 0.15s;
}
.icon-btn:hover { color: var(--ink); border-color: var(--line-strong); }

/* ── Footer ── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid rgba(0, 196, 180, 0.08);
  background: #010606;
  color: var(--muted);
  font-size: 0.78rem;
}
.site-footer-inner {
  width: min(100% - 1.5rem, var(--max));
  margin: 0 auto;
  padding: 1.75rem 0 1.5rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: left;
}
.footer-col h3 {
  margin: 0 0 0.55rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.footer-col a {
  display: block;
  color: var(--muted);
  text-decoration: none;
  padding: 0.18rem 0;
  font-weight: 600;
}
.footer-col a:hover { color: var(--accent); }
.site-footer .footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-weight: 800;
  color: var(--ink);
  text-decoration: none;
  margin-bottom: 0.35rem;
}
.site-footer .footer-brand img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
}
.footer-dot {
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.04em;
}
.footer-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--accent);
  margin: 0 0 0.45rem;
}
.footer-blurb {
  margin: 0;
  line-height: 1.5;
  max-width: 34ch;
}
.footer-disclaimer {
  margin: 0 0 0.5rem;
  line-height: 1.55;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  text-align: center;
}
.footer-disclaimer strong { color: var(--ink-soft); }
.site-footer .footer-copy {
  margin: 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.4);
  text-align: center;
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
}
.legal-page {
  max-width: 44rem;
}
.legal-page h1 {
  margin: 0.35rem 0 1rem;
  font-size: 1.75rem;
}
.legal-page h2 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.05rem;
}
.legal-page p, .legal-page li {
  color: var(--ink-soft);
  line-height: 1.65;
}
.legal-page ul { padding-left: 1.15rem; }
.not-found {
  text-align: center;
  padding: 4rem 0 5rem;
}
.not-found h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0.35rem 0 0.75rem;
}
.home-hero .lead {
  max-width: 42ch;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.home-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-bottom: 1.15rem;
}
.home-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.85rem;
  margin: -0.35rem 0 1.1rem;
  font-size: 0.72rem;
  color: var(--muted);
}
.home-trust span { color: var(--ink-soft); font-weight: 600; }
.tg-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(0, 196, 180, 0.22);
  background: linear-gradient(90deg, rgba(0, 196, 180, 0.12), rgba(255, 215, 0, 0.08));
}
.tg-banner p { margin: 0; color: var(--ink-soft); }
.tg-banner strong { color: var(--ink); }
.fineprint {
  margin-top: 2rem;
  font-size: 0.78rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

/* ── Page hero strip (board etc) ── */
.page-hero {
  padding: 1.25rem 0 0.5rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
}
.page-hero h1 {
  margin: 0.35rem 0 0.25rem;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-hero .sub { color: var(--muted); font-size: 0.9rem; margin: 0; }

/* ── Mobile ── */
/* ── Sport bar (LiveScore-style) ── */
.sport-bar-wrap {
  position: sticky;
  top: var(--nav-h, 88px);
  z-index: 90;
  background: var(--bg-panel);
  border-bottom: 1px solid var(--line);
  margin: 0;
  padding: 0 clamp(0.5rem, 2vw, 1rem);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}
.sport-bar-scroll {
  display: flex;
  gap: 0.12rem;
  overflow-x: auto;
  padding: 0.28rem 0;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.sport-bar-scroll::-webkit-scrollbar { display: none; }
.sport-tab {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.06rem;
  min-width: 3.1rem;
  padding: 0.22rem 0.38rem 0.28rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.58rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  transition: color 0.15s, background 0.15s;
}
.sport-tab:hover {
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.04);
}
.sport-tab.active {
  color: var(--accent);
  background: var(--accent-dim);
}
.sport-tab.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: var(--accent);
  border-radius: 3px 3px 0 0;
}
.sport-tab .sport-icon { font-size: 0.95rem; line-height: 1; }
.sport-tab .sport-label {
  line-height: 1.15;
  max-width: 5.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sport-tab .sport-count {
  font-family: var(--mono);
  font-size: 0.5rem;
  opacity: 0.75;
}

/* LiveScore-style fixture rows */
.fixture-feed { display: flex; flex-direction: column; gap: 0.5rem; }
.fixture-group-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.75rem 0 0.25rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 0.25rem;
}
.fixture-row {
  display: grid;
  grid-template-columns: 3.5rem 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  transition: border-color 0.15s, background 0.15s;
}
.fixture-row:hover {
  border-color: rgba(0, 196, 180, 0.3);
  background: var(--bg-card-hover);
}
.fixture-row .fx-time {
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  text-align: center;
  line-height: 1.3;
}
.fixture-row .fx-time .fx-date {
  display: block;
  font-size: 0.62rem;
  color: var(--muted);
  font-weight: 500;
}
.fixture-row .fx-main { min-width: 0; }
.fixture-row .fx-name {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-decoration: none;
}
.fixture-row .fx-name:hover { color: var(--accent); }
.fixture-row .fx-league {
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.fixture-row .fx-side {
  text-align: right;
  flex-shrink: 0;
}
.fixture-row .fx-stake {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--gold);
}
.fixture-row .fx-bets {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
}
.fixture-row .fx-actions {
  display: flex;
  gap: 0.35rem;
  margin-top: 0.4rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.fixture-row .fx-actions .btn.ghost {
  padding: 0.3rem 0.55rem;
  font-size: 0.72rem;
}

@media (max-width: 600px) {
  .fixture-row {
    grid-template-columns: 3rem 1fr;
  }
  .fixture-row .fx-side {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    text-align: left;
    padding-top: 0.35rem;
    border-top: 1px solid var(--line);
    margin-top: 0.25rem;
  }
  .sport-bar-wrap { top: var(--nav-h, 88px); }
}

@media (max-width: 760px) {
  .site-header { --nav-h: 56px; }
  .menu-toggle { display: inline-flex; }
  .nav-bar--links .nav-bar-inner { padding: 0; min-height: 0; }
  .nav-bar-right .nav-divider,
  .nav-bar-right a:not(.nav-stat) {
    display: none;
  }
  .main-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: #072f26;
    padding: 0.75rem;
    z-index: 110;
  }
  .main-nav.open { display: flex; }
  .main-nav a {
    border-radius: 0;
    padding: 0.55rem 1rem;
  }
  .main-nav a.active::before {
    transform: skewX(-12deg);
  }
  .nav-side {
    margin-left: auto;
    flex-shrink: 0;
    gap: 0.3rem;
  }
  .nav-bar-inner {
    flex-wrap: nowrap;
  }
  .nav-tg-label,
  .nav-settings-label {
    display: none;
  }
  .nav-tg {
    width: 36px;
    height: 36px;
    padding: 0;
    justify-content: center;
  }
  .nav-settings {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
  }
  .nav-logo-mark { width: 34px; height: 34px; }
  .nav-logo-name { font-size: 1.02rem; }
  .bet-card {
    grid-template-columns: 1fr;
  }
  .bet-card-stake,
  .bet-card .stake-panel,
  .bet-card .stake {
    width: 100%;
    min-width: 0;
    border-left: none;
    border-top: 1px solid var(--line);
    text-align: left;
  }
  .brand-tag { display: none; }
}

/* ── Analytics ── */
.analytics-page .page-hero h1 {
  margin: 0.25rem 0 0.35rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.analytics-section {
  margin-bottom: 2rem;
}
.analytics-heading {
  margin: 0 0 0.85rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.analytics-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.analytics-panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
}
.table-scroll {
  overflow-x: auto;
}
.market-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  gap: 0.75rem;
  align-items: end;
  margin-bottom: 0.5rem;
}
.podium-card {
  position: relative;
  padding: 1rem 0.85rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #151f30 0%, #111827 100%);
  text-align: center;
  min-height: 140px;
}
.podium-card--1 {
  min-height: 180px;
  border-color: rgba(255, 200, 87, 0.45);
  background: linear-gradient(180deg, rgba(255, 200, 87, 0.12) 0%, #151f30 55%);
  box-shadow: 0 8px 32px rgba(255, 200, 87, 0.12);
}
.podium-card--2 { border-color: rgba(0, 196, 180, 0.25); }
.podium-card--3 { border-color: rgba(255, 215, 0, 0.25); }
.podium-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.5rem;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 800;
  background: rgba(0, 0, 0, 0.35);
  color: var(--ink);
}
.podium-card--1 .podium-rank {
  background: var(--gold);
  color: #1a1200;
}
.podium-market {
  margin: 0 0 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  min-height: 2.4em;
}
.podium-stake {
  font-family: var(--mono);
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--accent);
}
.podium-card--1 .podium-stake {
  font-size: 1.2rem;
  color: var(--gold);
}
.podium-meta {
  margin-top: 0.35rem;
  font-size: 0.68rem;
  color: var(--muted);
}
.podium-bar {
  height: 4px;
  margin-top: 0.55rem;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.podium-bar span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--accent), var(--blue));
}
.podium-card--1 .podium-bar span {
  background: linear-gradient(90deg, var(--gold), #ffb347);
}
.market-rank-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.market-rank-row {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.65rem 0.85rem;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.market-rank-num {
  font-family: var(--mono);
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--muted);
  text-align: center;
}
.market-rank-row:nth-child(1) .market-rank-num { color: var(--gold); }
.market-rank-row:nth-child(2) .market-rank-num { color: var(--accent); }
.market-rank-row:nth-child(3) .market-rank-num { color: var(--blue); }
.market-rank-name {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink);
}
.market-rank-bar {
  height: 3px;
  margin: 0.35rem 0 0.2rem;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.market-rank-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 3px;
}
.market-rank-meta {
  font-size: 0.68rem;
  color: var(--muted);
}
.market-rank-stake {
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--gold);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .market-podium {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
  .podium-card--1 { order: -1; min-height: 160px; }
  .analytics-grid { grid-template-columns: 1fr; }
  .market-rank-row {
    grid-template-columns: 1.5rem 1fr;
  }
  .market-rank-stake {
    grid-column: 2;
    text-align: left;
    margin-top: 0.15rem;
  }
}

/* ── Home split layout ── */
.home-page { padding-top: 0.5rem; }
.home-hero h1 {
  margin: 0.25rem 0 0.75rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}
.home-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  margin-bottom: 1.25rem;
}
.home-stat {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}
.home-stat .num {
  font-family: var(--mono);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
}
.home-stat .lbl {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.home-split {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(320px, 1.1fr);
  gap: 1rem;
  align-items: start;
  min-height: 70vh;
}
.home-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.home-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.home-panel-head h2 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.home-panel-scroll {
  flex: none;
  overflow-y: auto;
  padding: 0.65rem;
}
.home-feed .bet-card {
  margin-bottom: 0.5rem;
  height: auto;
  max-height: none;
  overflow: visible;
  cursor: pointer;
}
.home-feed .bet-card--home .bet-card-main {
  padding: 0.45rem 0.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  min-width: 0;
}
.home-feed .home-slip-type {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 0.35rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: var(--accent);
  border-right: 1px solid var(--line);
  background: rgba(0, 196, 180, 0.06);
}
.home-feed .bet-card--multi .home-slip-type {
  color: var(--blue);
  background: rgba(255, 215, 0, 0.08);
}
.home-feed .home-slip-fixture {
  font-weight: 700;
  font-size: 0.78rem;
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-feed .home-slip-market {
  font-size: 0.68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-feed .home-slip-pick {
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  min-width: 0;
}
.home-feed .home-slip-pick strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.home-feed .home-slip-odds {
  flex-shrink: 0;
  color: var(--accent);
  font-size: 0.68rem;
}
.home-feed .home-slip-more {
  font-size: 0.65rem;
}
.home-feed .home-slip-stake {
  padding: 0.4rem 0.45rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.15);
}
.home-feed .home-slip-stake .bet-card-stake-label {
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 0.1rem;
}
.home-feed .home-slip-stake .bet-card-stake-value {
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.2;
}
.home-feed .home-slip-stake .bet-card-stake-sub {
  font-size: 0.62rem;
  color: var(--muted);
  margin-top: 0.1rem;
}
.home-feed .bet-card-header,
.home-feed .bet-card-legs,
.home-feed .bet-card-foot,
.home-feed .bet-card-chips,
.home-feed .bet-card-odds,
.home-feed .bet-card-win {
  display: none;
}
.top-placed-table-wrap {
  margin: -0.15rem -0.35rem 0;
  overflow-x: auto;
}
.top-placed-table {
  font-size: 0.78rem;
}
.top-placed-table th {
  font-size: 0.65rem;
  white-space: nowrap;
}
.top-placed-table th:nth-child(3),
.top-placed-table th:nth-child(4) {
  text-align: right;
}
.top-placed-fixture-cell a {
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.top-placed-fixture-cell a:hover {
  color: var(--accent);
}
.top-placed-market-line {
  font-size: 0.68rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.3;
}
.top-placed-pick strong {
  color: var(--ink);
}
.top-placed-stake-cell {
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
  font-size: 0.72rem;
}
.home-panel-toolbar {
  padding: 0.55rem 0.65rem 0;
  border-bottom: 1px solid var(--line);
}
.home-search-wrap {
  position: relative;
  display: block;
}
.home-search-wrap input {
  width: 100%;
  padding: 0.55rem 0.7rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.25);
  color: var(--ink);
  font: inherit;
}
.home-search-wrap input:focus {
  outline: none;
  border-color: rgba(0, 196, 180, 0.45);
}
.home-suggest {
  position: absolute;
  z-index: 30;
  left: 0;
  right: 0;
  top: calc(100% + 0.25rem);
  max-height: 280px;
  overflow-y: auto;
  background: #121a28;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
}
.home-suggest-item {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.home-suggest-item:hover,
.home-suggest-item:focus {
  background: rgba(0, 196, 180, 0.08);
  outline: none;
}
.home-suggest-name {
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.3;
}
.home-suggest-meta {
  font-size: 0.68rem;
}
.home-suggest-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.68rem;
  color: var(--muted);
}
.home-suggest-empty {
  padding: 0.65rem;
  margin: 0;
}
.home-event-result {
  margin-bottom: 0.75rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  background: rgba(0, 196, 180, 0.06);
  border: 1px solid rgba(0, 196, 180, 0.2);
}
.home-event-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}
.home-event-title {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.3;
}
.home-event-sub {
  margin: 0.2rem 0 0;
  font-size: 0.72rem;
}
.home-event-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.65rem;
}
.home-event-stats .lbl {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
}
.home-event-stats .val {
  font-size: 0.82rem;
  font-weight: 700;
}
.home-event-markets {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}
.home-event-market {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  padding: 0.35rem 0.45rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.2);
}
.home-event-market-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.home-event-market-side {
  flex-shrink: 0;
  color: var(--gold);
  font-weight: 700;
}
.home-panel-head .muted {
  font-size: 0.68rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (max-width: 900px) {
  .home-split {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .home-panel-scroll {
    max-height: 50vh;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 760px) {
  .home-feed .bet-card,
  .home-feed .bet-card--home {
    grid-template-columns: 3.4rem minmax(0, 1fr) 88px;
    height: 100px;
    max-height: 100px;
  }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ── Single nav + bookie slips ── */
.main-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.95rem;
  padding: 0.38rem 0.7rem;
  position: relative;
  z-index: 0;
  border-radius: 0;
}
.main-nav a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: 0.9;
}
.main-nav a.active {
  color: #041c18;
  padding: 0.42rem 0.95rem;
  font-weight: 800;
}
.main-nav a.active svg { opacity: 1; color: #041c18; }
.main-nav a.active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #ffe566 0%, #ffd700 48%, #c9a227 100%);
  transform: skewX(-16deg);
  box-shadow: 0 2px 0 #8a6a0a, 0 0 12px rgba(255, 215, 0, 0.28);
}
.nav-settings {
  width: auto;
  height: auto;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.35rem;
  color: #d7ebe7;
  border-color: rgba(244, 255, 253, 0.22);
}
.nav-settings-wrap { margin-left: 0.15rem; }
.nav-settings-menu {
  left: auto;
  right: 0;
}
@media (max-width: 760px) {
  .nav-tg-label,
  .nav-settings-label { display: none; }
  .nav-tg {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
  }
  .nav-settings {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    border-radius: 50%;
  }
  .menu-toggle {
    width: 36px;
    height: 36px;
    min-width: 36px;
    padding: 0;
    justify-content: center;
    align-items: center;
  }
}
@media (max-width: 380px) {
  .nav-logo-domain { display: none; }
}
.nav-settings-menu--wide {
  min-width: 16.5rem;
  max-height: 72vh;
  overflow: auto;
}
.nav-settings-menu select {
  width: 100%;
  margin-bottom: 0.65rem;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: #050b0b;
  color: var(--ink);
  font: inherit;
}
.nav-currency-grid {
  display: flex;
  flex-direction: column;
  max-height: 240px;
  overflow-y: auto;
}
.nav-logo img,
.nav-logo svg {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}
}

.slip-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
  margin-inline: auto;
}
.ticket-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  width: 100%;
}
@media (min-width: 768px) {
  .slip-list {
    width: 58.333333%;
  }
}
.slip + .slip {
  margin-top: 3px;
}
.slip {
  width: 100%;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  flex-shrink: 0;
  height: auto;
  max-height: none;
}
.slip:hover { border-color: rgba(0, 196, 180, 0.28); }
.slip--won { border-left: 3px solid var(--won); border-color: rgba(0, 196, 180, 0.4); }
.slip-head,
.slip-body { position: relative; z-index: 1; }
.slip-stamp {
  position: absolute;
  left: 50%;
  top: 58%;
  z-index: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem 0.4rem 0.45rem;
  border: 2px solid rgba(180, 236, 228, 0.16);
  border-radius: 999px;
  color: rgba(180, 236, 228, 0.2);
  background: transparent;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  transform: translate(-50%, -50%) rotate(-18deg);
  pointer-events: none;
  box-shadow: none;
  white-space: nowrap;
}
.slip-stamp-tick {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.45rem;
  height: 1.45rem;
  border: 2px solid currentColor;
  border-radius: 50%;
  flex-shrink: 0;
}
.slip-stamp-tick svg {
  width: 0.95rem;
  height: 0.95rem;
  display: block;
}
.slip-stamp-text { white-space: nowrap; }
.slip--lost { border-left: 3px solid var(--lost); }
.slip--live { border-left: 3px solid var(--live); }
.slip--vip { border-color: rgba(255, 200, 87, 0.35); }
.slip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.65rem;
  padding: 0.35rem 0.55rem;
  background: rgba(0, 0, 0, 0.22);
  font-size: 0.72rem;
  border-bottom: 1px solid var(--line);
}
.slip-type {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.62rem;
}
.slip-count { color: var(--muted); }
.slip-ko {
  display: inline-flex;
  align-items: baseline;
  gap: 0.28rem;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  background: rgba(255, 215, 0, 0.08);
  color: var(--gold);
  font-weight: 700;
  font-size: 0.68rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.slip-ko em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 0.58rem;
}
.slip-ko b { font-family: var(--mono); font-size: 0.72rem; }
.slip-odds {
  margin-left: auto;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.slip-stake, .slip-win { white-space: nowrap; }
.slip-stake em, .slip-win em { font-style: normal; color: var(--muted); margin-right: 0.2rem; }
.slip-win b { color: var(--gold); }
.slip-body { display: flex; flex-direction: column; }
.slip-leg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.2rem 0.75rem;
  align-items: center;
  padding: 0.35rem 0.55rem;
  font-size: 0.78rem;
  border-top: 1px solid rgba(255,255,255,0.04);
}
.slip-leg-info { min-width: 0; }
.slip-leg-top {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-width: 0;
}
.slip-leg .slip-pick { display: block; }
.slip-fx { color: var(--ink); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.slip-mkt, .slip-pick { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-soft); }
.slip-odd {
  text-align: right;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
  min-width: 5.2rem;
  padding: 0.18rem 0.42rem;
  border-radius: 4px;
  background: rgba(255, 215, 0, 0.1);
}
.slip--full .slip-odd { font-size: 0.86rem; }
.slip-odd em,
.slip-odds em,
.sm-odds em,
.sm-leg-odd em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.62rem;
  margin-right: 0.2rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.sm-leg-odd {
  display: inline-block;
  margin-left: 0.35rem;
  color: var(--gold);
  font-weight: 800;
}
.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.home-block h2 { margin: 0 0 0.4rem; font-size: 0.85rem; }
.home-stream { margin: 1rem 0; }
.home-stream h2 { margin: 0 0 0.45rem; font-size: 0.85rem; }
.match-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem 8.5rem;
  gap: 0.5rem;
  padding: 0.4rem 0.5rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.78rem;
  text-decoration: none;
  color: inherit;
}
.match-row:hover { background: rgba(255,255,255,0.03); }
.match-row b { color: var(--ink); }
.pager {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  align-items: center;
  width: 100%;
  margin: 1rem auto 0;
}
.pager-num {
  min-width: 2.15rem;
  height: 2.15rem;
  padding: 0 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.22);
  color: var(--ink-soft);
  font: inherit;
  font-weight: 700;
  font-size: 0.8rem;
  cursor: pointer;
}
.pager-num:hover {
  color: #fff;
  border-color: rgba(0, 196, 180, 0.45);
}
.pager-num.active {
  background: var(--accent);
  color: #041c18;
  border-color: var(--accent);
}
.sport-checks { display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; font-size: 0.75rem; }
.sport-checks label { display: inline-flex; gap: 0.25rem; align-items: center; }
.filters { padding: 0.65rem; gap: 0.45rem; }
.filters label { font-size: 0.72rem; }
.page, .wrap { padding: 0.75rem 0 2rem; }
.page-hero { padding: 0.6rem 0 0.35rem; margin-bottom: 0.75rem; }
.page-hero h1 { font-size: 1.25rem; }

@media (max-width: 900px) {
  .home-grid { grid-template-columns: 1fr; }
  .slip-leg { grid-template-columns: minmax(0, 1fr) auto; }
  .slip-odd, .slip-leg .badge { justify-self: end; }
  .event-split { grid-template-columns: 1fr; }
  .home-panel-scroll { height: 340px; }
}

/* compact tickets — do not flex-shrink slips inside the panel */
.ticket-list > .ticket,
.ticket-list > .slip {
  flex-shrink: 0;
}
.ticket {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  font-size: 0.72rem;
}
.ticket:hover { border-color: rgba(0, 196, 180, 0.3); }
.ticket--won { border-left: 3px solid var(--won); }
.ticket--lost { border-left: 3px solid var(--lost); }
.ticket--live { border-left: 3px solid var(--live); }
.ticket--vip { border-color: rgba(255, 200, 87, 0.4); }
.ticket-top {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.5rem;
  background: rgba(0,0,0,0.22);
}
.ticket-type {
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.6rem;
}
.ticket-live { color: var(--live); font-weight: 800; font-size: 0.58rem; }
.ticket-vip { color: var(--gold); font-weight: 800; font-size: 0.58rem; }
.ticket-odds {
  margin-left: auto;
  font-weight: 800;
  color: var(--gold);
  white-space: nowrap;
  flex-shrink: 0;
}
.ticket-body { padding: 0.28rem 0.5rem 0.15rem; }
.ticket-leg { padding: 0.18rem 0; border-top: 1px solid rgba(255,255,255,0.04); }
.ticket-leg:first-child { border-top: 0; }
.ticket-leg-top { display: flex; gap: 0.4rem; align-items: baseline; justify-content: space-between; }
.ticket-fx { color: var(--ink); font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-score { color: var(--accent); font-weight: 800; font-size: 0.65rem; white-space: nowrap; }
.ticket-pick { color: var(--ink-soft); }
.ticket-pick .mono { color: var(--ink); }
.ticket-more { color: var(--muted); font-size: 0.65rem; padding: 0.15rem 0; }
.ticket-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.28rem 0.5rem 0.35rem;
  color: var(--muted);
}
.ticket-foot b { color: var(--ink); }
.ticket-foot span:last-child b { color: var(--gold); }

.home-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.home-panel {
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.home-panel h2, .home-panel .section-title {
  margin: 0;
  padding: 0.45rem 0.6rem;
  font-size: 0.78rem;
  border-bottom: 1px solid var(--line);
}
.home-page .home-panel-scroll {
  height: 440px;
  max-height: 440px;
  flex: none;
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0.45rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 215, 0, 0.12) transparent;
}
.home-page .home-panel-scroll > .slip,
.home-page .home-panel-scroll > .ticket {
  flex-shrink: 0;
  height: auto;
  max-height: none;
  min-height: 0;
  margin: 0;
}
.slip-score {
  color: var(--accent);
  font-weight: 800;
  font-size: 0.7rem;
  white-space: nowrap;
}
.slip-ko-when {
  display: block;
  margin-top: 0.12rem;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 600;
}
.slip-more { color: var(--muted); font-size: 0.7rem; padding: 0.2rem 0.55rem 0.35rem; }
.match-row--head {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  cursor: default;
  pointer-events: none;
  border-bottom: 1px solid var(--line);
}
.match-table .match-row--head:hover { background: transparent; }

/* event page */
.event-page .page-hero { margin-bottom: 0.5rem; }
.event-head h1 { font-size: 1.15rem; margin: 0.15rem 0 0.2rem; }
.event-result {
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
  margin: 0.15rem 0 0.25rem;
}
.event-score { font-size: 1.35rem; font-weight: 800; font-family: var(--mono); color: var(--accent); }
.event-status {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--live);
}
.event-stats { display: flex; gap: 1rem; font-size: 0.75rem; color: var(--muted); margin-top: 0.25rem; }
.event-stats b { color: var(--ink); }
.event-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  align-items: start;
}
.filters--sm {
  padding: 0.4rem 0.5rem;
  gap: 0.35rem;
  margin-bottom: 0.5rem;
}
.filters--sm label { font-size: 0.6rem; }
.filters--sm select, .filters--sm input { padding: 0.28rem 0.4rem; font-size: 0.75rem; }
.tabs--sm { padding: 0.12rem; margin-bottom: 0.5rem; gap: 0.15rem; }
.tabs--sm button { padding: 0.25rem 0.55rem; font-size: 0.7rem; }
.mkt-block {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
  margin-bottom: 0.4rem;
}
.mkt-head {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.72rem;
  margin-bottom: 0.25rem;
}
.mkt-head strong { font-size: 0.75rem; }
.mkt-sel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3.2rem 6.5rem;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.7rem;
  padding: 0.12rem 0;
}
.mkt-sel-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mkt-sel-bets, .mkt-sel-money { text-align: right; font-family: var(--mono); }
.mkt-sel-bar {
  grid-column: 1 / -1;
  height: 3px;
  background: rgba(255,255,255,0.06);
  border-radius: 99px;
  overflow: hidden;
}
.mkt-sel-bar i {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 99px;
}
.event-bets-col, .event-mkt-col { min-width: 0; }
.event-bets-col h2, .event-mkt-col h2 { font-size: 0.8rem; margin: 0 0 0.4rem; }
.data-table--sm th, .data-table--sm td { padding: 0.32rem 0.45rem; font-size: 0.72rem; }

/* slip modal — ticket / torn paper */
.modal--slip {
  width: min(100%, 400px);
  max-height: min(88vh, 720px);
  padding: 0;
  overflow: visible;
  border: none;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.sm {
  position: relative;
  display: flex;
  flex-direction: column;
  max-height: min(88vh, 720px);
  filter: drop-shadow(0 18px 36px rgba(0, 0, 0, 0.5));
}
.sm-scroll {
  position: relative;
  overflow: auto;
  background: #102826;
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-bottom: none;
  border-radius: 12px 12px 0 0;
}
.sm .slip-stamp { top: 52%; }
.sm-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.75rem 0.5rem;
  border-bottom: 1px dashed rgba(255, 215, 0, 0.22);
}
.sm-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
}
.sm-logo .nav-logo-mark {
  width: 34px;
  height: 34px;
}
.sm-logo .nav-logo-name { font-size: 1.02rem; }
.sm-logo .nav-logo-domain { font-size: 0.58rem; }
.sm-head .slip-ko { margin-top: 0.4rem; }
.sm-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 0.7rem 0.75rem 0.45rem;
  gap: 0.5rem;
}
.sm-kicker {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.sm-odds { font-size: 1.15rem; font-weight: 800; }
.sm-close { width: 28px; height: 28px; font-size: 1.05rem; flex-shrink: 0; }
.sm-money {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  padding: 0 0.75rem 0.55rem;
}
.sm-money div {
  background: rgba(0,0,0,0.25);
  border-radius: 6px;
  padding: 0.4rem 0.5rem;
}
.sm-money span { display: block; font-size: 0.62rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.sm-money b { font-size: 0.9rem; }
.sm-legs { padding: 0 0.75rem 0.5rem; }
.sm-leg {
  padding: 0.45rem 0;
  border-top: 1px solid var(--line);
}
.sm-leg-top { display: flex; justify-content: space-between; gap: 0.4rem; }
.sm-fx { color: var(--ink); font-weight: 700; font-size: 0.8rem; }
.sm-score { color: var(--accent); font-weight: 800; font-size: 0.72rem; }
.sm-pick { font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.12rem; display: flex; gap: 0.35rem; flex-wrap: wrap; }
.sm-pick strong { color: var(--ink); }
.sm-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.55rem 0.75rem 0.85rem;
}
.sm-actions .share-bar { margin: 0 auto; }
.sm-zigzag {
  flex-shrink: 0;
  height: 12px;
  margin: 0 1px 0;
  background:
    linear-gradient(135deg, #102826 50%, transparent 50%) 0 0 / 12px 12px repeat-x,
    linear-gradient(45deg, #102826 50%, transparent 50%) 6px 0 / 12px 12px repeat-x;
}

@media (max-width: 900px) {
  .home-grid,
  .event-split { grid-template-columns: 1fr; }
  .home-panel-scroll { height: 320px; }
}
.pager button:disabled { opacity: 0.4; cursor: default; }
.pager .btn { padding: 0.28rem 0.75rem; font-size: 0.72rem; }
