/* ============================================================
   CITINOW — Design System CSS
   Site: citinowwin.com | Bahasa Melayu SEO Review Magazine
   Theme: Dark Sapphire/Gold — fintech-premium trust magazine
   Built: 2026-06-01
   ============================================================ */

/* ============================================================
   1. TOKENS & RESET
   ============================================================ */

:root {
  /* Core palette (locked) */
  --bg:        #0a0f1c;
  --surface:   #111a2e;
  --surface-2: #16203a;
  --accent:    #3b82f6;
  --accent-2:  #60a5fa;
  --gold:      #fbbf24;
  --text:      #e8edf6;
  --muted:     #94a3b8;
  --danger:    #ef4444;
  --radius:    14px;
  --maxw:      1180px;

  /* Extended palette */
  --surface-3:     #1c2949;
  --accent-dim:    #1e3a8a;
  --accent-glow:   rgba(59, 130, 246, 0.15);
  --accent-border: rgba(59, 130, 246, 0.3);
  --text-inv:      #0a0f1c;
  --border:        rgba(148, 163, 184, 0.15);
  --border-strong: rgba(148, 163, 184, 0.28);
  --shadow-sm:     0 1px 3px rgba(0,0,0,0.4), 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md:     0 4px 16px rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.3);
  --shadow-lg:     0 8px 32px rgba(0,0,0,0.5), 0 4px 12px rgba(0,0,0,0.35);
  --shadow-accent: 0 4px 24px rgba(59, 130, 246, 0.2);

  /* Typography */
  --font-head: 'Sora', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-body: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;

  /* Type scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */

  /* Spacing */
  --sp-1:   4px;
  --sp-2:   8px;
  --sp-3:   12px;
  --sp-4:   16px;
  --sp-5:   20px;
  --sp-6:   24px;
  --sp-8:   32px;
  --sp-10:  40px;
  --sp-12:  48px;
  --sp-16:  64px;

  /* Z-index scale */
  --z-base:    0;
  --z-raised:  10;
  --z-sticky:  20;
  --z-overlay: 40;
  --z-modal:   100;
  --z-toast:   1000;

  /* Transitions */
  --ease-out:  cubic-bezier(0.0, 0.0, 0.2, 1);
  --ease-in:   cubic-bezier(0.4, 0.0, 1, 1);
  --ease-std:  cubic-bezier(0.4, 0.0, 0.2, 1);
  --dur-fast:  150ms;
  --dur-base:  200ms;
  --dur-slow:  300ms;
}

/* --- CSS reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  hanging-punctuation: first last;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100dvh;
}

/* --- Typography base --- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(var(--text-2xl), 4vw, var(--text-4xl)); }
h2 { font-size: clamp(var(--text-xl), 3vw, var(--text-3xl)); }
h3 { font-size: clamp(var(--text-lg), 2.5vw, var(--text-2xl)); }
h4 { font-size: var(--text-xl); }
h5 { font-size: var(--text-lg); }
h6 { font-size: var(--text-base); font-weight: 600; }

p {
  max-width: 70ch;
  color: var(--text);
}

strong, b { font-weight: 600; }
em, i { font-style: italic; }

small { font-size: var(--text-sm); }

code, kbd, samp {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1px 5px;
}

pre {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4);
  overflow-x: auto;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: var(--text-sm);
}

abbr[title] {
  text-decoration: underline dotted;
  cursor: help;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--sp-8) 0;
}

/* --- Links --- */
a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out);
  cursor: pointer;
}

a:hover {
  color: var(--accent-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}

a:visited { color: var(--accent); }

/* --- Images --- */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
  height: auto;
}

img {
  border-radius: 8px;
}

/* --- Lists --- */
ul, ol {
  list-style: none;
}

/* --- Focus / Accessibility --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* Skip link */
.skip-link {
  position: absolute;
  top: -100px;
  left: var(--sp-4);
  z-index: var(--z-toast);
  background: var(--accent);
  color: var(--text-inv);
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--radius);
  font-weight: 600;
  transition: top var(--dur-fast);
}

.skip-link:focus {
  top: var(--sp-4);
}

