/* ==========================================================================
   DiamondExch9 — main stylesheet (v3.1.0) — "Black & Gold" theme
   Mobile-first. Self-hosted Poppins. No frameworks.
   1 Fonts · 2 Tokens · 3 Base · 4 Layout · 5 Top bar & header · 6 Buttons
   7 Hero & home widgets · 8 Sections & cards · 9 Inner pages · 10 Components
   11 Footer · 12 404 · 13 Utilities & motion
   ========================================================================== */

/* 1. Fonts (Poppins, SIL Open Font License — see ../fonts/OFL.txt) ------- */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/poppins-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/poppins-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/poppins-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/poppins-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/poppins-latin-800-normal.woff2") format("woff2"); }

/* 2. Design tokens ------------------------------------------------------- */
:root {
  --bg: #0b0c14;
  --bg-2: #0e1019;
  --surface: #141724;
  --surface-2: #1a1e2e;
  --surface-3: #212638;
  --line: #252a3c;
  --line-2: #353b54;

  --text: #eceef5;
  --text-soft: #cfd3e0;
  --muted: #a6acbf;
  --faint: #8d93a9;

  --gold: #f5c542;
  --gold-hover: #ffd866;
  --gold-deep: #e3a11a;
  --gold-ink: #1a1405;
  --gold-soft: rgba(245, 197, 66, 0.09);
  --gold-line: rgba(245, 197, 66, 0.35);
  --grad-gold: linear-gradient(135deg, #fff3a6 0%, #f7cf4a 48%, #e9a823 100%);
  --grad-gold-text: linear-gradient(120deg, #fff1a0 0%, #f5c542 45%, #f0a91e 100%);

  --back: #a6d8ff;
  --back-ink: #08223a;
  --lay: #fab9cb;
  --lay-ink: #3a0b18;

  --ok: #3ddc97;
  --danger: #ff6b6b;
  --danger-soft: rgba(255, 107, 107, 0.08);
  --danger-line: rgba(255, 107, 107, 0.4);

  --radius: 16px;
  --radius-lg: 22px;
  --max: 1240px;
  --gutter: 16px;
  --header-h: 68px;
  --shadow: 0 20px 44px -22px rgba(0, 0, 0, 0.8);
  --glow: 0 10px 28px -10px rgba(245, 197, 66, 0.6);

  --font: "Poppins", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }

/* 3. Base ---------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 0.97rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@media (min-width: 640px) { body { font-size: 1.02rem; } }

img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--gold-hover); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

h1, h2, h3, h4 { margin: 0 0 0.55em; color: #fff; font-weight: 700; line-height: 1.2; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 1.3rem + 3.1vw, 3.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.12; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.35vw, 2.2rem); font-weight: 800; }
h3 { font-size: clamp(1.08rem, 1.03rem + 0.3vw, 1.22rem); font-weight: 600; }
h4 { font-size: 1.02rem; font-weight: 600; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.25em; }
li { margin-bottom: 0.35em; }
strong { color: #fff; font-weight: 600; }
em { font-style: italic; }

.icon { display: inline-block; flex: none; width: 1.2em; height: 1.2em; vertical-align: -0.2em; }
.gold-text,
.gradient-text {
  color: var(--gold);
  background: var(--grad-gold-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* 4. Layout -------------------------------------------------------------- */
.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link {
  position: absolute; top: -80px; left: 12px; z-index: 300;
  padding: 10px 16px; border-radius: 10px;
  background: var(--gold); color: var(--gold-ink); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--gold-ink); }

/* 5. Top bar & header ---------------------------------------------------- */
.topbar {
  border-bottom: 1px solid rgba(245, 197, 66, 0.25);
  background: linear-gradient(90deg, #2a1f05 0%, #3a2b07 50%, #2a1f05 100%);
  color: #f3e7c4;
  font-size: 0.84rem;
}
.topbar-inner { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding-block: 6px; text-align: center; flex-wrap: wrap; }
.topbar .icon { color: var(--gold); }
.topbar strong { color: var(--gold); }
.topbar a { color: var(--gold); font-weight: 600; text-decoration: none; white-space: nowrap; }
.topbar a:hover { text-decoration: underline; }
@media (max-width: 639.98px) {
  .topbar { font-size: 0.78rem; }
  .topbar-inner { flex-wrap: nowrap; gap: 6px; min-height: 34px; }
  .topbar .icon, .tb-long { display: none; }
}

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 12, 20, 0.95);
  border-bottom: 1px solid var(--line);
}
@supports ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
  .site-header { background: rgba(11, 12, 20, 0.84); -webkit-backdrop-filter: saturate(150%) blur(12px); backdrop-filter: saturate(150%) blur(12px); }
}
.header-inner { display: flex; align-items: center; gap: 10px; min-height: var(--header-h); }

