/* ======================================================
   casinoenligne.cfd — Nuit Parisienne · v3
   Midnight purple · Electric magenta · Champagne gold
   Dark luxe theme, radical redesign
   ====================================================== */

:root {
  /* Core palette */
  --midnight-0: #0a071a;
  --midnight-1: #120c2d;
  --midnight-2: #1a1240;
  --midnight-3: #241854;
  --midnight-4: #2f2068;
  --purple-500: #7c3aed;
  --purple-400: #9d5eff;
  --purple-300: #c084fc;
  --magenta:    #ec4899;
  --magenta-2:  #ff5aa8;
  --magenta-3:  #ff7bb8;
  --gold:       #f5c542;
  --gold-2:     #ffd66b;
  --gold-3:     #fde3a0;
  --teal:       #22d3ee;

  /* Neutrals */
  --paper:      #f6f2ff;
  --ink:        #f6f2ff;
  --ink-2:      #d8d0f0;
  --muted:      #b0a4d1;
  --dim:        #857aa5;
  --line:       rgba(148, 122, 216, 0.22);
  --line-2:     rgba(148, 122, 216, 0.35);

  --bg-0: #0a071a;
  --bg-1: #120c2d;
  --bg-2: #1a1240;
  --card-bg: rgba(36, 24, 84, 0.55);
  --card-border: rgba(192, 132, 252, 0.28);

  --success: #34d399;
  --success-100: rgba(52, 211, 153, 0.18);
  --danger:  #f87171;
  --danger-100: rgba(248, 113, 113, 0.18);

  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-1: 0 2px 6px rgba(0, 0, 0, 0.35), 0 1px 2px rgba(0, 0, 0, 0.2);
  --shadow-2: 0 12px 28px rgba(0, 0, 0, 0.45), 0 4px 10px rgba(124, 58, 237, 0.15);
  --shadow-3: 0 24px 60px rgba(124, 58, 237, 0.35), 0 8px 20px rgba(0, 0, 0, 0.55);
  --shadow-magenta: 0 8px 30px rgba(236, 72, 153, 0.45);
  --shadow-gold: 0 6px 18px rgba(245, 197, 66, 0.30);
  --glow: 0 0 24px rgba(157, 94, 255, 0.45);

  --grad-hero: linear-gradient(135deg, #241854 0%, #4a1f78 40%, #7c1d5a 100%);
  --grad-accent: linear-gradient(135deg, #ec4899 0%, #7c3aed 100%);
  --grad-gold: linear-gradient(135deg, #ffd66b 0%, #f5c542 60%, #d8a51f 100%);

  --max-w: 1200px;

  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-head: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--bg-0);
  background-image:
    radial-gradient(1200px 600px at 10% -10%, rgba(124, 58, 237, 0.22), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(236, 72, 153, 0.18), transparent 60%),
    radial-gradient(1200px 800px at 50% 100%, rgba(34, 211, 238, 0.10), transparent 60%);
  color: var(--ink);
  line-height: 1.7;
  font-size: 16px;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100%;
  position: relative;
  font-feature-settings: "ss01", "ss02", "cv11";
}

img { max-width: 100%; display: block; height: auto; }

a {
  color: var(--magenta-3);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover { color: var(--gold-2); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-head);
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  font-weight: 700;
}

p, li { color: var(--ink-2); }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 18px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

/* ---------- Flag inline ---------- */
h1 img.emoji, h2 img.emoji, .flag-emoji img.emoji {
  display: inline-block; height: 0.9em; width: auto; vertical-align: -0.12em; margin: 0 0.06em;
}
.flag-inline {
  display: inline-block; height: 0.85em; width: auto; vertical-align: -0.08em; margin: 0 0.2em;
  border-radius: 3px; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.flag-ico-img { display: inline-block; vertical-align: -4px; margin-right: 6px; border-radius: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0; z-index: 100;
  background: rgba(10, 7, 26, 0.75);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 14px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo img {
  height: 40px; width: auto;
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.35));
}
@media (min-width: 720px) {
  .logo img { height: 46px; }
  .header-inner { padding: 16px 0; gap: 20px; }
}

.header-search { display: none; }
@media (min-width: 1000px) {
  .header-search {
    position: relative; flex: 1; max-width: 340px;
    display: flex; align-items: center;
    background: rgba(36, 24, 84, 0.5);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 10px 16px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
  }
  .header-search:focus-within {
    border-color: var(--magenta);
    box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.15);
  }
  .header-search .hs-ico { color: var(--purple-300); font-size: 14px; margin-right: 10px; }
  .hs-input {
    flex: 1; border: 0; background: transparent; outline: none;
    color: var(--ink); font-family: inherit; font-size: 14px;
  }
  .hs-input::placeholder { color: var(--dim); }
  .hs-results {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--midnight-2); border: 1px solid var(--card-border);
    border-radius: 14px; box-shadow: var(--shadow-3);
    margin-top: 8px; padding: 10px; z-index: 200;
    max-height: 60vh; overflow: auto;
  }
  .hs-results a { display: block; padding: 10px 14px; border-radius: 8px; color: var(--ink-2); font-size: 14px; }
  .hs-results a:hover { background: rgba(124, 58, 237, 0.2); color: var(--gold-2); text-decoration: none; }
}
.hs-results[hidden] { display: none; }