/* ============================================================
   2. LAYOUT
   ============================================================ */

.container {
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  width: 100%;
}

@media (max-width: 600px) {
  .container { padding-inline: var(--sp-4); }
}

/* Content + Sidebar grid */
.layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--sp-8);
  align-items: start;
}

.layout__main {
  min-width: 0; /* prevent grid blowout */
}

.layout__sidebar {
  min-width: 0;
}

@media (max-width: 920px) {
  .layout {
    grid-template-columns: 1fr;
    gap: var(--sp-6);
  }

  .layout__sidebar {
    order: 2; /* sidebar flows after main content on mobile */
  }
}

/* Section spacing */
section + section,
.section + .section {
  margin-top: var(--sp-12);
}

.section {
  padding-block: var(--sp-10);
}

/* Breadcrumbs */
.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-sm);
  color: var(--muted);
  padding-block: var(--sp-3);
  padding-inline: 0;
  list-style: none;
}

.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

.breadcrumbs li + li::before {
  content: '/';
  color: var(--border-strong);
  font-size: var(--text-xs);
}

.breadcrumbs a {
  color: var(--muted);
  font-size: var(--text-sm);
}

.breadcrumbs a:hover {
  color: var(--accent);
}

.breadcrumbs [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}

/* ============================================================
   3. HEADER & NAV
   ============================================================ */

.header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  background: rgba(10, 15, 28, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
}

.header--scrolled {
  background: rgba(10, 15, 28, 0.98);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-sm);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-6);
  height: 64px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  text-decoration: none;
  flex-shrink: 0;
}

.logo__img {
  height: auto;
  max-height: 36px;
  max-width: min(220px, 52vw);
  width: auto;
  border-radius: 6px;
}

.logo__text {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: var(--text-xl);
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}

.logo__text span {
  color: var(--accent);
}

.logo:hover {
  text-decoration: none;
  opacity: 0.9;
}

/* Primary nav */
.nav {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
}

.nav__item {}

.nav__link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  padding: var(--sp-2) var(--sp-3);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
  border-radius: 8px;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
  white-space: nowrap;
}

.nav__link:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.nav__link.active,
.nav__link[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav__link i {
  font-size: var(--text-xs);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-out),
              border-color var(--dur-fast) var(--ease-out);
}

.mobile-toggle:hover {
  background: var(--surface-2);
  border-color: var(--border-strong);
}

/* Mobile nav drawer */
.header-bottom {
  display: none;
  padding-bottom: var(--sp-4);
  border-top: 1px solid var(--border);
  margin-top: 1px;
}

.header-bottom.active {
  display: block;
}

.header-bottom .nav {
  flex-direction: column;
  align-items: stretch;
  gap: var(--sp-1);
  padding-top: var(--sp-3);
}

.header-bottom .nav__link {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-base);
}

.header-bottom .header__cta {
  margin-top: var(--sp-3);
  width: 100%;
}

.header__cta {
  flex-shrink: 0;
}

@media (max-width: 920px) {
  .nav { display: none; }
  .header__cta.desktop-only { display: none; }
  .mobile-toggle { display: flex; }
}

/* ============================================================
   4. FOOTER
   ============================================================ */

.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-8);
  margin-top: var(--sp-16);
}

.footer__grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-8);
  margin-bottom: var(--sp-10);
}

.footer__brand {}

.footer__brand .logo { margin-bottom: var(--sp-4); }

.footer__tagline {
  color: var(--muted);
  font-size: var(--text-sm);
  line-height: 1.6;
  max-width: 28ch;
}

.footer__col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: var(--sp-4);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__links a {
  color: var(--muted);
  font-size: var(--text-sm);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out);
}

