/* ============================================================
   Daman Games â Editorial Design System
   SEO-friendly: semantic, fast, no heavy frameworks
   ============================================================ */
:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fb;
  --bg-card: #ffffff;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-mute: #4b5563;
  --text-faint: #6b7280;
  --primary: #F92720;
  --primary-dark: #D00C05;
  --accent: #f39c12;
  --good: #16a34a;
  --good-strong: #15803d;
  --warn: #d97706;
  --bad: #dc2626;
  --bad-strong: #b91c1c;
  --link: #1d4ed8;
  --link-hover: #1e40af;
  --shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, 0.15);
  --radius: 12px;
  --radius-lg: 18px;
  --max: 1200px;
  --max-prose: 740px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115;
    --bg-soft: #14171d;
    --bg-card: #181b22;
    --border: #2a2f3a;
    --border-strong: #3a4150;
    --text: #f3f4f6;
    --text-mute: #c2c6d1;
    --text-faint: #8b91a1;
    --good-strong: #4ade80;
    --bad-strong: #f87171;
    --link: #93c5fd;
    --link-hover: #bfdbfe;
    --shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 20px 50px -20px rgba(0, 0, 0, 0.8);
  }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
button { font-family: inherit; cursor: pointer; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.prose-wrap { max-width: var(--max-prose); margin: 0 auto; padding: 0 20px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 {
  font-family: Georgia, 'Times New Roman', 'Merriweather', serif;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 0.5em;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin-top: 1.8em; }
h3 { font-size: 1.25rem; margin-top: 1.6em; }
h4 { font-size: 1.05rem; margin-top: 1.4em; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin-bottom: 0.4em; }
blockquote {
  margin: 1.5em 0;
  padding: 18px 22px;
  border-left: 4px solid var(--primary);
  background: var(--bg-soft);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text-mute);
}
code, pre {
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 0.9em;
}
code { background: var(--bg-soft); padding: 2px 6px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--border); margin: 2.5em 0; }

.muted { color: var(--text-mute); }
.small { font-size: 0.9rem; }
.tiny { font-size: 0.78rem; }
.text-center { text-align: center; }
.lead { font-size: 1.18rem; color: var(--text-mute); line-height: 1.6; }

/* ---------- Skip link ---------- */
.skip {
  position: absolute; left: -9999px; top: 0;
  background: var(--text); color: var(--bg);
  padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 1000;
}
.skip:focus { left: 0; }

/* ---------- Top bar / Disclaimer banner ---------- */
.top-bar {
  background: linear-gradient(90deg, #fff3cd, #ffe8a1);
  color: #5c4400;
  text-align: center;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-bottom: 1px solid #f3d77a;
}
@media (prefers-color-scheme: dark) {
  .top-bar { background: linear-gradient(90deg, #3b2e08, #4d3c0a); color: #ffe8a1; border-bottom-color: #5e4a14; }
}

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .site-header { background: rgba(15, 17, 21, 0.92); }
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--text); text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 36px; height: 36px; border-radius: 8px; object-fit: cover; display: block; flex-shrink: 0; }
.brand-name { font-family: 'Merriweather', serif; font-size: 1.2rem; line-height: 1; }
.brand-sub { display: block; font-family: 'Inter', sans-serif; font-size: 0.7rem; font-weight: 500; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; }

/* TOC list-style override on homepage */
#toc .toc ol { padding-left: 0; margin: 0; }
#toc .toc ol li a { color: var(--text); display: inline-block; padding: 2px 0; }
#toc .toc ol li a:hover { color: var(--primary); text-decoration: none; }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text-mute); font-weight: 500; font-size: 0.95rem;
  padding: 8px 4px;
}
.nav-links a:hover { color: var(--primary); text-decoration: none; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-toggle { display: none; background: none; border: 0; padding: 8px; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--text); margin: 5px 0; border-radius: 2px; }

