/* ==========================================================================
   UtiliKit — FUTURISTIC Design System ("Tools from Tomorrow")
   Deep-space base, electric cyan / violet / magenta neon, glassmorphism.
   Same class names + same design tokens as the previous theme, so every
   page, inline style and tool keeps working — only the visuals changed.
   No external fonts or CDN assets: strong system stack, offline-safe.
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
  --bg: #05050f;
  --bg-2: #0b0b26;
  --surface: rgba(140, 160, 255, 0.055);
  --surface-strong: rgba(140, 160, 255, 0.11);
  --border: rgba(0, 229, 255, 0.20);
  --border-soft: rgba(140, 160, 255, 0.12);
  --ink: #f2f5ff;
  --ink-dim: #b8c4ee;
  --ink-faint: #7e8cc0;
  --accent: #7c4dff;
  --accent-2: #00e5ff;
  --accent-3: #ff3cac;
  --warn: #ffb454;
  --danger: #ff5d7a;
  --ok: #2ee6a8;
  /* legacy aliases referenced by a few tool pages (were undefined before) */
  --muted: #7e8cc0;
  --line: rgba(140, 160, 255, 0.12);
  --bg-soft: #0b0b26;
  --grad-brand: linear-gradient(135deg, #00e5ff 0%, #7c4dff 48%, #ff3cac 100%);
  --grad-card: linear-gradient(160deg, rgba(0, 229, 255, 0.10), rgba(124, 77, 255, 0.07) 55%, rgba(255, 60, 172, 0.05));
  --radius: 20px;
  --radius-sm: 14px;
  --radius-lg: 30px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, 0.75), 0 0 42px -18px rgba(124, 77, 255, 0.35);
  --glow-cyan: 0 0 22px -4px rgba(0, 229, 255, 0.55);
  --glow-violet: 0 0 26px -6px rgba(124, 77, 255, 0.6);
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Avenir Next",
    "Helvetica Neue", Arial, sans-serif;
  --font-display: "Avenir Next", "Trebuchet MS", "Segoe UI", system-ui,
    -apple-system, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "SF Mono", ui-monospace, "Cascadia Code", Menlo, Consolas, monospace;
  --max: 1160px;
  --nav-h: 72px;
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scrollbar-color: rgba(124, 77, 255, 0.65) #07071a;
}
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1150px 560px at 88% -10%, rgba(124, 77, 255, 0.22), transparent 60%),
    radial-gradient(950px 520px at -12% 10%, rgba(0, 229, 255, 0.13), transparent 60%),
    radial-gradient(820px 560px at 50% 118%, rgba(255, 60, 172, 0.12), transparent 62%),
    linear-gradient(180deg, #05050f 0%, #070722 46%, #0b0b26 100%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
/* Fine futuristic grid overlay, above the aurora wash, below content */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(rgba(0, 229, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 30%, transparent 78%);
  mask-image: radial-gradient(ellipse 90% 62% at 50% 0%, #000 30%, transparent 78%);
}
::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: #07071a; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0, 229, 255, 0.55), rgba(124, 77, 255, 0.65), rgba(255, 60, 172, 0.55));
  border-radius: 999px; border: 2px solid #07071a;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 0.6em;
}
p { margin: 0 0 1.1em; }
::selection { background: rgba(0, 229, 255, 0.4); color: #ffffff; }

/* ---------- Accessible keyboard focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--accent-2);
  outline-offset: 3px;
  border-radius: 8px;
}

.wrap { width: min(var(--max), 92%); margin-inline: auto; }
.narrow { width: min(760px, 92%); margin-inline: auto; }

/* ---------- Skip link ---------- */
.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--grad-brand); color: #05050f; font-weight: 700;
  padding: 0.7rem 1.2rem;
  border-radius: 0 0 12px 0; z-index: 200;
}
.skip-link:focus { left: 0; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  background: linear-gradient(180deg, rgba(7, 7, 26, 0.88), rgba(7, 7, 26, 0.72));
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.55), rgba(124, 77, 255, 0.55), rgba(255, 60, 172, 0.5), transparent) 1;
  box-shadow: 0 12px 34px -18px rgba(0, 0, 0, 0.8), 0 1px 22px -8px rgba(0, 229, 255, 0.35);
}
.nav-inner {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem; color: var(--ink);
  font-family: var(--font-display);
  font-weight: 800; font-size: 1.28rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px;
  background: var(--grad-brand);
  display: grid; place-items: center;
  box-shadow: 0 0 20px -2px rgba(0, 229, 255, 0.65), 0 8px 24px -8px rgba(124, 77, 255, 0.8);
}
.brand-mark svg { width: 22px; height: 22px; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--ink-dim); font-weight: 600; font-size: 0.95rem;
  padding: 0.55rem 0.9rem; border-radius: 999px; transition: 0.2s;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--ink); background: var(--surface-strong); text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35), 0 0 16px -6px rgba(0, 229, 255, 0.6);
}
/* ---------- Nav tools dropdown ---------- */
.nav-has-sub { position: relative; }
.nav-sub summary {
  list-style: none; cursor: pointer;
  color: var(--ink-dim); font-weight: 600; font-size: 0.95rem;
  padding: 0.55rem 0.9rem; border-radius: 999px; transition: 0.2s;
  display: inline-flex; align-items: center; gap: 0.3rem;
}
.nav-sub summary::-webkit-details-marker { display: none; }
.nav-sub summary::marker { content: ""; }
.nav-sub summary:hover, .nav-sub[open] summary {
  color: var(--ink); background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px rgba(0, 229, 255, 0.35);
}
.nav-sub .chev { font-size: 0.72em; }
.nav-sub-list {
  position: absolute; top: calc(100% + 8px); left: 0; z-index: 60;
  min-width: 250px; max-height: 70vh; overflow: auto;
  background: linear-gradient(165deg, rgba(16, 16, 44, 0.96), rgba(8, 8, 26, 0.96));
  border: 1px solid rgba(0, 229, 255, 0.28); border-radius: 16px;
  backdrop-filter: blur(18px) saturate(1.5);
  -webkit-backdrop-filter: blur(18px) saturate(1.5);
  padding: 0.4rem; margin: 0; list-style: none;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.6), 0 0 30px -10px rgba(124, 77, 255, 0.55);
}
.nav-sub-list a { display: block; padding: 0.55rem 0.8rem; border-radius: 10px; }
.nav-toggle {
  display: none; background: var(--surface); border: 1px solid var(--border);
  color: var(--ink); border-radius: 12px; padding: 0.5rem 0.7rem; cursor: pointer;
  font-size: 1.15rem; line-height: 1;
}

/* ---------- Hero ---------- */
.hero { padding: 5.5rem 0 4rem; position: relative; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--accent-2);
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 0.42rem 0.95rem; border-radius: 999px; margin-bottom: 1.4rem;
  box-shadow: 0 0 18px -6px rgba(0, 229, 255, 0.7), inset 0 0 14px -8px rgba(0, 229, 255, 0.8);
}
.hero h1 { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; }
.hero h1 .grad {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 16px rgba(0, 229, 255, 0.35));
}
.hero p.lead { font-size: 1.18rem; color: var(--ink-dim); max-width: 34rem; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 2rem; }

/* Buttons — neon pills */
.btn {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-weight: 700; font-size: 1rem; padding: 1rem 2.1rem;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  letter-spacing: 0.02em;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
  text-decoration: none !important;
}
.btn-primary {
  background: var(--grad-brand); color: #05050f;
  box-shadow: 0 14px 34px -12px rgba(124, 77, 255, 0.7), 0 0 26px -6px rgba(0, 229, 255, 0.55);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px -12px rgba(124, 77, 255, 0.85), 0 0 38px -4px rgba(255, 60, 172, 0.55);
}
.btn-ghost {
  background: var(--surface); color: var(--ink);
  border-color: rgba(0, 229, 255, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.btn-ghost:hover {
  background: var(--surface-strong); transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.6);
  box-shadow: var(--glow-cyan);
}
.btn-sm { padding: 0.5rem 1.05rem; font-size: 0.9rem; border-radius: 999px; }

/* Hero art (pure CSS/SVG) */
.hero-art { position: relative; min-height: 380px; }
.orb {
  position: absolute; border-radius: 50%; filter: blur(2px);
  animation: drift 9s ease-in-out infinite alternate;
}
.orb-1 { width: 200px; height: 200px; left: 8%; top: 6%;
  background: radial-gradient(circle at 32% 30%, #7df3ff, #00a8cc 70%); opacity: 0.85;
  box-shadow: 0 0 60px -8px rgba(0, 229, 255, 0.7); }
.orb-2 { width: 120px; height: 120px; right: 10%; top: 44%;
  background: radial-gradient(circle at 32% 30%, #c4a6ff, #7c4dff 70%); opacity: 0.8;
  box-shadow: 0 0 50px -8px rgba(124, 77, 255, 0.75);
  animation-delay: -3s; }
.orb-3 { width: 84px; height: 84px; left: 46%; bottom: 4%;
  background: radial-gradient(circle at 32% 30%, #ffa6d9, #ff3cac 70%); opacity: 0.8;
  box-shadow: 0 0 44px -6px rgba(255, 60, 172, 0.7);
  animation-delay: -6s; }
@keyframes drift {
  from { transform: translateY(-14px) translateX(6px); }
  to { transform: translateY(16px) translateX(-10px); }
}
.glass-panel {
  position: absolute; inset: 12% 6%;
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.07), rgba(255, 255, 255, 0.03) 45%, rgba(255, 60, 172, 0.05));
  border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  backdrop-filter: blur(22px) saturate(1.6);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  padding: 1.6rem;
  display: flex; flex-direction: column; gap: 0.9rem;
  animation: floaty 7s ease-in-out infinite alternate;
}
@keyframes floaty { from { transform: translateY(-8px); } to { transform: translateY(10px); } }
.mock-row { display: flex; gap: 0.6rem; }
.mock-chip {
  height: 34px; border-radius: 10px; flex: 1;
  background: linear-gradient(90deg, rgba(0, 229, 255, 0.35), rgba(124, 77, 255, 0.3), rgba(255, 60, 172, 0.22));
  border: 1px solid var(--border-soft);
  box-shadow: 0 0 14px -6px rgba(0, 229, 255, 0.7);
}
.mock-bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.12); }
.mock-bar.w60 { width: 60%; } .mock-bar.w85 { width: 85%; } .mock-bar.w40 { width: 40%; }
.mock-kbd {
  font-family: var(--font-mono); font-size: 0.85rem; color: var(--accent-2);
  background: rgba(0, 0, 0, 0.4); border: 1px solid rgba(0, 229, 255, 0.3);
  border-radius: 8px; padding: 0.35rem 0.7rem; align-self: flex-start;
  box-shadow: 0 0 12px -6px rgba(0, 229, 255, 0.8);
}

/* ---------- Sections ---------- */
.section { padding: 4rem 0; }
.section-head { text-align: center; max-width: 44rem; margin: 0 auto 2.5rem; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
.section-head p { color: var(--ink-dim); }

/* ---------- Tool cards ---------- */
.tool-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.tool-card {
  position: relative; overflow: hidden;
  background: var(--grad-card);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 2rem;
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.tool-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: var(--grad-brand); opacity: 0; transition: opacity 0.22s;
  box-shadow: 0 0 16px rgba(0, 229, 255, 0.8);
}
.tool-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.5);
  box-shadow: var(--shadow), 0 0 30px -8px rgba(0, 229, 255, 0.5);
  text-decoration: none;
}
.tool-card:hover::before { opacity: 1; }
.tool-icon {
  width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center;
  background: rgba(0, 229, 255, 0.09); border: 1px solid rgba(0, 229, 255, 0.35);
  box-shadow: 0 0 18px -6px rgba(0, 229, 255, 0.7), inset 0 0 14px -8px rgba(0, 229, 255, 0.9);
  margin-bottom: 1rem;
}
.tool-icon svg { width: 26px; height: 26px; stroke: var(--accent-2); }
.tool-card h3 { font-size: 1.22rem; margin-bottom: 0.45rem; color: var(--ink); }
.tool-card p { color: var(--ink-dim); font-size: 0.96rem; margin-bottom: 1.1rem; }
.tool-card .go { font-weight: 700; font-size: 0.92rem; color: var(--accent-2); }

/* ---------- Feature / trust band ---------- */
.trust-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.5rem;
}
.trust-item {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.5rem; text-align: center;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.trust-item:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.65), 0 0 26px -10px rgba(0, 229, 255, 0.55);
}
.trust-item .t-ico {
  width: 46px; height: 46px; margin: 0 auto 0.9rem; border-radius: 13px;
  display: grid; place-items: center;
  background: rgba(0, 229, 255, 0.09); border: 1px solid rgba(0, 229, 255, 0.32);
  box-shadow: 0 0 16px -6px rgba(0, 229, 255, 0.7);
}
.trust-item .t-ico svg { width: 24px; height: 24px; stroke: var(--accent-2); }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 0.4rem; }
.trust-item p { color: var(--ink-dim); font-size: 0.93rem; margin: 0; }

/* ---------- FAQ accordion ---------- */
.faq { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); overflow: hidden;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open {
  border-color: rgba(124, 77, 255, 0.55);
  box-shadow: 0 0 24px -10px rgba(124, 77, 255, 0.7);
}
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: none; border: 0; color: var(--ink); cursor: pointer;
  font: 700 1.02rem/1.4 var(--font); text-align: left; padding: 1rem 1.5rem;
}
.faq-q .chev { flex: none; transition: transform 0.25s; color: var(--accent-2); font-size: 1.2rem; }
.faq-item.open .faq-q .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.32s ease; }
.faq-a-inner { padding: 0 1.5rem 1.5rem; color: var(--ink-dim); }

