/* ══════════════════════════════════════════
   INK & ECHO ADDON BUILDER — Premium Design
   ══════════════════════════════════════════ */

:root {
  --ink-bg-dark: #0b0c10;
  --ink-bg: #151821;
  --ink-panel: #1e222e;
  --ink-surface: rgba(30, 34, 46, 0.85);
  --ink-surface-hover: rgba(43, 49, 66, 0.95);
  --ink-border: rgba(255, 140, 0, 0.20);
  --ink-border-light: rgba(255, 140, 0, 0.45);
  --ink-gold: #FF8C00;
  --ink-gold-hover: #FFB347;
  --ink-gold-dim: #b86a00;
  --ink-text: #E5E9F0;
  --ink-muted: #8E9BB0;
  --ink-white: #FFFFFF;

  --step-inactive: rgba(255, 255, 255, 0.05);
  --step-active: var(--ink-gold);

  --radius-card: 12px;
  --radius-sm: 8px;
  --space-card: 24px;
  --shadow-glow: 0 0 24px rgba(212, 175, 55, 0.16);
  --glass-blur: blur(20px);
  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: 'Manrope', -apple-system, sans-serif;
  background-color: var(--ink-bg-dark);
  background-image: 
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.014) 1px, transparent 1px),
    radial-gradient(circle at 15% 50%, rgba(212, 175, 55, 0.04), transparent 25%),
    radial-gradient(circle at 85% 30%, rgba(212, 175, 55, 0.04), transparent 25%);
  background-size: 46px 46px, 46px 46px, auto, auto;
  background-position: 0 0, 0 0, center, center;
  color: var(--ink-text);
  min-height: 100vh;
  line-height: 1.6;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  animation: backgroundDrift 28s linear infinite;
}
em, i { font-family: 'Newsreader', serif; font-style: italic; }
::selection { background: rgba(255,140,0,0.32); color: var(--ink-white); }

:focus-visible {
  outline: 2px solid var(--ink-gold);
  outline-offset: 4px;
}

/* ── Custom Scrollbar ── */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--ink-bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(200, 175, 110, 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(200, 175, 110, 0.5); }

/* ── Ambient Glows Animations ── */
.glow {
  position: fixed;
  border-radius: 42% 58% 61% 39%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  mix-blend-mode: screen;
  animation: float 15s ease-in-out infinite alternate, glowBreath 7s ease-in-out infinite;
}
.glow-tl {
  width: min(760px, 88vw); height: min(560px, 70vw);
  background: conic-gradient(from 120deg, rgba(255,140,0,0.10), rgba(255,255,255,0.025), rgba(120,92,38,0.08), rgba(255,140,0,0.10));
  top: -180px; left: -180px;
}
.glow-br {
  width: min(820px, 86vw); height: min(620px, 76vw);
  background: conic-gradient(from 260deg, rgba(160,110,40,0.08), rgba(255,140,0,0.08), rgba(255,255,255,0.018), rgba(160,110,40,0.08));
  bottom: -200px; right: -150px;
  animation-delay: -5s;
}

.forge-embers {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.ember {
  position: absolute;
  bottom: -50px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffd700, #ff8c00);
  box-shadow: 0 0 12px 2px rgba(255, 140, 0, 0.8);
  opacity: 0;
  animation: emberRise var(--rise-time, 10s) ease-in infinite;
}
.ember::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: #ff4500;
  filter: blur(4px);
  opacity: 0.6;
}

.ember.e1 { left: 10%; --rise-time: 14s; animation-delay: 2s; transform: scale(1.2); }
.ember.e2 { left: 25%; --rise-time: 11s; animation-delay: 0s; transform: scale(0.8); }
.ember.e3 { left: 45%; --rise-time: 18s; animation-delay: 5s; transform: scale(1.5); }
.ember.e4 { left: 65%; --rise-time: 13s; animation-delay: 1s; transform: scale(0.6); }
.ember.e5 { left: 80%; --rise-time: 16s; animation-delay: 4s; transform: scale(1.1); }
.ember.e6 { left: 95%; --rise-time: 12s; animation-delay: 3s; transform: scale(0.9); }

.spark {
  position: absolute;
  bottom: -20px;
  width: 2px;
  height: 8px;
  background: #fff;
  box-shadow: 0 0 8px 1px rgba(255, 215, 0, 0.9);
  opacity: 0;
  animation: sparkShoot var(--shoot-time, 3s) cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.spark.s1 { left: 30%; --shoot-time: 4s; animation-delay: 1s; transform: rotate(15deg); }
.spark.s2 { left: 55%; --shoot-time: 3s; animation-delay: 2.5s; transform: rotate(-10deg); }
.spark.s3 { left: 75%; --shoot-time: 5s; animation-delay: 0.5s; transform: rotate(25deg); }

body::before {
  content: '';
  position: fixed;
  inset: -30% -20%;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse at bottom, rgba(255, 140, 0, 0.08) 0%, transparent 60%);
  animation: pulseForge 8s ease-in-out infinite alternate;
}

