/* =============================================================
   BettingOnline.org — Sportsbook Pro Design System
   Navy / electric blue / white. Light + dark mode.
   ============================================================= */

/* ---------- Tokens ---------- */
:root {
  /* Brand palette */
  --navy-900: #060d1f;
  --navy-800: #0b1530;
  --navy-700: #122046;
  --navy-600: #1a2c5e;
  --navy-500: #243a78;
  --blue-600: #1e5cff;
  --blue-500: #2f72ff;
  --blue-400: #5b94ff;
  --blue-300: #8eb4ff;
  --blue-100: #dfeaff;
  --cyan-400: #22d3ee;
  --green-500: #16c784;
  --green-400: #2bd99a;
  --amber-400: #ffb02e;
  --red-500: #ef4444;
  --white: #ffffff;
  --slate-50: #f7f9fc;
  --slate-100: #eef2f7;
  --slate-200: #dde4ee;
  --slate-300: #c2cdde;
  --slate-400: #8c9bb5;
  --slate-500: #5e6c87;
  --slate-600: #404c66;
  --slate-700: #2a3550;
  --slate-800: #1a2238;
  --slate-900: #0f1729;

  /* Semantic — light mode */
  --bg: var(--white);
  --bg-alt: var(--slate-50);
  --bg-raised: var(--white);
  --bg-inverse: var(--navy-900);
  --surface: var(--white);
  --surface-2: var(--slate-50);
  --surface-3: var(--slate-100);
  --border: var(--slate-200);
  --border-strong: var(--slate-300);
  --text: var(--navy-900);
  --text-muted: var(--slate-500);
  --text-soft: var(--slate-600);
  --text-inverse: var(--white);
  --primary: var(--blue-600);
  --primary-hover: #174dd9;
  --primary-soft: var(--blue-100);
  --accent: var(--cyan-400);
  --success: var(--green-500);
  --warning: var(--amber-400);
  --danger: var(--red-500);
  --link: var(--blue-600);

  /* Effects */
  --shadow-sm: 0 1px 2px rgba(15, 23, 41, 0.06), 0 1px 3px rgba(15, 23, 41, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 41, 0.08), 0 2px 4px rgba(15, 23, 41, 0.04);
  --shadow-lg: 0 16px 40px rgba(15, 23, 41, 0.10), 0 4px 12px rgba(15, 23, 41, 0.06);
  --shadow-xl: 0 30px 80px rgba(15, 23, 41, 0.16);
  --shadow-blue: 0 12px 32px rgba(30, 92, 255, 0.30);
  --ring: 0 0 0 3px rgba(30, 92, 255, 0.30);

  /* Radii */
  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Type */
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: "Sora", "Inter", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;

  /* Layout */
  --container: 1240px;
  --container-narrow: 880px;
  --header-h: 72px;
  --gap: 24px;

  /* Motion */
  --t-fast: 120ms cubic-bezier(.4,0,.2,1);
  --t-base: 200ms cubic-bezier(.4,0,.2,1);
  --t-slow: 360ms cubic-bezier(.4,0,.2,1);
}