.footer__links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* Disclosure / legal block */
.footer__legal {
  border-top: 1px solid var(--border);
  padding-top: var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.affiliate-disclosure {
  background: var(--surface-2);
  border: 1px solid var(--accent-border);
  border-left: 3px solid var(--accent);
  border-radius: 8px;
  padding: var(--sp-3) var(--sp-4);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.55;
}

.affiliate-disclosure strong {
  color: var(--accent);
}

.footer__badges {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer__badge-18 {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--danger);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 800;
  border-radius: 6px;
  flex-shrink: 0;
}

.footer__rg {
  font-size: var(--text-sm);
  color: var(--muted);
}

.footer__rg a {
  color: var(--accent);
}

.footer__copyright {
  font-size: var(--text-xs);
  color: var(--muted);
}

.footer__legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-4);
  list-style: none;
}

.footer__legal-links a {
  font-size: var(--text-xs);
  color: var(--muted);
  text-decoration: none;
}

.footer__legal-links a:hover {
  color: var(--accent);
}

@media (max-width: 920px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--sp-6);
  }

  .footer__brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 600px) {
  .footer__grid {
    grid-template-columns: 1fr;
  }

  .footer__brand {
    grid-column: auto;
  }
}

/* ============================================================
   5. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 11px var(--sp-6);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
  min-height: 44px;

  /* Sapphire gradient */
  background: linear-gradient(135deg, var(--accent) 0%, #059669 60%, #047857 100%);
  color: #fff;
  box-shadow: 0 2px 12px rgba(59, 130, 246, 0.35),
              0 1px 3px rgba(0, 0, 0, 0.3);

  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-fast) var(--ease-out),
              opacity var(--dur-fast) var(--ease-out),
              background var(--dur-base) var(--ease-out);
}

.btn:hover {
  background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent) 60%, #059669 100%);
  box-shadow: 0 4px 20px rgba(59, 130, 246, 0.45),
              0 2px 6px rgba(0, 0, 0, 0.35);
  transform: translateY(-1px);
  text-decoration: none;
  color: #fff;
}

.btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 1px 6px rgba(59, 130, 246, 0.25);
}

.btn:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 3px;
}

.btn:disabled,
.btn[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Ghost variant */
.btn.ghost {
  background: transparent;
  color: var(--accent);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--accent-glow);
  border-color: var(--accent-2);
  color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  transform: translateY(-1px);
}

.btn.ghost:active {
  transform: translateY(0);
}

/* Block variant */
.btn.block {
  display: flex;
  width: 100%;
}

/* Size variants */
.btn.sm {
  padding: 7px var(--sp-4);
  font-size: var(--text-xs);
  min-height: 36px;
}

.btn.lg {
  padding: 14px var(--sp-8);
  font-size: var(--text-base);
  min-height: 52px;
}

/* Danger variant */
.btn.danger {
  background: linear-gradient(135deg, var(--danger), #b91c1c);
  box-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
}

.btn.danger:hover {
  box-shadow: 0 4px 20px rgba(239, 68, 68, 0.4);
}

/* ============================================================
   6. RANK CARD + RANK BADGE
   ============================================================ */

.rank-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.rank-card {
  display: grid;
  grid-template-columns: 48px 80px 1fr auto;
  align-items: center;
  gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  transition: transform var(--dur-fast) var(--ease-out),
              border-color var(--dur-base) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out);
  cursor: default;
}

.rank-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent-border);
  box-shadow: var(--shadow-md), 0 0 0 1px var(--accent-border);
}