/* External links â auto-marked with arrow icon. Excludes own domain + internal anchors. */
a[href^="http"]:not([href*="jaiclubb.app"]):not(.no-ext)::after {
  content: " \2197"; /* north-east arrow */
  font-size: 0.82em;
  margin-left: 2px;
  opacity: 0.6;
  display: inline-block;
  transform: translateY(-1px);
  font-weight: 400;
}
a[href^="http"]:not([href*="jaiclubb.app"]):not(.no-ext):hover::after { opacity: 1; }
/* Suppress on logo/brand/buttons/social/header where the arrow is noise */
.brand::after, .btn::after, .nav-cta a::after, .lang-switch::after,
.site-header a::after, .scroll-top::after, .modal a::after { content: none !important; }

/* References / Sources block */
.references {
  margin-top: 36px;
  padding: 28px 30px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-lg);
}
.references h3 {
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.references h2 { margin: 0 0 18px; font-size: 1.5rem; }
.references-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px 28px;
  margin-top: 12px;
}
.references-grid h4 {
  margin: 0 0 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.references-grid ul { list-style: none; margin: 0; padding: 0; line-height: 1.75; }
.references-grid li { padding: 4px 0; border-bottom: 1px dashed var(--border); }
.references-grid li:last-child { border-bottom: 0; }
.references-grid .desc { display: block; color: var(--text-mute); font-size: 0.83rem; margin-top: 2px; }
.references-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-mute);
}

/* Star rating widget (footer, all pages â backed by counterapi.dev) */
.site-rating {
  margin: 28px 0 18px;
  padding: 26px 24px;
  background: linear-gradient(135deg, rgba(249,39,32,0.06), rgba(243,156,18,0.07));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-align: center;
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.rating-inner { max-width: 520px; margin: 0 auto; }
.rating-title {
  margin: 0 0 14px;
  font-family: 'Merriweather', serif;
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
}
.rating-stars {
  display: inline-flex;
  gap: 4px;
  padding: 4px 0;
}
.rating-star {
  background: none;
  border: 0;
  font-size: 2.1rem;
  color: var(--border-strong);
  cursor: pointer;
  padding: 4px 8px;
  line-height: 1;
  transition: color 0.15s ease, transform 0.12s ease;
}
.rating-star.filled,
.rating-star.hover {
  color: #f39c12;
  text-shadow: 0 1px 2px rgba(243,156,18,0.35);
}
.rating-star.hover { transform: scale(1.12); }
.rating-star:not(:disabled):hover { transform: scale(1.18); }
.rating-star:disabled { cursor: default; transform: none !important; }
.rating-star:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
  border-radius: 4px;
}
.rating-status {
  margin: 12px 0 0;
  font-size: 0.92rem;
  color: var(--text-mute);
  min-height: 1.3em;
}
.rating-status strong { color: var(--text); font-weight: 700; }

/* Scroll-to-top floating button */
.scroll-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px -6px rgba(249,39,32,0.5);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px) scale(0.85);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.15s ease;
}
.scroll-top.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.scroll-top:hover { background: #D00C05; }
.scroll-top:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 540px) {
  .scroll-top { bottom: 18px; right: 18px; width: 42px; height: 42px; }
}

/* Invisible marker for scroll-to-top (no scroll listeners / no forced reflow) */
.scroll-top-sentinel {
  position: absolute;
  top: 320px;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
  visibility: hidden;
}