[data-theme="dark"] {
  --bg: var(--navy-900);
  --bg-alt: #04081a;
  --bg-raised: var(--navy-800);
  --bg-inverse: var(--white);
  --surface: var(--navy-800);
  --surface-2: var(--navy-700);
  --surface-3: var(--navy-600);
  --border: rgba(255,255,255,0.08);
  --border-strong: rgba(255,255,255,0.18);
  --text: #eef2ff;
  --text-muted: #98a3c0;
  --text-soft: #b8c2db;
  --text-inverse: var(--navy-900);
  --primary: var(--blue-500);
  --primary-hover: var(--blue-400);
  --primary-soft: rgba(47, 114, 255, 0.16);
  --link: var(--blue-400);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow-md: 0 8px 24px rgba(0,0,0,.4);
  --shadow-lg: 0 20px 50px rgba(0,0,0,.55);
  --shadow-blue: 0 12px 40px rgba(30, 92, 255, 0.4);
  --ring: 0 0 0 3px rgba(91, 148, 255, 0.5);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  transition: background-color var(--t-base), color var(--t-base);
}
img, svg, video { max-width: 100%; display: block; }
a { color: var(--link); text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--primary-hover); }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1,h2,h3,h4,h5,h6 { font-family: var(--font-display); margin: 0 0 .5em; line-height: 1.2; letter-spacing: -0.01em; color: var(--text); }
h1 { font-size: clamp(2rem, 4vw, 3.25rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 2.5vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; color: var(--text-soft); }
ul, ol { padding-left: 1.25em; }
li { margin-bottom: .35em; color: var(--text-soft); }
small { color: var(--text-muted); }
hr { border: 0; height: 1px; background: var(--border); margin: 2rem 0; }
code, pre { font-family: var(--font-mono); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
.section { padding: clamp(48px, 7vw, 96px) 0; }
.section-tight { padding: clamp(32px, 4vw, 56px) 0; }
.section-alt { background: var(--bg-alt); }
.grid { display: grid; gap: var(--gap); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.flex { display: flex; gap: 12px; }
.flex-between { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.flex-wrap { flex-wrap: wrap; }
.text-center { text-align: center; }
.muted { color: var(--text-muted); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: .8rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); padding: 6px 12px;
  background: var(--primary-soft); border-radius: var(--r-pill);
}
.lede { font-size: 1.15rem; color: var(--text-soft); max-width: 70ch; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-wrap { display: flex; align-items: center; height: var(--header-h); gap: 32px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--text); letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  display: grid; place-items: center; color: white; font-weight: 800;
  box-shadow: var(--shadow-blue);
}
.brand-mark::before {
  content: "B"; font-family: var(--font-display); font-size: 1.05rem;
}
.brand:hover { color: var(--text); }

.primary-nav { display: flex; gap: 4px; flex: 1; }
.primary-nav > a, .primary-nav > .has-mega > .nav-link {
  padding: 8px 14px; border-radius: var(--r-sm);
  color: var(--text-soft); font-weight: 600; font-size: .95rem;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background var(--t-fast), color var(--t-fast);
  background: transparent; border: 0;
}
.primary-nav > a:hover, .primary-nav > .has-mega:hover > .nav-link, .primary-nav > a.active {
  background: var(--surface-2); color: var(--text);
}
.has-mega { position: relative; }
.has-mega > .nav-link::after {
  content: ""; width: 8px; height: 8px;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px); margin-left: 4px;
  transition: transform var(--t-fast);
}
.has-mega.open > .nav-link::after, .has-mega:hover > .nav-link::after {
  transform: rotate(225deg) translateY(0);
}

.mega {
  position: absolute; top: calc(100% + 8px); left: -20px;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
  padding: 24px; min-width: 640px;
  display: none;
  z-index: 110;
}
.has-mega:hover .mega, .has-mega.open .mega { display: grid; }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 32px; }
.mega h5 { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); margin: 0 0 8px; }
.mega a {
  display: block; padding: 8px 10px; border-radius: var(--r-sm);
  color: var(--text); font-weight: 500; font-size: .92rem;
}
.mega a:hover { background: var(--surface-2); color: var(--primary); }
.mega-feature {
  grid-column: span 3; margin-top: 12px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--primary-soft), transparent);
  border: 1px solid var(--border); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 38px; height: 38px; display: inline-grid; place-items: center;
  background: transparent; border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text-soft);
  transition: background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); }
.icon-btn svg { width: 18px; height: 18px; }

.nav-toggle { display: none; }

@media (max-width: 1024px) {
  .primary-nav { display: none; }
  .nav-toggle { display: inline-grid; }
}