/* Top 3 highlight */
.rank-card--1 { border-left: 3px solid var(--gold); }
.rank-card--2 { border-left: 3px solid #c0c0c0; }
.rank-card--3 { border-left: 3px solid #cd7f32; }

/* Rank badge */
.rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: var(--text-base);
  font-weight: 800;
  flex-shrink: 0;
  background: var(--surface-2);
  color: var(--muted);
  border: 2px solid var(--border);
}

.rank-badge--1 {
  background: linear-gradient(135deg, #fbbf24, #d97706);
  color: #000;
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(245, 197, 24, 0.35);
}

.rank-badge--2 {
  background: linear-gradient(135deg, #e2e8f0, #94a3b8);
  color: #1e293b;
  border-color: transparent;
}

.rank-badge--3 {
  background: linear-gradient(135deg, #cd7f32, #92400e);
  color: #fff;
  border-color: transparent;
}

/* Logo slot */
.rank-card__logo {
  width: 80px;
  height: 48px;
  border-radius: 8px;
  object-fit: contain;
  background: var(--surface-2);
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.rank-card__logo-placeholder {
  width: 80px;
  height: 48px;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Info block */
.rank-card__info {
  min-width: 0;
  flex: 1;
}

.rank-card__name {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rank-card__pros {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.rank-card__pro {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--muted);
}

.rank-card__pro::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
}

/* CTA slot */
.rank-card__cta {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: var(--sp-2);
}

@media (max-width: 920px) {
  .rank-card {
    grid-template-columns: 44px 72px 1fr;
    grid-template-rows: auto auto;
  }

  .rank-card__cta {
    grid-column: 1 / -1;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding-top: var(--sp-3);
    border-top: 1px solid var(--border);
    margin-top: var(--sp-3);
  }
}

@media (max-width: 600px) {
  .rank-card {
    grid-template-columns: 40px 64px 1fr;
    padding: var(--sp-4);
    gap: var(--sp-3);
  }

  .rank-card__name { font-size: var(--text-base); }
}

/* ============================================================
   7. RATING & STARS
   ============================================================ */

.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px var(--sp-3);
}

.rating__score {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.01em;
  font-feature-settings: 'tnum';
}

.stars {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  color: var(--gold);
  font-size: var(--text-sm);
}

.stars .fa-star { color: var(--gold); }
.stars .fa-star-half-alt { color: var(--gold); }
.stars .fa-star.empty,
.stars [data-empty] { color: var(--border-strong); }

/* Large rating block (for hero/card summary) */
.rating-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  text-align: center;
}

.rating-block__score {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
}

.rating-block__max {
  font-size: var(--text-sm);
  color: var(--muted);
}

.rating-block__stars {
  font-size: var(--text-lg);
}

.rating-block__count {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* Inline badge (chip) */
.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: rgba(245, 197, 24, 0.12);
  border: 1px solid rgba(245, 197, 24, 0.3);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold);
}

/* ============================================================
   8. RTP METER
   ============================================================ */

.rtp-meter {
  width: 100%;
}

.rtp-meter__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-2);
}

.rtp-meter__label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.rtp-meter__value {
  font-size: var(--text-sm);
  font-weight: 800;
  color: var(--accent);
  font-feature-settings: 'tnum';
}

.rtp-meter__track {
  width: 100%;
  height: 10px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}

.rtp-meter__fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent-dim), var(--accent), var(--accent-2));
  transition: width 0.6s var(--ease-out);
  /* Width set via inline style: style="width: calc(var(--val) * 1%)"
     OR via --val custom prop:  style="--val:96" and we compute below */
  width: calc(var(--val, 0) * 1%);
}

/* Colour-coded RTP fill thresholds */
.rtp-meter__fill[style*="--val: 9"],
.rtp-meter__fill[style*="--val:9"] {
  /* 90%+ — sapphire */
  background: linear-gradient(90deg, #059669, var(--accent), var(--accent-2));
}

.rtp-meter__hint {
  margin-top: var(--sp-1);
  font-size: var(--text-xs);
  color: var(--muted);
}

/* ============================================================
   9. COMPARE TABLE
   ============================================================ */

.compare-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: var(--surface);
  font-size: var(--text-sm);
}

.compare-table thead {
  background: var(--surface-2);
  position: sticky;
  top: 0;
  z-index: 1;
}

.compare-table th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
  white-space: nowrap;
}

.compare-table th:first-child {
  border-radius: calc(var(--radius) - 1px) 0 0 0;
}

.compare-table th:last-child {
  border-radius: 0 calc(var(--radius) - 1px) 0 0;
}