.nav {
  display: none;
  align-items: center;
  gap: 2px;
  font-family: var(--font-head); font-weight: 500; font-size: 13.5px;
}
.nav > a {
  color: var(--ink-2);
  padding: 8px 10px;
  border-radius: 8px;
  position: relative;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}
@media (min-width: 1100px) {
  .nav { gap: 4px; font-size: 14px; }
  .nav > a { padding: 9px 12px; }
}
.nav > a:hover {
  color: var(--gold-2);
  background: rgba(124, 58, 237, 0.15);
  text-decoration: none;
}
.nav > a.active {
  color: var(--midnight-0);
  background: var(--grad-gold);
  font-weight: 600;
}

@media (min-width: 1000px) {
  .nav { display: flex; }
}
/* Hide search box below 1500px to leave room for the nav */
@media (max-width: 1500px) {
  .header-search { display: none; }
}

.menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  background: rgba(124, 58, 237, 0.2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s ease;
}
.menu-toggle:hover { background: rgba(236, 72, 153, 0.25); }
@media (min-width: 960px) { .menu-toggle { display: none; } }

/* Mobile nav open state */
.nav.open {
  display: flex;
  position: absolute;
  top: 100%; left: 0; right: 0;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  background: var(--midnight-1);
  border-bottom: 1px solid var(--line);
  padding: 12px 18px 18px;
  box-shadow: var(--shadow-2);
}
.nav.open > a {
  padding: 12px 14px;
  border-radius: 10px;
}

/* ---------- Market subnav (guide pills) ---------- */
.market-subnav {
  background: linear-gradient(180deg, rgba(124, 58, 237, 0.14), transparent);
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}
.subnav-scroll {
  display: flex; gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.subnav-scroll::-webkit-scrollbar { display: none; }
.subnav-scroll a {
  display: inline-flex; align-items: center;
  padding: 8px 16px;
  background: rgba(36, 24, 84, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-family: var(--font-head);
  font-size: 13.5px; font-weight: 500;
  white-space: nowrap;
  transition: all 0.2s ease;
}
.subnav-scroll a:hover {
  background: var(--grad-accent);
  color: var(--white);
  border-color: transparent;
  text-decoration: none;
  transform: translateY(-1px);
}

/* ---------- Page hero ---------- */
.page-hero {
  position: relative;
  padding: 48px 0 56px;
  overflow: hidden;
  isolation: isolate;
}
.page-hero .blob {
  position: absolute; z-index: -1;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
}
.page-hero .blob.a {
  width: 480px; height: 480px;
  background: radial-gradient(circle, var(--purple-500), transparent 70%);
  top: -180px; left: -140px;
  animation: floatA 18s ease-in-out infinite;
}
.page-hero .blob.b {
  width: 520px; height: 520px;
  background: radial-gradient(circle, var(--magenta), transparent 70%);
  top: -100px; right: -160px;
  animation: floatB 22s ease-in-out infinite;
}
@keyframes floatA {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(60px, 40px) scale(1.1); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0) scale(1); }
  50%     { transform: translate(-70px, 30px) scale(1.15); }
}

.breadcrumbs {
  display: flex; align-items: center; gap: 8px;
  font-size: 13.5px;
  color: var(--muted);
  margin-bottom: 20px;
  font-family: var(--font-head);
}
.breadcrumbs a { color: var(--purple-300); }
.breadcrumbs a:hover { color: var(--gold-2); }
.breadcrumbs .sep { color: var(--dim); }