/* Mobile drawer */
.mobile-drawer {
  position: fixed; inset: 0; z-index: 200;
  background: color-mix(in srgb, var(--bg-inverse) 30%, transparent);
  backdrop-filter: blur(6px);
  display: none;
}
.mobile-drawer.open { display: block; }
.mobile-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: min(360px, 92vw);
  background: var(--bg-raised); padding: 24px;
  overflow-y: auto;
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column; gap: 12px;
}
.mobile-panel a { padding: 10px 12px; border-radius: var(--r-sm); color: var(--text); font-weight: 600; }
.mobile-panel a:hover { background: var(--surface-2); }
.mobile-panel details summary { padding: 10px 12px; border-radius: var(--r-sm); list-style: none; cursor: pointer; font-weight: 700; }
.mobile-panel details summary::-webkit-details-marker { display: none; }
.mobile-panel details[open] summary { background: var(--surface-2); }
.mobile-panel details a { padding-left: 24px; font-weight: 500; }

/* ---------- Search ---------- */
.search-popover {
  position: fixed; inset: 0; z-index: 300;
  background: color-mix(in srgb, var(--bg-inverse) 50%, transparent);
  backdrop-filter: blur(8px);
  display: none; padding-top: 8vh;
}
.search-popover.open { display: block; }
.search-box {
  width: min(680px, 92vw); margin: 0 auto;
  background: var(--bg-raised); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow-xl);
  overflow: hidden;
}
.search-input-wrap { display: flex; align-items: center; padding: 0 16px; border-bottom: 1px solid var(--border); }
.search-input-wrap svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.search-input {
  flex: 1; padding: 18px 14px; background: transparent; border: 0; outline: none;
  font-size: 1.05rem; color: var(--text);
}
.search-kbd { padding: 2px 8px; border: 1px solid var(--border); border-radius: 6px; font-size: .75rem; color: var(--text-muted); background: var(--surface-2); }
.search-results { max-height: 60vh; overflow-y: auto; padding: 8px; }
.search-results .result {
  display: block; padding: 12px 14px; border-radius: var(--r-sm);
  color: var(--text);
}
.search-results .result:hover, .search-results .result.active { background: var(--surface-2); }
.search-results .result .result-title { font-weight: 600; margin-bottom: 2px; }
.search-results .result .result-desc { font-size: .85rem; color: var(--text-muted); }
.search-results .empty { padding: 24px; text-align: center; color: var(--text-muted); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: var(--r-md); border: 1px solid transparent;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  transition: transform var(--t-fast), box-shadow var(--t-fast), background var(--t-fast), color var(--t-fast), border-color var(--t-fast);
  text-decoration: none; line-height: 1;
}
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary {
  background: var(--primary); color: white;
  box-shadow: var(--shadow-blue);
}
.btn-primary:hover { background: var(--primary-hover); color: white; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); }
.btn-dark { background: var(--navy-900); color: white; }
.btn-dark:hover { background: var(--navy-700); color: white; }
.btn-success { background: var(--success); color: white; }
.btn-success:hover { background: #11a86c; color: white; }
.btn-sm { padding: 8px 14px; font-size: .85rem; border-radius: var(--r-sm); }
.btn-lg { padding: 16px 28px; font-size: 1.05rem; }
.btn-block { width: 100%; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  transition: border-color var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
}
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.card-feature {
  background: linear-gradient(135deg, var(--surface), var(--surface-2));
}

/* Pillar cards (homepage) */
.pillar {
  position: relative; overflow: hidden;
  padding: 32px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar h3 { font-size: 1.5rem; }
.pillar .pillar-icon {
  width: 56px; height: 56px; border-radius: var(--r-md);
  display: grid; place-items: center; margin-bottom: 18px;
  background: var(--primary-soft); color: var(--primary);
}
.pillar .pillar-icon svg { width: 28px; height: 28px; }
.pillar.sports .pillar-icon { background: rgba(30,92,255,.12); color: var(--blue-600); }
.pillar.casino .pillar-icon { background: rgba(255,176,46,.16); color: var(--amber-400); }
.pillar.poker  .pillar-icon { background: rgba(22,199,132,.16); color: var(--green-500); }
.pillar::before {
  content: ""; position: absolute; inset: -2px auto auto -2px;
  width: 80px; height: 80px; border-radius: var(--r-lg) 0 60% 0;
  background: linear-gradient(135deg, var(--primary), transparent);
  opacity: .08; pointer-events: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 500px at 80% -10%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 0%, rgba(30,92,255,.22), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: white; padding: clamp(64px, 10vw, 140px) 0 clamp(80px, 12vw, 180px);
  overflow: hidden;
  isolation: isolate;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 400px at 50% 30%, black, transparent 70%);
  z-index: -1;
}
.hero h1 { color: white; }
.hero .lede { color: rgba(255,255,255,.78); font-size: 1.2rem; }
.hero .eyebrow { background: rgba(255,255,255,.10); color: var(--blue-300); }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; gap: 32px; } }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.hero-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 40px; }
.hero-stats .stat { padding: 14px 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); border-radius: var(--r-md); }
.hero-stats .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: white; }
.hero-stats .lbl { font-size: .82rem; color: rgba(255,255,255,.65); }