@keyframes emberRise {
  0% { opacity: 0; transform: translateY(0) scale(var(--page-scale, 1)) rotate(0); }
  10% { opacity: 0.8; }
  50% { transform: translateY(-40vh) translateX(30px) scale(var(--page-scale, 1)) rotate(90deg); }
  90% { opacity: 0; }
  100% { transform: translateY(-80vh) translateX(-20px) scale(var(--page-scale, 1)) rotate(180deg); }
}

@keyframes sparkShoot {
  0% { opacity: 0; transform: translateY(0) scaleY(1); }
  10% { opacity: 1; transform: translateY(-10vh) scaleY(2); }
  100% { opacity: 0; transform: translateY(-30vh) scaleY(0.5); }
}

@keyframes pulseForge {
  from { opacity: 0.6; transform: scale(1); }
  to { opacity: 1; transform: scale(1.1); }
}

@keyframes float {
  0% { transform: translateY(0) scale(1); }
  50% { transform: translateY(30px) scale(1.05) rotate(4deg); }
  100% { transform: translateY(0) scale(1) rotate(-2deg); }
}

@keyframes glowBreath {
  0%, 100% { opacity: 0.62; filter: blur(82px); }
  50% { opacity: 0.95; filter: blur(98px); }
}

@keyframes pageDrift {
  0% { opacity: 0; transform: translate3d(0, 108vh, 0) rotate(-18deg) scale(var(--page-scale, 1)); }
  10% { opacity: 0.30; }
  42% { opacity: 0.18; }
  70% { opacity: 0.28; }
  100% { opacity: 0; transform: translate3d(34px, -18vh, 0) rotate(24deg) scale(var(--page-scale, 1)); }
}

@keyframes inkDrop {
  0%, 100% { opacity: 0; transform: translate3d(0, 0, 0) scale(0.7); filter: blur(0); }
  22% { opacity: 0.52; transform: translate3d(8px, 18px, 0) scale(1); }
  54% { opacity: 0.18; transform: translate3d(-6px, 52px, 0) scale(1.45); filter: blur(1px); }
  75% { opacity: 0; transform: translate3d(12px, 74px, 0) scale(0.9); filter: blur(2px); }
}

@keyframes echoRing {
  0% { opacity: 0; transform: scale(0.72); }
  18% { opacity: 0.34; }
  72% { opacity: 0.06; }
  100% { opacity: 0; transform: scale(1.58); }
}

@keyframes auroraSweep {
  0% { opacity: 0.32; transform: translate3d(-9%, -2%, 0) rotate(-1deg); }
  55% { opacity: 0.56; }
  100% { opacity: 0.38; transform: translate3d(8%, 2%, 0) rotate(1deg); }
}

/* ── Site Header ── */
.site-header {
  position: relative; z-index: 100;
  display: flex; align-items: center; gap: 16px;
  padding: 20px 48px;
  background: rgba(11, 10, 8, 0.78);
  backdrop-filter: var(--glass-blur);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.site-header .logo {
  font-family: 'Newsreader', serif; font-style: italic; font-size: 1.4rem;
  color: var(--ink-gold); letter-spacing: 0.03em;
  text-shadow: 0 2px 10px rgba(212, 175, 55, 0.2);
  text-decoration: none;
}
.site-header .logo-sub {
  font-size: 0.75rem; color: var(--ink-muted); font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  border-left: 1px solid rgba(255, 255, 255, 0.1); padding-left: 16px;
}

/* ── Main ── */
.main { position: relative; z-index: 1; width: min(100%, 1040px); margin: 0 auto; padding: 70px 24px 100px; }

/* ── Hero ── */
.hero { text-align: center; margin-bottom: 56px; animation: fadeDown 0.8s ease backwards; }
  .powered-by {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-gold-hover);
    font-weight: 800; margin-bottom: 24px;
    padding: 8px 20px; border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 140, 0, 0.15), rgba(255, 140, 0, 0.02));
    border: 1px solid rgba(255, 140, 0, 0.3);
    box-shadow: 0 0 20px rgba(255, 140, 0, 0.15), inset 0 0 10px rgba(255, 140, 0, 0.1);
  }
  .powered-by .sparkle {
    color: #ff4500;
    animation: pulseForge 2s infinite alternate;
  }
  .powered-by a {
    color: var(--ink-gold-hover);
    text-decoration: underline;
    text-decoration-color: rgba(255, 140, 0, 0.4);
    text-underline-offset: 4px;
    transition: all var(--transition);
  }
  .powered-by a:hover {
    color: #fff;
    text-decoration-color: #ff8c00;
    text-shadow: 0 0 10px #ff8c00;
  }
  .logo-icon {
    font-style: normal;
    font-size: 1.2rem;
    color: var(--ink-gold);
    text-shadow: 0 0 10px rgba(255, 140, 0, 0.6);
    margin-right: 4px;
  }