.page-hero h1 {
  font-size: clamp(28px, 5.8vw, 52px);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 22px;
  background: linear-gradient(180deg, #ffffff 0%, #d8d0f0 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.lead {
  font-size: 17px;
  line-height: 1.75;
  color: var(--ink-2);
  max-width: 780px;
}
@media (min-width: 720px) { .lead { font-size: 18px; } }

/* Read more collapsible */
.read-more-wrap { position: relative; }
.read-more-content { max-height: 220px; overflow: hidden; position: relative; }
.read-more-content::after {
  content: "";
  position: absolute; bottom: 0; left: 0; right: 0; height: 90px;
  background: linear-gradient(180deg, transparent, var(--bg-0));
  pointer-events: none;
}
.read-more-wrap.expanded .read-more-content { max-height: none; }
.read-more-wrap.expanded .read-more-content::after { display: none; }
.read-more-btn {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 14px;
  padding: 10px 18px;
  background: transparent;
  color: var(--gold-2);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 500; font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}
.read-more-btn:hover {
  background: var(--gold);
  color: var(--midnight-0);
}
.read-more-btn .icon { transition: transform 0.2s ease; }
.read-more-wrap.expanded .read-more-btn .icon { transform: rotate(180deg); }

/* ---------- List headings ---------- */
.list-heading {
  font-size: clamp(22px, 3.6vw, 30px);
  margin: 32px 0 22px;
  position: relative;
  padding-left: 18px;
}
.list-heading::before {
  content: "";
  position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 5px; border-radius: 3px;
  background: var(--grad-accent);
}

/* ---------- Casino cards ---------- */
.casino-list {
  display: grid; gap: 22px;
  margin-bottom: 24px;
}

.casino-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 24px;
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  overflow: hidden;
}
.casino-card::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 60%, rgba(236, 72, 153, 0.06));
  pointer-events: none;
}
.casino-card:hover {
  transform: translateY(-4px);
  border-color: rgba(236, 72, 153, 0.5);
  box-shadow: var(--shadow-3), var(--shadow-magenta);
}

@media (min-width: 800px) {
  .casino-card {
    grid-template-columns: 88px 1.5fr 1.2fr 1fr;
    align-items: center;
    gap: 26px;
  }
}

.rank-badge {
  position: absolute;
  top: 16px; right: 16px;
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 44px; height: 30px;
  padding: 0 12px;
  background: var(--grad-gold);
  color: var(--midnight-0);
  font-family: var(--font-head);
  font-weight: 700; font-size: 14px;
  border-radius: 999px;
  box-shadow: var(--shadow-gold);
  z-index: 2;
  letter-spacing: 0.03em;
}
.rank-badge::before {
  content: "N°";
  margin-right: 2px;
  font-size: 11px;
  font-weight: 600;
  opacity: 0.85;
}
@media (min-width: 800px) {
  .rank-badge {
    position: relative;
    top: auto; right: auto; left: auto;
    width: 60px; height: 60px;
    min-width: 60px;
    font-size: 22px;
    border-radius: 999px;
    padding: 0;
  }
  .rank-badge::before { display: none; }
}

.casino-thumb {
  display: flex; align-items: center; justify-content: center;
  padding: 14px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: var(--radius);
  min-height: 90px;
}
.casino-thumb img {
  max-height: 62px; width: auto; object-fit: contain;
}
@media (min-width: 800px) {
  .casino-thumb { grid-column: 1 / 3; grid-row: 1; }
}
@media (min-width: 800px) {
  .casino-card { grid-template-columns: 60px 130px 1.3fr 1.1fr 1fr; }
  .casino-thumb { grid-column: 2; grid-row: 1; }
  .casino-info { grid-column: 3; }
  .casino-bonus { grid-column: 4; }
  .casino-cta { grid-column: 5; }
}

.casino-info h3 {
  font-size: 20px;
  margin-bottom: 6px;
  color: var(--ink);
}
.rating {
  display: inline-block;
  color: var(--gold-2);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 14px;
  margin-bottom: 10px;
  margin-right: 10px;
}

/* JS-injected score descriptor next to the rating */
.oc-score-desc {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(52, 211, 153, 0.15);
  color: var(--success);
  border: 1px solid rgba(52, 211, 153, 0.35);
  border-radius: 999px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 11.5px;
  letter-spacing: 0.03em;
  vertical-align: middle;
  margin-left: 4px;
  margin-bottom: 10px;
}