.compare-table td {
  padding: var(--sp-4);
  vertical-align: middle;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.compare-table tbody tr:last-child td {
  border-bottom: none;
}

.compare-table tbody tr:hover td {
  background: var(--surface-2);
}

/* Highlighted column (recommended) */
.compare-table th.highlight,
.compare-table td.highlight {
  background: var(--accent-glow);
  color: var(--accent);
  border-left: 1px solid var(--accent-border);
  border-right: 1px solid var(--accent-border);
}

.compare-table th.highlight {
  color: var(--accent-2);
}

/* Check/cross cells */
.compare-table .check { color: var(--accent); }
.compare-table .cross { color: var(--danger); }

/* Feature label cell */
.compare-table .feature-label {
  font-weight: 600;
  color: var(--text);
}

@media (max-width: 380px) {
  .compare-table {
    font-size: var(--text-xs);
  }

  .compare-table th,
  .compare-table td {
    padding: var(--sp-2) var(--sp-3);
  }
}

/* ============================================================
   10. OFFER CARD
   ============================================================ */

.offer-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  position: relative;
}

.offer-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-accent);
  border-color: var(--accent-border);
}

/* Accent stripe at top */
.offer-card::before {
  content: '';
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

.offer-card__inner {
  padding: var(--sp-6);
}

/* Type tag */
.offer-card__type {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

/* Big amount */
.offer-card__amount {
  font-size: clamp(var(--text-3xl), 5vw, 3.5rem);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--sp-2);
}

.offer-card__amount em {
  color: var(--accent);
  font-style: normal;
}

.offer-card__subtitle {
  font-size: var(--text-lg);
  color: var(--muted);
  font-weight: 500;
  margin-bottom: var(--sp-4);
}

.offer-card__terms {
  font-size: var(--text-xs);
  color: var(--muted);
  border-top: 1px solid var(--border);
  padding-top: var(--sp-3);
  margin-top: var(--sp-4);
  line-height: 1.55;
}

.offer-card__terms a {
  color: var(--accent);
  font-size: inherit;
}

.offer-card__cta {
  margin-top: var(--sp-5);
}

/* Grid layout for multiple offer cards */
.offer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--sp-5);
}

/* ============================================================
   11. SIDEBAR & TOP PICK
   ============================================================ */

.sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-5);
}

/* Sticky top-pick box */
.top-pick {
  position: sticky;
  top: 90px;
  background: var(--surface);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md), 0 0 0 1px rgba(59,130,246,0.08);
}

/* Glowing header stripe */
.top-pick::before {
  content: '';
  display: block;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--accent));
}

.top-pick__inner {
  padding: var(--sp-5);
}

.top-pick__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-4);
}

.top-pick__eyebrow i {
  color: var(--gold);
}

.top-pick__logo {
  width: 100%;
  height: 72px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  margin-bottom: var(--sp-4);
}

.top-pick__logo-placeholder {
  width: 100%;
  height: 72px;
  background: var(--surface-2);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--text-sm);
}

.top-pick__name {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--sp-2);
}

.top-pick__bonus {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--accent);
  letter-spacing: -0.03em;
  line-height: 1;
  margin-bottom: var(--sp-1);
}

.top-pick__bonus-sub {
  font-size: var(--text-sm);
  color: var(--muted);
  margin-bottom: var(--sp-4);
}

.top-pick__perks {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.top-pick__perks li {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-sm);
  color: var(--muted);
}

.top-pick__perks li i {
  color: var(--accent);
  font-size: var(--text-xs);
  width: 16px;
  flex-shrink: 0;
}

.top-pick__cta {
  margin-bottom: var(--sp-3);
}

.top-pick__disclaimer {
  font-size: var(--text-xs);
  color: var(--muted);
  text-align: center;
  line-height: 1.4;
}

/* Generic sidebar widget */
.sidebar-widget {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
}

.sidebar-widget__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin-bottom: var(--sp-4);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.sidebar-widget__title i {
  color: var(--accent);
}

/* ============================================================
   12. TABLE OF CONTENTS
   ============================================================ */

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-5);
  margin-bottom: var(--sp-8);
}

.toc__title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-4);
}

.toc__title i { color: var(--accent); }

.toc__list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  counter-reset: toc-counter;
}

.toc__item {
  counter-increment: toc-counter;
}

.toc__link {
  display: flex;
  align-items: baseline;
  gap: var(--sp-3);
  padding: var(--sp-2) var(--sp-3);
  font-size: var(--text-sm);
  color: var(--muted);
  border-radius: 8px;
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out);
}