/* ---------- Forms / tool UI ---------- */
.tool-shell {
  position: relative;
  background: linear-gradient(165deg, rgba(0, 229, 255, 0.06), rgba(255, 255, 255, 0.03) 42%, rgba(255, 60, 172, 0.045));
  border: 1px solid rgba(0, 229, 255, 0.28);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3.4vw, 2.4rem);
  box-shadow: var(--shadow), 0 0 44px -16px rgba(0, 229, 255, 0.45);
  backdrop-filter: blur(12px) saturate(1.4);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
}
.field { margin-bottom: 1.5rem; }
.field label { display: block; font-weight: 700; margin-bottom: 0.5rem; font-size: 0.98rem; }
textarea, input[type="text"], input[type="number"], select {
  width: 100%; background: rgba(2, 2, 16, 0.55);
  border: 1px solid var(--border-soft); color: var(--ink);
  border-radius: var(--radius-sm); padding: 0.85rem 1rem;
  font: 1rem/1.55 var(--font); transition: border-color 0.18s, box-shadow 0.18s;
}
textarea:focus, input:focus, select:focus {
  outline: none; border-color: var(--accent-2);
  box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.22), 0 0 20px -4px rgba(0, 229, 255, 0.65);
}
textarea.code, input.code { font-family: var(--font-mono); font-size: 0.92rem; }
select option { background: #0d0d2b; }
.hint { color: var(--ink-faint); font-size: 0.86rem; margin-top: 0.4rem; }
.check-row { display: flex; align-items: center; gap: 0.6rem; margin: 0.55rem 0; cursor: pointer; }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.btn-row { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 1rem; }
input[type="range"] { width: 100%; accent-color: var(--accent-2); }
.range-val {
  display: inline-block; min-width: 3.2rem; text-align: center;
  font: 700 1rem var(--font-mono); color: var(--accent-2);
  background: rgba(0, 229, 255, 0.08); border: 1px solid rgba(0, 229, 255, 0.35);
  padding: 0.2rem 0.6rem; border-radius: 8px;
  box-shadow: 0 0 12px -6px rgba(0, 229, 255, 0.8);
}
.stat-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem; margin: 1.5rem 0;
}
.stat {
  background: rgba(2, 2, 16, 0.42); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 0.9rem 1rem; text-align: center;
}
.stat .num {
  font: 800 1.5rem var(--font); color: var(--accent-2);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.55);
}
.stat .lbl { font-size: 0.8rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.08em; }
.output-box {
  background: rgba(2, 2, 16, 0.55); border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-sm); padding: 1rem 1.1rem;
  font-family: var(--font-mono); font-size: 0.95rem; word-break: break-all;
  min-height: 3.4rem; position: relative;
  box-shadow: inset 0 0 24px -12px rgba(0, 229, 255, 0.5);
}
.meter { height: 10px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; margin: 0.6rem 0 0.3rem; }
.meter > span { display: block; height: 100%; width: 0; border-radius: 6px; transition: width 0.3s, background 0.3s; }
.meter-lbl { font-size: 0.88rem; font-weight: 700; }
.error-box {
  background: rgba(255, 93, 122, 0.09); border: 1px solid rgba(255, 93, 122, 0.45);
  color: #ffb3c1; border-radius: var(--radius-sm); padding: 0.9rem 1.1rem; font-size: 0.93rem;
  display: none; margin-top: 1rem;
}
.error-box.show { display: block; }
.ok-box {
  background: rgba(46, 230, 168, 0.09); border: 1px solid rgba(46, 230, 168, 0.4);
  color: #9ff0c8; border-radius: var(--radius-sm); padding: 0.7rem 1rem; font-size: 0.92rem;
  display: none; margin-top: 1rem;
}
.ok-box.show { display: block; }
.toast {
  position: fixed; bottom: 1.6rem; left: 50%; transform: translateX(-50%) translateY(20px);
  background: linear-gradient(165deg, rgba(16, 16, 44, 0.97), rgba(8, 8, 26, 0.97));
  border: 1px solid rgba(0, 229, 255, 0.5); color: var(--ink);
  padding: 0.75rem 1.4rem; border-radius: 999px; font-weight: 600; font-size: 0.92rem;
  opacity: 0; pointer-events: none; transition: 0.3s; z-index: 300;
  box-shadow: var(--shadow), 0 0 26px -8px rgba(0, 229, 255, 0.7);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Article typography ---------- */
.prose { font-size: 1.06rem; color: #e2e8ff; }
.prose h2 { font-size: 1.55rem; margin: 2.2em 0 0.7em; padding-top: 0.4em; border-top: 1px solid var(--border-soft); }
.prose h3 { font-size: 1.2rem; margin: 1.8em 0 0.6em; color: var(--accent-2); }
.prose ul, .prose ol { padding-left: 1.4rem; margin: 0 0 1.2em; }
.prose li { margin-bottom: 0.45em; }
.prose code {
  font-family: var(--font-mono); font-size: 0.88em;
  background: rgba(124, 77, 255, 0.16); padding: 0.12em 0.42em; border-radius: 6px; color: #d9ccff;
}
.prose pre {
  background: rgba(2, 2, 16, 0.6); border: 1px solid rgba(0, 229, 255, 0.22);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; overflow-x: auto; font-size: 0.88rem;
}
.prose pre code { background: none; padding: 0; }
.prose blockquote { border-left: 3px solid var(--accent); margin: 1.4em 0; padding: 0.4em 0 0.4em 1.1em; color: var(--ink-dim); font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.4em 0; font-size: 0.95rem; }
.prose th, .prose td { border: 1px solid var(--border-soft); padding: 0.65rem 0.9rem; text-align: left; }
.prose th { background: rgba(124, 77, 255, 0.14); font-weight: 700; }
.byline { color: var(--ink-faint); font-size: 0.92rem; margin-bottom: 2rem; }
.related { margin-top: 3rem; }
.related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.related a {
  display: block; padding: 1.1rem 1.2rem; border-radius: var(--radius-sm);
  background: var(--surface); border: 1px solid var(--border-soft);
  color: var(--ink); font-weight: 600; font-size: 0.97rem;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.related a:hover {
  border-color: rgba(0, 229, 255, 0.5); text-decoration: none; transform: translateY(-2px);
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.65), 0 0 20px -8px rgba(0, 229, 255, 0.5);
}
/* Posts' "Related guides" box carries a hardcoded LIGHT inline background
   (#f8fafc) that clashes with any dark theme and left near-white text on a
   near-white panel. This single deliberate override re-themes the box to
   glass; inner markup and text are untouched. */
.related-guides {
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.07), rgba(124, 77, 255, 0.06)) !important;
  border: 1px solid rgba(0, 229, 255, 0.3) !important;
  box-shadow: 0 0 26px -12px rgba(0, 229, 255, 0.55);
}
.toc {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 1.1rem 1.4rem; margin-bottom: 2rem;
}
.toc strong { display: block; margin-bottom: 0.5rem; }
.toc ol { margin: 0; padding-left: 1.3rem; }
.toc li { margin-bottom: 0.3rem; font-size: 0.95rem; }

/* ---------- Page hero (subpages) ---------- */
.page-hero { padding: 3.6rem 0 2rem; text-align: center; }
.page-hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); font-weight: 800; }
.page-hero h1 .grad {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px rgba(124, 77, 255, 0.4));
}
.page-hero p.lead { color: var(--ink-dim); max-width: 44rem; margin: 0 auto; font-size: 1.1rem; }

/* ---------- Footer ---------- */
.site-footer {
  margin-top: 4rem;
  border-top: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.4), rgba(124, 77, 255, 0.4), rgba(255, 60, 172, 0.35), transparent) 1;
  background: linear-gradient(180deg, rgba(5, 5, 18, 0.6), rgba(4, 4, 14, 0.85));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.footer-grid {
  display: grid; grid-template-columns: 1.5fr 1.15fr 0.95fr 0.95fr 1.05fr; gap: 2rem;
  padding: 3.2rem 0 2rem;
}
.footer-grid .foot-h {
  font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--accent-2); margin-bottom: 1rem;
}
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 0.55rem; }
.footer-grid a { color: var(--ink-dim); font-size: 0.95rem; }
.footer-grid a:hover { color: var(--accent-2); }
.footer-brand p { color: var(--ink-faint); font-size: 0.93rem; max-width: 22rem; }
.footer-bottom {
  border-top: 1px solid var(--border-soft); padding: 1.3rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  color: var(--ink-faint); font-size: 0.88rem;
}

/* ---------- Post index ---------- */
.post-list { display: grid; gap: 1rem; }
.post-row {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius-sm); padding: 1.1rem 1.3rem; transition: 0.2s;
}
.post-row:hover {
  border-color: rgba(0, 229, 255, 0.5); transform: translateX(4px);
  text-decoration: none;
  box-shadow: 0 14px 32px -18px rgba(0, 0, 0, 0.65), 0 0 20px -8px rgba(0, 229, 255, 0.45);
}
.post-row .t { color: var(--ink); font-weight: 700; line-height: 1.45; }
.post-row .d { color: var(--ink-faint); font-size: 0.86rem; white-space: nowrap; }

/* ---------- Guides index (homepage) ---------- */
.guide-group { font-size: 1.1rem; color: var(--accent-2); margin: 2rem 0 1rem; letter-spacing: -0.01em; }
.guide-group:first-of-type { margin-top: 0; }
@media (min-width: 900px) { .guide-list { grid-template-columns: 1fr 1fr; } }

/* ---------- Tool-stage glow (pure CSS dressing; tool logic untouched) ----------
   Spin-the-wheel: neon halo around the wheel stage. The stage's own geometry
   lives in that page's inline <style> block, which is left exactly as-is;
   these rules only add glow/frame effects that don't conflict with it. */
.stw-stage canvas {
  filter:
    drop-shadow(0 0 20px rgba(0, 229, 255, 0.45))
    drop-shadow(0 0 46px rgba(124, 77, 255, 0.35))
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}
.stw-winner {
  border-color: rgba(255, 60, 172, 0.45);
  box-shadow: 0 0 26px -8px rgba(255, 60, 172, 0.65), inset 0 0 24px -12px rgba(255, 60, 172, 0.5);
}

/* ==========================================================================
   FUTURISTIC BANNER — .fx-hero (injected once per page, right after the
   site header). Layered aurora drift, conic sheen sweep, floating orbs,
   fine grid overlay, gradient hairline. Slim on every page; the homepage
   uses the taller .fx-hero--tall variant. Pure CSS, no assets.
   ========================================================================== */
.fx-hero {
  position: relative; overflow: hidden; isolation: isolate;
  text-align: center;
  padding: 1rem 4% 0.9rem;
  background:
    linear-gradient(rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 229, 255, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(11, 11, 38, 0.85), rgba(6, 6, 20, 0.6));
  background-size: 34px 34px, 34px 34px, 100% 100%;
  border-bottom: 1px solid transparent;
  border-image: linear-gradient(90deg, transparent, rgba(0, 229, 255, 0.6), rgba(124, 77, 255, 0.6), rgba(255, 60, 172, 0.55), transparent) 1;
}
/* Aurora wash drifting behind everything */
.fx-hero::before {
  content: ""; position: absolute; inset: -45% -10%; z-index: 0; pointer-events: none;
  background:
    radial-gradient(420px 190px at 18% 30%, rgba(0, 229, 255, 0.32), transparent 65%),
    radial-gradient(460px 210px at 55% 70%, rgba(124, 77, 255, 0.34), transparent 65%),
    radial-gradient(400px 180px at 85% 25%, rgba(255, 60, 172, 0.28), transparent 65%);
  filter: blur(28px);
  animation: fx-aurora 13s ease-in-out infinite alternate;
}
/* Conic sheen sweeping across the banner */
.fx-hero::after {
  content: ""; position: absolute; inset: -60%; z-index: 0; pointer-events: none;
  background: conic-gradient(from 0deg at 50% 50%,
    transparent 0deg, rgba(255, 255, 255, 0.055) 24deg, transparent 52deg,
    transparent 180deg, rgba(0, 229, 255, 0.05) 206deg, transparent 234deg);
  animation: fx-sheen 11s linear infinite;
}
@keyframes fx-aurora {
  from { transform: translateX(-3.5%) translateY(-2%) scale(1); }
  to   { transform: translateX(3.5%) translateY(2.5%) scale(1.07); }
}
@keyframes fx-sheen {
  to { transform: rotate(360deg); }
}
.fx-orbs { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fx-orbs span {
  position: absolute; border-radius: 50%; filter: blur(16px);
  animation: fx-orb-float 10s ease-in-out infinite alternate;
}
.fx-orbs span:nth-child(1) {
  width: 92px; height: 92px; left: 10%; top: -34px;
  background: radial-gradient(circle at 34% 32%, rgba(125, 243, 255, 0.95), rgba(0, 229, 255, 0.35) 70%);
}
.fx-orbs span:nth-child(2) {
  width: 118px; height: 118px; right: 9%; top: -46px;
  background: radial-gradient(circle at 34% 32%, rgba(196, 166, 255, 0.95), rgba(124, 77, 255, 0.38) 70%);
  animation-delay: -3.5s; animation-duration: 12s;
}
.fx-orbs span:nth-child(3) {
  width: 70px; height: 70px; left: 47%; bottom: -30px;
  background: radial-gradient(circle at 34% 32%, rgba(255, 166, 217, 0.95), rgba(255, 60, 172, 0.35) 70%);
  animation-delay: -6s; animation-duration: 9s;
}
@keyframes fx-orb-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(26px, 13px) scale(1.1); }
}
.fx-hero-line {
  position: relative; z-index: 1;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800; font-size: clamp(1.02rem, 2.4vw, 1.42rem);
  letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink);
  text-shadow: 0 0 20px rgba(0, 229, 255, 0.5), 0 0 44px rgba(124, 77, 255, 0.35);
}
.fx-hero-line span {
  background: linear-gradient(110deg, #00e5ff 0%, #7c4dff 30%, #ff3cac 55%, #7c4dff 78%, #00e5ff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shimmer 6s linear infinite;
  letter-spacing: 0.2em; font-size: 0.66em; font-weight: 700;
  filter: drop-shadow(0 0 10px rgba(124, 77, 255, 0.35));
}
.fx-ticker {
  position: relative; z-index: 1;
  margin: 0.32rem 0 0;
  font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.17em; text-transform: uppercase; color: var(--ink-dim);
}
.fx-ticker span { animation: fx-ticker-pulse 4.5s ease-in-out infinite; }
@keyframes fx-ticker-pulse {
  0%, 100% { opacity: 0.82; }
  50% { opacity: 1; }
}
/* Homepage-only taller variant */
.fx-hero--tall { padding: 2.7rem 4% 2.3rem; }
.fx-hero--tall .fx-hero-line { font-size: clamp(1.65rem, 4.4vw, 2.55rem); }
.fx-hero--tall .fx-ticker { font-size: 0.94rem; margin-top: 0.55rem; }
@media (max-width: 680px) {
  .fx-hero { padding: 0.85rem 4% 0.8rem; }
  .fx-hero-line { letter-spacing: 0.24em; }
  .fx-ticker { font-size: 0.72rem; letter-spacing: 0.12em; }
  .fx-orbs span:nth-child(3) { display: none; }
}

/* ==========================================================================
   FUTURISTIC FX — homepage animations
   Cinematic hero, floating orbs, staggered headline, gradient shimmer,
   trending ticker, scroll reveals, button glow.
   ========================================================================== */

/* ---------- Cinematic hero ---------- */
.hero--cinematic {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(5, 5, 15, 0.8) 0%, rgba(5, 5, 15, 0.5) 45%, rgba(5, 5, 15, 0.92) 100%),
    radial-gradient(900px 480px at 80% 110%, rgba(255, 60, 172, 0.15), transparent 60%),
    radial-gradient(760px 420px at 12% -10%, rgba(0, 229, 255, 0.14), transparent 60%),
    url("images/hero-bg.webp") center / cover no-repeat,
    var(--bg);
}
.hero--cinematic .wrap { position: relative; z-index: 1; }
.hero--cinematic::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 90px; z-index: 1;
  background: linear-gradient(180deg, transparent, rgba(5, 5, 15, 0.92));
  pointer-events: none;
}

/* ---------- Floating gradient orbs (pure CSS) ---------- */
.fx-orb {
  position: absolute; z-index: 0; border-radius: 50%;
  filter: blur(70px); pointer-events: none;
  will-change: transform;
}
.fx-orb-a {
  width: 440px; height: 440px; left: -130px; top: -90px;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.5), transparent 65%);
  animation: orb-float 14s ease-in-out infinite alternate;
}
.fx-orb-b {
  width: 380px; height: 380px; right: -110px; top: 18%;
  background: radial-gradient(circle, rgba(124, 77, 255, 0.48), transparent 65%);
  animation: orb-float 18s ease-in-out infinite alternate-reverse;
}
.fx-orb-c {
  width: 320px; height: 320px; left: 36%; bottom: -130px;
  background: radial-gradient(circle, rgba(255, 60, 172, 0.42), transparent 65%);
  animation: orb-float 11s ease-in-out infinite alternate;
  animation-delay: -4s;
}
@keyframes orb-float {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(64px, 44px) scale(1.14); }
}