/* JS-injected "Réclamé X fois aujourd'hui" pill */
.oc-claimed {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 12px;
  padding: 6px 12px;
  background: rgba(236, 72, 153, 0.12);
  color: var(--magenta-3);
  border: 1px solid rgba(236, 72, 153, 0.28);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  align-self: center;
}
.casino-features {
  list-style: none;
  padding: 0;
}
.casino-features li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 6px;
  color: var(--ink-2);
}
.casino-features li::before {
  content: "✓";
  position: absolute; left: 0; top: 0;
  color: var(--magenta-2);
  font-weight: 700;
}

.casino-bonus {
  padding: 16px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.12), rgba(124, 58, 237, 0.12));
  border: 1px solid rgba(236, 72, 153, 0.25);
  border-radius: var(--radius);
}
.bonus-label {
  display: block;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 500;
  color: var(--purple-300);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}
.bonus-amount {
  display: block;
  font-family: var(--font-head);
  font-size: 16px;
  font-weight: 600;
  color: var(--gold-2);
  line-height: 1.35;
}

.casino-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 22px;
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  text-align: center;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, filter 0.2s ease;
  border: 0;
  text-decoration: none;
  letter-spacing: 0.01em;
}
.btn-block { display: flex; width: 100%; }
.btn-primary {
  background: var(--grad-accent);
  color: var(--white);
  box-shadow: var(--shadow-magenta);
}
.btn-primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
  text-decoration: none;
  color: var(--white);
  box-shadow: 0 12px 32px rgba(236, 72, 153, 0.55);
}
.btn-primary:active { transform: translateY(0); }

.payment-icons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  padding-top: 4px;
}
.payment-icons img {
  height: 20px; width: auto;
  background: rgba(255, 255, 255, 0.92);
  border-radius: 4px;
  padding: 3px 5px;
  opacity: 0.92;
}

/* ---------- Stat tiles ---------- */
.stat-tiles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 22px 0 12px;
}
@media (min-width: 640px) { .stat-tiles { grid-template-columns: repeat(4, 1fr); gap: 14px; } }

.stat-tile, .tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  text-align: center;
}
.stat-tile .num, .tile .num {
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: var(--gold-2);
  line-height: 1.1;
  margin-bottom: 6px;
}
.stat-tile .lbl, .tile .lbl {
  font-size: 12px;
  font-family: var(--font-head);
  font-weight: 500;
  color: var(--purple-300);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ---------- Verdict box ---------- */
.verdict-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  padding: 26px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.14));
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: var(--radius-lg);
  margin: 26px 0;
}
@media (min-width: 720px) {
  .verdict-box { grid-template-columns: 1fr auto; padding: 28px 32px; }
}
.verdict-box h3 {
  color: var(--gold-2);
  font-size: 20px;
  margin-bottom: 8px;
}
.verdict-box p { color: var(--ink-2); margin: 0; }
.verdict-box strong { color: var(--gold-2); font-weight: 700; }
.verdict-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  background: var(--grad-gold);
  color: var(--midnight-0) !important;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 14.5px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: var(--shadow-gold);
  transition: transform 0.15s ease, filter 0.2s ease;
  letter-spacing: 0.02em;
}
.verdict-cta:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  text-decoration: none;
  color: var(--midnight-0) !important;
}
.verdict-cta:visited { color: var(--midnight-0) !important; }

/* ---------- Content sections ---------- */
main { position: relative; }

.content {
  padding: 40px 0;
}
.content h2 {
  font-size: clamp(22px, 3.4vw, 30px);
  margin: 32px 0 16px;
  color: var(--ink);
}
.content h2:first-child { margin-top: 0; }
.content h3 {
  font-size: clamp(18px, 2.6vw, 22px);
  margin: 24px 0 12px;
  color: var(--gold-2);
}
.content p { margin: 0 0 14px; color: var(--ink-2); line-height: 1.75; }
.content ul, .content ol { margin: 0 0 16px 20px; color: var(--ink-2); }
.content li { margin-bottom: 6px; line-height: 1.65; }