.toc__link::before {
  content: counter(toc-counter, decimal-leading-zero);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent-dim);
  min-width: 20px;
  flex-shrink: 0;
  font-feature-settings: 'tnum';
}

.toc__link:hover {
  color: var(--text);
  background: var(--surface-2);
  text-decoration: none;
}

.toc__link.active {
  color: var(--accent);
  background: var(--accent-glow);
  font-weight: 500;
}

/* Sub-items */
.toc__sublist {
  list-style: none;
  padding-left: var(--sp-6);
  margin-top: var(--sp-1);
}

.toc__sublist .toc__link {
  font-size: var(--text-xs);
}

/* ============================================================
   13. FAQ ITEM (CSS-only accordion)
   ============================================================ */

.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out);
}

.faq-item:has(.faq-item__toggle:checked) {
  border-color: var(--accent-border);
}

/* The hidden checkbox powers the accordion */
.faq-item__toggle {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.faq-item__label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: color var(--dur-fast) var(--ease-out);
}

/* Use <details>/<summary> for CSS-only accordion */
details.faq-item summary.faq-item__label {
  list-style: none;
}

details.faq-item summary.faq-item__label::-webkit-details-marker {
  display: none;
}

.faq-item__label:hover {
  color: var(--accent);
}

.faq-item__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-2);
  border-radius: 50%;
  color: var(--muted);
  font-size: var(--text-xs);
  transition: transform var(--dur-fast) var(--ease-out),
              background var(--dur-fast) var(--ease-out),
              color var(--dur-fast) var(--ease-out);
}

details.faq-item[open] summary .faq-item__icon {
  transform: rotate(180deg);
  background: var(--accent-glow);
  color: var(--accent);
}

details.faq-item[open] summary {
  color: var(--accent);
}

.faq-item__body {
  padding: 0 var(--sp-5) var(--sp-5);
  font-size: var(--text-sm);
  color: var(--muted);
  line-height: 1.7;
  border-top: 1px solid var(--border);
  padding-top: var(--sp-4);
}

.faq-item__body p + p { margin-top: var(--sp-3); }

.faq-item__body a {
  color: var(--accent);
}

/* ============================================================
   14. GEO BOX (definitional answer block)
   ============================================================ */

.geo-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  padding: var(--sp-5) var(--sp-6);
  margin-bottom: var(--sp-6);
}

.geo-box__label {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-3);
}

.geo-box__title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--sp-3);
}

.geo-box__body {
  font-size: var(--text-base);
  color: var(--muted);
  line-height: 1.7;
  max-width: none;
}

.geo-box__body p + p { margin-top: var(--sp-3); }

/* ============================================================
   15. LAST UPDATED
   ============================================================ */

.last-updated {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--muted);
  margin-bottom: var(--sp-5);
}

.last-updated i { font-size: var(--text-xs); }

.last-updated time { font-weight: 500; }

/* ============================================================
   16. GAME CARD & CARD GRID
   ============================================================ */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: var(--sp-4);
}

.game-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              border-color var(--dur-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.game-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--accent-border);
  text-decoration: none;
}

.game-card__thumb {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background: var(--surface-2);
  border-radius: 0;
}

.game-card__thumb-placeholder {
  width: 100%;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: var(--text-2xl);
}

.game-card__body {
  padding: var(--sp-3);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.game-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-card__provider {
  font-size: var(--text-xs);
  color: var(--muted);
}

.game-card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--sp-2);
}

.game-card__rtp {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--accent);
}

.game-card__volatility {
  font-size: var(--text-xs);
  color: var(--muted);
}

/* Hot / new badges */
.game-card__badge {
  position: absolute;
  top: var(--sp-2);
  right: var(--sp-2);
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.game-card { position: relative; }

.game-card__badge--hot {
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: #fff;
}

.game-card__badge--new {
  background: linear-gradient(135deg, var(--accent), #059669);
  color: #fff;
}

@media (max-width: 600px) {
  .card-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--sp-3);
  }
}