/* ---------- Staggered headline entrance ---------- */
.fx-anim {
  opacity: 0;
  animation: fx-rise 0.9s cubic-bezier(0.22, 0.61, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes fx-rise {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ---------- Animated gradient shimmer text ---------- */
.hero h1 .grad.grad-text {
  background: linear-gradient(110deg, #00e5ff 0%, #7c4dff 25%, #ff3cac 50%, #7c4dff 75%, #00e5ff 100%);
  background-size: 220% auto;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: grad-shimmer 5s linear infinite;
}
@keyframes grad-shimmer {
  to { background-position: 220% center; }
}

/* ---------- Hero stats ---------- */
.hero-stats {
  list-style: none; margin: 2.2rem 0 0; padding: 0;
  display: flex; gap: 2.4rem; flex-wrap: wrap;
}
.hero-stat { display: flex; flex-direction: column; gap: 0.15rem; }
.hero-stat-num {
  font: 800 clamp(1.6rem, 2.6vw, 2.1rem) var(--font);
  letter-spacing: -0.02em;
  background: var(--grad-brand);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 12px rgba(0, 229, 255, 0.3));
}
.hero-stat-lbl {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-faint);
}

/* ---------- Category pills (ticker + guide groups) ---------- */
.ticker {
  position: relative; z-index: 2;
  display: flex; align-items: center; gap: 1rem;
  border-top: 1px solid var(--border-soft);
  border-bottom: 1px solid var(--border-soft);
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.55rem 0;
}
.ticker-label {
  flex: none; margin-left: max(4%, calc((100% - var(--max)) / 2));
  font-size: 0.82rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-3);
  background: rgba(255, 60, 172, 0.09);
  border: 1px solid rgba(255, 60, 172, 0.35);
  border-radius: 999px; padding: 0.35rem 0.9rem;
  box-shadow: 0 0 16px -6px rgba(255, 60, 172, 0.65);
}
.ticker-viewport { flex: 1; overflow: hidden; }
.ticker-track {
  display: flex; width: max-content;
  animation: ticker-scroll 32s linear infinite;
}
.ticker:hover .ticker-track { animation-play-state: paused; }
.ticker-group { display: flex; gap: 0.75rem; padding-right: 0.75rem; }
@keyframes ticker-scroll {
  to { transform: translateX(-50%); }
}
.ticker-pill {
  flex: none;
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.88rem; font-weight: 600; color: var(--ink-dim);
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 999px; padding: 0.42rem 1rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  text-decoration: none !important;
}
.ticker-pill::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--grad-brand); flex: none;
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.8);
}
.ticker-pill:hover {
  color: var(--ink); transform: translateY(-2px);
  border-color: rgba(255, 60, 172, 0.55);
  box-shadow: 0 0 18px -4px rgba(255, 60, 172, 0.6);
}
/* Guide category headings double as category pills */
.guide-group {
  display: inline-block;
  background: rgba(0, 229, 255, 0.07);
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: 999px; padding: 0.35rem 1.1rem;
  box-shadow: 0 0 16px -8px rgba(0, 229, 255, 0.7);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.guide-group:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 229, 255, 0.55);
  box-shadow: 0 0 20px -6px rgba(0, 229, 255, 0.55);
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0; transform: translateY(34px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: none; }

/* ==========================================================================
   FUTURISTIC PRODUCT CARDS — glassmorphic rank badges, star ratings,
   glow CTAs, scroll reveal. Pure CSS + tiny JS hook (main.js).
   ========================================================================== */