/* ---------- Table of contents ---------- */
.toc {
  padding: 20px 22px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-left: 4px solid var(--magenta);
  border-radius: var(--radius);
  margin: 0 0 32px;
}
.toc-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.toc-title {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 16px;
  color: var(--gold-2);
  letter-spacing: 0.02em;
}
.toc-toggle {
  background: transparent;
  color: var(--purple-300);
  border: 0;
  cursor: pointer;
  padding: 4px 8px;
  font-size: 14px;
  border-radius: 6px;
}
.toc-toggle:hover { background: rgba(124, 58, 237, 0.15); color: var(--gold-2); }
.toc.is-collapsed .toc-list { display: none; }
.toc-list {
  list-style: none;
  padding: 0; margin: 0;
  counter-reset: toc;
}
.toc-list li {
  counter-increment: toc;
  padding: 6px 0 6px 32px;
  position: relative;
  font-size: 14px;
  line-height: 1.5;
}
.toc-list li::before {
  content: counter(toc, decimal-leading-zero);
  position: absolute; left: 0; top: 6px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--magenta-3);
  font-weight: 500;
}
.toc-list a { color: var(--ink-2); }
.toc-list a:hover { color: var(--gold-2); text-decoration: none; }

/* ---------- Tables ---------- */
.table-wrap {
  margin: 20px 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card-bg);
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 480px;
  font-size: 14.5px;
}
thead {
  background: linear-gradient(135deg, var(--purple-500), var(--magenta));
}
th {
  padding: 14px 16px;
  text-align: left;
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
td {
  padding: 14px 16px;
  color: var(--ink-2);
  border-top: 1px solid var(--line);
  vertical-align: top;
}
tbody tr:hover td { background: rgba(124, 58, 237, 0.08); }

/* ---------- Pros/cons ---------- */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0;
}
@media (min-width: 720px) { .pros-cons { grid-template-columns: 1fr 1fr; } }
.pros, .cons {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card-bg);
}
.pros { border-left: 4px solid var(--success); }
.cons { border-left: 4px solid var(--danger); }
.pros h4, .cons h4 {
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.pros h4 { color: var(--success); }
.cons h4 { color: var(--danger); }
.pros ul, .cons ul {
  list-style: none;
  padding: 0; margin: 0;
}
.pros li, .cons li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 8px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink-2);
}
.pros li::before { content: "✓"; position: absolute; left: 0; color: var(--success); font-weight: 700; }
.cons li::before { content: "×"; position: absolute; left: 0; color: var(--danger); font-weight: 700; }

/* ---------- Review banner ---------- */
.review-banner {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin: 16px 0 20px;
  box-shadow: var(--shadow-1);
}
.review-banner img { width: 100%; height: auto; display: block; }

/* ---------- Callouts ---------- */
.callout {
  padding: 20px 22px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  margin: 22px 0;
  background: var(--card-bg);
}
.callout.is-warning {
  border-left: 4px solid var(--gold);
  background: linear-gradient(135deg, rgba(245, 197, 66, 0.12), rgba(236, 72, 153, 0.08));
}
.callout.is-info {
  border-left: 4px solid var(--teal);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.10), rgba(124, 58, 237, 0.08));
}
.callout h3 {
  color: var(--gold-2);
  font-size: 17px;
  margin-bottom: 8px;
}
.callout p { color: var(--ink-2); }
.callout strong { color: var(--gold-2); }
.callout a { color: var(--magenta-3); }

/* ---------- Feature cards grid ---------- */
.feature-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0;
}
@media (min-width: 600px) { .feature-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .feature-cards { grid-template-columns: repeat(3, 1fr); } }

.feature-card {
  padding: 22px 22px 24px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--grad-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(236, 72, 153, 0.45);
  box-shadow: var(--shadow-2);
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-card .ico {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(124, 58, 237, 0.2));
  color: var(--gold-2);
  font-size: 22px;
  margin-bottom: 12px;
}
.feature-card h3 {
  font-size: 17px;
  margin-bottom: 8px;
}
.feature-card h3 a { color: var(--ink); }
.feature-card h3 a:hover { color: var(--gold-2); text-decoration: none; }
.feature-card p {
  font-size: 14.5px;
  color: var(--ink-2);
  line-height: 1.55;
}