.hero-card {
  position: relative;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 24px;
  backdrop-filter: blur(6px);
  box-shadow: var(--shadow-xl);
}
.hero-card .row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04);
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,.06);
}
.hero-card .row:last-child { margin-bottom: 0; }
.hero-card .rank { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; background: linear-gradient(135deg, var(--blue-600), var(--cyan-400)); color: white; flex-shrink: 0; }
.hero-card .name { color: white; font-weight: 700; }
.hero-card .meta { color: rgba(255,255,255,.65); font-size: .85rem; }
.hero-card .score { margin-left: auto; font-family: var(--font-display); font-weight: 800; color: var(--cyan-400); }

/* ---------- Sportsbook leaderboard table ---------- */
.book-table {
  width: 100%;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  overflow: hidden;
}
.book-row {
  display: grid;
  grid-template-columns: 56px 1.4fr 2fr 1fr 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.book-row:last-child { border-bottom: 0; }
.book-row.head {
  background: var(--surface-2);
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.book-row .rank-pill {
  width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-family: var(--font-display); font-weight: 800;
}
.book-row .rank-pill.gold { background: linear-gradient(135deg, #ffd54f, #ff9f0a); color: white; }
.book-row .rank-pill.silver { background: linear-gradient(135deg, #d6dee9, #9aaabd); color: white; }
.book-row .rank-pill.bronze { background: linear-gradient(135deg, #d59872, #a76032); color: white; }
.book-row .book-name { display: flex; align-items: center; gap: 12px; }
.book-logo { width: 44px; height: 44px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--surface-2); font-family: var(--font-display); font-weight: 800; color: var(--text); border: 1px solid var(--border); }
.book-row .name-text strong { display: block; color: var(--text); font-size: 1rem; }
.book-row .name-text span { color: var(--text-muted); font-size: .82rem; }
.book-row .bonus { color: var(--text); font-weight: 600; }
.book-row .rating { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--text); }
.book-row .rating .stars { color: var(--amber-400); letter-spacing: 1px; font-size: .9rem; }
.book-row .features { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: .72rem; font-weight: 700; color: var(--text-soft);
  background: var(--surface-2); border: 1px solid var(--border);
}
.tag.success { color: var(--success); background: rgba(22,199,132,.12); border-color: rgba(22,199,132,.25); }
.tag.primary { color: var(--primary); background: var(--primary-soft); border-color: rgba(30,92,255,.18); }
.tag.warning { color: #b87914; background: rgba(255,176,46,.18); border-color: rgba(255,176,46,.3); }

@media (max-width: 880px) {
  .book-row { grid-template-columns: 44px 1fr; grid-template-areas:
    "rank name"
    ". bonus"
    ". rating"
    ". features"
    ". cta"; }
  .book-row.head { display: none; }
  .book-row > .rank-pill { grid-area: rank; }
  .book-row > .book-name { grid-area: name; }
  .book-row > .bonus { grid-area: bonus; }
  .book-row > .rating { grid-area: rating; }
  .book-row > .features { grid-area: features; }
  .book-row > .cta { grid-area: cta; margin-top: 6px; }
}

/* ---------- Stat tiles ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr)); gap: 16px; }
.stat-tile {
  padding: 22px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.stat-tile .num { font-family: var(--font-display); font-size: 2rem; font-weight: 800; color: var(--text); }
.stat-tile .lbl { color: var(--text-muted); font-size: .85rem; margin-top: 2px; }
.stat-tile .delta { color: var(--success); font-weight: 700; font-size: .85rem; margin-top: 8px; }

/* ---------- Tab strip ---------- */
.tabs { display: flex; gap: 6px; flex-wrap: wrap; padding: 6px; background: var(--surface-2); border-radius: var(--r-pill); width: fit-content; }
.tab {
  padding: 8px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: .9rem;
  color: var(--text-muted); cursor: pointer; border: 0; background: transparent;
}
.tab.active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: .9rem; color: var(--text); }
.input, .select, .textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong);
  border-radius: var(--r-sm); background: var(--bg-raised); color: var(--text);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--primary); box-shadow: var(--ring); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-radius: var(--r-sm) 0 0 var(--r-sm); }
.input-group .btn { border-radius: 0 var(--r-sm) var(--r-sm) 0; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-900); color: rgba(255,255,255,.78);
  padding: 64px 0 32px; margin-top: 80px;
  position: relative;
}
[data-theme="dark"] .site-footer { background: #04081a; }
.site-footer h5 { color: white; font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.site-footer a { color: rgba(255,255,255,.7); display: block; padding: 4px 0; font-size: .92rem; }
.site-footer a:hover { color: white; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 880px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand p { color: rgba(255,255,255,.6); font-size: .92rem; margin-top: 10px; max-width: 36ch; }
.footer-bar { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: rgba(255,255,255,.55); }
.responsible-block {
  margin-top: 36px; padding: 20px 24px; border-radius: var(--r-md);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.08);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between;
}
.responsible-block .badges { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.responsible-block .badge {
  padding: 6px 12px; border-radius: 6px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  font-weight: 700; font-size: .78rem; letter-spacing: .08em; color: white;
}

/* ---------- Article body ---------- */
.article {
  max-width: 760px; margin: 0 auto;
}
.article h2 { margin-top: 2.4em; }
.article h3 { margin-top: 1.8em; }
.article p, .article li { font-size: 1.05rem; line-height: 1.75; }
.article blockquote {
  border-left: 4px solid var(--primary);
  padding: 8px 18px; margin: 1.4em 0;
  color: var(--text); background: var(--surface-2); border-radius: 0 var(--r-md) var(--r-md) 0;
}
.article table { width: 100%; border-collapse: collapse; margin: 1.4em 0; }
.article th, .article td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.article th { background: var(--surface-2); font-weight: 700; }
.toc { background: var(--surface-2); padding: 16px 20px; border-radius: var(--r-md); border: 1px solid var(--border); margin: 1.5em 0; }
.toc h4 { margin: 0 0 8px; font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: .95rem; }
.toc a { color: var(--text); }

/* ---------- Breadcrumbs ---------- */
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: .85rem; color: var(--text-muted); padding: 18px 0; }
.crumbs a { color: var(--text-muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs span.sep { color: var(--text-muted); }

/* ---------- Page header ---------- */
.page-hero {
  background:
    radial-gradient(800px 320px at 70% -20%, rgba(34,211,238,.14), transparent 70%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800));
  color: white; padding: 72px 0 48px;
}
.page-hero h1 { color: white; }
.page-hero .lede { color: rgba(255,255,255,.78); }
.page-hero .crumbs { color: rgba(255,255,255,.55); }
.page-hero .crumbs a { color: rgba(255,255,255,.65); }
.page-hero .crumbs a:hover { color: white; }

/* ---------- Calculator widgets ---------- */
.calc {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px;
}
.calc-grid { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
@media (max-width: 720px) { .calc-grid { grid-template-columns: 1fr; } }
.calc-result {
  margin-top: 20px; padding: 20px; border-radius: var(--r-md);
  background: linear-gradient(135deg, var(--primary), var(--primary-hover));
  color: white;
}
.calc-result .label { font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; opacity: .85; }
.calc-result .value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; }
.calc-result-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(150px,1fr)); }

/* ---------- Bonus list / filters ---------- */
.filter-bar {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  align-items: center;
}
.bonus-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px,1fr)); }
.bonus-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 22px; display: flex; flex-direction: column; gap: 12px;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.bonus-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.bonus-card .head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.bonus-card .amount { font-family: var(--font-display); font-size: 1.6rem; font-weight: 800; color: var(--primary); }
.bonus-card .ops { display: flex; flex-wrap: wrap; gap: 4px; }
.bonus-card details summary { cursor: pointer; color: var(--text-muted); font-size: .85rem; list-style: none; }
.bonus-card details summary::-webkit-details-marker { display: none; }
.bonus-card details[open] summary { color: var(--text); }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: 8px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 4px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 20px;
  font-weight: 700; color: var(--text);
  display: flex; align-items: center; justify-content: space-between;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--primary); transition: transform var(--t-fast); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > *:not(summary) { padding: 0 20px 16px; color: var(--text-soft); }