/* Brand lockup */
.brand { display: inline-flex; align-items: center; gap: 9px; margin-right: auto; color: #fff; text-decoration: none; line-height: 1; }
.brand:hover { color: #fff; }
.brand-mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 4px 10px rgba(245, 197, 66, 0.35)); }
.brand-word { font-size: 1.22rem; font-weight: 800; letter-spacing: -0.03em; }
.brand-word b { font-weight: 800; color: var(--gold); background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.brand-badge {
  display: inline-grid; place-items: center;
  min-width: 26px; height: 26px; padding: 0 6px; margin-left: 2px;
  border-radius: 7px; background: var(--grad-gold); color: var(--gold-ink);
  font-size: 1rem; font-weight: 800; letter-spacing: 0;
  box-shadow: 0 6px 16px -8px rgba(245, 197, 66, 0.8);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions .btn { white-space: nowrap; }
.header-actions .btn-login, .ist-clock { display: none; }
.ist-clock { align-items: center; gap: 6px; margin-right: 6px; color: var(--muted); font-size: 0.85rem; white-space: nowrap; }
.ist-clock time { min-width: 5ch; font-variant-numeric: tabular-nums; }

.nav-toggle {
  display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: #fff; cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
  display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform 0.2s ease, background-color 0.2s ease;
}
.nav-toggle-bars { position: relative; }
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; }
.site-nav.is-open {
  display: block; position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
  overflow-y: auto; overscroll-behavior: contain;
  padding: 8px var(--gutter) 28px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.site-nav ul { margin: 0; padding: 0; list-style: none; }
.site-nav li { margin: 0; }
.site-nav ul a {
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px; padding: 14px 4px; border-bottom: 1px solid var(--line);
  color: var(--text); font-weight: 500; text-decoration: none;
}
.site-nav ul a:hover { color: #fff; }
.site-nav ul a[aria-current="page"] { color: var(--gold); }
.nav-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.nav-actions .btn { width: 100%; }

@media (max-width: 1199.98px) { body.nav-open { overflow: hidden; } }
@media (max-width: 379.98px) { .header-actions .btn-getid { display: none; } }

@media (min-width: 1200px) {
  .nav-toggle, .nav-actions { display: none; }
  .header-actions .btn-login { display: inline-flex; }
  .site-nav, .site-nav.is-open {
    display: flex; align-items: center; position: static; height: auto; overflow: visible;
    padding: 0; margin-left: 12px; background: none; border: 0;
  }
  .site-nav ul { display: flex; gap: 2px; }
  .site-nav ul a { padding: 8px 10px; border: 0; border-radius: 10px; color: var(--text-soft); font-size: 0.93rem; }
  .site-nav ul a:hover { color: #fff; background: var(--surface); }
  .site-nav ul a[aria-current="page"] { color: var(--gold); background: var(--gold-soft); }
  .brand { margin-right: 0; }
  .header-actions { margin-left: auto; }
}
@media (min-width: 1320px) { .ist-clock { display: inline-flex; } }

/* 6. Buttons ------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 48px; padding: 12px 24px;
  border: 1px solid transparent; border-radius: 999px;
  font: inherit; font-size: 0.98rem; font-weight: 700; line-height: 1.2; letter-spacing: -0.005em;
  text-align: center; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, filter 0.15s ease;
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 1.1em; height: 1.1em; }
.btn-primary, .btn-gold { background: var(--grad-gold); color: var(--gold-ink); box-shadow: var(--glow); }
.btn-primary:hover, .btn-gold:hover { color: var(--gold-ink); filter: brightness(1.06); transform: translateY(-1px); }
.btn-secondary, .btn-ghost { background: rgba(255, 255, 255, 0.03); border-color: var(--line-2); color: #fff; }
.btn-secondary:hover, .btn-ghost:hover { border-color: var(--gold-line); background: var(--gold-soft); color: #fff; }
.btn-sm { min-height: 40px; padding: 8px 18px; font-size: 0.92rem; }
.btn-block { width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 479.98px) { .btn-row .btn { width: 100%; } }

/* 7. Hero & home widgets -------------------------------------------------- */
.hero {
  position: relative; overflow: hidden; padding: 40px 0 36px;
  background:
    radial-gradient(48rem 26rem at 88% -8%, rgba(245, 197, 66, 0.14), transparent 62%),
    radial-gradient(36rem 22rem at -8% 8%, rgba(245, 197, 66, 0.07), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; gap: 32px; align-items: start; }
@media (min-width: 1000px) {
  .hero { padding: 64px 0 48px; }
  .hero-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.85fr); gap: 56px; align-items: center; }
}
.hero-logo { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px; color: #fff; }
.hero-logo .brand-mark { width: 58px; height: 58px; }
.hero-logo .brand-word { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.4rem); }
.hero-logo .brand-badge { min-width: 40px; height: 40px; border-radius: 10px; font-size: 1.5rem; }
.domain-pill {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px;
  border: 1px solid var(--gold-line); border-radius: 999px; background: var(--gold-soft);
  color: var(--gold); font-size: 0.76rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
}
.hero h1 { margin-bottom: 0.5em; }
.lead { max-width: 64ch; color: var(--muted); font-size: clamp(1rem, 0.96rem + 0.3vw, 1.12rem); }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }
.trust-list li { display: flex; align-items: center; gap: 8px; margin: 0; }
.trust-list .icon { color: var(--ok); }
.hero-side { display: grid; gap: 16px; }

/* ID panel */
.id-panel {
  position: relative; overflow: hidden; padding: 26px 24px;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg);
  background: radial-gradient(22rem 14rem at 100% 100%, rgba(245, 197, 66, 0.12), transparent 70%), linear-gradient(180deg, var(--surface-2), var(--surface));
  box-shadow: var(--shadow);
}
.id-badge { display: inline-block; margin: 0 0 14px; padding: 4px 12px; border-radius: 999px; background: var(--grad-gold); color: var(--gold-ink); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; }
.id-panel-title { margin-bottom: 16px; font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.55rem); font-weight: 700; }
.id-panel .check-list { margin-bottom: 20px; }
.id-panel .check-list li { color: var(--text-soft); }
.id-panel-link { display: block; margin-top: 14px; text-align: center; font-size: 0.92rem; text-decoration: none; }