.eyebrow {
  display: inline-block;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-gold);
  font-weight: 700; margin-bottom: 20px;
  padding: 6px 16px; border-radius: 999px;
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.14), rgba(255,255,255,0.025));
  border: 1px solid rgba(212, 175, 55, 0.24);
}
.hero h1 { font-family: 'Newsreader', serif; font-size: clamp(3rem, 7vw, 4.5rem); font-weight: 500; line-height: 1.05; color: var(--ink-white); margin-bottom: 24px; }
.text-steel {
  background: linear-gradient(to bottom, #f8fafc 0%, #cbd5e1 40%, #64748b 80%, #334155 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 4px 6px rgba(0,0,0,0.6);
  font-weight: 800;
}
.text-fire {
  background: linear-gradient(to top, #ff0000 0%, #ff8c00 40%, #ffeb3b 80%, #ffffff 100%);
  background-size: 100% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fireText 3s infinite alternate ease-in-out;
  display: inline-block;
  filter: drop-shadow(0 0 15px rgba(255, 69, 0, 0.5));
  font-style: italic;
}
@keyframes fireText {
  0% { background-position: 0% 100%; }
  100% { background-position: 0% 0%; }
}
.hero-sub { font-size: 1.15rem; color: var(--ink-muted); max-width: 580px; margin: 0 auto; font-weight: 400; line-height: 1.6; }

/* ── Wizard Card ── */
.wizard-card {
  background: var(--ink-surface);
  backdrop-filter: var(--glass-blur);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 24px;
  box-shadow: var(--shadow-base), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative; overflow: hidden;
  animation: fadeUp 0.8s ease 0.2s backwards;
}
.wizard-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212, 175, 55, 0.3), rgba(255,255,255,0.22), rgba(212, 175, 55, 0.3), transparent);
  background-size: 220% 100%;
  animation: edgeTrace 6s linear infinite;
}
.wizard-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,140,0,0.08), inset 0 80px 120px rgba(255,255,255,0.018);
}

/* ── Step Bar ── */
.step-bar { display: flex; align-items: center; padding: 30px 48px; border-bottom: 1px solid rgba(255,255,255,0.06); background: linear-gradient(180deg, rgba(0,0,0,0.36), rgba(0,0,0,0.18)); }
.step-dot { display: flex; flex-direction: column; align-items: center; gap: 10px; position: relative; cursor: default; }
.step-dot span {
  width: 36px; height: 36px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 700; background: var(--step-inactive); color: var(--ink-muted);
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition); border: 1px solid transparent; box-shadow: inset 0 2px 4px rgba(0,0,0,0.5);
}
.step-dot label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); transition: var(--transition); white-space: nowrap; font-weight: 600; }
.step-dot.active span { background: var(--ink-gold); color: #000; border-color: rgba(255,255,255,0.3); box-shadow: 0 0 0 6px rgba(255,140,0,0.08), 0 0 18px rgba(255,140,0,0.34); transform: scale(1.08); animation: activeStepPulse 2.8s ease-in-out infinite; }
.step-dot.active label { color: var(--ink-white); }
.step-dot.done span { background: rgba(255,140,0,0.15); color: var(--ink-gold); border-color: rgba(255,140,0,0.3); cursor: pointer; }
.step-dot.done label { color: var(--ink-text); cursor: pointer; }
.step-line { flex: 1; height: 2px; background: rgba(255,255,255,0.05); margin: 0 16px 24px; position: relative; overflow: hidden; border-radius: 2px; }
.step-dot.done + .step-line::after {
  content: ''; position: absolute; top: 0; left: 0; bottom: 0; width: 100%;
  background: var(--ink-gold); animation: loadLine 0.6s ease forwards;
}

/* ── Steps ── */
.step { display: none; padding: 48px; position: relative; z-index: 1; }
.step.active { display: block; animation: stepFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
.step h2 { font-family: 'Newsreader', serif; font-size: 2.2rem; font-weight: 500; color: var(--ink-white); margin-bottom: 12px; line-height: 1.2; }
.step-sub { color: var(--ink-muted); font-size: 1.02rem; margin-bottom: 34px; max-width: 650px; line-height: 1.65; }

/* ── Grids ── */
.card-grid { display: grid; gap: 20px; margin-bottom: 16px; }
.col-2 { grid-template-columns: repeat(2, 1fr); } .col-3 { grid-template-columns: repeat(3, 1fr); }
.content-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }

/* ── Pick Cards ── */
.pick-card { cursor: pointer; display: block; position: relative; }
.pick-card input { display: none; }
.pick-inner {
  border: 1px solid rgba(255, 255, 255, 0.08); border-radius: var(--radius-card); padding: var(--space-card);
  background: linear-gradient(180deg, rgba(255,255,255,0.035), rgba(0,0,0,0.26)); transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition); height: 100%; text-align: left;
  display: flex; flex-direction: column; overflow: hidden; position: relative;
}
.pick-inner::before {
  content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: radial-gradient(circle at top right, rgba(255,140,0,0.05), transparent 60%);
  opacity: 0; transition: var(--transition);
}
.pick-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08), transparent 35%);
  transition: opacity var(--transition);
}
.pick-card:hover .pick-inner { border-color: rgba(255,255,255,0.16); background: var(--ink-surface-hover); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(0,0,0,0.26); }
.pick-card:hover .pick-inner::before { opacity: 1; }
.pick-card:hover .pick-inner::after { opacity: 1; }
.pick-card input:checked + .pick-inner {
  border-color: var(--ink-gold); background: rgba(255,140,0,0.08);
  box-shadow:
    0 0 0 1px rgba(255,222,101,0.92),
    0 0 8px rgba(255,226,112,0.42),
    0 0 24px rgba(255,140,0,0.26),
    0 0 58px rgba(255,140,0,0.13),
    0 18px 42px rgba(0,0,0,0.32),
    inset 0 0 18px rgba(255,140,0,0.10),
    inset 0 1px 0 rgba(255,255,255,0.13);
  transform: translateY(-3px);
  animation: neonCardFlicker 5.8s linear infinite;
}
.pick-card:nth-child(2n) input:checked + .pick-inner { animation-delay: -1.4s; }
.pick-card:nth-child(3n) input:checked + .pick-inner { animation-delay: -2.6s; }
.pick-card:nth-child(4n) input:checked + .pick-inner { animation-delay: -3.8s; }
.pick-card input:checked + .pick-inner::before { opacity: 1; }
.pick-card input:checked + .pick-inner::after {
  opacity: 1;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.10), transparent 34%),
    radial-gradient(circle at 24% 0%, rgba(255,235,146,0.12), transparent 42%);
}
.pick-icon { font-size: 2.05rem; display: block; margin-bottom: 16px; transition: transform var(--transition), filter var(--transition); }
.pick-card:hover .pick-icon { transform: translateY(-2px) scale(1.05); filter: drop-shadow(0 8px 18px rgba(255,140,0,0.22)); }
.pick-inner h3 { font-family: 'Newsreader', serif; font-size: 1.26rem; font-weight: 500; color: var(--ink-white); margin-bottom: 8px; line-height: 1.2; }
.pick-inner p { font-size: 0.9rem; color: var(--ink-muted); line-height: 1.6; }
.pick-badge {
  display: inline-block; margin-top: auto; padding: 4px 12px; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; border-radius: 20px;
  background: rgba(255,255,255,0.05); color: var(--ink-text); border: 1px solid rgba(255,255,255,0.1);
  align-self: flex-start;
}
.pick-badge.good { background: rgba(255,140,0,0.15); color: var(--ink-gold); border-color: rgba(255,140,0,0.3); }