/* ---------- News + guide cards ---------- */
.post-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.post-thumb {
  aspect-ratio: 16/9;
  background: linear-gradient(135deg, var(--blue-600), var(--cyan-400));
  position: relative;
}
.post-thumb.casino { background: linear-gradient(135deg, #6c2bd9, #b9277f); }
.post-thumb.poker  { background: linear-gradient(135deg, #056d4a, #16c784); }
.post-thumb.news   { background: linear-gradient(135deg, #243a78, #5b94ff); }
.post-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(0,0,0,.35)); }
.post-thumb .label {
  position: absolute; left: 14px; top: 14px;
  padding: 4px 10px; background: rgba(0,0,0,.45); color: white; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: var(--r-pill); z-index: 1;
}
.post-body { padding: 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-body h4 { margin: 0; color: var(--text); font-size: 1.1rem; }
.post-body p { margin: 0; color: var(--text-muted); font-size: .92rem; }
.post-meta { font-size: .8rem; color: var(--text-muted); margin-top: auto; padding-top: 8px; }

/* ---------- Newsletter band ---------- */
.cta-band {
  background:
    radial-gradient(800px 300px at 0% 0%, rgba(34,211,238,.18), transparent 60%),
    radial-gradient(700px 300px at 100% 100%, rgba(30,92,255,.20), transparent 60%),
    linear-gradient(135deg, var(--navy-800), var(--navy-700));
  color: white; padding: 56px 0;
}
.cta-band h2 { color: white; }
.cta-band .lede { color: rgba(255,255,255,.78); }
.cta-band form { display: flex; gap: 12px; max-width: 520px; flex-wrap: wrap; }
.cta-band .input { background: rgba(255,255,255,.06); color: white; border-color: rgba(255,255,255,.18); }
.cta-band .input::placeholder { color: rgba(255,255,255,.5); }

/* ---------- Trust strip ---------- */
.trust {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px,1fr));
  gap: 18px; padding: 24px 0; align-items: center;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  color: var(--text-muted); font-size: .9rem; font-weight: 600;
}
.trust-item .ico { width: 28px; height: 28px; color: var(--primary); }

/* ---------- Live odds widget ---------- */
.odds-grid { display: grid; gap: 12px; }
.odds-row {
  display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px;
  padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-md);
}
.odds-row .teams { grid-column: 1 / -1; display: flex; justify-content: space-between; font-weight: 700; color: var(--text); margin-bottom: 6px; font-size: .95rem; }
.odds-row .teams small { color: var(--text-muted); font-weight: 500; }
.odds-cell {
  padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); border: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: background var(--t-fast), border-color var(--t-fast);
  cursor: pointer;
}
.odds-cell:hover { border-color: var(--primary); background: var(--primary-soft); }
.odds-cell .lbl { font-size: .75rem; color: var(--text-muted); }
.odds-cell .val { font-family: var(--font-display); font-weight: 800; color: var(--text); font-size: 1rem; }
.odds-shell {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px;
}
.odds-shell .head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; }
.odds-shell .live-pulse { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--success); font-weight: 700; }
.odds-shell .live-pulse::before { content:""; width:8px; height:8px; border-radius:50%; background: var(--success); box-shadow: 0 0 0 0 rgba(22,199,132,.6); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%{ box-shadow: 0 0 0 0 rgba(22,199,132,.6);} 70%{ box-shadow: 0 0 0 10px rgba(22,199,132,0);} 100%{ box-shadow: 0 0 0 0 rgba(22,199,132,0);} }