/* Reveal-on-scroll (class toggled by JS â avoids inline styles on LCP elements) */
.reveal-pending {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.reveal-pending.is-revealed {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  .reveal-pending {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Language switcher (auto-injected by JS into .nav-inner) */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  transition: background 0.15s, border-color 0.15s, transform 0.1s;
  white-space: nowrap;
  margin-right: 8px;
}
.lang-switch:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.lang-switch:active { transform: scale(0.97); }
.lang-switch span:first-child { font-size: 1.05em; line-height: 1; }
/* Hide the legacy inline language links in main nav now that we have the button */
.nav-links > a.lang-switch-inline,
.nav-links > a[hreflang="hi"],
.nav-links > a[hreflang="en"][lang="en"] { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: transform 0.12s, box-shadow 0.2s, background 0.2s;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -4px rgba(249,39,32,.45); }
.btn-primary:hover { background: var(--primary-dark); color: #fff; }
.btn-outline { border-color: var(--border-strong); color: var(--text); background: var(--bg-card); }
.btn-outline:hover { background: var(--bg-soft); color: var(--text); }
.btn-ghost { background: transparent; color: var(--text); }
.btn-ghost:hover { background: var(--bg-soft); }
.btn-lg { padding: 14px 26px; font-size: 1rem; }
.btn-block { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  padding: 56px 0 60px;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 90% -10%, rgba(243, 156, 18, 0.20), transparent 65%),
    radial-gradient(700px 400px at -5% 20%, rgba(249, 39, 32, 0.14), transparent 65%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(249, 39, 32, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(249, 39, 32, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.hero > .container { position: relative; z-index: 1; }
.hero-stack { margin-bottom: 28px; }
.hero-banner-img {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 1200 / 630;
  object-fit: cover;
}
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero-content { min-width: 0; }
.hero h1 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}
.grad-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--accent, #f39c12) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 7px 14px 7px 12px;
  border-radius: 999px;
  background: rgba(249, 39, 32, 0.08);
  border: 1px solid rgba(249, 39, 32, 0.22);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 20px;
  letter-spacing: 0.01em;
}
.dot-live {
  width: 8px; height: 8px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(249, 39, 32, 0.55);
  animation: dot-pulse 1.8s ease-out infinite;
}
@keyframes dot-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(249, 39, 32, 0.55); }
  70%  { box-shadow: 0 0 0 10px rgba(249, 39, 32, 0);  }
  100% { box-shadow: 0 0 0 0 rgba(249, 39, 32, 0);    }
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 4px;
}
.feature-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 13px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 0.86rem;
  color: var(--text-mute);
  box-shadow: 0 1px 2px rgba(0,0,0,0.03);
}
.feature-pill strong { color: var(--text); font-weight: 700; }

.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 28px; align-items: stretch; }
.hero-cta .btn-xl {
  padding: 14px 24px;
  font-size: 1rem;
  border-radius: 12px;
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  line-height: 1.25;
  min-height: 64px;
  justify-content: center;
}
.hero-cta .btn-xl .cta-main {
  font-weight: 700;
  font-size: 1.02rem;
}
.hero-cta .btn-xl .cta-sub {
  font-weight: 500;
  opacity: 0.92;
  font-size: 0.82rem;
}

.btn-shine {
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 24px -8px rgba(249, 39, 32, 0.5);
}
.btn-shine::after {
  content: "";
  position: absolute;
  top: 0;
  left: -75%;
  width: 60%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
  transform: skewX(-20deg);
  animation: btn-shine 3.2s ease-in-out infinite;
}
@keyframes btn-shine {
  0%, 60%, 100% { left: -75%; }
  80% { left: 130%; }
}

.hero-tertiary { margin: 16px 0 0; }
.hero-tertiary a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  margin-top: 26px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  font-size: 0.88rem;
  color: var(--text-mute);
}
.hero-stars {
  color: #f39c12;
  font-size: 1.05rem;
  letter-spacing: 1.5px;
}
.trust-divider {
  display: inline-block;
  width: 1px; height: 14px;
  background: var(--border);
}

.score-card-head { margin-bottom: 4px; }
.score-card-title { margin: 8px 0 0; }
.btn-block { display: block; width: 100%; text-align: center; }
.hero-image { position: relative; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); }