/* Content Cards Specifics */
  .content-card .pick-inner { min-height: 290px; justify-content: flex-start; }
  .content-card .pick-badge { margin-top: 16px; }
  .content-kicker { display: block; color: var(--ink-gold); font-size: 0.7rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; margin-bottom: 8px; }
  .content-card small {
    color: var(--ink-muted);
    display: block;
    font-size: 0.76rem;
    margin-top: 10px;
    margin-bottom: 16px;
  }
  .content-card .pick-badge.good {
    margin-top: auto;
  }

#step-2 .pick-inner {
  min-height: 270px;
}

/* ── Features ── */
.feature-list { list-style: none; margin-top: auto; padding-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { font-size: 0.85rem; padding-left: 24px; position: relative; color: var(--ink-muted); font-weight: 500; }
.feature-list li.yes { color: #a7d99b; }
.feature-list li.no { color: #d39a91; }
.feature-list li::before { position: absolute; left: 0; font-weight: bold; }
.feature-list li.yes::before { content: '✓'; color: #8CDB8C; }
.feature-list li.no::before { content: '✕'; color: #DB8C8C; opacity: 0.7; }

/* ── Coverage Layout ── */
.coverage-layout { display: grid; grid-template-columns: minmax(240px, 0.85fr) minmax(0, 1.55fr); gap: 20px; align-items: stretch; }
.coverage-hero .pick-inner { min-height: 100%; padding: 30px; display: flex; flex-direction: column; background: linear-gradient(145deg, rgba(255,140,0,0.12), rgba(0,0,0,0.44)); border-color: rgba(255,140,0,0.32); }
.coverage-hero-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.coverage-hero .pick-icon { margin-bottom: 0; background: rgba(255,140,0,0.2); width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; color: var(--ink-gold); }
.coverage-hero small { margin-top: auto; padding-top: 20px; color: var(--ink-muted); font-size: 0.85rem; line-height: 1.5; }

.coverage-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.coverage-option {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 16px; border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.22)); padding: 18px; min-height: 112px; cursor: pointer; transition: transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
}
.coverage-option:hover { border-color: rgba(255,140,0,0.3); background: rgba(255,140,0,0.05); transform: translateY(-2px); }
.coverage-option input { display: none; }
.coverage-option:has(input:checked) {
  border-color: rgba(255,222,101,0.94);
  background:
    radial-gradient(circle at 18% 12%, rgba(255,226,112,0.12), transparent 34%),
    linear-gradient(180deg, rgba(255,140,0,0.12), rgba(0,0,0,0.18));
  box-shadow:
    0 0 0 1px rgba(255,222,101,0.78),
    0 0 8px rgba(255,226,112,0.36),
    0 0 24px rgba(255,140,0,0.20),
    0 0 54px rgba(255,140,0,0.10),
    inset 0 0 16px rgba(255,140,0,0.08);
  animation: neonTileFlicker 6.4s linear infinite;
}
.coverage-option:nth-child(2n):has(input:checked) { animation-delay: -1.1s; }
.coverage-option:nth-child(3n):has(input:checked) { animation-delay: -2.9s; }
.coverage-option:nth-child(4n):has(input:checked) { animation-delay: -4.2s; }
.coverage-option-icon {
  width: 44px; height: 44px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  color: var(--ink-gold); background: rgba(255,140,0,0.1); font-size: 1.4rem; flex-shrink: 0;
}
.coverage-option:has(input:checked) .coverage-option-icon {
  color: #ffe26d;
  background: rgba(255,140,0,0.16);
  box-shadow:
    0 0 12px rgba(255,140,0,0.20),
    inset 0 0 10px rgba(255,226,112,0.08);
  animation: neonIconWink 5.2s ease-in-out infinite;
}
.coverage-option strong { display: block; color: var(--ink-white); font-size: 0.95rem; font-weight: 600; margin-bottom: 4px; }
.coverage-option small { display: block; color: var(--ink-muted); font-size: 0.8rem; line-height: 1.4; }

.coverage-summary {
  margin-top: 24px; border: 1px solid rgba(255,140,0,0.3); border-radius: var(--radius-sm);
  background: linear-gradient(to right, rgba(255,140,0,0.11), rgba(0,0,0,0.26)); padding: 20px 24px;
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 16px;
}
.coverage-summary strong { color: var(--ink-gold); font-size: 1rem; font-weight: 700; white-space: nowrap; }
.coverage-summary span { color: var(--ink-text); font-size: 0.9rem; line-height: 1.5; }

.coverage-extra {
  margin-top: 14px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.22);
  padding: 14px 16px;
}
.coverage-extra summary {
  color: var(--ink-muted);
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 700;
  list-style-position: outside;
  transition: var(--transition);
}
.coverage-extra summary:hover {
  color: var(--ink-gold);
}
.coverage-extra-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

/* ── Control Center ── */
.control-panel { border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-card); background: linear-gradient(180deg, rgba(255,255,255,0.03), rgba(0,0,0,0.2)); padding: 28px; margin-bottom: 32px; box-shadow: inset 0 2px 10px rgba(0,0,0,0.42); }
.control-panel-head { margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
.control-panel-head { margin-bottom: 24px; border-bottom: 1px solid rgba(255,255,255,0.05); padding-bottom: 20px; }
.control-panel-head span, .subhead { color: var(--ink-white); font-family: 'Newsreader', serif; font-size: 1.4rem; font-weight: 500; }
.control-panel-head p { color: var(--ink-muted); font-size: 0.9rem; margin-top: 6px; }
.subhead { margin-bottom: 8px; }
.tighter { margin-bottom: 24px; }

.control-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.field { display: flex; flex-direction: column; gap: 10px; }
.field > span { color: var(--ink-text); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.field small { color: var(--ink-muted); font-size: 0.8rem; line-height: 1.5; }

/* Select & Segmented Inputs */
select {
  -webkit-appearance: none; appearance: none; width: 100%; border: 1px solid rgba(255,255,255,0.1); background: rgba(0,0,0,0.5) url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%23D4AF37' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 16px center;
  color: var(--ink-white); border-radius: var(--radius-sm); padding: 14px 16px; font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 500; cursor: pointer; transition: border-color var(--transition), box-shadow var(--transition), background-color var(--transition);
}
select:hover { border-color: rgba(255,255,255,0.2); }
select:focus { outline: none; border-color: var(--ink-gold); box-shadow: 0 0 0 3px rgba(255,140,0,0.2); }

.segmented { display: flex; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-sm); overflow: hidden; padding: 4px; gap: 4px; }
.segmented label { flex: 1; }
.segmented input { display: none; }
.segmented span {
  display: block; text-align: center; padding: 10px; color: var(--ink-muted); font-size: 0.85rem; font-weight: 600;
  border-radius: 6px; cursor: pointer; transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.segmented input:checked + span { background: rgba(255,140,0,0.15); color: var(--ink-gold); box-shadow: 0 2px 8px rgba(0,0,0,0.2); }
.segmented input:checked + span {
  text-shadow: 0 0 10px rgba(255,140,0,0.30);
  box-shadow:
    0 0 0 1px rgba(255,140,0,0.22),
    0 0 18px rgba(255,140,0,0.10),
    inset 0 0 12px rgba(255,140,0,0.08);
}

/* Switches */
.control-row { margin-top: 20px; border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-sm); padding: 18px 20px; background: rgba(0,0,0,0.25); transition: border-color var(--transition), background var(--transition); }
.control-row:hover { border-color: rgba(255,255,255,0.15); }
.switch-line { display: grid; grid-template-columns: 40px 1fr; grid-template-rows: auto auto; column-gap: 16px; align-items: center; cursor: pointer; }
.switch-line input {
  -webkit-appearance: none; appearance: none; width: 40px; height: 24px; background: rgba(255,255,255,0.1); border-radius: 20px;
  position: relative; cursor: pointer; outline: none; transition: var(--transition); grid-row: 1 / 3;
}
.switch-line input::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px;
  background: var(--ink-muted); border-radius: 50%; transition: var(--transition); box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}
.switch-line input:checked { background: var(--ink-gold); }
.switch-line input:checked::after { left: 18px; background: #fff; }
.switch-line input:checked {
  box-shadow:
    0 0 0 1px rgba(255,222,101,0.52),
    0 0 16px rgba(255,140,0,0.25);
  animation: neonSwitchFlicker 7.1s linear infinite;
}
.switch-line span { color: var(--ink-white); font-size: 0.95rem; font-weight: 600; grid-column: 2; grid-row: 1; }
.switch-line small { color: var(--ink-muted); font-size: 0.85rem; line-height: 1.5; grid-column: 2; grid-row: 2; margin-top: 4px; }

/* ── Lang Grid ── */
.lang-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 24px; }
.lang-card .pick-inner { padding: 16px 12px; text-align: center; min-height: 96px; align-items: center; justify-content: center; }
.lang-card .pick-icon { font-size: 1.8rem; margin-bottom: 8px; }
.lang-card .pick-inner h3 { font-size: 0.9rem; margin-bottom: 0; }
.lang-card .pick-inner p { display: none; }

/* ── Step Footer Buttons ── */
.step-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 32px; margin-top: 32px; border-top: 1px solid rgba(255,255,255,0.06); }
  .btn-primary {
    background: linear-gradient(145deg, #FF8C00, #b86a00);
    color: #fff;
    box-shadow: 0 4px 15px rgba(255,140,0,0.3), inset 0 1px 0 rgba(255,255,255,0.4);
    border: none;
    overflow: hidden;
    position: relative;
    font-weight: 800;
    display: inline-flex; align-items: center; gap: 8px; padding: 16px 36px;
    font-family: 'Manrope', sans-serif; font-size: 1.05rem;
    border-radius: 999px; cursor: pointer; transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
  }
  .btn-primary::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(255,255,255,0.2), transparent);
    opacity: 0;
    transition: opacity 0.2s;
  }
  .btn-primary:hover::after { opacity: 1; }
  .btn-primary:hover { transform: translateY(-2px); box-shadow: 0 9px 28px rgba(255,140,0,0.5), inset 0 1px 0 rgba(255,255,255,0.5); filter: saturate(1.2); }