/* ---------- Pros / Cons box ---------- */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .proscons { grid-template-columns: 1fr; } }
.proscons > div { padding: 18px 20px; border-radius: var(--r-md); border: 1px solid var(--border); background: var(--surface); }
.proscons h5 { margin: 0 0 10px; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; }
.proscons .pros h5 { color: var(--success); }
.proscons .cons h5 { color: var(--danger); }
.proscons ul { margin: 0; padding-left: 0; list-style: none; }
.proscons li { padding-left: 22px; position: relative; margin-bottom: 6px; }
.proscons .pros li::before { content: "✓"; color: var(--success); position: absolute; left: 0; font-weight: 800; }
.proscons .cons li::before { content: "×"; color: var(--danger); position: absolute; left: 0; font-weight: 800; font-size: 1.2em; line-height: 1; }

/* ---------- Rating bar ---------- */
.rating-grid { display: grid; gap: 10px; }
.rating-row { display: grid; grid-template-columns: 160px 1fr 40px; gap: 10px; align-items: center; }
.rating-row .lbl { font-weight: 600; color: var(--text); font-size: .9rem; }
.rating-bar { position: relative; height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.rating-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--primary), var(--cyan-400)); }
.rating-row .num { font-family: var(--font-display); font-weight: 800; color: var(--text); text-align: right; }