/* ---------- Step boxes (numbered guide) ---------- */
.step-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 22px 0;
  counter-reset: step;
}
@media (min-width: 720px) { .step-grid { grid-template-columns: repeat(2, 1fr); } }
.step-box {
  position: relative;
  padding: 22px 22px 22px 66px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  counter-increment: step;
}
.step-num, .step-box::before {
  position: absolute;
  top: 22px; left: 18px;
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-accent);
  color: var(--white);
  font-family: var(--font-head);
  font-weight: 700;
  font-size: 15px;
  border-radius: 10px;
  box-shadow: var(--shadow-magenta);
}
.step-box:not(:has(.step-num))::before { content: counter(step); }
.step-box h3, .step-box h4 {
  font-size: 16px;
  color: var(--gold-2);
  margin-bottom: 8px;
}

/* ---------- FAQ ---------- */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color 0.2s ease;
}
.faq-item[open] { border-color: rgba(236, 72, 153, 0.45); }
.faq-item summary {
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-head);
  font-weight: 500;
  font-size: 15.5px;
  color: var(--ink);
  list-style: none;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--magenta-2);
  font-size: 22px;
  font-weight: 400;
  transition: transform 0.2s ease;
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "−"; }
.faq-answer {
  padding: 0 20px 18px;
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.7;
}

/* ---------- Related grid ---------- */
.related-title {
  font-size: 22px;
  margin: 32px 0 18px;
  color: var(--ink);
}
.related-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
@media (min-width: 600px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .related-grid { grid-template-columns: repeat(4, 1fr); } }

.related-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px 18px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, 0.45);
  text-decoration: none;
}
.r-tag {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 9px;
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.25), rgba(124, 58, 237, 0.25));
  color: var(--gold-2);
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 999px;
}
.r-title {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  font-size: 15px;
}
.related-card:hover .r-title { color: var(--gold-2); }

/* ---------- Author box ---------- */
.author-box {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  padding: 26px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(236, 72, 153, 0.10));
  border: 1px solid rgba(192, 132, 252, 0.35);
  border-radius: var(--radius-lg);
  margin: 24px 0;
}
@media (min-width: 640px) { .author-box { grid-template-columns: 130px 1fr; align-items: center; } }

.author-avatar {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--gold);
  box-shadow: var(--shadow-gold);
}
@media (min-width: 640px) { .author-avatar { width: 130px; height: 130px; } }
.author-eyebrow {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 11px;
  font-weight: 600;
  color: var(--magenta-3);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 6px;
}
.author-name-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 4px;
}
.author-name {
  font-size: 22px;
  color: var(--gold-2);
}
.author-email-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px;
  background: rgba(245, 197, 66, 0.15);
  color: var(--gold-2);
  border: 1px solid var(--gold);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 500;
}
.author-email-btn:hover {
  background: var(--gold);
  color: var(--midnight-0);
  text-decoration: none;
}
.author-role {
  display: block;
  font-family: var(--font-head);
  font-size: 13.5px;
  color: var(--purple-300);
  margin-bottom: 10px;
}
.author-bio {
  color: var(--ink-2);
  font-size: 14.5px;
  line-height: 1.65;
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight-0);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  margin-top: 60px;
  position: relative;
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: var(--grad-accent);
  opacity: 0.6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 28px;
}
@media (min-width: 640px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.site-footer h3 {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  color: var(--gold-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: 14px; }
.site-footer a { color: var(--ink-2); }
.site-footer a:hover { color: var(--gold-2); text-decoration: none; }
.site-footer p { color: var(--muted); font-size: 14px; }

.responsible-badge {
  display: inline-flex; align-items: center;
  padding: 6px 14px;
  background: rgba(248, 113, 113, 0.14);
  color: var(--danger);
  border: 1px solid rgba(248, 113, 113, 0.35);
  border-radius: 999px;
  font-family: var(--font-head);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12.5px;
  color: var(--dim);
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; } }

/* ---------- Utilities ---------- */
strong, b { color: var(--ink); font-weight: 700; }
.content strong { color: var(--gold-2); }

blockquote {
  margin: 18px 0;
  padding: 18px 22px;
  border-left: 4px solid var(--magenta);
  background: rgba(124, 58, 237, 0.10);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--ink-2);
}

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 28px 0;
}

::selection {
  background: rgba(236, 72, 153, 0.35);
  color: var(--gold-2);
}

/* ---------- Article body variants ---------- */
.article-hero { padding: 40px 0 24px; }
.article-body { padding: 20px 0 40px; }
.article-body p { font-size: 15.5px; line-height: 1.8; }

/* ---------- Accessibility ---------- */
:focus-visible {
  outline: 2px solid var(--magenta-2);
  outline-offset: 2px;
  border-radius: 4px;
}

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