@media (max-width: 380px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================================================
   17. PROSE (Long-form article typography)
   ============================================================ */

.prose {
  color: var(--text);
  font-size: var(--text-base);
  line-height: 1.75;
  max-width: 72ch;
}

.prose > * + * {
  margin-top: 1.4em;
}

.prose h2 {
  font-size: clamp(var(--text-xl), 3vw, var(--text-2xl));
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  margin-top: 2.2em;
  margin-bottom: 0.8em;
  padding-top: var(--sp-8);
  border-top: 1px solid var(--border);
  scroll-margin-top: 90px;
}

.prose h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.prose h3 {
  font-size: clamp(var(--text-lg), 2.5vw, var(--text-xl));
  font-weight: 700;
  color: var(--text);
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  scroll-margin-top: 90px;
}

.prose h4 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

.prose p {
  color: var(--text);
  max-width: none;
}

.prose a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--accent-border);
  font-weight: 500;
}

.prose a:hover {
  color: var(--accent-2);
  text-decoration-color: var(--accent);
}

.prose ul,
.prose ol {
  padding-left: var(--sp-6);
}

.prose ul { list-style: none; }

.prose ul > li {
  position: relative;
  padding-left: var(--sp-5);
}

.prose ul > li::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 0.6em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}

.prose ol { list-style: decimal; }

.prose ol > li {
  padding-left: var(--sp-2);
}

.prose ol > li::marker {
  color: var(--accent);
  font-weight: 700;
}

.prose li { margin-bottom: 0.4em; }

.prose blockquote {
  border-left: 4px solid var(--accent);
  padding: var(--sp-4) var(--sp-5);
  margin: var(--sp-6) 0;
  background: var(--accent-glow);
  border-radius: 0 var(--radius) var(--radius) 0;
  color: var(--text);
  font-style: italic;
  font-size: var(--text-lg);
}

.prose blockquote p {
  margin: 0;
}

.prose blockquote cite {
  display: block;
  font-size: var(--text-sm);
  font-style: normal;
  color: var(--muted);
  margin-top: var(--sp-2);
}

/* Table inside prose */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
  margin: var(--sp-6) 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

.prose thead {
  background: var(--surface-2);
}

.prose th {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted);
  border-bottom: 1px solid var(--border-strong);
}

.prose td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.prose tbody tr:last-child td {
  border-bottom: none;
}

.prose tbody tr:hover td {
  background: var(--surface-2);
}

.prose img {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  width: 100%;
  height: auto;
}

.prose figure {
  margin: var(--sp-6) 0;
}

.prose figcaption {
  text-align: center;
  font-size: var(--text-sm);
  color: var(--muted);
  margin-top: var(--sp-2);
}

/* Tip / info / warning callout boxes inside prose */
.prose .callout {
  display: flex;
  gap: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--sp-4) var(--sp-5);
  font-size: var(--text-sm);
  line-height: 1.65;
}

.prose .callout--tip   { border-left: 4px solid var(--accent); }
.prose .callout--warn  { border-left: 4px solid var(--gold); }
.prose .callout--alert { border-left: 4px solid var(--danger); }

.prose .callout i {
  font-size: var(--text-lg);
  flex-shrink: 0;
  margin-top: 2px;
}

.prose .callout--tip   i { color: var(--accent); }
.prose .callout--warn  i { color: var(--gold); }
.prose .callout--alert i { color: var(--danger); }

/* ============================================================
   18. UTILITIES
   ============================================================ */

/* Spacing helpers */
.mt-0  { margin-top: 0; }
.mt-2  { margin-top: var(--sp-2); }
.mt-4  { margin-top: var(--sp-4); }
.mt-6  { margin-top: var(--sp-6); }
.mt-8  { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mb-0  { margin-bottom: 0; }
.mb-2  { margin-bottom: var(--sp-2); }
.mb-4  { margin-bottom: var(--sp-4); }
.mb-6  { margin-bottom: var(--sp-6); }
.mb-8  { margin-bottom: var(--sp-8); }
.mb-10 { margin-bottom: var(--sp-10); }

/* Text utilities */
.muted  { color: var(--muted); }
.accent { color: var(--accent); }
.gold   { color: var(--gold); }
.danger { color: var(--danger); }
.text-sm   { font-size: var(--text-sm); }
.text-xs   { font-size: var(--text-xs); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.font-bold { font-weight: 700; }
.font-800  { font-weight: 800; }
.uppercase { text-transform: uppercase; letter-spacing: 0.06em; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  cursor: default;
}

.tag--accent {
  background: var(--accent-glow);
  border-color: var(--accent-border);
  color: var(--accent);
}

.tag--gold {
  background: rgba(245, 197, 24, 0.1);
  border-color: rgba(245, 197, 24, 0.3);
  color: var(--gold);
}

.tag--danger {
  background: rgba(239, 68, 68, 0.1);
  border-color: rgba(239, 68, 68, 0.3);
  color: var(--danger);
}

/* Section headings */
.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-6);
}