/* ---------- Score Card / Rating ---------- */
.score-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.score-card-title {
  margin-top: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-mute);
}
.score-big { font-family: 'Merriweather', serif; font-size: 3rem; font-weight: 800; line-height: 1; margin: 8px 0; }
.score-out { font-size: 1.2rem; color: var(--text-faint); font-weight: 400; }
.score-label { display: inline-block; padding: 4px 12px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.score-label.bad { background: #fee2e2; color: #991b1b; }
.score-label.warn { background: #fef3c7; color: #92400e; }
.score-label.ok { background: #d1fae5; color: #065f46; }
@media (prefers-color-scheme: dark) {
  .score-label.bad { background: #4c0f0f; color: #fca5a5; }
  .score-label.warn { background: #4a3009; color: #fde68a; }
  .score-label.ok { background: #0d3320; color: #86efac; }
}
.stars { display: inline-flex; gap: 2px; }
.star { width: 18px; height: 18px; }
.score-list { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-direction: column; gap: 12px; }
.score-list li { display: flex; justify-content: space-between; align-items: center; padding-bottom: 8px; border-bottom: 1px dashed var(--border); }
.score-list li:last-child { border-bottom: 0; }
.score-list .label { font-size: 0.92rem; color: var(--text-mute); }
.score-list .val { font-weight: 700; font-family: 'Merriweather', serif; }

.bar { position: relative; height: 6px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; flex: 1; max-width: 110px; margin: 0 12px; }
.bar > span { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 999px; }

/* ---------- Cards / Grids ---------- */
.section { padding: 60px 0; }
.section:not(.hero) {
  content-visibility: auto;
  contain-intrinsic-size: auto 480px;
}
.section-alt { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-head h2 { margin-top: 0; }
.section-head .lead { font-size: 1.05rem; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 22px; }

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: transform 0.18s, box-shadow 0.18s, border-color 0.18s;
  display: flex;
  flex-direction: column;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
  text-decoration: none;
}
.card h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.card p { color: var(--text-mute); font-size: 0.95rem; margin-bottom: 14px; flex: 1; }
.card .more { color: var(--primary); font-weight: 600; font-size: 0.92rem; }
.card-img {
  margin: -24px -24px 16px;
  aspect-ratio: 16/9;
  background: var(--bg-soft) center/cover no-repeat;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.card-img img { width: 100%; height: 100%; object-fit: cover; }

.badge {
  display: inline-block;
  padding: 3px 10px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-mute);
  font-weight: 600;
}
.badge.primary { background: rgba(249,39,32,0.08); border-color: rgba(249,39,32,0.25); color: var(--primary); }
.badge.warn { background: rgba(217,119,6,0.1); border-color: rgba(217,119,6,0.3); color: var(--warn); }
.badge.bad { background: rgba(220,38,38,0.08); border-color: rgba(220,38,38,0.25); color: var(--bad); }
.badge.ok { background: rgba(22,163,74,0.08); border-color: rgba(22,163,74,0.25); color: var(--good); }

/* ---------- Article layout ---------- */
.article-head {
  padding: 48px 0 28px;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
}
.breadcrumbs { font-size: 0.85rem; color: var(--text-faint); margin-bottom: 16px; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--primary); }
.breadcrumbs .sep { margin: 0 8px; color: var(--text-faint); }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 16px;
  color: var(--text-faint); font-size: 0.9rem; margin-top: 18px;
}
.article-meta span { display: inline-flex; align-items: center; gap: 6px; }
.article-body { padding: 40px 0 60px; }
.article-body p, .article-body li { font-size: 1.05rem; line-height: 1.75; color: var(--text); }
.article-body p { margin-bottom: 1.2em; }
.article-body h2 { padding-top: 0.6em; }

/* TOC */
.toc {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 24px;
  margin: 28px 0 36px;
}
.toc-label,
.toc h4 {
  margin: 0 0 12px;
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-mute);
  font-family: 'Inter', sans-serif;
  font-weight: 600;
}
.toc ol { margin: 0; padding-left: 20px; }
.toc li { font-size: 0.95rem; margin-bottom: 6px; }
.toc a { color: var(--text); }
.toc a:hover { color: var(--primary); }

/* Callout boxes */
.callout {
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 28px 0;
  border-left: 4px solid;
  background: var(--bg-soft);
}
.callout strong { display: block; margin-bottom: 6px; font-size: 1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout.warn { border-color: var(--warn); background: #fff7ed; color: #7a3e08; }
.callout.danger { border-color: var(--bad); background: #fef2f2; color: #7a1a1a; }
.callout.info { border-color: var(--link); background: #eff6ff; color: #1e3a8a; }
.callout.tip { border-color: var(--good); background: #f0fdf4; color: #14532d; }
@media (prefers-color-scheme: dark) {
  .callout.warn { background: #2a1e08; color: #fde68a; }
  .callout.danger { background: #2a0a0a; color: #fca5a5; }
  .callout.info { background: #0a1f3a; color: #bfdbfe; }
  .callout.tip { background: #0a2a1a; color: #86efac; }
}

/* Images & figures */
figure { margin: 28px 0; }
figure img {
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
figure.placeholder img {
  aspect-ratio: 16/9; object-fit: cover; background: var(--bg-soft);
}
figure.screenshot-mobile {
  max-width: 340px;
  margin: 28px auto;
}
figure.screenshot-mobile img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}
figure.screenshot-wide img {
  aspect-ratio: 16/9;
  object-fit: cover;
  background: var(--bg-soft);
}

/* How-to step cards (Register / Login / Deposit / Withdraw) */
.howto-grid {
  display: grid;
  gap: 28px;
  margin-top: 36px;
}
.howto-card {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 36px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.howto-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--primary), var(--accent, var(--primary)));
}
.howto-card:nth-child(even) {
  grid-template-columns: 1fr 280px;
}
.howto-card:nth-child(even) .howto-figure { order: 2; }
.howto-figure {
  margin: 0;
  max-width: 280px;
}
.howto-figure img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 14px 40px rgba(0,0,0,0.22);
}
.howto-body { display: flex; flex-direction: column; gap: 12px; }
.howto-step {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--primary);
}
.howto-step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: var(--primary);
  color: #fff;
  border-radius: 50%;
  font-size: 0.95rem;
  letter-spacing: 0;
}
.howto-card h3 {
  margin: 0;
  font-size: 1.45rem;
  line-height: 1.25;
}
.howto-body ol {
  margin: 4px 0 0;
  padding-left: 22px;
  font-size: 0.97rem;
  line-height: 1.7;
}
.howto-body ol li { margin-bottom: 4px; }
.howto-body ol li strong { color: var(--text); }
.howto-note {
  margin-top: 8px;
  padding: 12px 14px;
  border-left: 3px solid var(--primary);
  background: var(--bg-soft);
  border-radius: 6px;
  font-size: 0.92rem;
  line-height: 1.55;
}
.howto-note.warn   { border-left-color: #d97706; background: rgba(217,119,6,0.07); }
.howto-note.danger { border-left-color: #dc2626; background: rgba(220,38,38,0.07); }

.howto-link {
  color: var(--primary);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
  text-decoration-color: rgba(249,39,32,0.45);
  transition: text-decoration-color 0.15s ease, background 0.15s ease;
  border-radius: 3px;
  padding: 0 2px;
}
.howto-link:hover {
  text-decoration-color: var(--primary);
  background: rgba(249,39,32,0.08);
}
.howto-link strong { color: inherit; }

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: 8px;
}

/* Hierarchical Table of Contents */
.toc-list { columns: 2; column-gap: 48px; }
.toc-list > li { break-inside: avoid; padding: 6px 0; }
.toc-list > li > a { font-weight: 500; color: var(--text); }
.toc-list > li > a strong {
  display: inline-block;
  min-width: 22px;
  color: var(--primary);
  font-weight: 700;
  margin-right: 4px;
}
.toc-list > li > a:hover { color: var(--primary); }

.toc-sub {
  list-style: none;
  padding: 4px 0 6px 22px;
  margin: 4px 0 0;
  border-left: 2px solid var(--border);
  font-size: 0.9rem;
  line-height: 1.7;
}
.toc-sub li { padding: 2px 0; }
.toc-sub a {
  color: var(--text-faint);
  text-decoration: none;
  display: block;
  padding: 2px 8px;
  margin-left: -2px;
  border-radius: 4px;
  transition: color 0.15s ease, background 0.15s ease;
}
.toc-sub a:hover {
  color: var(--primary);
  background: rgba(249,39,32,0.06);
}

@media (max-width: 720px) {
  .toc-list { columns: 1; }
}

@media (max-width: 760px) {
  .howto-card,
  .howto-card:nth-child(even) {
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 22px;
  }
  .howto-card:nth-child(even) .howto-figure { order: unset; }
  .howto-figure { max-width: 220px; margin: 0 auto; }
  .howto-card h3 { font-size: 1.25rem; }
}
figure .img-placeholder {
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 10px, var(--bg-card) 10px, var(--bg-card) 20px);
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-size: 0.85rem;
  padding: 20px;
  text-align: center;
}
figcaption {
  margin-top: 10px;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.88rem;
  font-style: italic;
}

/* Tables */
.table-wrap { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }
table.data {
  width: 100%; border-collapse: collapse; background: var(--bg-card);
}
table.data th, table.data td {
  text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--border);
  font-size: 0.95rem;
}
table.data th {
  background: var(--bg-soft); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-mute);
}
table.data tr:last-child td { border-bottom: 0; }

/* Pros / Cons */
.proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 28px 0; }
.proscons > div {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px;
}
.proscons h3,
.proscons h4 { margin-top: 0; font-family: 'Inter', sans-serif; font-size: 1.1rem; }
.proscons .pros h3 { color: var(--good-strong); }
.proscons .cons h3 { color: var(--bad-strong); }
.proscons .pros li,
.proscons .cons li { color: var(--text); }
.proscons ul { list-style: none; padding: 0; margin: 0; }
.proscons li {
  padding-left: 26px; position: relative; margin-bottom: 10px; font-size: 0.97rem;
}
.proscons .pros li::before { content: "â"; position: absolute; left: 0; color: var(--good); font-weight: 700; }
.proscons .cons li::before { content: "â"; position: absolute; left: 0; color: var(--bad); font-weight: 700; }

/* FAQ */
.faq { margin: 28px 0; }
.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  margin-bottom: 12px;
  padding: 0;
}
.faq summary {
  padding: 18px 22px;
  cursor: pointer;
  font-weight: 600;
  font-family: 'Merriweather', serif;
  list-style: none;
  position: relative;
  padding-right: 50px;
  font-size: 1.02rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; color: var(--text-faint);
  transition: transform 0.2s;
}
.faq details[open] summary::after { content: "â"; }
.faq details[open] summary { border-bottom: 1px solid var(--border); }
.faq .answer { padding: 18px 22px; color: var(--text-mute); font-size: 0.98rem; line-height: 1.7; }
.faq .answer p:last-child { margin-bottom: 0; }

/* Share / Author box */
.author-box {
  margin: 40px 0;
  padding: 24px;
  background: var(--bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  display: flex; gap: 18px; align-items: flex-start;
}
.author-avatar {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  color: white; font-weight: 700; font-size: 1.3rem; font-family: 'Merriweather', serif;
  flex-shrink: 0;
}
.author-box h4 { margin: 0 0 4px; font-family: 'Inter', sans-serif; font-size: 1.05rem; }
.author-box p { margin: 0; color: var(--text-mute); font-size: 0.92rem; }

/* Related */
.related {
  border-top: 1px solid var(--border);
  padding-top: 30px;
  margin-top: 40px;
}
.related h3 { font-size: 1.2rem; margin-bottom: 18px; }
.related-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.related-list a {
  display: block;
  padding: 16px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-weight: 600;
  font-size: 0.97rem;
  transition: border-color 0.18s, transform 0.18s;
}
.related-list a:hover { border-color: var(--primary); transform: translateY(-2px); text-decoration: none; }
.related-list span { display: block; font-size: 0.82rem; color: var(--text-faint); margin-top: 4px; font-weight: 400; }

/* Footer */
.site-footer {
  background: var(--bg-soft);
  border-top: 1px solid var(--border);
  padding: 50px 0 24px;
  margin-top: 60px;
  font-size: 0.93rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col-title,
.footer-grid h4 {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-mute);
  margin: 0 0 14px;
}
.footer-grid a {
  display: block;
  color: var(--text-mute);
  padding: 4px 0;
}
.footer-grid a:hover { color: var(--primary); text-decoration: none; }
.footer-grid p { color: var(--text-mute); font-size: 0.92rem; line-height: 1.6; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  color: var(--text-faint);
  font-size: 0.85rem;
}
.disclaimer-foot {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: var(--radius);
  padding: 14px 18px;
  margin-bottom: 30px;
  color: #7a3e08;
  font-size: 0.88rem;
}
@media (prefers-color-scheme: dark) {
  .disclaimer-foot { background: #2a1e08; border-color: #5e4a14; color: #fde68a; }
}

/* CTA banners */
.cta-band {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  padding: 50px 0;
  text-align: center;
}
.cta-band h2 { color: white; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,0.92); margin-bottom: 24px; }
.cta-band .btn-outline { color: white; border-color: rgba(255,255,255,0.5); background: transparent; }
.cta-band .btn-outline:hover { background: rgba(255,255,255,0.1); color: white; }

/* Image gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 10px;
  margin: 28px 0;
}
.gallery figure {
  margin: 0;
  aspect-ratio: 1/1;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}
.gallery figure img { width: 100%; height: 100%; object-fit: cover; }
.gallery .img-placeholder {
  width: 100%; height: 100%;
  background: repeating-linear-gradient(45deg, var(--bg-soft), var(--bg-soft) 8px, var(--bg-card) 8px, var(--bg-card) 16px);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-faint);
  font-size: 0.78rem;
  text-align: center;
  padding: 12px;
}

/* Search */
.search-box {
  position: relative; max-width: 560px; margin: 0 auto;
}
.search-box input {
  width: 100%; padding: 14px 18px 14px 46px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-card);
  font-size: 1rem;
  color: var(--text);
  font-family: inherit;
}
.search-box input:focus { outline: none; border-color: var(--primary); }
.search-box::before {
  content: "â"; position: absolute; left: 18px; top: 50%;
  transform: translateY(-50%); font-size: 1.2rem; color: var(--text-faint);
}

/* Newsletter */
.newsletter {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  margin: 40px 0;
}
.newsletter h3 { margin-top: 0; }
.newsletter form {
  display: flex; gap: 8px; max-width: 460px; margin: 18px auto 0;
  flex-wrap: wrap;
}
.newsletter input[type="email"] {
  flex: 1; min-width: 200px;
  padding: 12px 16px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.newsletter input[type="email"]:focus { outline: none; border-color: var(--primary); }

/* Modal (login/register) */
.modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 100;
  display: none;
  align-items: center; justify-content: center;
  padding: 20px;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.modal.active { display: flex; }
.modal-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  width: 100%; max-width: 420px;
  box-shadow: var(--shadow-lg);
  position: relative;
  animation: pop 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes pop { from { opacity: 0; transform: scale(0.96) translateY(8px); } to { opacity: 1; transform: scale(1) translateY(0); } }
.modal-close {
  position: absolute; top: 12px; right: 12px;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--bg-soft); border: 0;
  font-size: 1.2rem; color: var(--text-mute);
  display: flex; align-items: center; justify-content: center;
}
.modal-tabs { display: flex; background: var(--bg-soft); padding: 4px; border-radius: 10px; margin-bottom: 24px; }
.modal-tabs button {
  flex: 1; padding: 9px; border-radius: 8px; border: 0;
  background: transparent; font-weight: 600; color: var(--text-mute);
  font-size: 0.9rem;
}
.modal-tabs button.active { background: var(--bg-card); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.auth-form.hidden { display: none; }
.auth-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.85rem; font-weight: 500; color: var(--text-mute);
}
.auth-form input {
  padding: 11px 14px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg);
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
}
.auth-form input:focus { outline: none; border-color: var(--primary); }
.auth-form .form-msg { font-size: 0.88rem; min-height: 1em; }
.auth-form .form-msg.error { color: var(--bad); }
.auth-form .form-msg.ok { color: var(--good); }

/* Responsive */
@media (max-width: 900px) {
  .hero { padding: 40px 0 44px; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn-xl { width: 100%; align-items: center; text-align: center; }
  .hero-trust { gap: 8px 12px; font-size: 0.82rem; }
  .hero-eyebrow { font-size: 0.76rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: block; }
  .lang-switch { padding: 7px 12px; font-size: 0.88rem; margin-right: 4px; }
  .lang-switch span:not([aria-hidden]) { font-size: 0.86rem; }
  .site-header.menu-open .nav-links {
    display: flex; flex-direction: column;
    position: absolute; top: 64px; left: 0; right: 0;
    background: var(--bg-card); border-bottom: 1px solid var(--border);
    padding: 16px 20px; gap: 8px;
  }
  .site-header.menu-open .nav-cta {
    display: flex; flex-direction: column; gap: 8px;
    position: absolute; top: 280px; left: 20px; right: 20px;
  }
  .site-header.menu-open .nav-cta .btn { width: 100%; }
  .proscons { grid-template-columns: 1fr; }
}
@media (max-width: 540px) {
  body { font-size: 16px; }
  .section { padding: 40px 0; }
  .hero { padding: 36px 0 30px; }
  .article-body p, .article-body li { font-size: 1rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .modal-card { padding: 24px 20px; }
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .cta-band, .newsletter, .modal, .top-bar { display: none; }
  body { color: black; background: white; }
  a { color: black; text-decoration: underline; }
}