/* Sample odds widget */
.odds-card { padding: 18px 16px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface); }
.odds-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.odds-head strong { font-size: 0.95rem; }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(61, 220, 151, 0.15); }
.odds-tag { margin-left: auto; padding: 2px 10px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--muted); font-size: 0.74rem; }
table.odds-table { min-width: 0; font-size: 0.92rem; }
.odds-table th, .odds-table td { padding: 6px 4px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.odds-table thead th { background: none; color: var(--faint); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em; text-align: center; text-transform: uppercase; }
.odds-table tbody th { color: #fff; font-weight: 500; }
.odds-table td { width: 76px; text-align: center; }
.odd { display: grid; place-items: center; min-height: 44px; border-radius: 8px; font-weight: 700; line-height: 1.1; }
.odd small { display: block; font-size: 0.66rem; font-weight: 500; opacity: 0.75; }
.odd-back { background: var(--back); color: var(--back-ink); }
.odd-lay { background: var(--lay); color: var(--lay-ink); }
.odds-note { display: flex; align-items: center; gap: 8px; margin: 10px 2px 0; color: var(--faint); font-size: 0.8rem; }
.odds-note .icon { color: var(--gold); }
.odds-note a { margin-left: auto; font-size: 0.8rem; text-decoration: none; white-space: nowrap; }

/* Sport chips */
.chip-bar { padding: 8px 0 4px; }
.chip-bar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.chip-label { width: 100%; margin: 0 0 4px; color: var(--faint); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.chips li { margin: 0; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 9px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  color: #fff; font-size: 0.92rem; font-weight: 600; text-decoration: none;
}
.chip .icon { color: var(--gold); }
.chip:hover { border-color: var(--gold-line); background: var(--gold-soft); color: #fff; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.stat { padding: 20px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-align: center; }
.stat-value { display: block; font-size: clamp(1.5rem, 1.3rem + 0.8vw, 1.9rem); font-weight: 800; line-height: 1.1; }
.stat-label { display: block; margin-top: 6px; color: var(--muted); font-size: 0.86rem; }

/* At a glance */
.glance { display: grid; margin: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.glance > div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.glance dt { color: var(--muted); font-size: 0.88rem; }
.glance dd { margin: 0; color: #fff; font-weight: 600; text-align: right; }
@media (min-width: 900px) {
  .glance { grid-template-columns: 1fr 1fr; }
  .glance > div:nth-child(odd) { border-right: 1px solid var(--line); }
  .glance > div:nth-last-child(-n + 2) { border-bottom: 0; }
}
@media (max-width: 899.98px) { .glance > div:last-child { border-bottom: 0; } }

/* Step rows */
.step-rows { display: grid; gap: 12px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: row; }
.step-rows > li {
  position: relative; margin: 0; padding: 18px 20px 18px 72px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: row;
}
.step-rows > li::before {
  content: counter(row); position: absolute; left: 20px; top: 18px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-gold); color: var(--gold-ink); font-weight: 800;
}
.step-rows h3 { margin: 0 0 4px; font-size: 1.04rem; }
.step-rows p { margin: 0; color: var(--muted); }

/* 8. Sections & cards ---------------------------------------------------- */
.section { padding: 52px 0; }
.section + .section { border-top: 1px solid var(--line); }
.section-alt { background: var(--bg-2); }
@media (min-width: 960px) { .section { padding: 72px 0; } }
.section-tight { padding-top: 24px; }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head p { color: var(--muted); }
.section-head p:last-child { margin-bottom: 0; }
.eyebrow { margin: 0 0 8px; color: var(--gold); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; }
.section-foot { margin: 28px 0 0; }
.copy p { color: var(--text-soft); }
.copy { max-width: 900px; }

.grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .grid { gap: 18px; }
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.card {
  position: relative; padding: 22px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease;
}
.card h2, .card h3 { margin-bottom: 0.4em; }
.card h2 { font-size: clamp(1.08rem, 1.03rem + 0.3vw, 1.22rem); font-weight: 600; }
.card p { color: var(--muted); font-size: 0.94rem; }
.card > :last-child { margin-bottom: 0; }
.card-icon {
  display: inline-grid; place-items: center; width: 46px; height: 46px; margin-bottom: 16px;
  border: 1px solid var(--gold-line); border-radius: 12px; background: var(--gold-soft); color: var(--gold);
}
.card-icon .icon { width: 22px; height: 22px; }
.card-icon-warn { border-color: var(--gold-line); }
.card-link:hover { border-color: var(--gold-line); background: var(--surface-2); transform: translateY(-2px); }
.card-link h2 a, .card-link h3 a { color: #fff; text-decoration: none; }
.card-link h2 a::after, .card-link h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.card-link h2 a:focus-visible, .card-link h3 a:focus-visible { outline: none; }
.card-link:focus-within { outline: 3px solid var(--gold); outline-offset: 3px; }
.card-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--gold); font-size: 0.92rem; font-weight: 600; }
.card-pill {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; padding: 6px 14px;
  border-radius: 999px; background: var(--grad-gold); color: var(--gold-ink); font-size: 0.82rem; font-weight: 700;
}
.prose .card h2 { margin-top: 0; }

.split { display: grid; gap: 28px; align-items: start; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; align-items: center; } }
.split-copy p { color: var(--text-soft); }
.mini-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.mini-grid .card { padding: 18px; }
.mini-grid .card-icon { width: 40px; height: 40px; margin-bottom: 12px; }
.mini-grid h3 { font-size: 0.98rem; }
.mini-grid p { font-size: 0.86rem; }

/* Legacy step cards (kept for reuse) */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .steps-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps > li { position: relative; margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); counter-increment: step; }
.steps > li::before { content: counter(step); display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 12px; border-radius: 50%; background: var(--grad-gold); color: var(--gold-ink); font-weight: 800; }
.steps p { margin: 0; color: var(--muted); }

/* 9. Inner / article pages ---------------------------------------------- */
.page-hero {
  padding: 26px 0 36px; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(44rem 22rem at 96% -30%, rgba(245, 197, 66, 0.13), transparent 62%),
    radial-gradient(30rem 18rem at -4% -20%, rgba(245, 197, 66, 0.06), transparent 60%),
    var(--bg);
}
@media (min-width: 960px) { .page-hero { padding: 36px 0 56px; } }
.page-hero h1 { max-width: 24ch; font-size: clamp(1.85rem, 1.3rem + 2.4vw, 3rem); }
.page-hero .lead { margin-bottom: 18px; }
.page-meta { margin: 0; color: var(--faint); font-size: 0.86rem; }

.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 20px; padding: 0; list-style: none; color: var(--faint); font-size: 0.86rem; }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--line-2); }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--gold); text-decoration: underline; }
.breadcrumb [aria-current="page"] { color: var(--gold); }