.pick.fx-card {
  background: linear-gradient(160deg, rgba(0, 229, 255, 0.09), rgba(124, 77, 255, 0.07) 55%, rgba(255, 60, 172, 0.05)) !important;
  border: 1px solid rgba(124, 77, 255, 0.3) !important;
  backdrop-filter: blur(10px) saturate(1.4);
  -webkit-backdrop-filter: blur(10px) saturate(1.4);
  position: relative; overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.3, 1.15), box-shadow 0.35s ease, border-color 0.35s ease;
}
.pick.fx-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(600px 200px at 50% -10%, rgba(0, 229, 255, 0.16), transparent 65%);
  opacity: 0; transition: opacity 0.4s ease;
}
.pick.fx-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 229, 255, 0.6) !important;
  box-shadow: 0 28px 60px -18px rgba(0, 0, 0, 0.75), 0 0 32px -6px rgba(0, 229, 255, 0.45);
}
.pick.fx-card:hover::before { opacity: 1; }
.rank-badge {
  position: absolute; top: 1rem; right: 1rem; z-index: 2;
  font-weight: 800; font-size: 0.82rem; letter-spacing: 0.06em; color: #fff;
  background: linear-gradient(135deg, #ff3cac, #7c4dff);
  padding: 0.32rem 0.7rem; border-radius: 999px;
  box-shadow: 0 0 18px rgba(255, 60, 172, 0.6), 0 4px 12px rgba(0, 0, 0, 0.4);
}
.stars {
  color: #ffb454; font-size: 1.02rem; letter-spacing: 0.18em; margin: 0.15rem 0 0.55rem;
  text-shadow: 0 0 12px rgba(255, 180, 84, 0.6);
}
.btn-glow {
  position: relative;
  background: linear-gradient(135deg, #00e5ff, #7c4dff 55%, #ff3cac) !important;
  background-size: 180% 180%;
  box-shadow: 0 8px 26px -6px rgba(124, 77, 255, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.5s ease;
}
.btn-glow:hover {
  transform: translateY(-2px) scale(1.03);
  background-position: 90% 50%;
  box-shadow: 0 12px 34px -6px rgba(124, 77, 255, 0.95), 0 0 24px rgba(255, 60, 172, 0.5);
  animation: btn-pulse 1.6s ease-in-out infinite;
}
@keyframes btn-pulse {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.12); }
}
html.js .fx-reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.65s ease, transform 0.65s cubic-bezier(0.2, 0.7, 0.3, 1); }
html.js .fx-reveal.fx-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { min-height: 300px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .fx-orb-a { width: 300px; height: 300px; left: -100px; }
  .fx-orb-b { width: 260px; height: 260px; right: -90px; }
  .fx-orb-c { display: none; }
}
@media (max-width: 680px) {
  .nav-links {
    display: flex; position: absolute; top: var(--nav-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch;
    background: linear-gradient(180deg, rgba(8, 8, 26, 0.98), rgba(5, 5, 16, 0.98));
    border-bottom: 1px solid rgba(0, 229, 255, 0.3);
    padding: 0.8rem 4%;
    /* animated open/close instead of a hard display toggle */
    visibility: hidden; opacity: 0; transform: translateY(-12px);
    pointer-events: none;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1), visibility 0s linear 0.3s;
  }
  .nav-links.open {
    visibility: visible; opacity: 1; transform: translateY(0);
    pointer-events: auto;
    transition: opacity 0.3s ease, transform 0.3s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .nav-links.open > li { animation: fx-rise 0.45s cubic-bezier(0.2, 0.7, 0.3, 1) both; }
  .nav-links.open > li:nth-child(2) { animation-delay: 0.05s; }
  .nav-links.open > li:nth-child(3) { animation-delay: 0.1s; }
  .nav-links.open > li:nth-child(4) { animation-delay: 0.15s; }
  .nav-links.open > li:nth-child(5) { animation-delay: 0.2s; }
  .nav-links a { padding: 0.8rem 1rem; }
  .nav-toggle { display: block; }
  .nav-sub-list {
    position: static; box-shadow: none; border: 0; border-radius: 0;
    background: transparent; padding: 0 0 0 0.9rem; max-height: none; overflow: visible;
  }
  .hero { padding: 3.4rem 0 2.6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  .post-row { flex-direction: column; align-items: flex-start; }
  .hero-stats { gap: 1.4rem; }
  .ticker-label { margin-left: 4%; font-size: 0.74rem; padding: 0.3rem 0.7rem; }
  .ticker-pill { font-size: 0.82rem; padding: 0.36rem 0.85rem; }
  .ticker-track { animation-duration: 22s; }
  .hero--cinematic { background-position: 65% center; }
}

/* ---------- Reduced motion: everything calms down ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
  .fx-orb, .fx-anim, .grad-text, .ticker-track,
  .fx-hero::before, .fx-hero::after, .fx-orbs span,
  .fx-hero-line span, .fx-ticker span { animation: none !important; }
  .fx-anim, .reveal { opacity: 1 !important; transform: none !important; }
  html.js .fx-reveal { opacity: 1; transform: none; transition: none; }
  .pick.fx-card, .pick.fx-card:hover { transform: none; }
  .btn-glow:hover { animation: none; }
  .pick.fx-card::before { display: none; }
}

/* ==========================================================================
   MOTION SYSTEM — animated nav, animated tools (additive; driven by the
   new fx.js + pure CSS). Everything degrades gracefully with JS off:
   hidden pre-states are gated behind html.fx-on, which only fx.js adds,
   and the keyframe entrances below are animations (they always finish
   visible) rather than class-gated states.
   ========================================================================== */

/* ---------- Nav: gradient underline + glow sweep + sliding indicator ---------- */
.nav-links { position: relative; }
.nav-links a, .nav-sub summary { position: relative; }
@media (min-width: 681px) {
  /* per-link underline (fallback layer; fx.js indicator takes over when live) */
  .nav-links a::after {
    content: ""; position: absolute; left: 0.9rem; right: 0.9rem; bottom: 0.28rem;
    height: 2px; border-radius: 2px;
    background: var(--grad-brand);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
    transform: scaleX(0); transform-origin: left center;
    transition: transform 0.32s cubic-bezier(0.2, 0.7, 0.3, 1);
  }
  .nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
  html.fx-on .nav-links a::after { display: none; }
  /* glow sweep across the hovered pill */
  .nav-links a, .nav-sub summary {
    background-image: linear-gradient(110deg, transparent 32%, rgba(0, 229, 255, 0.16) 50%, transparent 68%);
    background-size: 260% 100%;
    background-position: 130% 0;
    transition: background-position 0.55s ease, color 0.2s, background-color 0.2s, box-shadow 0.2s;
  }
  .nav-links a:hover, .nav-sub summary:hover { background-position: -80% 0; }
}
/* sliding gradient indicator, created + driven by fx.js */
.fx-nav-ind {
  position: absolute; bottom: 0.1rem; height: 3px; border-radius: 3px;
  background: var(--grad-brand);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.8), 0 0 22px rgba(255, 60, 172, 0.45);
  opacity: 0; pointer-events: none; z-index: 2;
  transition: left 0.38s cubic-bezier(0.25, 0.8, 0.3, 1), width 0.38s cubic-bezier(0.25, 0.8, 0.3, 1), opacity 0.25s ease;
}
@media (max-width: 680px) { .fx-nav-ind { display: none; } }

/* ---------- Dropdown: animated open (native <details> close stays instant) ---------- */
.nav-sub[open] .nav-sub-list { animation: fx-drop-in 0.3s cubic-bezier(0.2, 0.7, 0.3, 1.1) both; }
@keyframes fx-drop-in {
  from { opacity: 0; transform: translateY(-9px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.nav-sub-list a { transition: background-color 0.18s, color 0.18s, transform 0.18s; }
.nav-sub-list a:hover {
  background: rgba(0, 229, 255, 0.1); color: var(--ink);
  transform: translateX(3px); text-decoration: none;
}

/* ---------- Tool cards: staggered entrance + tilt-ready ---------- */
.tool-card { animation: fx-card-in 0.75s cubic-bezier(0.2, 0.7, 0.3, 1) backwards; }
.tool-grid .tool-card:nth-child(2)  { animation-delay: 0.07s; }
.tool-grid .tool-card:nth-child(3)  { animation-delay: 0.14s; }
.tool-grid .tool-card:nth-child(4)  { animation-delay: 0.21s; }
.tool-grid .tool-card:nth-child(5)  { animation-delay: 0.28s; }
.tool-grid .tool-card:nth-child(6)  { animation-delay: 0.35s; }
.tool-grid .tool-card:nth-child(7)  { animation-delay: 0.42s; }
.tool-grid .tool-card:nth-child(8)  { animation-delay: 0.49s; }
.tool-grid .tool-card:nth-child(9)  { animation-delay: 0.56s; }
.tool-grid .tool-card:nth-child(10) { animation-delay: 0.63s; }
.tool-grid .tool-card:nth-child(11) { animation-delay: 0.7s; }
.tool-grid .tool-card:nth-child(12) { animation-delay: 0.77s; }
@keyframes fx-card-in {
  from { opacity: 0; transform: translateY(30px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
/* fx.js pointer tilt (inline transform) sits on top of the hover lift */
.tool-card.fx-tilting { transition: transform 0.12s ease-out, border-color 0.22s ease, box-shadow 0.22s ease; }

/* ---------- Scroll entrance for tool shells / panels (fx.js IO) ---------- */
html.fx-on .fx-io {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}
html.fx-on .fx-io.fx-inview { opacity: 1; transform: none; }

/* ---------- Buttons: animated gradient pan on hover ---------- */
.btn-primary { background-size: 200% 200%; background-position: 0% 50%; }
.btn-primary:hover { animation: fx-grad-pan 1.6s ease-in-out infinite alternate; }
@keyframes fx-grad-pan {
  from { background-position: 0% 50%; }
  to   { background-position: 100% 50%; }
}

/* ---------- Inputs: pulsing neon focus ring ---------- */
textarea:focus, input:focus, select:focus { animation: fx-focus-ring 2.4s ease-in-out infinite; }
@keyframes fx-focus-ring {
  0%, 100% { box-shadow: 0 0 0 3px rgba(0, 229, 255, 0.2), 0 0 16px -4px rgba(0, 229, 255, 0.55); }
  50%      { box-shadow: 0 0 0 4px rgba(124, 77, 255, 0.25), 0 0 26px -2px rgba(124, 77, 255, 0.65); }
}

/* ---------- Result reveal pop (class added by fx.js when results change) ---------- */
.fx-pop { animation: fx-pop 0.5s cubic-bezier(0.2, 0.7, 0.3, 1.25); }
@keyframes fx-pop {
  0%   { transform: scale(0.965); box-shadow: 0 0 0 rgba(0, 229, 255, 0); }
  35%  { transform: scale(1.012); box-shadow: 0 0 34px -4px rgba(0, 229, 255, 0.75), 0 0 54px -10px rgba(255, 60, 172, 0.5); }
  100% { transform: scale(1); box-shadow: 0 0 0 rgba(0, 229, 255, 0); }
}

/* ---------- Spin the Wheel FX (fx.js hooks the locked inline tool script
   via MutationObserver on #stw-spin[disabled] / #stw-winner[hidden];
   the wheel's rotation, outcome and DOM confetti are untouched) ---------- */
.stw-stage.fx-spinning .stw-pointer {
  transform-origin: 50% 0;
  animation: fx-pointer-wobble 0.16s ease-in-out infinite alternate;
}
@keyframes fx-pointer-wobble {
  from { transform: rotate(-8deg); }
  to   { transform: rotate(8deg); }
}
.stw-stage.fx-spinning canvas {
  filter:
    drop-shadow(0 0 30px rgba(0, 229, 255, 0.65))
    drop-shadow(0 0 64px rgba(124, 77, 255, 0.5))
    drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}
.stw-stage.fx-landed::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: radial-gradient(circle at 50% 42%,
    rgba(255, 209, 102, 0.4), rgba(0, 229, 255, 0.2) 42%, transparent 70%);
  animation: fx-flash 0.95s ease-out both;
}
@keyframes fx-flash {
  0%   { opacity: 0; transform: scale(0.82); }
  22%  { opacity: 1; }
  100% { opacity: 0; transform: scale(1.14); }
}
.stw-winner.fx-winner-pulse { animation: fx-winner-pulse 0.85s ease-in-out 3; }
@keyframes fx-winner-pulse {
  0%, 100% { box-shadow: 0 0 18px -4px rgba(255, 60, 172, 0.45), inset 0 0 18px -10px rgba(255, 60, 172, 0.5); }
  50%      { box-shadow: 0 0 44px -2px rgba(255, 60, 172, 0.85), 0 0 64px -8px rgba(0, 229, 255, 0.6), inset 0 0 26px -8px rgba(255, 209, 102, 0.55); }
}
/* fx.js confetti overlay canvas (wheel page only, created on landing) */
.fx-confetti-canvas {
  position: fixed; inset: 0; z-index: 400; pointer-events: none;
}

/* ---------- Reduced motion: motion system off ---------- */
@media (prefers-reduced-motion: reduce) {
  .tool-card, .nav-sub[open] .nav-sub-list, .nav-links.open > li,
  .fx-pop, .stw-stage.fx-spinning .stw-pointer, .stw-winner.fx-winner-pulse,
  .btn-primary:hover, textarea:focus, input:focus, select:focus { animation: none !important; }
  .fx-nav-ind { transition: none; }
  html.fx-on .fx-io { opacity: 1 !important; transform: none !important; transition: none !important; }
  .stw-stage.fx-landed::after { display: none; }
}

/* ==========================================================================
   NAV MEGA-MENU — grouped Tools panel (2026-10-20 nav reorganization)
   The panel reuses .nav-sub-list (positioning, glass background, open
   animation, hover rules all inherited) and layers a grouped grid on top
   via .nav-mega. No existing class renamed or removed. Works without JS:
   the panel lives in the same native <details class="nav-sub">.
   ========================================================================== */

/* ---------- Desktop / tablet: wide grouped panel ---------- */
@media (min-width: 681px) {
  .nav-sub .nav-mega {
    left: auto; right: -0.25rem; top: calc(100% + 10px);
    width: min(648px, calc(100vw - 2rem));
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 0.55rem 1.5rem;
    padding: 1.05rem 1.15rem 1.15rem;
    border-radius: 20px;
  }
}
.nav-group { min-width: 0; padding: 0.3rem 0.4rem 0.45rem; border-radius: 14px; }
.nav-group-label {
  display: flex; align-items: center; gap: 0.5rem;
  margin: 0 0 0.45rem; padding: 0 0.3rem 0.42rem;
  font-size: 0.68rem; font-weight: 800;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-faint);
  border-bottom: 1px solid var(--border-soft);
}
.nav-group-label::before {
  content: ""; flex: none; width: 14px; height: 3px; border-radius: 3px;
  background: var(--grad-brand);
  box-shadow: 0 0 8px rgba(0, 229, 255, 0.65);
}
/* per-group accent ticks */
.nav-group:nth-child(1) .nav-group-label { color: #8be9ff; }
.nav-group:nth-child(1) .nav-group-label::before { background: #00e5ff; box-shadow: 0 0 8px rgba(0, 229, 255, 0.8); }
.nav-group:nth-child(2) .nav-group-label { color: #c3a6ff; }
.nav-group:nth-child(2) .nav-group-label::before { background: #7c4dff; box-shadow: 0 0 8px rgba(124, 77, 255, 0.8); }
.nav-group:nth-child(3) .nav-group-label { color: #ff9fd2; }
.nav-group:nth-child(3) .nav-group-label::before { background: #ff3cac; box-shadow: 0 0 8px rgba(255, 60, 172, 0.8); }
.nav-group:nth-child(4) .nav-group-label { color: #ffd166; }
.nav-group:nth-child(4) .nav-group-label::before { background: #ffd166; box-shadow: 0 0 8px rgba(255, 209, 102, 0.8); }
.nav-group-list { list-style: none; margin: 0; padding: 0; }
.nav-group-list a { font-size: 0.93rem; white-space: nowrap; }

/* ---------- Mobile: stacked groups, big tap targets ---------- */
@media (max-width: 680px) {
  .nav-sub .nav-mega {
    display: block; width: auto;
    padding: 0.15rem 0 0.5rem 0.9rem;
  }
  .nav-sub summary {
    min-height: 44px; width: 100%;
    padding: 0.8rem 1rem; box-sizing: border-box;
  }
  .nav-group { padding: 0.5rem 0 0.3rem; }
  .nav-group + .nav-group {
    border-top: 1px solid var(--border-soft); margin-top: 0.4rem;
  }
  .nav-group-label { padding-left: 0.8rem; padding-right: 0.8rem; }
  .nav-mega .nav-group-list a {
    min-height: 44px; display: flex; align-items: center;
    padding: 0.55rem 0.8rem; white-space: normal;
  }
}

/* ==========================================================================
   ANIMATION UPGRADE — "UK-FX3" (2026-10-21), modelled on CalculateAll FX3
   Goal: give UtiliKit ARTICLE / post pages the same living, futuristic
   feel CalculateAll got — scroll progress, rotating rim light on the
   product gallery + pick panels, animated gradient headline, gradient
   underline draw on section headings, breathing card glow, futuristic
   compare table / TOC / FAQ. Purely decorative: every pseudo-element is
   position:absolute + pointer-events:none (never in-flow — the
   CalculateAll ripple lesson: nothing here can shift layout or eat a
   click). Content, ads and affiliate links untouched.
   JS hooks live in fx.js modules ukfxProgress / ukfxReveals.
   ========================================================================== */
@property --ukfxa { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

/* ---------- scroll progress (element created by fx.js ukfxProgress) ---------- */
#ukfx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 2000;
  background: linear-gradient(90deg, #00e5ff, #7c4dff, #ff3cac, #00e5ff);
  background-size: 200% 100%;
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
  animation: ukfx-progress-pan 5s linear infinite;
}
@keyframes ukfx-progress-pan { to { background-position: 200% 0; } }

/* ---------- article headline: living gradient (like CalculateAll) ---------- */
.page-hero h1 {
  background: linear-gradient(100deg, #f2f5ff 10%, #00e5ff 38%, #b78cff 55%, #ff3cac 72%, #f2f5ff 92%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  animation: ukfx-grad-pan 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 18px rgba(124, 77, 255, 0.28));
}
@keyframes ukfx-grad-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.page-hero .byline { letter-spacing: 0.02em; }

/* ---------- post hero image: glow + animated neon base line ---------- */
.post-hero { position: relative; box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.85), 0 0 55px -18px rgba(124, 77, 255, 0.5); }
.post-hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px;
  background: linear-gradient(90deg, #00e5ff, #7c4dff, #ff3cac, #00e5ff);
  background-size: 200% 100%; pointer-events: none;
  animation: ukfx-progress-pan 5s linear infinite;
}
.post-hero img { filter: saturate(1.12) contrast(1.04); }

/* ---------- rotating rim light — shared by gallery stage + pick cards ---------- */
.pg .pg-stage, .pick.fx-card { position: relative; }
.pg .pg-stage::before, .pick.fx-card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--ukfxa),
    transparent 0deg, transparent 245deg,
    rgba(0,229,255,.95) 292deg, rgba(124,77,255,.95) 322deg, rgba(255,60,172,.9) 345deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none; opacity: .55; z-index: 3;
  animation: ukfx-rim-spin 7s linear infinite;
}
.pick.fx-card::after { border-radius: var(--radius); }
@keyframes ukfx-rim-spin { to { --ukfxa: 360deg; } }

/* ---------- product gallery: dark futuristic re-theme ----------
   (the per-post inline <style> uses light #f3f3f1 panels + a red active
   border; these higher-specificity rules win over it) */
.pg .pg-stage {
  background: radial-gradient(700px 300px at 50% -10%, rgba(124,77,255,.22), transparent 65%), #0b0b26;
  border: 1px solid rgba(0,229,255,.35);
  box-shadow: 0 24px 60px -22px rgba(0,0,0,.8), 0 0 38px -12px rgba(0,229,255,.4);
  border-radius: 18px;
}
.pg .pg-stage img { background: #0b0b26; }
.pg .pg-cap {
  background: rgba(7,7,26,.82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,229,255,.35); box-shadow: 0 0 18px -6px rgba(0,229,255,.6); z-index: 4;
}
.pg .pg-nav {
  background: rgba(7,7,26,.78); border: 1px solid rgba(0,229,255,.4); z-index: 4;
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.pg .pg-nav:hover { background: rgba(124,77,255,.55); border-color: rgba(0,229,255,.85); box-shadow: 0 0 22px -4px rgba(0,229,255,.75); }
.pg .pg-thumbs button {
  background: #0b0b26; border: 2px solid rgba(140,160,255,.18);
  transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease;
}
.pg .pg-thumbs button:hover { transform: translateY(-3px); border-color: rgba(0,229,255,.6); box-shadow: 0 10px 24px -10px rgba(0,229,255,.55); }
.pg .pg-thumbs button[aria-pressed="true"] { border-color: #ff3cac; box-shadow: 0 0 18px -4px rgba(255,60,172,.7); }
.pg .pg-thumbs span { background: rgba(140,160,255,.08); color: #e6ebff; }

/* ---------- pick cards: breathing hover glow + living rank badge ---------- */
.pick.fx-card:hover { animation: ukfx-card-glow 2.6s ease-in-out infinite alternate; }
@keyframes ukfx-card-glow {
  from { box-shadow: 0 28px 60px -18px rgba(0,0,0,.75), 0 0 20px -4px rgba(0,229,255,.35); }
  to   { box-shadow: 0 28px 60px -18px rgba(0,0,0,.75), 0 0 38px -4px rgba(124,77,255,.55); }
}
.rank-badge { background-size: 180% 180%; animation: ukfx-grad-pan 6s ease-in-out infinite alternate; }
.pick .deal-art img { box-shadow: 0 0 22px -6px rgba(0,229,255,.55); border: 1px solid rgba(0,229,255,.3); }

/* ---------- section headings: scroll reveal + gradient underline draw ---------- */
.ukfx-pre { opacity: 0; transform: translateY(18px); }
.ukfx-in { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.22,.9,.3,1); }
.prose h2.ukfx-pre::after, .prose h2.ukfx-in::after, main h2.ukfx-pre::after, main h2.ukfx-in::after {
  content: ""; display: block; height: 3px; width: 72px; margin-top: 9px; border-radius: 99px;
  background: linear-gradient(90deg, #00e5ff, #7c4dff, #ff3cac);
  transform-origin: 0 50%; box-shadow: 0 0 12px rgba(124,77,255,.55);
}
.prose h2.ukfx-pre::after, main h2.ukfx-pre::after { transform: scaleX(0); }
.prose h2.ukfx-in::after, main h2.ukfx-in::after { transform: scaleX(1); transition: transform .9s cubic-bezier(.22,.9,.3,1) .15s; }

/* ---------- TOC: glass panel with neon edge ---------- */
.toc {
  background: linear-gradient(160deg, rgba(0,229,255,.08), rgba(124,77,255,.06) 55%, rgba(255,60,172,.05));
  border: 1px solid rgba(0,229,255,.3); border-radius: var(--radius);
  box-shadow: 0 0 26px -12px rgba(0,229,255,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
}
.toc strong {
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: .04em; text-transform: uppercase; font-size: .86rem;
}
.toc a { transition: color .2s ease, text-shadow .2s ease; }
.toc a:hover { color: #00e5ff; text-shadow: 0 0 10px rgba(0,229,255,.7); }

/* ---------- compare table: futuristic glass ---------- */
.table-wrap { border-radius: var(--radius); box-shadow: 0 0 30px -14px rgba(124,77,255,.6); }
table.compare { background: rgba(11,11,38,.72); border: 1px solid rgba(0,229,255,.28); border-radius: var(--radius); overflow: hidden; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
table.compare th {
  background: linear-gradient(120deg, rgba(0,229,255,.20), rgba(124,77,255,.22), rgba(255,60,172,.16));
  color: #fff; text-align: left; padding: .8rem 1rem; letter-spacing: .02em; border-bottom: 1px solid rgba(0,229,255,.35);
}
table.compare td { padding: .72rem 1rem; border-bottom: 1px solid rgba(140,160,255,.12); color: var(--ink-dim); }
table.compare tr { transition: background .2s ease; }
table.compare tbody tr:hover, table.compare tr:hover { background: rgba(0,229,255,.06); }

/* ---------- notes / method / FAQ: living glass ---------- */
.disclosure-note, .method {
  background: linear-gradient(160deg, rgba(0,229,255,.07), rgba(124,77,255,.06)) !important;
  border: 1px solid rgba(0,229,255,.28) !important; border-radius: var(--radius-sm) !important;
  box-shadow: 0 0 22px -12px rgba(0,229,255,.55);
}
.faq-item { transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.faq-item:hover { border-color: rgba(0,229,255,.5); box-shadow: 0 0 24px -10px rgba(0,229,255,.65); transform: translateY(-2px); }

/* ---------- UK-FX3 reduced motion: everything still ---------- */
@media (prefers-reduced-motion: reduce) {
  #ukfx-progress, .post-hero::after, .page-hero h1, .rank-badge,
  .pg .pg-stage::before, .pick.fx-card::after, .pick.fx-card:hover { animation: none !important; }
  .ukfx-pre { opacity: 1; transform: none; }
  .ukfx-in { transition: none; }
  .prose h2.ukfx-pre::after, main h2.ukfx-pre::after { transform: scaleX(1); }
}

/* ==========================================================================
   SUPER HERO v1 — 2026-10-21 (UtiliKit)
   Bigger header + organized category tabs + a true 3D/4D hero scene:
   spinning CSS-3D cube, holographic orbit rings, mouse-parallax floating
   tool chips, moving perspective grid floor, starfield canvas (fx2.js),
   giant outlined watermark. All decorative layers are absolute +
   pointer-events:none; tool logic and links untouched. "4D" = the scene
   moves through time and reacts to the visitor's pointer.
   ========================================================================== */
:root { --nav-h: 84px; }

/* ---------- header presence ---------- */
.brand { font-size: 1.52rem; letter-spacing: 0.06em; }
.brand-mark {
  width: 46px; height: 46px; border-radius: 14px;
  animation: uk-brand-pulse 3.2s ease-in-out infinite;
}
@keyframes uk-brand-pulse {
  0%, 100% { box-shadow: 0 0 18px -2px rgba(0,229,255,.55), 0 0 30px -6px rgba(255,60,172,.45); }
  50%      { box-shadow: 0 0 30px 2px rgba(0,229,255,.8), 0 0 46px -2px rgba(124,77,255,.6); }
}
.nav-links a, .nav-sub summary { font-size: 1rem; padding: 0.62rem 1rem; }
.nav-sub summary.active {
  color: var(--ink); background: var(--surface-strong);
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.35), 0 0 16px -6px rgba(0,229,255,.6);
}
/* category dots on the four tool tabs (li 2-5: Create, Text, Play, Focus) */
.nav-links > li:nth-child(2) summary::before,
.nav-links > li:nth-child(3) summary::before,
.nav-links > li:nth-child(4) summary::before,
.nav-links > li:nth-child(5) summary::before {
  content: ""; flex: none; width: 8px; height: 8px; border-radius: 50%;
}
.nav-links > li:nth-child(2) summary::before { background: #00e5ff; box-shadow: 0 0 10px #00e5ff; }
.nav-links > li:nth-child(3) summary::before { background: #7c4dff; box-shadow: 0 0 10px #7c4dff; }
.nav-links > li:nth-child(4) summary::before { background: #ff3cac; box-shadow: 0 0 10px #ff3cac; }
.nav-links > li:nth-child(5) summary::before { background: #2ee6a8; box-shadow: 0 0 10px #2ee6a8; }

/* ---------- BIG hero type ---------- */
.hero--cinematic { padding: 6.2rem 0 5.6rem; }
.hero h1 { font-size: clamp(3.05rem, 7.4vw, 5.6rem); line-height: 1.01; letter-spacing: -0.015em; }
.hero .lead { font-size: 1.2rem; }
.fx-hero--tall { padding: 2.1rem 0; }
.fx-hero--tall .fx-hero-line { font-size: clamp(1.7rem, 4.6vw, 3.1rem); letter-spacing: 0.32em; }

/* ---------- hero scene layers ---------- */
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-watermark {
  position: absolute; z-index: 0; left: 50%; top: 44%; transform: translate(-50%, -50%);
  font-family: var(--font-display); font-weight: 900; letter-spacing: 0.08em;
  font-size: clamp(6rem, 17.5vw, 15.5rem); line-height: 1; white-space: nowrap;
  color: rgba(0,229,255,0.06); -webkit-text-stroke: 2px rgba(0,229,255,0.24);
  pointer-events: none; user-select: none;
  animation: uk-watermark-drift 26s ease-in-out infinite alternate;
}
@keyframes uk-watermark-drift { from { transform: translate(-52%, -50%); } to { transform: translate(-48%, -50%); } }
.grid-floor {
  position: absolute; z-index: 0; left: -30%; right: -30%; bottom: -4%; height: 58%;
  background-image:
    linear-gradient(rgba(0,229,255,0.42) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgba(124,77,255,0.42) 1.5px, transparent 1.5px);
  background-size: 46px 46px;
  transform: perspective(620px) rotateX(63deg); transform-origin: bottom center;
  -webkit-mask-image: linear-gradient(to top, rgba(0,0,0,1) 42%, transparent 94%);
  mask-image: linear-gradient(to top, rgba(0,0,0,1) 42%, transparent 94%);
  pointer-events: none;
  animation: uk-floor-move 1.5s linear infinite;
}
@keyframes uk-floor-move { from { background-position: 0 0, 0 0; } to { background-position: 0 46px, 0 0; } }
.grid-floor::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(0,229,255,.85) 30%, rgba(255,60,172,.85) 70%, transparent);
  filter: blur(1px);
}

/* ---------- 3D scene (replaces the wireframe mock panel) ---------- */
.hero-art { min-height: 500px; }
.scene3d { position: absolute; inset: 0; perspective: 1150px; pointer-events: none; }
.cube-space {
  position: absolute; left: 50%; top: 46%; width: 0; height: 0;
  transform-style: preserve-3d;
  transform: rotateX(calc(-13deg + var(--my, 0) * -11deg)) rotateY(calc(var(--mx, 0) * 26deg));
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.cube {
  position: absolute; left: -74px; top: -74px; width: 148px; height: 148px;
  transform-style: preserve-3d;
  animation: uk-cube-spin 26s linear infinite;
}
@keyframes uk-cube-spin { from { transform: rotateX(-18deg) rotateY(0deg); } to { transform: rotateX(-18deg) rotateY(360deg); } }
.cube .face {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 900; font-size: 3rem; color: rgba(255,255,255,.92);
  text-shadow: 0 0 22px rgba(255,255,255,.5);
  border: 1.5px solid rgba(255,255,255,.38); border-radius: 18px;
  background: linear-gradient(150deg, rgba(0,229,255,.30), rgba(124,77,255,.16) 55%, rgba(255,60,172,.26));
  box-shadow: inset 0 0 34px rgba(0,229,255,.22);
}
.cube .f1 { transform: rotateY(0deg) translateZ(74px); }
.cube .f2 { transform: rotateY(90deg) translateZ(74px); }
.cube .f3 { transform: rotateY(180deg) translateZ(74px); }
.cube .f4 { transform: rotateY(-90deg) translateZ(74px); }
.cube .f5 { transform: rotateX(90deg) translateZ(74px); }
.cube .f6 { transform: rotateX(-90deg) translateZ(74px); }
.ring {
  position: absolute; left: 50%; top: 46%; border-radius: 50%;
  border: 2px solid transparent; pointer-events: none;
}
.ring-1 { width: 330px; height: 330px; margin: -165px 0 0 -165px; border-top-color: rgba(0,229,255,.85); border-right-color: rgba(0,229,255,.25); filter: drop-shadow(0 0 10px rgba(0,229,255,.5)); animation: uk-ring-spin 13s linear infinite; }
.ring-2 { width: 460px; height: 460px; margin: -230px 0 0 -230px; border-top-color: rgba(124,77,255,.8); border-left-color: rgba(124,77,255,.22); filter: drop-shadow(0 0 10px rgba(124,77,255,.5)); animation: uk-ring-spin-rev 21s linear infinite; }
.ring-3 { width: 590px; height: 590px; margin: -295px 0 0 -295px; border-top-color: rgba(255,60,172,.65); border-right-color: rgba(255,60,172,.18); filter: drop-shadow(0 0 12px rgba(255,60,172,.45)); animation: uk-ring-spin 32s linear infinite; }
@keyframes uk-ring-spin { from { transform: rotateX(72deg) rotateZ(0deg); } to { transform: rotateX(72deg) rotateZ(360deg); } }
@keyframes uk-ring-spin-rev { from { transform: rotateX(72deg) rotateZ(360deg); } to { transform: rotateX(72deg) rotateZ(0deg); } }
.chip3d {
  position: absolute; z-index: 3;
  transform: translate3d(calc(var(--mx, 0) * 58px * var(--depth, .5)), calc(var(--my, 0) * 40px * var(--depth, .5)), 0);
  transition: transform .5s cubic-bezier(.2,.7,.3,1);
}
.chip3d-in {
  display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
  font-weight: 700; font-size: .92rem; color: var(--ink);
  padding: .62rem 1.05rem; border-radius: 999px;
  background: linear-gradient(160deg, rgba(20,22,54,.82), rgba(10,10,30,.78));
  border: 1px solid rgba(0,229,255,.35);
  box-shadow: 0 18px 36px -14px rgba(0,0,0,.75), 0 0 24px -8px rgba(0,229,255,.45), inset 0 1px 0 rgba(255,255,255,.14);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: uk-chip-float 7s ease-in-out infinite alternate;
}
@keyframes uk-chip-float { from { transform: translateY(-7px) rotate(-1.2deg); } to { transform: translateY(9px) rotate(1.4deg); } }

/* ---------- superhero responsive + reduced motion ---------- */
@media (max-width: 920px) {
  .nav-links.open > li:nth-child(6) { animation: fx-rise 0.45s cubic-bezier(0.2,0.7,0.3,1) both; animation-delay: 0.25s; }
  .hero--cinematic { padding: 4.4rem 0 4rem; }
  .hero-art { min-height: 420px; }
  .scene3d { transform: scale(.74); }
  .hero-watermark { font-size: 24vw; }
}
@media (max-width: 560px) {
  .chip3d-4, .chip3d-5 { display: none; }
  .scene3d { transform: scale(.6); }
}
@media (prefers-reduced-motion: reduce) {
  .brand-mark, .cube, .ring-1, .ring-2, .ring-3, .chip3d-in,
  .grid-floor, .hero-watermark { animation: none !important; }
  .chip3d, .cube-space { transition: none; }
}

/* ==========================================================================
   HEADER V2 — HUD COMMAND DECK (2026-10-21)
   Complete replacement of the old full-width bar + banner strip: a
   floating glass capsule header with a rotating rim light, scan sweep,
   HUD corner brackets, a mini spinning 3D-cube logo, uppercase HUD tabs
   (same .nav-links structure — fx.js indicator + main.js toggle intact),
   and a glowing "15 FREE TOOLS" beacon. Old .site-header / .fx-hero
   markup is gone from every page; their CSS above is inert.
   ========================================================================== */
@property --hdr2a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }

.hdr2 {
  position: sticky; top: 12px; z-index: 100;
  width: min(1460px, calc(100% - 24px)); margin: 12px auto 0;
  border-radius: 22px; overflow: visible;
  background: linear-gradient(165deg, rgba(13,15,40,.88), rgba(6,7,24,.82));
  -webkit-backdrop-filter: blur(22px) saturate(1.7); backdrop-filter: blur(22px) saturate(1.7);
  box-shadow: 0 24px 50px -18px rgba(0,0,0,.85), 0 0 34px -10px rgba(0,229,255,.35),
    inset 0 1px 0 rgba(255,255,255,.12);
}
/* rotating rim light (masked ring, pointer-events none) */
.hdr2::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px;
  background: conic-gradient(from var(--hdr2a),
    transparent 0deg, rgba(0,229,255,.95) 40deg, rgba(124,77,255,.9) 80deg,
    transparent 130deg, transparent 210deg, rgba(255,60,172,.85) 260deg, transparent 310deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
  animation: hdr2-rim 9s linear infinite;
}
@keyframes hdr2-rim { to { --hdr2a: 360deg; } }
/* HUD corner brackets */
.hdr2-inner { position: relative; display: flex; align-items: center; gap: 1.1rem; min-height: 78px; padding: 0.5rem 1.1rem; }
.hdr2-inner::before, .hdr2-inner::after {
  content: ""; position: absolute; width: 18px; height: 18px; pointer-events: none; opacity: .8;
}
.hdr2-inner::before { left: 7px; top: 7px; border-left: 2px solid rgba(0,229,255,.75); border-top: 2px solid rgba(0,229,255,.75); border-top-left-radius: 8px; }
.hdr2-inner::after { right: 7px; bottom: 7px; border-right: 2px solid rgba(255,60,172,.75); border-bottom: 2px solid rgba(255,60,172,.75); border-bottom-right-radius: 8px; }
/* scan sweep across the capsule */
.hdr2-scan {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none;
}
.hdr2-scan::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: -18%; width: 15%;
  background: linear-gradient(100deg, transparent, rgba(0,229,255,.13), rgba(255,255,255,.07), transparent);
  transform: skewX(-16deg);
  animation: hdr2-scan-move 8.5s ease-in-out infinite;
}
@keyframes hdr2-scan-move {
  0%, 55% { left: -18%; } 85%, 100% { left: 112%; }
}
/* brand: mini 3D cube + stacked wordmark */
.hdr2-brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; flex: none; }
.hdr2-cube { width: 42px; height: 42px; perspective: 340px; flex: none; }
.hdr2-cube-in {
  position: relative; display: block; width: 100%; height: 100%;
  transform-style: preserve-3d;
  animation: hdr2-cube-spin 16s linear infinite;
}
@keyframes hdr2-cube-spin { from { transform: rotateX(-14deg) rotateY(0deg); } to { transform: rotateX(-14deg) rotateY(360deg); } }
.hdr2-cube .cf {
  position: absolute; inset: 0; display: grid; place-items: center;
  font-style: normal; font-weight: 900; font-size: 1.02rem; color: rgba(255,255,255,.94);
  background: linear-gradient(150deg, rgba(0,229,255,.4), rgba(124,77,255,.3) 55%, rgba(255,60,172,.38));
  border: 1px solid rgba(255,255,255,.4); border-radius: 10px;
  text-shadow: 0 0 12px rgba(255,255,255,.55);
  backface-visibility: hidden;
}
.hdr2-cube .cf1 { transform: rotateY(0deg) translateZ(21px); }
.hdr2-cube .cf2 { transform: rotateY(90deg) translateZ(21px); }
.hdr2-cube .cf3 { transform: rotateY(180deg) translateZ(21px); }
.hdr2-cube .cf4 { transform: rotateY(270deg) translateZ(21px); }
.hdr2-word {
  font-family: var(--font-display); font-weight: 900; font-size: 1.42rem; letter-spacing: 0.1em;
  line-height: 1; color: var(--ink); display: flex; flex-direction: column; gap: 0.28rem;
}
.hdr2-word small {
  font-size: 0.52rem; font-weight: 700; letter-spacing: 0.42em; color: var(--accent-2);
}
/* nav inside the deck */
.hdr2-nav { flex: 1 1 auto; display: flex; justify-content: center; }
.hdr2 .nav-links a, .hdr2 .nav-sub summary {
  text-transform: uppercase; letter-spacing: 0.055em; font-size: 0.9rem; font-weight: 700;
}
.hdr2-toggle { margin-left: auto; }
/* CTA beacon */
.hdr2-cta {
  flex: none; display: inline-flex; align-items: center; gap: 0.55rem;
  font-family: var(--font-display); font-weight: 800; font-size: 0.82rem; letter-spacing: 0.14em;
  color: var(--ink); text-decoration: none; padding: 0.62rem 1.05rem; border-radius: 999px;
  background: linear-gradient(120deg, rgba(0,229,255,.16), rgba(124,77,255,.16), rgba(255,60,172,.16));
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.45), 0 0 22px -6px rgba(0,229,255,.65);
  transition: transform .2s ease, box-shadow .2s ease;
}
.hdr2-cta:hover { transform: translateY(-1px); box-shadow: inset 0 0 0 1px rgba(0,229,255,.8), 0 0 30px -4px rgba(0,229,255,.8); text-decoration: none; }
.hdr2-cta-dot { width: 9px; height: 9px; border-radius: 50%; background: #2ee6a8; box-shadow: 0 0 12px #2ee6a8; animation: hdr2-dot-pulse 1.8s ease-in-out infinite; }
@keyframes hdr2-dot-pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.35); opacity: .65; } }

@media (max-width: 1180px) { .hdr2-cta { display: none; } }
@media (max-width: 920px) {
  .hdr2 { top: 8px; width: calc(100% - 16px); margin-top: 8px; border-radius: 18px; }
  .hdr2-inner { min-height: 68px; padding: 0.4rem 0.8rem; }
  .hdr2-word { font-size: 1.18rem; }
  .hdr2-word small { font-size: 0.46rem; letter-spacing: 0.34em; }
  .hdr2-cube { width: 36px; height: 36px; }
  .hdr2-cube .cf1 { transform: rotateY(0deg) translateZ(18px); }
  .hdr2-cube .cf2 { transform: rotateY(90deg) translateZ(18px); }
  .hdr2-cube .cf3 { transform: rotateY(180deg) translateZ(18px); }
  .hdr2-cube .cf4 { transform: rotateY(270deg) translateZ(18px); }
  .hdr2 .nav-links {
    top: calc(100% + 10px); left: 0; right: 0; border-radius: 18px;
    border: 1px solid rgba(0,229,255,.3); overflow: hidden;
  }
}
@media (prefers-reduced-motion: reduce) {
  .hdr2::before, .hdr2-cube-in, .hdr2-scan::after, .hdr2-cta-dot { animation: none !important; }
}

/* ============ GUIDES NAV 3D PRO v1 (2026-10-22) ============ */
.hdr2-nav{perspective:1100px}
.hdr2 .nav-links>li>a,.hdr2 .nav-sub>summary{transform-style:preserve-3d;transition:transform .38s cubic-bezier(.2,.9,.25,1.4),box-shadow .38s ease;position:relative}
.hdr2 .nav-links>li>a:hover,.hdr2 .nav-sub>summary:hover{transform:translateY(-2px) rotateX(10deg);box-shadow:0 10px 24px -10px rgba(34,211,238,.55),0 2px 0 rgba(255,255,255,.06) inset}
.hdr2 .nav-sub-list{transform-origin:top center;animation:navUnfold .34s cubic-bezier(.2,.9,.3,1.2)}
@keyframes navUnfold{from{opacity:0;transform:rotateX(-14deg) translateY(-6px)}to{opacity:1;transform:rotateX(0) translateY(0)}}
.hdr2 .nav-sub-list li a{transition:transform .25s ease,background .25s ease}
.hdr2 .nav-sub-list li a:hover{transform:translateX(4px) translateZ(6px)}
.guides-hero{padding:4.2rem 0 1.4rem;text-align:left}
.guides-hero h1{font-size:clamp(2rem,4.6vw,3.4rem);margin:.5rem 0 .7rem}
.tile-zone{padding:.6rem 0 1.8rem}
.tile-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(150px,1fr));gap:.8rem;perspective:900px}
.tile{display:flex;flex-direction:column;gap:.3rem;align-items:flex-start;padding:1rem;border-radius:18px;text-decoration:none;color:var(--ink,#e8f2ff);background:linear-gradient(160deg,rgba(255,255,255,.09),rgba(255,255,255,.02));border:1px solid rgba(120,220,255,.22);box-shadow:0 14px 30px -18px rgba(0,0,0,.8),0 1px 0 rgba(255,255,255,.08) inset;transition:transform .35s cubic-bezier(.2,.9,.25,1.4),box-shadow .35s ease,border-color .35s ease}
.tile:hover{transform:translateY(-5px) rotateX(7deg);border-color:rgba(34,211,238,.65);box-shadow:0 24px 40px -18px rgba(34,211,238,.45),0 1px 0 rgba(255,255,255,.12) inset}
.tile-ic{width:26px;height:26px;color:#22d3ee}
.tile-star{font-size:24px;line-height:1;color:#fbbf24}
.tile-name{font-weight:700;font-size:.95rem;line-height:1.25}
.tile-count{font-size:.78rem;opacity:.72}
.shelf{padding:1.6rem 0 .4rem}
.shelf-head{display:flex;align-items:center;gap:.6rem;margin-bottom:1rem}
.shelf-ic{width:24px;height:24px;color:#22d3ee}
.shelf-head h2{font-size:1.45rem;margin:0}
.shelf-count{font-size:.82rem;opacity:.7;border:1px solid rgba(120,220,255,.3);padding:.12rem .55rem;border-radius:999px}
.g-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:1rem;perspective:1000px}
.g-card{display:flex;flex-direction:column;border-radius:18px;overflow:hidden;text-decoration:none;color:var(--ink,#e8f2ff);background:linear-gradient(165deg,rgba(255,255,255,.07),rgba(255,255,255,.015));border:1px solid rgba(120,220,255,.16);box-shadow:0 16px 34px -20px rgba(0,0,0,.85);transition:transform .35s cubic-bezier(.2,.9,.25,1.4),box-shadow .35s ease,border-color .35s ease}
.g-card:hover{transform:translateY(-6px) rotateX(5deg);border-color:rgba(34,211,238,.6);box-shadow:0 28px 48px -20px rgba(34,211,238,.4)}
.g-card-img{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:rgba(255,255,255,.04)}
.g-card-img img{width:100%;height:100%;object-fit:cover;display:block}
.g-card-fallback{display:flex;align-items:center;justify-content:center;height:100%;font-size:3rem;font-weight:800;color:rgba(34,211,238,.5)}
.g-badge{position:absolute;left:.55rem;bottom:.55rem;background:linear-gradient(90deg,#f59e0b,#f97316);color:#1a1005;font-size:.68rem;font-weight:800;padding:.22rem .5rem;border-radius:999px;letter-spacing:.02em}
.g-card-body{padding:.85rem .95rem 1rem;display:flex;flex-direction:column;gap:.35rem}
.g-card-title{font-weight:700;line-height:1.32;font-size:.98rem}
.g-card-meta{font-size:.76rem;opacity:.66}
@media (prefers-reduced-motion:reduce){.hdr2 .nav-links>li>a,.hdr2 .nav-sub>summary,.tile,.g-card,.hdr2 .nav-sub-list li a{transition:none!important;animation:none!important}.tile:hover,.g-card:hover,.hdr2 .nav-links>li>a:hover,.hdr2 .nav-sub>summary:hover{transform:none!important}}
/* ============ /GUIDES NAV 3D PRO v1 ============ */

/* ============ SYSTEM THEME + HERO WOW v1 (2026-10-22) ============ */
:root{color-scheme:light dark}
@media (prefers-color-scheme: light){
  :root{
    --bg:#f3f6fb; --surface:rgba(13,35,70,.045); --surface-strong:rgba(13,35,70,.085);
    --border:rgba(2,132,199,.30); --border-soft:rgba(13,35,70,.13);
    --ink:#0c1a2e; --ink-dim:#3c4f6d; --ink-faint:#67799a;
    --grad-card:linear-gradient(160deg,#ffffff,#edf3fd);
  }
  body{background:radial-gradient(1150px 560px at 88% -10%,rgba(124,77,255,.13),transparent 60%),radial-gradient(950px 520px at -10% 8%,rgba(0,180,216,.13),transparent 55%),linear-gradient(180deg,#f7fafd,#eef3fa)}
  .hdr2{background:linear-gradient(165deg,rgba(255,255,255,.94),rgba(238,244,253,.9));box-shadow:0 18px 40px -22px rgba(13,45,90,.35)}
  .hdr2-word{color:#0c1a2e}.hdr2-word small{color:#0284c7}
  .hdr2 .nav-links>li>a,.hdr2 .nav-sub>summary{color:#22334f}
  .hdr2 .nav-sub-list{background:rgba(255,255,255,.97);border-color:rgba(13,35,70,.14);box-shadow:0 30px 60px -20px rgba(13,45,90,.35)}
  .hdr2 .nav-sub-list li a{color:#22334f}
  .nav-group-label{color:#0284c7}
  .tile,.g-card{background:linear-gradient(165deg,#ffffff,#eef3fb);color:#0c1a2e;box-shadow:0 16px 34px -20px rgba(13,45,90,.35)}
  .tile-count,.g-card-meta{color:#5a6f92}
  .hero-stars,.grid-floor{display:none}
}
/* --- realistic WOW hero (homepage) --- */
.hero2{position:relative;padding:3.4rem 0 2.6rem;overflow:visible}
.hero2-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:2.4rem;align-items:center}
.hero2-chip{display:inline-flex;align-items:center;gap:.4rem;font-weight:700;font-size:.8rem;letter-spacing:.03em;padding:.42rem .8rem;border-radius:999px;color:#0369a1;background:rgba(0,180,216,.12);border:1px solid rgba(0,180,216,.35)}
.hero2-copy h1{font-size:clamp(2.1rem,4.6vw,3.5rem);line-height:1.06;margin:.9rem 0 .8rem}
.hero2-copy .lead{font-size:1.13rem;max-width:34rem}
.hero2-cta{display:flex;flex-wrap:wrap;gap:.8rem;margin:1.4rem 0 1.2rem}
.hero2-btn-a,.hero2-btn-b{display:inline-flex;align-items:center;font-weight:800;font-size:1rem;padding:.95rem 1.9rem;border-radius:999px;text-decoration:none;transition:transform .3s cubic-bezier(.2,.9,.25,1.4),box-shadow .3s ease}
.hero2-btn-a{color:#fff;background:linear-gradient(92deg,#0284c7,#7c4dff);box-shadow:0 16px 34px -14px rgba(2,132,199,.65)}
.hero2-btn-a:hover{transform:translateY(-3px)}
.hero2-btn-b{color:var(--ink);background:var(--surface-strong);border:1px solid var(--border)}
.hero2-btn-b:hover{transform:translateY(-3px)}
.hero2-trust{display:flex;gap:1.6rem;list-style:none;margin:0;padding:0;font-size:.92rem;color:var(--ink-dim)}
.hero2-trust strong{color:var(--ink);font-size:1.05rem}
.hero2-stage{position:relative;height:430px;perspective:1100px}
.hero2-stage figure{margin:0;border-radius:20px;overflow:hidden;background:#fff;box-shadow:0 30px 60px -24px rgba(5,20,45,.45);border:1px solid rgba(255,255,255,.5)}
.hero2-stage img{width:100%;height:100%;object-fit:cover;display:block}
.hero2-stage figcaption{position:absolute;left:.7rem;bottom:.7rem;background:rgba(8,20,40,.78);color:#fff;font-size:.74rem;font-weight:700;padding:.3rem .6rem;border-radius:999px;backdrop-filter:blur(4px)}
.hero2-main{position:absolute;inset:0 12% 12% 0;transform:rotateY(-7deg) rotateX(2deg)}
.hero2-main figcaption{font-size:.82rem}
.hero2-float{position:absolute;width:46%;height:44%}
.hero2-f1{right:0;bottom:0;transform:rotateY(6deg);animation:heroFloat 7s ease-in-out infinite}
.hero2-f2{left:-4%;bottom:-4%;width:40%;height:38%;animation:heroFloat 8.5s ease-in-out infinite reverse}
@keyframes heroFloat{0%,100%{margin-bottom:0}50%{margin-bottom:10px}}
@media (max-width:900px){.hero2-grid{grid-template-columns:1fr}.hero2-stage{height:340px}}
@media (prefers-reduced-motion:reduce){.hero2-float{animation:none}.hero2-btn-a,.hero2-btn-b{transition:none}}
/* ============ /SYSTEM THEME + HERO WOW v1 ============ */

/* ==========================================================================
   UK DEAL STREAM (ported from TechBargains TB-HERO v3, 2026-10-22): scoped
   theme vars so the river matches UtiliKit in light + dark system themes.
   ========================================================================== */
.hero-stream{--gold:#d97706;--gold-2:#f59e0b;--teal:#0891b2;--violet:#7c3aed;--serif:Georgia,'Times New Roman',serif;--text:var(--ink,#16222e);--muted:var(--ink-dim,#5b6b7b);--faint:#8494a5;--line:var(--border,#dde4ea);--floor-glow:rgba(8,145,178,.13);--floor-line:rgba(8,145,178,.15);--hs-card-bg:var(--surface,#ffffff);--hs-edge:#f7f9fb;--hs-shadow:0 18px 38px rgba(8,47,73,.16)}
@media (prefers-color-scheme: dark){.hero-stream{--faint:#7d90a2;--floor-glow:rgba(34,211,238,.12);--floor-line:rgba(34,211,238,.14);--hs-edge:#0a141f;--hs-shadow:0 18px 38px rgba(0,0,0,.5)}}
.hero-stream{padding-top:clamp(1.2rem,3vw,2rem)}
.hero-stream{position:relative;padding:clamp(2.6rem,6vw,4.2rem) 0 0;overflow:hidden}
.hs-head{position:relative;z-index:3;text-align:center;max-width:880px}
.hs-title{font-family:var(--serif);font-weight:600;font-size:clamp(2.1rem,5vw,3.4rem);margin:.25em 0 .4em;line-height:1.16;letter-spacing:-.01em;text-wrap:balance}
.hs-title em{font-style:normal;background:linear-gradient(100deg,var(--gold-2),var(--gold) 55%,var(--violet) 105%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hs-title em.shimmer{background:linear-gradient(110deg,var(--gold-2) 20%,#fff3d6 40%,var(--gold) 60%,var(--violet) 85%);background-size:220% auto;-webkit-background-clip:text;background-clip:text;color:transparent;animation:shimmer-slide 4.5s linear infinite}
.hs-sub{margin-left:auto;margin-right:auto}
.hs-ctas{margin-top:1.35rem;display:flex;gap:.8rem;flex-wrap:wrap;justify-content:center}
.hero-stream .hero-stats{margin-top:2rem}
.hs-note{position:relative;z-index:3;text-align:center;color:var(--faint);font-size:.84rem;margin:1rem auto 0;padding-bottom:1.6rem}

.hs-stage{position:relative;z-index:2;margin-top:clamp(1.6rem,4vw,2.6rem);
  perspective:1250px;perspective-origin:50% 0%;overflow:hidden;
  padding:1.2rem 0 2.2rem;
  -webkit-mask-image:linear-gradient(90deg,transparent,#000 5.5%,#000 94.5%,transparent);
  mask-image:linear-gradient(90deg,transparent,#000 5.5%,#000 94.5%,transparent)}
.hs-3d{position:relative;transform-style:preserve-3d;
  transform:rotateX(var(--hs-rx,3.5deg)) rotateY(var(--hs-ry,0deg));
  transition:transform .3s ease-out}
.hs-floor{position:absolute;left:-12%;right:-12%;bottom:-14%;height:62%;z-index:0;pointer-events:none;
  transform:rotateX(71deg) translateZ(-46px);transform-origin:50% 100%;
  background:
    radial-gradient(60% 90% at 50% 0%, var(--floor-glow), transparent 70%),
    linear-gradient(var(--floor-line) 1.5px, transparent 1.5px),
    linear-gradient(90deg, var(--floor-line) 1.5px, transparent 1.5px);
  background-size:100% 100%,54px 54px,54px 54px}
.hs-row{position:relative;z-index:1;padding:.45rem 0}
.hs-row--back{transform:translateZ(-90px);opacity:.94;margin-top:.4rem}
.hs-track{display:flex;width:max-content;animation:hs-flow 52s linear infinite;will-change:transform}
.hs-track--rev{animation:hs-flow-rev 64s linear infinite}
.hs-set{display:flex;gap:1.1rem;padding-right:1.1rem}
@keyframes hs-flow{to{transform:translateX(-50%)}}
@keyframes hs-flow-rev{from{transform:translateX(-50%)}to{transform:translateX(0)}}
.hs-stage:hover .hs-track,.hs-stage:focus-within .hs-track,
.hero-stream.hs-off .hs-track{animation-play-state:paused}
.hs-edge{position:absolute;top:0;bottom:0;width:9%;z-index:4;pointer-events:none}
.hs-edge--l{left:0;background:linear-gradient(90deg,var(--hs-edge),transparent)}
.hs-edge--r{right:0;background:linear-gradient(-90deg,var(--hs-edge),transparent)}

.hs-card{position:relative;display:flex;flex-direction:column;width:238px;flex:none;
  background:var(--hs-card-bg);border:1px solid var(--line);border-radius:16px;overflow:hidden;
  color:var(--text);text-decoration:none;backdrop-filter:blur(8px);-webkit-backdrop-filter:blur(8px);
  transition:transform .28s cubic-bezier(.2,.7,.3,1.2),box-shadow .28s ease,border-color .28s ease}
.hs-card:hover{transform:translateY(-7px) scale(1.025);border-color:var(--gold);box-shadow:var(--hs-shadow);text-decoration:none;color:var(--text);z-index:3}
.hs-media{position:relative;display:block;aspect-ratio:16/10;overflow:hidden;background:linear-gradient(135deg,rgba(139,92,246,.16),rgba(255,148,33,.09))}
.hs-media img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s cubic-bezier(.22,.61,.36,1)}
.hs-card:hover .hs-media img{transform:scale(1.08)}
.hs-media::after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 58%,rgba(5,3,12,.38));pointer-events:none}
/* discount / deal label — top-left on the photo, per marketplace convention */
.hs-badge{position:absolute;top:.55rem;left:.55rem;z-index:2;font-size:.72rem;font-weight:800;letter-spacing:.05em;
  padding:.3rem .6rem;border-radius:999px;box-shadow:0 6px 16px -6px rgba(0,0,0,.55)}
.hs-badge--off{background:linear-gradient(120deg,#f43f5e,#e11d48);color:#fff}
.hs-badge--deal{background:linear-gradient(120deg,#ffb347,#f59e0b);color:#231300}
.hs-info{display:flex;flex-direction:column;gap:.18rem;padding:.75rem .9rem .9rem}
.hs-cat{font-size:.66rem;font-weight:800;letter-spacing:.13em;text-transform:uppercase;color:var(--teal)}
.hs-name{font-weight:700;font-size:.98rem;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.54em}
.hs-price{font-size:.92rem;color:var(--muted)}
.hs-price strong{color:var(--gold-2);font-size:1.02rem}
.hs-price s{opacity:.75;font-size:.85em;margin-left:.3rem}

@media(max-width:700px){
  .hs-card{width:198px}
  .hs-set{gap:.8rem;padding-right:.8rem}
  .hs-row--back{transform:translateZ(-60px)}
  .hs-track{animation-duration:40s}
  .hs-track--rev{animation-duration:50s}
  .hs-edge{width:6%}
}
/* Reduced motion: no stream, no 3D — static scrollable rows, all cards reachable */
@media (prefers-reduced-motion: reduce){
  .hs-track,.hs-track--rev{animation:none!important}
  .hs-3d{transform:none;transition:none}
  .hs-floor{display:none}
  .hs-row{overflow-x:auto;padding-bottom:.8rem;scrollbar-width:thin}
  .hs-row--back{transform:none;opacity:1}
  .hs-set[aria-hidden="true"]{display:none}
  .hs-title em.shimmer{animation:none}
  .hs-card,.hs-card:hover{transform:none}
}

/* ==========================================================================
   UK-THEME v2 + UKS HOME (2026-10-22) — SYSTEM THEME BY DEFAULT, mirroring
   TechBargains TB-THEME v3, plus the China-Shop-style homepage components.

   THEME ARCHITECTURE:
   - Default is SYSTEM: no [data-theme] attribute; dark tokens are the
     original :root values and light tokens apply under
     @media (prefers-color-scheme: light). Zero JS needed; with JS off
     the site still follows the OS.
   - fx.js injects a three-state toggle (System -> Light -> Dark) into
     the shared header on every page. Explicit Light/Dark set
     [data-theme] on <html> and persist in localStorage ("uk-theme");
     choosing System removes the attribute. An inline head script on the
     homepage pre-applies a stored explicit choice before first paint.
   - The v1 layer above flips the basics for system-light only; this
     layer completes light coverage and adds the explicit-choice paths.
     Its light rules are scoped with :not([data-theme="dark"]) /
     [data-theme="light"] prefixes so an explicit choice always wins;
     the explicit-dark block additionally restores the dark values that
     v1's unscoped light rules would otherwise force under a light OS.
   - New homepage components (.uks-*) read the same tokens, so one rule
     set serves both themes. The hero and the tool-finder panel stay
     deep-navy scenes in BOTH themes (as in the reference design).
   ========================================================================== */

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
  color-scheme: light;
  --bg: #f3f6fb; --bg-2: #e9eff9;
  --surface: rgba(13,35,70,.045); --surface-strong: rgba(13,35,70,.085);
  --border: rgba(2,132,199,.30); --border-soft: rgba(13,35,70,.13);
  --ink: #0c1a2e; --ink-dim: #3c4f6d; --ink-faint: #5f7396;
  --muted: #5f7396; --line: rgba(13,35,70,.13); --bg-soft: #e9eff9;
  --accent-2: #0284c7; --accent-3: #db2777;
  --grad-card: linear-gradient(160deg,#ffffff,#edf3fd);
  --shadow: 0 24px 50px -24px rgba(13,45,90,.35), 0 0 42px -18px rgba(124,77,255,.18);
  scrollbar-color: rgba(2,132,199,.55) #dfe7f5;
  }
  :root:not([data-theme="dark"]) body { background: radial-gradient(1150px 560px at 88% -10%, rgba(124,77,255,.13), transparent 60%), radial-gradient(950px 520px at -10% 8%, rgba(0,180,216,.13), transparent 55%), linear-gradient(180deg,#f7fafd,#eef3fa); }
  :root:not([data-theme="dark"]) .hdr2 { background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(238,244,253,.9)); box-shadow: 0 18px 40px -22px rgba(13,45,90,.35); }
  :root:not([data-theme="dark"]) .hdr2-word { color: #0c1a2e; }
  :root:not([data-theme="dark"]) .hdr2-word small { color: #0284c7; }
  :root:not([data-theme="dark"]) .hdr2 .nav-links>li>a, :root:not([data-theme="dark"]) .hdr2 .nav-sub>summary { color: #22334f; }
  :root:not([data-theme="dark"]) .hdr2 .nav-sub-list { background: rgba(255,255,255,.97); border-color: rgba(13,35,70,.14); box-shadow: 0 30px 60px -20px rgba(13,45,90,.35); }
  :root:not([data-theme="dark"]) .hdr2 .nav-sub-list li a { color: #22334f; }
  :root:not([data-theme="dark"]) .nav-group-label { color: #0284c7; }
  :root:not([data-theme="dark"]) .tile, :root:not([data-theme="dark"]) .g-card { background: linear-gradient(165deg,#ffffff,#eef3fb); color: #0c1a2e; box-shadow: 0 16px 34px -20px rgba(13,45,90,.35); }
  :root:not([data-theme="dark"]) .tile-count, :root:not([data-theme="dark"]) .g-card-meta { color: #5a6f92; }
  :root:not([data-theme="dark"]) .tool-shell { background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(238,244,253,.9)); border-color: rgba(2,132,199,.30); box-shadow: 0 24px 50px -24px rgba(13,45,90,.35), 0 0 44px -18px rgba(2,132,199,.35); }
  :root:not([data-theme="dark"]) textarea, :root:not([data-theme="dark"]) input[type="text"], :root:not([data-theme="dark"]) input[type="number"], :root:not([data-theme="dark"]) select { background: rgba(255,255,255,.92); }
  :root:not([data-theme="dark"]) select option { background: #ffffff; color: #0c1a2e; }
  :root:not([data-theme="dark"]) .site-footer { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(233,239,249,.92)); }
  :root:not([data-theme="dark"]) ::selection { background: rgba(2,132,199,.30); color: #0c1a2e; }
  :root:not([data-theme="dark"]) .uks-header { background: linear-gradient(165deg, rgba(255,255,255,.98), rgba(238,244,253,.97)); border-bottom-color: rgba(13,35,70,.12); box-shadow: 0 18px 40px -22px rgba(13,45,90,.35); }
  :root:not([data-theme="dark"])::-webkit-scrollbar-track { background: #dfe7f5; }
  :root:not([data-theme="dark"])::-webkit-scrollbar-thumb { border-color: #dfe7f5; }
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f6fb; --bg-2: #e9eff9;
  --surface: rgba(13,35,70,.045); --surface-strong: rgba(13,35,70,.085);
  --border: rgba(2,132,199,.30); --border-soft: rgba(13,35,70,.13);
  --ink: #0c1a2e; --ink-dim: #3c4f6d; --ink-faint: #5f7396;
  --muted: #5f7396; --line: rgba(13,35,70,.13); --bg-soft: #e9eff9;
  --accent-2: #0284c7; --accent-3: #db2777;
  --grad-card: linear-gradient(160deg,#ffffff,#edf3fd);
  --shadow: 0 24px 50px -24px rgba(13,45,90,.35), 0 0 42px -18px rgba(124,77,255,.18);
  scrollbar-color: rgba(2,132,199,.55) #dfe7f5;
}
:root[data-theme="light"] body { background: radial-gradient(1150px 560px at 88% -10%, rgba(124,77,255,.13), transparent 60%), radial-gradient(950px 520px at -10% 8%, rgba(0,180,216,.13), transparent 55%), linear-gradient(180deg,#f7fafd,#eef3fa); }
:root[data-theme="light"] .hdr2 { background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(238,244,253,.9)); box-shadow: 0 18px 40px -22px rgba(13,45,90,.35); }
:root[data-theme="light"] .hdr2-word { color: #0c1a2e; }
:root[data-theme="light"] .hdr2-word small { color: #0284c7; }
:root[data-theme="light"] .hdr2 .nav-links>li>a, :root[data-theme="light"] .hdr2 .nav-sub>summary { color: #22334f; }
:root[data-theme="light"] .hdr2 .nav-sub-list { background: rgba(255,255,255,.97); border-color: rgba(13,35,70,.14); box-shadow: 0 30px 60px -20px rgba(13,45,90,.35); }
:root[data-theme="light"] .hdr2 .nav-sub-list li a { color: #22334f; }
:root[data-theme="light"] .nav-group-label { color: #0284c7; }
:root[data-theme="light"] .tile, :root[data-theme="light"] .g-card { background: linear-gradient(165deg,#ffffff,#eef3fb); color: #0c1a2e; box-shadow: 0 16px 34px -20px rgba(13,45,90,.35); }
:root[data-theme="light"] .tile-count, :root[data-theme="light"] .g-card-meta { color: #5a6f92; }
:root[data-theme="light"] .tool-shell { background: linear-gradient(165deg, rgba(255,255,255,.94), rgba(238,244,253,.9)); border-color: rgba(2,132,199,.30); box-shadow: 0 24px 50px -24px rgba(13,45,90,.35), 0 0 44px -18px rgba(2,132,199,.35); }
:root[data-theme="light"] textarea, :root[data-theme="light"] input[type="text"], :root[data-theme="light"] input[type="number"], :root[data-theme="light"] select { background: rgba(255,255,255,.92); }
:root[data-theme="light"] select option { background: #ffffff; color: #0c1a2e; }
:root[data-theme="light"] .site-footer { background: linear-gradient(180deg, rgba(255,255,255,.72), rgba(233,239,249,.92)); }
:root[data-theme="light"] ::selection { background: rgba(2,132,199,.30); color: #0c1a2e; }
:root[data-theme="light"] .uks-header { background: linear-gradient(165deg, rgba(255,255,255,.98), rgba(238,244,253,.97)); border-bottom-color: rgba(13,35,70,.12); box-shadow: 0 18px 40px -22px rgba(13,45,90,.35); }
:root[data-theme="light"]::-webkit-scrollbar-track { background: #dfe7f5; }
:root[data-theme="light"]::-webkit-scrollbar-thumb { border-color: #dfe7f5; }
:root[data-theme="light"] .hero-stream { --faint:#8494a5; --floor-glow:rgba(8,145,178,.13); --floor-line:rgba(8,145,178,.15); --hs-edge:#f7f9fb; --hs-shadow:0 18px 38px rgba(8,47,73,.16); --hs-card-bg:#ffffff; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .hero-stream { --hs-card-bg:#ffffff; } }
@media (prefers-color-scheme: light) {
  :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #05050f; --bg-2: #0b0b26;
  --surface: rgba(140,160,255,.055); --surface-strong: rgba(140,160,255,.11);
  --border: rgba(0,229,255,.20); --border-soft: rgba(140,160,255,.12);
  --ink: #f2f5ff; --ink-dim: #b8c4ee; --ink-faint: #7e8cc0;
  --muted: #7e8cc0; --line: rgba(140,160,255,.12); --bg-soft: #0b0b26;
  --accent: #7c4dff; --accent-2: #00e5ff; --accent-3: #ff3cac;
  --grad-card: linear-gradient(160deg, rgba(0,229,255,.10), rgba(124,77,255,.07) 55%, rgba(255,60,172,.05));
  --shadow: 0 24px 60px -24px rgba(0,0,0,.75), 0 0 42px -18px rgba(124,77,255,.35);
  scrollbar-color: rgba(124,77,255,.65) #07071a;
  }
  :root[data-theme="dark"] body { background: radial-gradient(1150px 560px at 88% -10%, rgba(124,77,255,.22), transparent 60%), radial-gradient(950px 520px at -12% 10%, rgba(0,229,255,.13), transparent 60%), radial-gradient(820px 560px at 50% 118%, rgba(255,60,172,.12), transparent 62%), linear-gradient(180deg,#05050f 0%,#070722 46%,#0b0b26 100%); }
  :root[data-theme="dark"] .hdr2 { background: linear-gradient(165deg, rgba(13,15,40,.88), rgba(6,7,24,.82)); box-shadow: 0 24px 50px -18px rgba(0,0,0,.85), 0 0 34px -10px rgba(0,229,255,.35), inset 0 1px 0 rgba(255,255,255,.12); }
  :root[data-theme="dark"] .hdr2-word { color: var(--ink); }
  :root[data-theme="dark"] .hdr2-word small { color: var(--accent-2); }
  :root[data-theme="dark"] .hdr2 .nav-links>li>a, :root[data-theme="dark"] .hdr2 .nav-sub>summary { color: var(--ink-dim); }
  :root[data-theme="dark"] .hdr2 .nav-links>li>a.active { color: var(--ink); }
  :root[data-theme="dark"] .hdr2 .nav-sub-list { background: linear-gradient(165deg, rgba(16,16,44,.96), rgba(8,8,26,.96)); border-color: rgba(0,229,255,.28); box-shadow: 0 24px 48px rgba(0,0,0,.6), 0 0 30px -10px rgba(124,77,255,.55); }
  :root[data-theme="dark"] .hdr2 .nav-sub-list li a { color: var(--accent-2); }
  :root[data-theme="dark"] .nav-group-label { color: var(--accent-2); }
  :root[data-theme="dark"] .tile { background: linear-gradient(160deg, rgba(255,255,255,.09), rgba(255,255,255,.02)); color: var(--ink); box-shadow: 0 14px 30px -18px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.08) inset; }
  :root[data-theme="dark"] .g-card { background: linear-gradient(165deg, rgba(255,255,255,.07), rgba(255,255,255,.015)); color: var(--ink); box-shadow: 0 16px 34px -20px rgba(0,0,0,.85); }
  :root[data-theme="dark"] .tile-count, :root[data-theme="dark"] .g-card-meta { color: inherit; }
  :root[data-theme="dark"] .hero-stream { --faint:#7d90a2; --floor-glow:rgba(34,211,238,.12); --floor-line:rgba(34,211,238,.14); --hs-edge:#0a141f; --hs-shadow:0 18px 38px rgba(0,0,0,.5); }
}
:root[data-theme="dark"] { color-scheme: dark; }
/* ---------- Theme toggle (injected by fx.js into every header) ---------- */
.theme-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem; flex: none;
  padding: 0.5rem 0.8rem; border-radius: 999px; cursor: pointer;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink);
  font: 600 0.85rem var(--font); transition: background 0.2s, transform 0.2s;
}
.theme-toggle:hover { background: var(--surface-strong); transform: translateY(-1px); }
.theme-toggle .tt-ico { font-size: 0.95rem; line-height: 1; color: var(--accent-2); }
.hdr2-inner .theme-toggle { margin-left: 0.4rem; }

/* ==========================================================================
   UKS — China-Shop-style homepage (2026-10-22). Header + hero replace the
   old HUD-capsule header and photo hero on the homepage only; every other
   page keeps .hdr2. All colors read theme tokens unless the element is a
   fixed deep-navy scene (hero, finder panel), exactly like the reference.
   ========================================================================== */
.uks-header a, .uks-cats a, .uks-tcard, .uks-holo, .uks-medal { text-decoration: none; }
.uks-header a:hover, .uks-cats a:hover, .uks-tcard:hover, .uks-holo:hover, .uks-medal:hover { text-decoration: none; }

/* ---------- Header ---------- */
.uks-header {
  position: sticky; top: 0; z-index: 120;
  background: linear-gradient(165deg, rgba(9,11,32,.97), rgba(6,7,24,.96));
  -webkit-backdrop-filter: blur(20px) saturate(1.6); backdrop-filter: blur(20px) saturate(1.6);
  border-bottom: 1px solid rgba(0,229,255,.18);
  box-shadow: 0 18px 40px -22px rgba(0,0,0,.8);
}
.uks-top { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; padding: 0.55rem 0; flex-wrap: wrap; }
.uks-brand { display: flex; align-items: center; gap: 0.75rem; flex: none; color: var(--ink); }
.uks-logo {
  width: 46px; height: 46px; border-radius: 14px; flex: none; display: grid; place-items: center;
  background: var(--grad-brand); box-shadow: 0 10px 24px -10px rgba(124,77,255,.8);
}
.uks-logo svg { width: 30px; height: 30px; }
.uks-word { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; letter-spacing: 0.01em; line-height: 1.05; color: var(--ink); }
.uks-word small { display: block; font-size: 0.52rem; font-weight: 700; letter-spacing: 0.32em; color: var(--accent-2); margin-top: 0.18rem; }
.uks-search {
  flex: 1 1 280px; max-width: 580px; margin-inline: auto; display: flex; align-items: center; gap: 0.55rem;
  background: var(--surface); border: 1px solid var(--border); border-radius: 999px; padding: 0.32rem 0.35rem 0.32rem 1.05rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.uks-search:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(0,180,216,.22), 0 0 22px -6px rgba(0,229,255,.5); }
.uks-search svg { width: 19px; height: 19px; flex: none; color: var(--ink-faint); }
.uks-search input {
  flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink);
  font: 1rem var(--font); padding: 0.42rem 0;
}
.uks-search input:focus { outline: none; }
.uks-search input::placeholder { color: var(--ink-faint); }
.uks-search-btn {
  flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-size: 1.1rem; line-height: 1;
  display: grid; place-items: center; transition: transform 0.2s;
}
.uks-search-btn:hover { transform: scale(1.07); }
.uks-actions { display: flex; align-items: center; gap: 0.75rem; flex: none; margin-left: auto; }
.uks-action-link { color: var(--ink-dim); font-weight: 700; font-size: 0.94rem; }
.uks-action-link:hover { color: var(--ink); }
.uks-action-cta {
  display: inline-flex; align-items: center; gap: 0.5rem; color: var(--ink);
  font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.12em;
  padding: 0.6rem 1rem; border-radius: 999px;
  background: linear-gradient(120deg, rgba(0,229,255,.16), rgba(124,77,255,.16), rgba(255,60,172,.16));
  box-shadow: inset 0 0 0 1px rgba(0,229,255,.45), 0 0 22px -6px rgba(0,229,255,.6);
  transition: transform 0.2s, box-shadow 0.2s;
}
.uks-action-cta:hover { transform: translateY(-1px); }
.uks-toggle { display: none; }
@media (max-width: 1180px) { .uks-action-cta { display: none; } }
@media (max-width: 980px) {
  .uks-toggle { display: inline-flex; }
  .uks-action-link { display: none; }
}

/* ---------- Nav row ---------- */
.uks-navrow { border-top: 1px solid var(--border-soft); }
.uks-navrow-in { display: flex; align-items: center; gap: 0.35rem; overflow-x: auto; padding: 0.5rem 0; scrollbar-width: none; }
.uks-navrow-in::-webkit-scrollbar { display: none; }
.uks-navrow-in a {
  white-space: nowrap; color: var(--ink-dim); font-weight: 700; font-size: 0.92rem;
  padding: 0.45rem 0.85rem; border-radius: 999px; transition: background 0.2s, color 0.2s;
}
.uks-navrow-in a:hover { color: var(--ink); background: var(--surface-strong); }
.uks-navrow-in a.active { color: var(--ink); box-shadow: inset 0 -2px 0 var(--accent-2); border-radius: 10px 10px 0 0; }
.uks-navrow-in a.uks-active { color: var(--ink); background: var(--surface-strong); box-shadow: inset 0 0 0 1px var(--border); }
.uks-navrow-in .uks-navlead {
  background: var(--grad-brand); color: #fff; font-weight: 800;
  box-shadow: 0 10px 22px -10px rgba(124,77,255,.75); margin-right: 0.4rem;
}
.uks-navrow-in .uks-navlead:hover { color: #fff; background: var(--grad-brand); }
@media (max-width: 980px) {
  .uks-navrow { display: none; }
  .uks-header.uks-open .uks-navrow { display: block; }
  .uks-header.uks-open .uks-navrow-in { flex-direction: column; align-items: stretch; overflow: visible; }
  .uks-header.uks-open .uks-navrow-in a { padding: 0.65rem 0.9rem; }
  .uks-header.uks-open .uks-navrow-in .uks-navlead { margin-right: 0; text-align: center; }
}

/* ---------- Hero (deep-navy scene in both themes) ---------- */
.uks-hero {
  position: relative; overflow: hidden; margin-top: 1.1rem;
  border-radius: 30px; border: 1px solid rgba(0,229,255,.25);
  background: #060818; color: #eef2ff;
  box-shadow: 0 34px 70px -30px rgba(2,6,30,.85), 0 0 50px -18px rgba(124,77,255,.45);
}
.uks-hero-bg { position: absolute; inset: 0; }
.uks-hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 62%; }
.uks-hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,6,20,.90) 26%, rgba(4,6,20,.55) 58%, rgba(4,6,20,.22) 100%),
              linear-gradient(0deg, rgba(4,6,20,.55), transparent 42%);
}
.uks-hero-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 2rem; align-items: center; padding: clamp(2.4rem, 5vw, 4.2rem) clamp(1.4rem, 4vw, 3.4rem); }
.uks-eyebrow {
  display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.04em;
  padding: 0.42rem 0.85rem; border-radius: 999px; color: #67e8f9;
  background: rgba(0,180,216,.13); border: 1px solid rgba(103,232,249,.4);
}
.uks-hero h1 { font-size: clamp(2.35rem, 4.8vw, 3.85rem); line-height: 1.04; margin: 1rem 0 0.85rem; color: #fff; font-weight: 800; }
.uks-grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.uks-lead { font-size: 1.12rem; line-height: 1.6; color: #bcc7ea; max-width: 34rem; margin: 0; }
.uks-hero-cta { display: flex; flex-wrap: wrap; gap: 0.8rem; margin: 1.5rem 0 1.5rem; }
.uks-btn-a, .uks-btn-b {
  display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 800; font-size: 1rem;
  padding: 0.95rem 1.9rem; border-radius: 999px; transition: transform 0.3s cubic-bezier(.2,.9,.25,1.4), box-shadow 0.3s;
}
.uks-btn-a { color: #fff; background: linear-gradient(92deg, #06b6d4, #7c4dff 55%, #ec4899); box-shadow: 0 16px 34px -12px rgba(124,77,255,.75); }
.uks-btn-a:hover { transform: translateY(-3px); }
.uks-btn-b { color: #fff; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.uks-btn-b:hover { transform: translateY(-3px); }
.uks-chips { display: flex; flex-wrap: wrap; gap: 1.3rem; list-style: none; margin: 0; padding: 0; }
.uks-chips li { display: flex; align-items: center; gap: 0.6rem; }
.uks-chips .uks-chip-ic {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(103,232,249,.4); background: rgba(0,180,216,.12); color: #22d3ee;
}
.uks-chips .uks-chip-ic svg { width: 19px; height: 19px; }
.uks-chips strong { display: block; color: #fff; font-size: 0.94rem; line-height: 1.2; }
.uks-chips small { display: block; color: #93a7cc; font-size: 0.78rem; }
.uks-hero-scene { position: relative; min-height: 400px; }
.uks-holo {
  position: absolute; display: flex; align-items: center; gap: 0.75rem; width: 258px;
  padding: 0.85rem 1rem; border-radius: 18px; color: #fff;
  background: linear-gradient(160deg, rgba(10,22,52,.62), rgba(10,16,40,.38));
  border: 1px solid rgba(103,232,249,.5);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 24px 48px -20px rgba(0,0,0,.75), 0 0 26px -8px rgba(34,211,238,.55);
  animation: uksFloat 7s ease-in-out infinite;
}
.uks-holo:hover { border-color: rgba(103,232,249,.9); }
.uks-holo-ic { width: 46px; height: 46px; flex: none; display: grid; place-items: center; border-radius: 13px; background: var(--grad-brand); color: #fff; }
.uks-holo-ic svg { width: 24px; height: 24px; }
.uks-holo-name { display: block; font-weight: 800; font-size: 0.98rem; line-height: 1.2; }
.uks-holo-cat { display: block; color: #9fb4dd; font-size: 0.78rem; margin-top: 0.15rem; }
.uks-holo-badge {
  margin-left: auto; flex: none; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em;
  padding: 0.24rem 0.55rem; border-radius: 999px; color: #03251c;
  background: linear-gradient(90deg, #2ee6a8, #22d3ee);
}
.uks-holo-1 { top: 4%; right: 24%; }
.uks-holo-2 { top: 38%; right: 0; animation-delay: -2.2s; }
.uks-holo-3 { bottom: 3%; right: 30%; animation-delay: -4.4s; }
@keyframes uksFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
@media (max-width: 1020px) {
  .uks-hero-grid { grid-template-columns: 1fr; }
  .uks-hero-scene { min-height: 0; display: grid; gap: 0.8rem; }
  .uks-holo { position: static; width: 100%; animation: none; }
}
@media (max-width: 760px) {
  .uks-search { order: 3; flex-basis: 100%; max-width: none; }
  .uks-hero { border-radius: 22px; }
}

/* ---------- Category medallions ---------- */
.uks-cats { padding: 1.7rem 0 0.3rem; }
.uks-cats-row { display: flex; gap: 1rem; justify-content: space-between; overflow-x: auto; padding: 0.4rem 0.2rem 1rem; scrollbar-width: none; }
.uks-cats-row::-webkit-scrollbar { display: none; }
.uks-medal { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; min-width: 94px; color: var(--ink-dim); font-weight: 700; font-size: 0.87rem; text-align: center; }
.uks-medal-ic {
  width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-strong); border: 1px solid var(--border); color: var(--accent-2);
  box-shadow: var(--shadow); transition: transform 0.3s cubic-bezier(.2,.9,.25,1.4), border-color 0.3s, box-shadow 0.3s;
}
.uks-medal-ic svg { width: 31px; height: 31px; }
.uks-medal:hover .uks-medal-ic, .uks-medal.uks-active .uks-medal-ic {
  transform: translateY(-4px); border-color: var(--accent-2);
  box-shadow: var(--shadow), 0 0 24px -6px rgba(0,180,216,.55);
}
.uks-medal.uks-active { color: var(--ink); }

/* ---------- Trending tools ---------- */
.uks-trend-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.uks-trend-head h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2rem); }
.uks-trend-head p { margin: 0.3rem 0 0; color: var(--ink-dim); }
.uks-viewall { flex: none; font-weight: 800; color: var(--accent-2); }
.uks-tgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(196px, 1fr)); gap: 1rem; }
.uks-tcard {
  display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; color: var(--ink);
  background: var(--grad-card); border: 1px solid var(--border-soft); box-shadow: var(--shadow);
  transition: transform 0.3s cubic-bezier(.2,.9,.25,1.4), border-color 0.3s;
}
.uks-tcard:hover { transform: translateY(-5px); border-color: var(--accent-2); }
.uks-tcard-media {
  position: relative; height: 118px; display: grid; place-items: center; color: #fff;
  background: radial-gradient(220px 120px at 18% 0%, rgba(0,229,255,.35), transparent 65%),
              radial-gradient(240px 130px at 88% 110%, rgba(255,60,172,.32), transparent 65%),
              linear-gradient(135deg, #0b1030, #16255e 55%, #2a1150);
}
.uks-tcard-media svg { width: 52px; height: 52px; filter: drop-shadow(0 0 12px rgba(0,229,255,.65)); }
.uks-badge-free {
  position: absolute; top: 0.6rem; left: 0.6rem; font-size: 0.66rem; font-weight: 800; letter-spacing: 0.07em;
  padding: 0.24rem 0.55rem; border-radius: 999px; color: #fff;
  background: linear-gradient(90deg, #0284c7, #7c4dff);
}
.uks-tcard-body { display: flex; flex-direction: column; gap: 0.35rem; padding: 0.95rem 1rem 1.05rem; flex: 1; }
.uks-tcard-name { font-weight: 800; font-size: 1.02rem; line-height: 1.25; }
.uks-tcard-line { color: var(--ink-dim); font-size: 0.9rem; line-height: 1.45; flex: 1; }
.uks-tcard-meta { display: flex; align-items: center; gap: 0.45rem; margin-top: 0.4rem; }
.uks-chip-cat { font-size: 0.68rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-2); background: var(--surface-strong); padding: 0.24rem 0.55rem; border-radius: 999px; }
.uks-chip-note { font-size: 0.72rem; font-weight: 700; color: var(--ink-faint); }
.uks-arrow {
  margin-left: auto; width: 34px; height: 34px; flex: none; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid var(--border); color: var(--ink); transition: background 0.25s, color 0.25s;
}
.uks-tcard:hover .uks-arrow { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* ---------- Tool filter bar ---------- */
.uk-filter-bar {
  display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; margin: 0 0 1.2rem;
  padding: 0.7rem 1rem; border-radius: 14px; color: var(--ink-dim); font-size: 0.94rem;
  background: var(--surface); border: 1px dashed var(--border);
}
.uk-filter-bar strong { color: var(--ink); }
.uk-filter-clear {
  margin-left: auto; border: 0; cursor: pointer; color: #fff; font: 700 0.85rem var(--font);
  background: var(--grad-brand); padding: 0.45rem 0.95rem; border-radius: 999px;
}
.tool-card[hidden] { display: none !important; }

/* ---------- Why UtiliKit panel ---------- */
.uks-panel { border-radius: 28px; border: 1px solid var(--border-soft); padding: clamp(1.6rem, 3.4vw, 2.6rem); }
.uks-why-panel { background: var(--grad-card); box-shadow: var(--shadow); }
.uks-why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.3rem; margin-top: 1.5rem; }
.uks-why-item h3 { margin: 0.8rem 0 0.4rem; font-size: 1.06rem; }
.uks-why-item p { color: var(--ink-dim); font-size: 0.94rem; margin: 0; }
.uks-why-ic {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: var(--accent-2);
  background: var(--surface-strong); border: 1px solid var(--border);
}
.uks-why-ic svg { width: 24px; height: 24px; }

/* ---------- Tool finder panel (deep-navy scene in both themes) ---------- */
.uks-finder {
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 2rem; align-items: center; color: #eef2ff;
  background: radial-gradient(420px 260px at 92% -10%, rgba(124,77,255,.35), transparent 62%),
              radial-gradient(380px 240px at -8% 110%, rgba(0,180,216,.28), transparent 60%),
              linear-gradient(150deg, #0a1030, #0a0a26 58%, #170b38);
  border: 1px solid rgba(0,229,255,.28); border-radius: 28px;
  padding: clamp(1.6rem, 3.4vw, 2.6rem);
  box-shadow: 0 30px 60px -28px rgba(2,6,30,.8), 0 0 44px -16px rgba(124,77,255,.5);
}
.uks-finder-tag {
  display: inline-block; font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; padding: 0.35rem 0.8rem; border-radius: 999px; background: linear-gradient(90deg, #0284c7, #7c4dff);
}
.uks-finder h2 { color: #fff; font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0.9rem 0 0.5rem; }
.uks-finder-copy > p { color: #aebadd; margin: 0 0 1.2rem; max-width: 32rem; }
.uks-ask {
  display: flex; align-items: center; gap: 0.5rem; max-width: 34rem;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.24); border-radius: 999px; padding: 0.35rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.uks-ask:focus-within { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34,211,238,.22); }
.uks-ask input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font: 1rem var(--font); padding: 0.6rem 0.4rem 0.6rem 1rem; }
.uks-ask input:focus { outline: none; }
.uks-ask input::placeholder { color: #8fa3c8; }
.uks-ask button {
  flex: none; width: 46px; height: 46px; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--grad-brand); color: #fff; font-size: 1.25rem; line-height: 1; display: grid; place-items: center;
  transition: transform 0.2s;
}
.uks-ask button:hover { transform: scale(1.07); }
.uks-finder-results { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1rem; }
.uks-finder-results:empty { margin-top: 0; }
.uks-fresult {
  display: inline-flex; align-items: center; gap: 0.45rem; color: #fff; font-weight: 700; font-size: 0.92rem;
  background: rgba(255,255,255,.09); border: 1px solid rgba(103,232,249,.45); padding: 0.5rem 0.95rem; border-radius: 999px;
}
.uks-fresult:hover { background: rgba(255,255,255,.16); text-decoration: none; }
.uks-finder-note { color: #9fb4dd; font-size: 0.92rem; margin-top: 1rem; }
.uks-finder-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 0.45rem; margin-top: 1rem; color: #8fa3c8; font-size: 0.86rem; }
.uks-finder-chips button {
  background: transparent; border: 1px solid rgba(255,255,255,.28); color: #dbeafe; cursor: pointer;
  font: 600 0.85rem var(--font); padding: 0.32rem 0.75rem; border-radius: 999px; transition: background 0.2s;
}
.uks-finder-chips button:hover { background: rgba(255,255,255,.12); }
.uks-finder-art img { width: 100%; max-width: 320px; margin-inline: auto; border-radius: 24px; box-shadow: 0 24px 50px -20px rgba(0,0,0,.7), 0 0 34px -8px rgba(34,211,238,.45); animation: uksFloat 8s ease-in-out infinite; }
@media (max-width: 900px) {
  .uks-finder { grid-template-columns: 1fr; }
  .uks-finder-art img { max-width: 240px; }
}

/* ---------- Footer trust strip ---------- */
.uks-truststrip {
  display: flex; flex-wrap: wrap; gap: 0.8rem 2.4rem; justify-content: center;
  padding: 1.4rem 0 0.4rem; border-top: 1px solid var(--border-soft);
}
.uks-truststrip span { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink-dim); font-weight: 700; font-size: 0.93rem; }
.uks-truststrip svg { width: 20px; height: 20px; color: var(--accent-2); }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .uks-holo, .uks-finder-art img { animation: none !important; }
  .uks-btn-a, .uks-btn-b, .uks-tcard, .uks-medal-ic, .theme-toggle { transition: none !important; }
}
/* ============ /UK-THEME v2 + UKS HOME ============ */

.uk-filter-bar[hidden] { display: none !important; }

/* ==========================================================================
   LIGHT-THEME GRADIENT-TEXT FIX — 2026-11-05
   The display gradient on .page-hero h1 is tuned for the dark theme: its
   near-white (#f2f5ff) and pale-cyan stops wash out on the light theme's
   near-white background (owner report 2026-11-05: post titles unreadable
   in light mode). In light mode only, swap in a deep version of the same
   brand gradient and drop the neon glow. Same fix for the TOC heading,
   which uses the pale brand gradient on a light panel. Dark theme is
   untouched.
   ========================================================================== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .page-hero h1 {
    background: linear-gradient(100deg, #0a2a6b 5%, #0369a1 35%, #6d28d9 58%, #b00d74 80%, #0a2a6b 95%);
    background-size: 220% 100%;
    -webkit-background-clip: text; background-clip: text;
    color: transparent; -webkit-text-fill-color: transparent;
    filter: none;
  }
  :root:not([data-theme="dark"]) .toc strong {
    background: linear-gradient(110deg, #0369a1 0%, #6d28d9 52%, #b00d74 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    filter: none;
  }
}
:root[data-theme="light"] .page-hero h1 {
  background: linear-gradient(100deg, #0a2a6b 5%, #0369a1 35%, #6d28d9 58%, #b00d74 80%, #0a2a6b 95%);
  background-size: 220% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent; -webkit-text-fill-color: transparent;
  filter: none;
}
:root[data-theme="light"] .toc strong {
  background: linear-gradient(110deg, #0369a1 0%, #6d28d9 52%, #b00d74 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: none;
}

/* ==========================================================================
   LIGHT-THEME ARTICLE TEXT FIX — 2026-11-05
   .prose carries a HARDCODED dark-theme text color (#e2e8ff, pale lavender)
   that the light layers never override, so in light mode the whole article
   body rendered pale-on-white and unreadable (owner report 2026-11-05,
   second screenshot — shower caddy post). In light mode only, give the
   article body a deep readable ink and deepen inline-code text to match.
   Dark theme is untouched.
   ========================================================================== */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) .prose { color: #22334f; }
  :root:not([data-theme="dark"]) .prose code { color: #5b21b6; background: rgba(124, 77, 255, 0.12); }
}
:root[data-theme="light"] .prose { color: #22334f; }
:root[data-theme="light"] .prose code { color: #5b21b6; background: rgba(124, 77, 255, 0.12); }