.section-heading__title {
  font-size: clamp(var(--text-xl), 3vw, var(--text-3xl));
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
}

.section-heading__title span {
  color: var(--accent);
}

.section-heading__eyebrow {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: var(--sp-2);
}

.section-heading__link {
  font-size: var(--text-sm);
  color: var(--accent);
  font-weight: 600;
  white-space: nowrap;
}

.section-heading__link:hover {
  color: var(--accent-2);
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-strong), transparent);
  border: none;
  margin: var(--sp-10) 0;
}

/* Flex & grid helpers */
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: var(--sp-2); }
.gap-4 { gap: var(--sp-4); }
.gap-6 { gap: var(--sp-6); }
.flex-wrap  { flex-wrap: wrap; }

/* Surface helpers */
.surface   { background: var(--surface); }
.surface-2 { background: var(--surface-2); }

/* Border helpers */
.rounded    { border-radius: var(--radius); }
.rounded-sm { border-radius: 8px; }
.rounded-full { border-radius: 999px; }
.bordered   { border: 1px solid var(--border); }

/* Visibility */
.hidden { display: none; }

@media (max-width: 920px) {
  .hide-mobile { display: none; }
}

@media (min-width: 921px) {
  .hide-desktop { display: none; }
}

/* ============================================================
   19. HERO SECTION (Homepage / Pillar opener)
   ============================================================ */

.hero {
  padding-block: var(--sp-12) var(--sp-10);
  position: relative;
  overflow: hidden;
}

/* Subtle sapphire radial glow backdrop */
.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -80px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 5px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: var(--sp-5);
}

.hero__title {
  font-size: clamp(var(--text-3xl), 5vw, 3.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.1;
  margin-bottom: var(--sp-5);
  max-width: 18ch;
}

.hero__title em {
  font-style: normal;
  color: var(--accent);
}

.hero__desc {
  font-size: var(--text-lg);
  color: var(--muted);
  max-width: 52ch;
  line-height: 1.65;
  margin-bottom: var(--sp-8);
}

.hero__cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
}

.hero__stat {}

.hero__stat-num {
  font-size: var(--text-2xl);
  font-weight: 900;
  color: var(--text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__stat-label {
  font-size: var(--text-xs);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================================
   20. MINI COMPONENTS & STATES
   ============================================================ */

/* Loading skeleton */
.skeleton {
  background: linear-gradient(
    90deg,
    var(--surface-2) 0%,
    var(--surface-3) 50%,
    var(--surface-2) 100%
  );
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: 6px;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Notification badge */
.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  background: var(--danger);
  color: #fff;
}

/* Dot indicator */
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-block;
}

.dot--gold   { background: var(--gold); }
.dot--danger { background: var(--danger); }
.dot--muted  { background: var(--muted); }

/* Pill label (e.g. "Recommended", "Hot") */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: var(--surface-2);
  color: var(--muted);
  border: 1px solid var(--border);
}

.pill--accent {
  background: var(--accent-glow);
  color: var(--accent);
  border-color: var(--accent-border);
}

.pill--gold {
  background: rgba(245,197,24,0.1);
  color: var(--gold);
  border-color: rgba(245,197,24,0.3);
}

/* Scrollbar styling (Webkit) */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--surface-3);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

/* Selection */
::selection {
  background: var(--accent-glow);
  color: var(--accent-2);
}