.article-layout { display: grid; gap: 32px; padding-top: 36px; padding-bottom: 56px; }
@media (min-width: 1024px) {
  .article-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 56px; padding-top: 56px; padding-bottom: 80px; }
  .toc { position: sticky; top: calc(var(--header-h) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.toc { padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toc-title { margin: 0 0 8px; color: var(--gold); font-size: 0.74rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.toc ol { display: grid; margin: 0; padding: 0; list-style: none; }
.toc li { margin: 0; }
.toc a { display: block; padding: 7px 0; color: var(--muted); font-size: 0.9rem; line-height: 1.4; text-decoration: none; }
.toc a:hover { color: var(--gold); }

.prose { min-width: 0; max-width: 800px; }
.prose > h2 { margin-top: 2em; padding-top: 0.2em; }
.prose > h2:first-child { margin-top: 0; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--text-soft); }
.prose .grid { margin: 0 0 1.6em; }
.prose .card h3 { margin-top: 0; }

.check-list, .cross-list { padding: 0; list-style: none; }
.check-list li, .cross-list li { position: relative; padding-left: 32px; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(61, 220, 151, 0.14);
}
.check-list li::after {
  content: ""; position: absolute; left: 6px; top: calc(0.28em + 6px); width: 8px; height: 5px;
  border-left: 2px solid var(--ok); border-bottom: 2px solid var(--ok); transform: rotate(-45deg);
}
.cross-list li::before {
  content: ""; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(255, 107, 107, 0.14);
}
.cross-list li::after {
  content: "\00d7"; position: absolute; left: 0; top: 0.28em; width: 20px; height: 20px;
  color: var(--danger); font-size: 16px; font-weight: 700; line-height: 20px; text-align: center;
}

.step-list { padding: 0; list-style: none; counter-reset: s; }
.step-list > li { position: relative; min-height: 36px; margin-bottom: 18px; padding-left: 52px; counter-increment: s; }
.step-list > li::before {
  content: counter(s); position: absolute; left: 0; top: -2px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--grad-gold); color: var(--gold-ink); font-weight: 800;
}

/* 10. Components --------------------------------------------------------- */
.notice {
  display: flex; align-items: flex-start; gap: 14px; margin: 0 0 1.6em; padding: 18px 20px;
  border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface);
}
.notice > .icon { width: 22px; height: 22px; margin-top: 3px; }
.notice p { color: var(--text-soft); }
.notice > div > :last-child { margin-bottom: 0; }
.notice-info { border-color: var(--gold-line); background: var(--gold-soft); }
.notice-info > .icon { color: var(--gold); }
.notice-warn { border-color: var(--danger-line); background: var(--danger-soft); }
.notice-warn > .icon { color: var(--danger); }
.notice-title { margin: 2px 0 0.4em; font-size: clamp(1.12rem, 1.04rem + 0.4vw, 1.32rem); }
.age-pill {
  display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px;
  border: 2px solid var(--danger); border-radius: 50%; color: var(--danger); font-size: 0.9rem; font-weight: 800;
}

.table-wrap { margin: 0 0 1.6em; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); -webkit-overflow-scrolling: touch; }
table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 0.92rem; }
caption { padding: 12px 16px; color: var(--faint); font-size: 0.82rem; text-align: left; caption-side: bottom; border-top: 1px solid var(--line); }
th, td { padding: 13px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
thead th { background: var(--surface-2); color: var(--gold); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; }
tbody th { color: #fff; font-weight: 600; }
tbody td { color: var(--text-soft); }
tbody tr:last-child > * { border-bottom: 0; }
.table-wrap.gold-first tbody th { color: var(--gold); }

.facts { margin: 0 0 1.6em; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.facts > div { display: grid; gap: 2px 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--faint); font-size: 0.86rem; font-weight: 500; }
.facts dd { margin: 0; color: #fff; }
@media (min-width: 560px) { .facts > div { grid-template-columns: minmax(140px, 36%) 1fr; } }

.faq-group + .faq-group { margin-top: 44px; }
.faq-list { display: grid; gap: 10px; }
.faq-item { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.faq-item[open] { border-color: var(--gold-line); }
.faq-item summary { position: relative; min-height: 44px; padding: 16px 52px 16px 18px; color: #fff; font-weight: 600; list-style: none; cursor: pointer; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: ""; position: absolute; top: 50%; right: 20px; width: 9px; height: 9px;
  border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq-item summary h3 { display: inline; margin: 0; font-size: 0.98rem; font-weight: 600; line-height: 1.5; }
.faq-answer { padding: 0 18px 18px; }
.faq-answer p { color: var(--muted); }
.faq-answer > :last-child { margin-bottom: 0; }

.cta-band { padding: 0 0 64px; }
.section + .cta-band { padding-top: 8px; }
.cta-box {
  display: grid; gap: 22px; align-items: center; padding: 30px 24px;
  border: 1px solid var(--gold-line); border-radius: var(--radius-lg);
  background:
    radial-gradient(30rem 16rem at 100% 0%, rgba(245, 197, 66, 0.2), transparent 65%),
    linear-gradient(135deg, #1c1a14 0%, #141724 60%);
}
.cta-box h2 { margin-bottom: 0.35em; }
.cta-box p { margin: 0; color: var(--muted); }
@media (min-width: 960px) { .cta-box { grid-template-columns: minmax(0, 1fr) auto; padding: 40px 44px; } }

.related { padding: 0 0 56px; }
.related-title { margin-bottom: 20px; font-size: clamp(1.3rem, 1.15rem + 0.6vw, 1.65rem); }

/* 11. Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--line); background: #08090f; color: var(--muted); font-size: 0.92rem; }
.footer-grid { display: grid; gap: 32px; padding-top: 52px; padding-bottom: 36px; }
@media (min-width: 640px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; } }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { max-width: 40ch; }
.footer-actions { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.footer-mail {
  display: inline-grid; place-items: center; width: 40px; height: 40px;
  border: 1px solid var(--line-2); border-radius: 10px; color: var(--text-soft);
}
.footer-mail:hover { border-color: var(--gold-line); color: var(--gold); }
.footer-title { margin: 0 0 12px; color: var(--gold); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 2px; margin: 0; padding: 0; list-style: none; }
.site-footer li { margin: 0; }
.site-footer nav a { display: inline-block; padding: 5px 0; color: var(--muted); text-decoration: none; }
.site-footer nav a:hover { color: var(--gold); }
.footer-disclaimer {
  display: flex; gap: 16px; align-items: flex-start; margin: 0 0 24px; padding: 18px 20px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
  color: var(--faint); font-size: 0.84rem; line-height: 1.65;
}
.footer-disclaimer p { margin: 0 0 0.6em; }
.footer-disclaimer p:last-child { margin: 0; }
.footer-disclaimer a { color: var(--text-soft); }
.footer-disclaimer strong { color: var(--text-soft); }
.copyright { margin: 0; padding: 0 0 28px; color: var(--faint); font-size: 0.84rem; text-align: center; }

/* 12. 404 ---------------------------------------------------------------- */
.error-page { padding: 72px 0 40px; text-align: center; }
.error-page .lead { margin-inline: auto; }
.error-page .btn-row { justify-content: center; margin-top: 28px; }
.error-code { margin: 0 0 8px; color: var(--gold); background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: clamp(4.5rem, 3rem + 8vw, 8rem); font-weight: 800; line-height: 1; letter-spacing: -0.04em; }
.error-links { max-width: 960px; margin: 0 auto; text-align: left; }

/* 14. Carousel, game lobby & media ------------------------------------- */
.carousel { position: relative; min-width: 0; }
.carousel-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth;
  border: 1px solid var(--line-2); border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow); scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel-track::-webkit-scrollbar { display: none; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; overflow: hidden; }
.slide-cricket { background: radial-gradient(30rem 20rem at 60% 30%, rgba(34, 197, 94, 0.28), transparent 70%), linear-gradient(160deg, #10291c, #0b0c14 70%); }
.slide-casino { background: radial-gradient(30rem 20rem at 60% 30%, rgba(220, 38, 38, 0.28), transparent 70%), linear-gradient(160deg, #2a0f14, #0b0c14 70%); }
.slide-mobile { background: radial-gradient(30rem 20rem at 60% 30%, rgba(129, 140, 248, 0.28), transparent 70%), linear-gradient(160deg, #191a3d, #0b0c14 70%); }
.slide-art { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; margin-bottom: -14%; }
.slide-body { position: relative; padding: 0 22px 22px; }
.slide-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; border-radius: 999px; background: rgba(0, 0, 0, 0.45); border: 1px solid var(--gold-line); color: var(--gold); font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.slide-title { margin: 10px 0 4px; color: #fff; font-size: clamp(1.3rem, 1.1rem + 0.8vw, 1.7rem); font-weight: 800; line-height: 1.2; letter-spacing: -0.02em; }
.slide-text { margin: 0 0 16px; color: var(--muted); font-size: 0.92rem; }
.carousel-controls { display: flex; align-items: center; justify-content: center; gap: 14px; margin-top: 14px; }
.carousel-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 0;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface); color: #fff;
  font-size: 1.5rem; line-height: 1; cursor: pointer;
}
.carousel-btn:hover { border-color: var(--gold-line); color: var(--gold); }
.carousel-dots { display: flex; gap: 8px; }
.carousel-dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--line-2); cursor: pointer; transition: width 0.2s ease, background-color 0.2s ease; }
.carousel-dots button[aria-current="true"] { width: 28px; background: var(--grad-gold); }
.carousel-dots button::after { content: ""; display: block; margin: -17px; width: 44px; height: 44px; }

.section-head-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; max-width: none; margin-top: 28px; }
.section-head-row > div { max-width: 720px; }
.lobby-tabs { display: flex; gap: 8px; margin: 0 0 20px; padding-bottom: 4px; overflow-x: auto; scrollbar-width: none; }
.lobby-tabs::-webkit-scrollbar { display: none; }
.lobby-tab {
  display: inline-flex; align-items: center; gap: 8px; flex: none; min-height: 44px; padding: 8px 16px;
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface);
  color: var(--text-soft); font: inherit; font-size: 0.92rem; font-weight: 600; cursor: pointer;
}
.lobby-tab:hover { border-color: var(--gold-line); color: #fff; }
.lobby-tab[aria-pressed="true"] { border-color: transparent; background: var(--grad-gold); color: var(--gold-ink); box-shadow: var(--glow); }
.lobby-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 0.75rem; }
.lobby-tab[aria-pressed="true"] .lobby-count { background: rgba(26, 20, 5, 0.15); }
.lobby-note { margin: 16px 0 0; color: var(--faint); font-size: 0.82rem; }

.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 700px) { .game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.game-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.prose .game-grid { margin: 0 0 1.8em; }
.game { margin: 0; }
.lobby-grid.is-filtered .game { animation: tile-in 0.35s ease both; }
.game[hidden] { display: none; }
@keyframes tile-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.game-link { display: block; height: 100%; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: #fff; text-decoration: none; transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
.game-link:hover { border-color: var(--gold-line); color: #fff; transform: translateY(-3px); box-shadow: 0 18px 36px -18px rgba(245, 197, 66, 0.45); }
.game-media { position: relative; display: block; overflow: hidden; aspect-ratio: 4 / 3; background: var(--surface-2); }
.game-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.game-link:hover .game-media img { transform: scale(1.06); }
.game-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.18) 50%, transparent 65%); transform: translateX(-100%); transition: transform 0.6s ease; }
.game-link:hover .game-media::after { transform: translateX(100%); }
.game-cta {
  position: absolute; right: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px; border-radius: 999px; background: var(--grad-gold); color: var(--gold-ink);
  font-size: 0.78rem; font-weight: 700; opacity: 0; transform: translateY(-6px); transition: opacity 0.2s ease, transform 0.2s ease;
}
.game-link:hover .game-cta, .game-link:focus-visible .game-cta { opacity: 1; transform: none; }
.game-meta { display: block; padding: 12px 14px 14px; }
.game-name { display: block; font-weight: 700; font-size: 0.98rem; line-height: 1.3; }
.game-sub { display: block; margin-top: 2px; color: var(--muted); font-size: 0.8rem; line-height: 1.4; }
.game-grid-compact .game-meta { padding: 10px 12px 12px; }
@media (max-width: 479.98px) { .game-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .game-cta { display: none; } }

.game-figure { margin: 0 0 1.2em; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; max-width: 420px; }
.game-figure img { width: 100%; height: auto; }
@media (min-width: 760px) { .game-figure { float: right; width: 260px; margin: 4px 0 18px 28px; } .prose h2 { clear: both; } }

.page-hero-grid { display: grid; gap: 24px; align-items: center; }
.page-hero-art { display: none; }
@media (min-width: 960px) {
  .page-hero-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 40px; }
  .page-hero-art { display: block; width: 100%; height: auto; margin: -20px 0 -40px; filter: drop-shadow(0 24px 40px rgba(0, 0, 0, 0.45)); }
}

.split-even { align-items: stretch; }
@media (min-width: 960px) { .split-even { grid-template-columns: 1fr 1fr; } }
.split-even .odds-card { display: flex; flex-direction: column; justify-content: center; padding: 26px 24px; }

/* Mobile bottom bar */
.bottom-nav { display: none; }
@media (max-width: 767.98px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
    display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    border-top: 1px solid var(--line-2); background: rgba(11, 12, 20, 0.96);
  }
  .bottom-nav a { display: grid; justify-items: center; gap: 2px; min-height: 52px; padding: 6px 2px; color: var(--muted); font-size: 0.7rem; font-weight: 600; text-decoration: none; }
  .bottom-nav a .icon { width: 22px; height: 22px; }
  .bottom-nav a[aria-current="page"] { color: var(--gold); }
  .bottom-nav .bottom-nav-main { margin-top: -22px; }
  .bottom-nav .bottom-nav-main .icon { box-sizing: content-box; width: 24px; height: 24px; padding: 13px; border-radius: 50%; background: var(--grad-gold); color: var(--gold-ink); box-shadow: var(--glow); }
  .bottom-nav .bottom-nav-main span { color: var(--gold); }
  body.nav-open .bottom-nav { display: none; }
}

/* 15. WhatsApp "Get ID" links ------------------------------------------- */
.id-panel-note { margin: 10px 0 0; color: var(--faint); font-size: 0.8rem; text-align: center; }
.inline-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin: 0 0 1.8em; padding: 18px 20px; border: 1px solid var(--gold-line); border-radius: var(--radius); background: var(--gold-soft); }
.inline-cta p { flex: 1 1 220px; margin: 0; color: var(--muted); font-size: 0.88rem; }
.wa-float { display: none; }
@media (min-width: 768px) {
  .wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 80;
    display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px 12px 14px;
    border-radius: 999px; background: #25d366; color: #052e16; font-weight: 700; text-decoration: none;
    box-shadow: 0 14px 30px -10px rgba(37, 211, 102, 0.6);
    transition: transform 0.15s ease, filter 0.15s ease;
  }
  .wa-float .icon { width: 26px; height: 26px; }
  .wa-float:hover { color: #052e16; filter: brightness(1.05); transform: translateY(-2px); }
  .wa-float::before { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55); animation: wa-pulse 2.4s ease-out infinite; }
}
@keyframes wa-pulse { 0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5); } 80%, 100% { box-shadow: 0 0 0 16px rgba(37, 211, 102, 0); } }

/* 13. Utilities & motion ------------------------------------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.muted { color: var(--muted); }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .carousel-track { scroll-behavior: auto; }
  .lobby-grid.is-filtered .game { animation: none; }
  .wa-float::before { animation: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
@media print {
  .topbar, .site-header, .toc, .cta-band, .related, .chip-bar { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3, h4, strong, .prose p, .prose li { color: #000; }
}