/* ---------- Misc utilities ---------- */
.hidden { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; clip: rect(0 0 0 0); overflow: hidden; }
.mt-0 { margin-top: 0 !important; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; } .mb-5 { margin-bottom: 48px; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}


/* Cookie banner — thin bottom bar */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  margin: 0;
  background: var(--surface);
  color: var(--text);
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  box-shadow: 0 -4px 24px rgba(0, 0, 0, 0.10);
  padding: 12px 24px;
  z-index: 9999;
  font-size: 13px;
  line-height: 1.45;
  display: none;
  align-items: center;
  gap: 18px;
  backdrop-filter: saturate(180%) blur(8px);
  -webkit-backdrop-filter: saturate(180%) blur(8px);
}
.cookie-banner.show { display: flex; }
.cookie-banner p {
  margin: 0;
  flex: 1;
  min-width: 0;
  color: var(--text);
}
.cookie-banner p a {
  color: var(--brand-500);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner p a:hover { color: var(--brand-700); }
.cookie-banner .cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-banner .cookie-btn {
  padding: 7px 14px;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-size: 12.5px;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.cookie-banner .cookie-btn-primary {
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
}
.cookie-banner .cookie-btn-primary:hover { background: var(--brand-700); border-color: var(--brand-700); }
.cookie-banner .cookie-btn-secondary {
  background: transparent;
  color: var(--muted);
  border-color: var(--border);
}
.cookie-banner .cookie-btn-secondary:hover {
  color: var(--text);
  border-color: var(--text);
}
@media (max-width: 720px) {
  .cookie-banner {
    padding: 10px 14px;
    gap: 10px;
    font-size: 12px;
    flex-wrap: wrap;
  }
  .cookie-banner p { flex-basis: 100%; }
  .cookie-banner .cookie-actions { width: 100%; justify-content: flex-end; }
  .cookie-banner .cookie-btn { padding: 7px 12px; font-size: 12px; }
}