.btn-primary:active, .btn-ghost:active { transform: translateY(0); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 28px;
  background: rgba(255, 255, 255, 0.03); color: var(--ink-text);
  font-family: 'Manrope', sans-serif; font-size: 0.95rem; font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.1); border-radius: 999px; cursor: pointer; transition: transform var(--transition), border-color var(--transition), background var(--transition), color var(--transition);
}
.btn-ghost:hover { background: rgba(255,140,0,0.1); border-color: rgba(255,140,0,0.3); color: var(--ink-gold); transform: translateY(-2px); }

/* ── Install Step ── */
.summary-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 32px; background: rgba(0,0,0,0.2); padding: 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.05); }
.pill { padding: 6px 16px; border-radius: 20px; font-size: 0.85rem; font-weight: 700; background: rgba(255,140,0,0.1); border: 1px solid rgba(255,140,0,0.3); color: var(--ink-gold); box-shadow: 0 2px 10px rgba(0,0,0,0.2); }

.install-guide { display: flex; flex-direction: column; gap: 16px; margin-bottom: 32px; }
.install-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 20px; padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,0.026), rgba(0,0,0,0.24)); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-card); transition: transform var(--transition), border-color var(--transition), background var(--transition);
}
.install-card:hover { transform: translateY(-2px); border-color: rgba(255,140,0,0.22); }
.install-card.primary { background: linear-gradient(to right, rgba(255,140,0,0.05), rgba(0,0,0,0.3)); border-color: rgba(255,140,0,0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.2); }
.install-step { width: 44px; height: 44px; border-radius: 50%; background: var(--ink-gold); color: #000; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; flex-shrink: 0; box-shadow: inset 0 2px 5px rgba(255,255,255,0.5); }
.install-card > div { min-width: 0; }
.install-card h3 { color: var(--ink-white); font-size: 1.1rem; font-weight: 600; margin-bottom: 6px; }
.install-card p { color: var(--ink-muted); font-size: 0.9rem; line-height: 1.5; }
.install-card .btn-primary, .install-card .btn-ghost { padding: 12px 24px; font-size: 0.9rem; }

.result-panel { margin-top: 32px; padding: 24px; background: linear-gradient(180deg, rgba(255,255,255,0.025), rgba(0,0,0,0.2)); border: 1px solid rgba(255,255,255,0.06); border-radius: var(--radius-card); }
.result-panel h3 { font-family: 'Newsreader', serif; font-size: 1.3rem; font-weight: 500; color: var(--ink-white); margin-bottom: 16px; }

.test-row { display: flex; gap: 12px; align-items: center; }
.test-row input { flex: 1; background: rgba(0,0,0,0.5); border: 1px solid rgba(255,255,255,0.1); padding: 14px 20px; border-radius: 30px; color: #fff; font-family: 'Manrope', sans-serif; font-size: 0.95rem; outline: none; transition: var(--transition); }
.test-row input:focus { border-color: var(--ink-gold); box-shadow: 0 0 0 3px rgba(255,140,0,0.2); }
#test-status { font-size: 0.85rem; color: var(--ink-muted); font-weight: 600; min-width: 80px; text-align: right; }
.test-results { list-style: none; margin-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.test-results li { background: rgba(255,255,255,0.03); padding: 16px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.05); animation: fadeUp 260ms ease both; }
.test-results strong { display: block; color: var(--ink-white); font-size: 0.95rem; margin-bottom: 4px; }
.test-results span { color: var(--ink-gold-dim); font-size: 0.8rem; font-weight: 600; }

.json-toggle { width: 100%; margin: 32px 0 16px; padding: 16px; background: transparent; border: 1px dashed rgba(255,140,0,0.4); color: var(--ink-gold); border-radius: var(--radius-sm); font-family: 'Manrope', sans-serif; font-size: 0.9rem; font-weight: 700; cursor: pointer; transition: var(--transition); }
.json-toggle:hover { background: rgba(255,140,0,0.05); border-style: solid; }

.code-window { background: #060504; border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; overflow: hidden; animation: fadeDown 0.4s ease; }
.code-window.collapsed { display: none; }
.code-toolbar { display: flex; justify-content: space-between; align-items: center; padding: 12px 20px; background: rgba(255,255,255,0.03); border-bottom: 1px solid rgba(255,255,255,0.05); }
.code-dots { display: flex; gap: 8px; }
.code-dots span { width: 12px; height: 12px; border-radius: 50%; }
.code-dots span:nth-child(1) { background: #FF5F56; } .code-dots span:nth-child(2) { background: #FFBD2E; } .code-dots span:nth-child(3) { background: #27C93F; }
.code-filename { color: var(--ink-muted); font-family: monospace; font-size: 0.85rem; }
.code-actions { display: flex; gap: 8px; }
.code-actions button { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.1); color: var(--ink-text); padding: 6px 12px; border-radius: 6px; cursor: pointer; font-size: 0.8rem; transition: var(--transition); }
.code-actions button:hover { background: rgba(255,140,0,0.15); border-color: var(--ink-gold); color: var(--ink-gold); }
#json-out { padding: 24px; font-family: 'Consolas', monospace; font-size: 0.85rem; color: #D4AF37; line-height: 1.7; overflow-x: auto; max-height: 400px; }

.jsonkeeper-callout { margin-top: 32px; padding: 28px 32px; background: linear-gradient(135deg, rgba(255,140,0,0.08), rgba(0,0,0,0.4)); border: 1px solid rgba(255,140,0,0.2); border-radius: var(--radius-card); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.jsonkeeper-callout p { color: var(--ink-text); font-size: 0.95rem; line-height: 1.6; margin: 0; }
.jsonkeeper-callout p strong { color: var(--ink-gold); font-weight: 700; }

/* ── Info Strip ── */
.info-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 64px; padding: 36px; background: rgba(0,0,0,0.28); border: 1px solid rgba(255,255,255,0.05); border-radius: 18px; backdrop-filter: var(--glass-blur); }
.info-col { text-align: center; }
.info-icon { font-size: 2.5rem; display: block; margin-bottom: 20px; filter: drop-shadow(0 4px 10px rgba(255,140,0,0.3)); }
.info-col h4 { font-family: 'Newsreader', serif; font-size: 1.3rem; font-weight: 500; color: var(--ink-white); margin-bottom: 12px; }
.info-col p { font-size: 0.95rem; color: var(--ink-muted); line-height: 1.6; }

/* ── Footer ── */
.site-footer { text-align: center; padding: 40px; color: var(--ink-muted); font-size: 0.85rem; position: relative; z-index: 1; margin-top: 40px; border-top: 1px solid rgba(255,255,255,0.05); }
.site-footer em { color: var(--ink-gold); }

/* Animations */
@keyframes fadeDown { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loadLine { from { width: 0%; } to { width: 100%; } }
@keyframes stepFadeIn { from { opacity: 0; transform: scale(0.98) translateY(10px); } to { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes backgroundDrift { from { background-position: 0 0, 0 0, center, center; } to { background-position: 46px 46px, -46px 46px, center, center; } }
@keyframes titleGleam { 0%, 72%, 100% { background-position: 100% 50%; } 36% { background-position: 0% 50%; } }
@keyframes edgeTrace { from { background-position: 220% 0; } to { background-position: -220% 0; } }
@keyframes activeStepPulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(255,140,0,0.08), 0 0 18px rgba(255,140,0,0.34); } 50% { box-shadow: 0 0 0 10px rgba(255,140,0,0.045), 0 0 28px rgba(255,140,0,0.48); } }
@keyframes neonCardFlicker {
  0%, 9%, 11%, 48%, 52%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,222,101,0.94),
      0 0 8px rgba(255,226,112,0.46),
      0 0 24px rgba(255,140,0,0.30),
      0 0 62px rgba(255,140,0,0.15),
      0 18px 42px rgba(0,0,0,0.32),
      inset 0 0 18px rgba(255,140,0,0.11),
      inset 0 1px 0 rgba(255,255,255,0.14);
  }
  10%, 50% {
    box-shadow:
      0 0 0 1px rgba(255,222,101,0.72),
      0 0 5px rgba(255,226,112,0.28),
      0 0 17px rgba(255,140,0,0.18),
      0 0 42px rgba(255,140,0,0.09),
      0 18px 42px rgba(0,0,0,0.32),
      inset 0 0 12px rgba(255,140,0,0.07),
      inset 0 1px 0 rgba(255,255,255,0.09);
  }
}
@keyframes neonTileFlicker {
  0%, 12%, 14%, 57%, 60%, 100% {
    box-shadow:
      0 0 0 1px rgba(255,222,101,0.78),
      0 0 8px rgba(255,226,112,0.36),
      0 0 24px rgba(255,140,0,0.20),
      0 0 54px rgba(255,140,0,0.10),
      inset 0 0 16px rgba(255,140,0,0.08);
  }
  13%, 58% {
    box-shadow:
      0 0 0 1px rgba(255,222,101,0.56),
      0 0 5px rgba(255,226,112,0.22),
      0 0 17px rgba(255,140,0,0.13),
      0 0 38px rgba(255,140,0,0.06),
      inset 0 0 10px rgba(255,140,0,0.05);
  }
}
@keyframes neonIconWink {
  0%, 100% { transform: translateY(0); filter: drop-shadow(0 0 0 rgba(255,140,0,0)); }
  45% { transform: translateY(-1px); filter: drop-shadow(0 0 10px rgba(255,140,0,0.25)); }
  47% { filter: drop-shadow(0 0 2px rgba(255,140,0,0.12)); }
  50% { filter: drop-shadow(0 0 12px rgba(255,140,0,0.28)); }
}
@keyframes neonSwitchFlicker {
  0%, 18%, 21%, 100% { filter: brightness(1); }
  19% { filter: brightness(0.74); }
  20% { filter: brightness(1.18); }
}
@keyframes buttonSheen { 0%, 58%, 100% { transform: translateX(-140%); } 78% { transform: translateX(140%); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

/* Media Queries */
@media (max-width: 800px) {
  .hero h1 { font-size: 2.8rem; }
  .step-bar { flex-wrap: wrap; justify-content: center; gap: 14px; padding: 22px 18px; }
  .step-line { display: none; }
  .step { padding: 32px 24px; }
  .card-grid,
  .col-2,
  .col-3,
  .content-grid,
  .coverage-layout,
  .control-grid,
  .info-strip,
  .lang-grid { grid-template-columns: 1fr; }
  .coverage-options,
  .coverage-extra-grid { grid-template-columns: 1fr; }
  .install-card { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .install-card div { margin-bottom: 8px; }
  .install-card .btn-primary,
  .install-card .btn-ghost { width: 100%; justify-content: center; }
  .jsonkeeper-callout { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .content-card .pick-inner,
  #step-2 .pick-inner { min-height: 220px; }
  .test-row { display: grid; grid-template-columns: 1fr; align-items: stretch; }
  .test-row .btn-ghost { justify-content: center; }
  #test-status { min-width: 0; text-align: left; }
}

@media (max-width: 520px) {
  .site-header { padding: 16px 20px; }
  .site-header .logo { font-size: 1.12rem; }
  .site-header .logo-sub { font-size: 0.62rem; padding-left: 10px; }
  .main { padding: 42px 12px 72px; }
  .hero { margin-bottom: 38px; }
  .hero h1 { font-size: 2.35rem; }
  .hero-sub { font-size: 0.94rem; }
  .wizard-card { border-radius: 18px; }
  .step-bar { align-items: flex-start; gap: 10px; }
  .step-dot { min-width: 48px; gap: 7px; }
  .step-dot span { width: 32px; height: 32px; font-size: 0.78rem; }
  .step-dot label { font-size: 0.58rem; letter-spacing: 0.08em; }
  .step { padding: 26px 18px; }
  .step h2 { font-size: 1.55rem; }
  .step-sub { font-size: 0.9rem; margin-bottom: 24px; }
  .pick-inner { padding: 20px; }
  .content-card .pick-inner,
  #step-2 .pick-inner { min-height: auto; }
  .coverage-option { min-height: auto; padding: 16px; }
  .coverage-summary { grid-template-columns: 1fr; }
  .step-footer { flex-direction: column-reverse; align-items: stretch; gap: 16px; }
  .btn-primary,
  .btn-ghost { width: 100%; justify-content: center; padding: 16px 20px; }
  .info-strip { padding: 28px 20px; }
  .jsonkeeper-callout { padding: 22px; }
}

  /* ── Premium Forge Scroll Animation ── */
  .forge-anim {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
    filter: drop-shadow(0 -10px 20px #ff4500) drop-shadow(0 0 10px #ff8c00) blur(4px) brightness(1.5);
    transition: opacity 1s ease-out, transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), filter 1s ease-out;
  }

  .forge-anim.forged {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 0 transparent) blur(0) brightness(1);
  }

  .forge-anim:nth-child(1) { transition-delay: 0.1s; }
  .forge-anim:nth-child(2) { transition-delay: 0.25s; }
  .forge-anim:nth-child(3) { transition-delay: 0.4s; }

@media (hover: none) {
  .pick-card:hover .pick-inner,
  .coverage-option:hover,
  .install-card:hover,
  .btn-primary:hover,
  .btn-ghost:hover {
    transform: none;
  }
}
