@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Space+Grotesk:wght@500;600;700;800&display=swap');

/* ==========================================================================
   CHARLIE PROTOCOL - TIER-1 HIGH-PERFORMANCE ROLLOUT DESIGN SYSTEM
   "Visual Sex" // Obsidian Foundry // Adversarial Cryptographic Telemetry
   ========================================================================== */

:root {
  /* Ground & Subterranean Depths */
  --bg-void: #030403;
  --bg-base: #060806;
  --bg-foundry: #0A0E0A;
  --bg-surface: #101610;
  --bg-card: rgba(14, 20, 14, 0.78);
  --bg-card-hover: rgba(22, 32, 22, 0.92);
  --bg-input: #040604;
  --bg-overlay: rgba(3, 4, 3, 0.92);
  --bg-glass-card: rgba(12, 17, 12, 0.82);

  /* Borders & Precision Scaffolding */
  --border-subtle: rgba(143, 225, 63, 0.12);
  --border-glass: rgba(255, 255, 255, 0.08);
  --border-vitrified: rgba(255, 255, 255, 0.14);
  --border-highlight: rgba(143, 225, 63, 0.45);
  --border-neon-active: #8FE13F;
  --grid-line: rgba(143, 225, 63, 0.035);

  /* Primary Brand: Bioluminescent Gastropod / Radioactive Slime */
  --ember: #8FE13F;
  --ember-core: #8FE13F;
  --ember-bright: #A6FF4D;
  --neon-charlie: #8FE13F;   /* was undefined; alias of --ember (62 usages sitewide) */
  --ember-laser: #A6FF4D;
  --ember-dim: #64A32B;
  --ember-glow: rgba(143, 225, 63, 0.35);
  --ember-halo: rgba(143, 225, 63, 0.09);

  /* Sol Incinerator Plasma Thermal Colors */
  --flame-core: #FFD84A;
  --flame-plasma: #FFD84A;
  --flame-warm: #FF8A1F;
  --flame-molten: #FF8A1F;
  --flame-hot: #FF3B1F;
  --flame-destructive: #FF3B1F;
  --flame-glow: rgba(255, 138, 31, 0.35);
  --furnace-glow: rgba(255, 77, 46, 0.28);

  /* Solana Mainnet & Network Telemetry */
  --sol-blue: #00E5FF;
  --sol-cyan: #00E5FF;
  --sol-glow: rgba(0, 229, 255, 0.3);

  /* Popperian Falsification Semantic Status Tokens */
  --pass: #8FE13F;
  --pass-neon: #8FE13F;
  --pass-bg: rgba(143, 225, 63, 0.10);
  --pass-border: rgba(143, 225, 63, 0.4);
  --pass-glow: rgba(143, 225, 63, 0.25);

  --fail: #FF2B3E;
  --fail-crimson: #FF2B3E;
  --fail-bg: rgba(255, 43, 62, 0.14);
  --fail-border: rgba(255, 43, 62, 0.7);
  --fail-glow: rgba(255, 43, 62, 0.45);

  --unchecked: #FFB340;
  --unchecked-amber: #FFB340;
  --unchecked-bg: rgba(255, 179, 64, 0.10);
  --unchecked-border: rgba(255, 179, 64, 0.4);

  /* Typography Colors */
  --text-primary: #F5F9F4;
  --text-secondary: #9BA89A;
  --text-muted: #5D685C;
  --text-inverse: #030403;

  /* World-Class Modern Typography Stacks */
  --font-display: 'Space Grotesk', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, "SFMono-Regular", Consolas, monospace;

  /* Spatial Scales */
  --shell: 1200px;
  --sp-xs: 4px;
  --sp-sm: 8px;
  --sp-md: 16px;
  --sp-lg: 24px;
  --sp-xl: 32px;
  --sp-2xl: 48px;
  --sp-3xl: 64px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-pill: 9999px;

  /* Glassmorphic & Specular Lighting Filters */
  --glass-blur: blur(20px) saturate(190%);
  --shadow-obsidian: 0 30px 60px -12px rgba(0, 0, 0, 0.85), 0 18px 36px -18px rgba(0, 0, 0, 0.95);
  --shadow-specular-glow: 0 0 0 1px var(--border-vitrified), 0 20px 48px -15px rgba(0, 0, 0, 0.9), 0 0 32px -4px var(--ember-halo);
}

/* ==========================================================================
   Base Reset & Layout Shell
   ========================================================================== */

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  background-color: var(--bg-base);
  background-image: 
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 32px 32px;
  background-position: center top;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-wrap: anywhere;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Cybernetic Neon Grid Laser Scan Sweep */
body::after {
  content: "";
  position: fixed;
  top: -50%;
  left: 0;
  width: 100%;
  height: 240px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(143, 225, 63, 0.02) 40%,
    rgba(143, 225, 63, 0.08) 85%,
    rgba(166, 255, 77, 0.25) 100%
  );
  filter: drop-shadow(0 0 16px var(--ember));
  pointer-events: none;
  z-index: 99999;
  opacity: 0.6;
  animation: none;
}



a {
  color: var(--ember);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--ember-bright);
  text-decoration: none;
}

code, pre, .mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum" 1, "zero" 1;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-top: 0;
}

p {
  color: var(--text-secondary);
  margin-top: 0;
}

main {
  max-width: var(--shell);
  margin: 0 auto;
  padding: var(--sp-2xl) var(--sp-lg) var(--sp-3xl);
  position: relative;
}

.shell-inner {
  max-width: var(--shell);
  margin: 0 auto;
}

/* ==========================================================================
   Global Sticky Header
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 14, 11, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glass);
  padding: 12px var(--sp-lg);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.header-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-sm);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  text-decoration: none;
}

.brand-lockup:hover {
  color: var(--text-primary);
  text-decoration: none;
}

.preview-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255, 179, 64, 0.15);
  color: var(--unchecked);
  border: 1px solid var(--unchecked-border);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: all 0.15s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.06);
  text-decoration: none;
}

.nav-link.active {
  color: var(--ember);
  border-bottom: 2px solid var(--ember);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.btn-icon {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-family: var(--font-mono);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  border-color: var(--border-highlight);
  color: var(--text-primary);
}

.btn-icon.active {
  color: var(--ember);
  border-color: var(--ember);
  background: var(--pass-bg);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */

.hero {
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(143, 225, 63, 0.07) 0%, transparent 65%), var(--bg-void);
  border-bottom: 1px solid var(--border-glass);
  padding: clamp(var(--sp-2xl), 8vw, 96px) var(--sp-lg) clamp(var(--sp-xl), 5vw, 64px);
  overflow: hidden;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: var(--sp-md);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.flame-box {
  display: inline-flex;
  filter: drop-shadow(0 0 8px rgba(255, 138, 31, 0.6));
}

.hero h1 {
  font-size: clamp(38px, 6.5vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  margin-bottom: var(--sp-md);
  color: var(--text-primary);
}

.hero .tagline {
  font-size: clamp(17px, 2.2vw, 22px);
  color: var(--text-secondary);
  max-width: 65ch;
  margin-bottom: var(--sp-xl);
  line-height: 1.45;
}

/* ==========================================================================
   The Scene: Charlie Crawling & Sol Incinerator
   ========================================================================== */

/* Mode Switcher for Hero */
.hero-mode-switch {
  display: inline-flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 3px;
  gap: 4px;
  margin-bottom: var(--sp-md);
}

.btn-mode {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-mode.active {
  background: var(--ember);
  color: var(--bg-void);
  font-weight: 700;
  box-shadow: 0 0 12px var(--ember-glow);
}

/* ==========================================================================
   Hero Surveillance Stage: Live Animated Catwalk & Roaring Sol-Incinerator
   ========================================================================== */

.scene-3d-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.85), 0 0 35px rgba(143, 225, 63, 0.1);
  margin-bottom: var(--sp-xl);
  perspective: 1200px;
  transition: transform 0.3s cubic-bezier(0.2, 0, 0, 1), box-shadow 0.3s ease;
  user-select: none;
}

.scene-3d-box:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.95), 0 0 45px var(--ember-glow);
}

/* `<picture>` is an inline wrapper with no box of its own here -- the image
   inside it is absolutely positioned against the stage, as it was before the
   animated source was reintroduced. */
.scene-3d-picture { display: contents; }

.scene-3d-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  z-index: 1;
  transition: transform 0.4s ease;
}

/* Stage HUD & Interactive Control Toolbar */
.stage-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  pointer-events: none;
}

.stage-badge {
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember);
  background: rgba(8, 11, 8, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-highlight);
  padding: 5px 12px;
  border-radius: var(--radius-pill);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.6);
}

.stage-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
  animation: none;
}

@keyframes stage-blink {
  from { opacity: 0.4; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1.2); }
}

.stage-controls {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.stage-ctrl-group {
  display: inline-flex;
  background: rgba(8, 11, 8, 0.88);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-pill);
  padding: 2px;
  gap: 2px;
}

.btn-stage-ctrl {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-stage-ctrl:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.btn-stage-ctrl.active {
  background: var(--ember);
  color: var(--bg-void);
  font-weight: 700;
  box-shadow: 0 0 10px var(--ember-glow);
}

/* Roaring Hearth Light / Thermal Glow Layer (Handled in master render to prevent face obscuration) */
.stage-hearth-glow {
  display: none;
}

/* Catwalk Reflected Glow */
.stage-catwalk-glow {
  position: absolute;
  top: 59%;
  left: 6%;
  width: 68%;
  height: 8%;
  background: linear-gradient(90deg, rgba(143, 225, 63, 0.06) 0%, rgba(255, 138, 31, 0.18) 60%, rgba(255, 80, 20, 0.4) 100%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 3;
  animation: none;
}

@keyframes catwalk-flicker {
  0%   { opacity: 0.6; }
  50%  { opacity: 0.95; }
  100% { opacity: 0.7; }
}

/* Particle FX Canvas Overlay */
.stage-fx-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

/* Cinematic Bottom Vignette Gradient */
.scene-3d-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(6, 8, 6, 0.65) 82%, var(--bg-void) 100%);
  pointer-events: none;
  z-index: 10;
}

/* Facility Entity Dossier Grid */
.dossier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--sp-lg);
  margin: var(--sp-2xl) 0;
}

.dossier-card {
  background: var(--bg-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
  position: relative;
}

.dossier-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.7), 0 0 20px var(--ember-halo);
  transform: none;
}

.dossier-media {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  background: #000;
  overflow: hidden;
}

.dossier-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.dossier-card:hover .dossier-media img {
  transform: scale(1.04);
}

.dossier-content {
  padding: var(--sp-lg);
}

.dossier-tag {
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ember);
  margin-bottom: 4px;
}

.dossier-title {
  font-size: 22px;
  margin-bottom: var(--sp-xs);
  color: var(--text-primary);
}

.scene-wrapper {
  position: relative;
  margin: var(--sp-xl) 0;
  padding: var(--sp-md) 0;
}

.scene {
  display: flex;
  align-items: flex-end;
  gap: var(--sp-lg);
  position: relative;
}

.scene-track {
  position: relative;
  flex: 1 1 auto;
  height: clamp(48px, 6vw, 72px);
  border-bottom: 2px solid var(--border-highlight);
  background: linear-gradient(180deg, transparent 70%, rgba(143, 225, 63, 0.05) 100%);
}

.scene-track::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--ember) 0px, var(--ember) 8px, transparent 8px, transparent 16px);
  opacity: 0.5;
}

.walker {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 100%;
  animation: none;
}

.facing {
  height: 100%;
  animation: none;
}

.charlie-img {
  height: 100%;
  width: auto;
  image-rendering: pixelated;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.8));
  transform-origin: 50% 100%;
  animation: none;
}

@keyframes crawl {
  from { left: 0; transform: translateX(0); }
  to   { left: 100%; transform: translateX(-100%); }
}

@keyframes face {
  0%, 49.99% { transform: scaleX(-1); }
  50%, 100%  { transform: scaleX(1); }
}

@keyframes lurch {
  0%, 100% { transform: scaleY(1) scaleX(1); }
  45% { transform: scaleY(0.92) scaleX(1.06); }
  70% { transform: scaleY(1.04) scaleX(0.97); }
}

.furnace {
  position: relative;
  flex: 0 0 auto;
  line-height: 0;
  height: clamp(210px, 28vw, 340px);
  width: auto;
  aspect-ratio: 241 / 333;
}

/* Ambient Thermal Hearth Glow */
.furnace::before {
  content: "";
  position: absolute;
  top: 15%;
  left: 10%;
  width: 80%;
  height: 60%;
  background: radial-gradient(circle, rgba(255, 90, 20, 0.45) 0%, rgba(255, 170, 40, 0.15) 50%, transparent 80%);
  filter: blur(20px);
  pointer-events: none;
  z-index: 1;
  animation: furnace-glow-pulse 3.2s ease-in-out infinite alternate;
}

@keyframes furnace-glow-pulse {
  from { opacity: 0.55; transform: scale(0.92); }
  to   { opacity: 0.95; transform: scale(1.08); }
}

.furnace img {
  image-rendering: pixelated;
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 2;
}

.furnace .stack {
  bottom: 0;
  filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.9));
}

.smoke-drift {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  z-index: 3;
  transform-origin: 50% 100%;
  animation: sway 11s ease-in-out infinite;
}

.furnace .smoke {
  top: 0;
  transform-origin: 50% 100%;
  animation: billow 7.5s ease-in-out infinite;
  opacity: 0.88;
}

@keyframes sway {
  0%   { transform: translateX(0) skewX(0deg); }
  28%  { transform: translateX(3.5%) skewX(-2.6deg); }
  54%  { transform: translateX(-2.2%) skewX(1.6deg); }
  79%  { transform: translateX(4.4%) skewX(-3.1deg); }
  100% { transform: translateX(0) skewX(0deg); }
}

@keyframes billow {
  0%   { transform: translateY(0) scale(1); opacity: 0.9; }
  38%  { transform: translateY(-3.2%) scale(1.05); opacity: 0.72; }
  71%  { transform: translateY(-1.4%) scale(1.02); opacity: 0.85; }
  100% { transform: translateY(0) scale(1); opacity: 0.9; }
}

/* Canvas overlays for particle embers & slime trail */
.ember-canvas, .slime-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 4;
}

/* ==========================================================================
   Command Prompt Verify Input Form
   ========================================================================== */

.verify-box {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--sp-lg);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  margin-top: var(--sp-xl);
  position: relative;
}

.verify-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-md);
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.verify-box-label {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-primary);
}

.verify-form {
  display: flex;
  gap: var(--sp-sm);
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 5px;
  transition: all 0.25s ease;
  box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.6);
}

.verify-form:focus-within {
  border-color: var(--ember);
  box-shadow: 0 0 20px var(--ember-glow), inset 0 1px 4px rgba(0, 0, 0, 0.8);
}

.verify-input {
  flex: 1 1 24em;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 12px var(--sp-md);
  outline: none;
}

.verify-input::placeholder {
  color: var(--text-muted);
}

.btn-paste {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.btn-paste:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.1);
}

.btn-submit {
  background: var(--ember);
  color: var(--bg-void);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.btn-submit:hover {
  background: var(--ember-bright);
  box-shadow: 0 0 16px var(--ember);
  transform: translateY(-1px);
}

.chips-row {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  margin-top: var(--sp-md);
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--text-muted);
}

.chip {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.chip:hover {
  background: var(--pass-bg);
  border-color: var(--pass-border);
  color: var(--ember);
}

.freshness-tag {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
  margin-top: var(--sp-md);
}

/* ==========================================================================
   The Mechanism: Kinetic Flywheel Loop
   ========================================================================== */

.fly {
  margin: var(--sp-2xl) 0;
  position: relative;
}

.fly-stage {
  position: relative;
  width: min(280px, 78vw);
  aspect-ratio: 1;
  margin: 0 auto;
}

.fly-ring {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px rgba(143, 225, 63, 0.25));
}

.fly-path {
  fill: none;
  stroke: var(--ember);
  stroke-width: 1.5;
  stroke-dasharray: 6 8;
  opacity: 0.85;
  animation: none;
}

@keyframes fly-crawl {
  to { stroke-dashoffset: -40; }
}

.fly-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  /* Optically centred, not just geometrically: the square frame carries smoke
     the machine does not fill, so a centred BOX leaves the machine visibly
     left and high inside the ring. The nudge is measured off a render -- the
     art's luminance centroid against the ring's centre -- because in the
     source file the smoke is as dark as the metal and no threshold separates
     them. Re-measure with `optical.cjs` if the artwork is replaced. */
  transform: translate(-50%, -50%);
  width: 34%;
  line-height: 0;
  z-index: 2;
}

.fly-hub .stack,
.fly-hub .stack-3d {
  width: 100%;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.95)) drop-shadow(0 0 16px rgba(255, 138, 31, 0.4));
}



.fly-orbit {
  position: absolute;
  inset: 0;
  animation: none;
}

.fly-rider {
  position: absolute;
  left: 50%;
  top: 11.67%;
  width: 16%;
  transform: translate(-50%, -50%);
  animation: none;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.9));
}

.fly-rider .charlie,
.fly-rider .charlie-3d {
  width: 100%;
  height: auto;
  image-rendering: auto;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 12px rgba(143, 225, 63, 0.4));
}

.fly-rider .payload {
  width: 42%;
  height: auto;
  flex: none;
  /* Neutral halo: the mark carries its own brand gradient, and the previous
     warm glow tinted it. */
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, .85)) drop-shadow(0 0 7px rgba(153, 69, 255, .55));
}

@keyframes fly-orbit {
  to { transform: rotate(360deg); }
}

@keyframes fly-rider {
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

.fly-steps {
  list-style: none;
  counter-reset: fly;
  padding: 0;
  margin: var(--sp-2xl) 0 0 0;
  display: grid;
  gap: var(--sp-lg);
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.fly-step-card {
  counter-increment: fly;
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  position: relative;
  transition: all 0.2s ease;
}

.fly-step-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--ember-halo);
  transform: translateY(-2px);
}

.fly-step-card h3 {
  font-size: 16px;
  margin-bottom: var(--sp-xs);
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
}

.fly-step-card h3::before {
  content: counter(fly);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--pass-bg);
  border: 1px solid var(--pass-border);
  color: var(--ember);
  font-size: 12px;
  font-family: var(--font-mono);
}

.fly-step-card p {
  font-size: 14px;
  margin: 0;
}

/* ==========================================================================
   Telemetry Counters Grid
   ========================================================================== */

.counters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-md);
  margin: var(--sp-2xl) 0;
}

.counter-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  position: relative;
  transition: all 0.2s ease;
}

.counter-card:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6), 0 0 20px var(--ember-halo);
  transform: translateY(-2px);
}

.counter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--sp-xs);
}

.counter-label {
  font-size: 14px;
  color: var(--text-secondary);
  font-weight: 600;
  margin: 0;
}

.counter-pulse {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--ember);
  box-shadow: 0 0 8px var(--ember);
}

.counter-value {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: var(--sp-xs) 0;
  font-variant-numeric: tabular-nums;
  overflow-wrap: normal;
  word-break: keep-all;
}

.counter-source {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin: 0;
}

/* ==========================================================================
   The Drama: Supply Refusal & Discrepancy Cards
   ========================================================================== */

.editorial-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-left: 4px solid var(--ember);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  margin: var(--sp-2xl) 0;
}

.editorial-card h3 {
  font-size: 18px;
  margin-bottom: var(--sp-sm);
  color: var(--text-primary);
}

.refusal-panel {
  background: rgba(255, 59, 48, 0.05);
  border: 1px solid var(--fail-border);
  border-left: 5px solid var(--fail);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  margin: var(--sp-2xl) 0;
  box-shadow: 0 4px 24px rgba(255, 59, 48, 0.12);
}

.check-row-header {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  flex-wrap: wrap;
  margin-bottom: var(--sp-sm);
}

.check-title {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
}

.badge-fail {
  background: var(--fail);
  color: #fff;
  box-shadow: 0 0 14px var(--fail-glow);
  animation: none;
}

@keyframes pulse-fail {
  from { opacity: 0.9; }
  to   { opacity: 1; box-shadow: 0 0 20px var(--fail-glow); }
}

.badge-pass {
  background: var(--pass-bg);
  border: 1px solid var(--pass-border);
  color: var(--pass);
}

.badge-unchecked {
  background: var(--unchecked-bg);
  border: 1px solid var(--unchecked-border);
  color: var(--unchecked);
}

.diff-box {
  background: var(--bg-void);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  margin-top: var(--sp-md);
  font-family: var(--font-mono);
  font-size: 13px;
}

.diff-row {
  display: flex;
  gap: var(--sp-md);
  margin-bottom: 4px;
}

.diff-label {
  color: var(--text-muted);
  width: 80px;
  flex: none;
}

/* ==========================================================================
   Horizontal Split Allocation Visualizer Bar
   ========================================================================== */

.split-strip {
  margin: var(--sp-md) 0;
}

.split-labels {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 13px;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.split-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-pill);
}

.bar-container {
  height: 20px;
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  overflow: hidden;
  display: flex;
}

.bar-seg {
  height: 100%;
  transition: width 0.3s ease;
}

.seg-sol-burn {
  background: var(--flame-warm);
  box-shadow: 0 0 10px rgba(255, 138, 31, 0.4);
}

.seg-token-burn {
  background: var(--ember);
  box-shadow: 0 0 10px rgba(143, 225, 63, 0.4);
}

.seg-ops {
  background: #3B82F6;
}

.seg-unsplit {
  background: #64748B;
}

/* ==========================================================================
   Surveillance CRT HUD for Scanner (Verify Page)
   ========================================================================== */

.crt-frame {
  position: relative;
  background: #020402;
  border: 2px solid #2A3628;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.8), inset 0 0 24px rgba(0, 255, 65, 0.05);
  margin-bottom: var(--sp-xl);
}

.crt-header {
  background: #111811;
  border-bottom: 1px solid #2A3628;
  padding: 6px var(--sp-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ember);
  letter-spacing: 0.08em;
}

.crt-content {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
  position: relative;
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.3) 0px,
    rgba(0, 0, 0, 0.3) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 5;
}

.crt-scanning-img {
  image-rendering: pixelated;
  max-width: 220px;
  height: auto;
  border-radius: var(--radius-sm);
  filter: contrast(1.1) brightness(1.05);
}

/* ==========================================================================
   Enroll Split Studio Stepper & Controls
   ========================================================================== */

.stepper-nav {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-glass);
  padding-bottom: var(--sp-md);
  margin-bottom: var(--sp-xl);
  overflow-x: auto;
}

.step-pill {
  display: flex;
  align-items: center;
  gap: var(--sp-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-muted);
}

.step-pill.active {
  color: var(--ember);
}

.step-num {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

.step-pill.active .step-num {
  background: var(--ember);
  color: var(--bg-void);
  font-weight: 700;
}

.studio-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-xl);
}

.preset-strip {
  display: flex;
  gap: var(--sp-sm);
  flex-wrap: wrap;
  margin: var(--sp-md) 0;
}

.btn-preset {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-sans);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-preset:hover {
  background: var(--pass-bg);
  border-color: var(--pass-border);
  color: var(--ember);
}

.share-row {
  display: flex;
  align-items: center;
  gap: var(--sp-md);
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--sp-md);
  margin-bottom: var(--sp-sm);
  flex-wrap: wrap;
}

.share-row.locked {
  border-color: rgba(143, 225, 63, 0.3);
  background: rgba(143, 225, 63, 0.04);
}

.share-addr {
  flex: 2 1 20em;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px var(--sp-md);
  border-radius: var(--radius-sm);
}

.share-bps {
  flex: 0 0 7em;
  background: var(--bg-input);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 14px;
  padding: 10px var(--sp-md);
  border-radius: var(--radius-sm);
}

/* Modal Confirmation */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(6, 8, 6, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: var(--sp-lg);
  animation: modal-fade-in 0.2s ease-out;
}

@keyframes modal-fade-in {
  from { opacity: 0; transform: scale(0.97); }
  to   { opacity: 1; transform: scale(1); }
}

.modal-card {
  background: var(--bg-surface);
  border: 2px solid var(--fail);
  border-radius: var(--radius-lg);
  max-width: 560px;
  width: 100%;
  padding: var(--sp-xl);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.95), 0 0 40px var(--fail-glow);
  position: relative;
}

.modal-card.wallet-modal {
  border-color: var(--sol-blue);
  box-shadow: 0 16px 64px rgba(0, 0, 0, 0.95), 0 0 36px rgba(0, 229, 255, 0.3);
}

.wallet-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-sm);
  margin: var(--sp-lg) 0;
}

.wallet-option-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.wallet-option-btn:hover {
  border-color: var(--ember);
  background: rgba(143, 225, 63, 0.08);
  transform: translateX(4px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px var(--ember-glow);
}

.wallet-icon-badge {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wallet-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}

/* ==========================================================================
   Advanced CRT Surveillance Telemetry & Radar Terminal (Verify Page)
   ========================================================================== */

.crt-frame {
  position: relative;
  background: #020502;
  border: 2px solid #1E2B1D;
  border-top: 2px solid #3B4E38;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.9), inset 0 0 40px rgba(0, 255, 65, 0.06);
  margin-bottom: var(--sp-xl);
}

.crt-header {
  background: #0A100A;
  border-bottom: 1px solid #1E2B1D;
  padding: 10px var(--sp-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ember);
  letter-spacing: 0.08em;
  flex-wrap: wrap;
  gap: var(--sp-sm);
}

.crt-live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #fff;
  font-weight: 700;
}

.crt-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #FF3B30;
  box-shadow: 0 0 8px #FF3B30;
  animation: none;
}

@keyframes rec-blink {
  0% { opacity: 0.3; }
  100% { opacity: 1; transform: scale(1.15); }
}

.crt-telemetry-slot {
  color: var(--ember-bright);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.crt-terminal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) 1fr minmax(180px, 220px);
  gap: var(--sp-md);
  padding: var(--sp-lg);
  position: relative;
  background: radial-gradient(circle at 50% 50%, rgba(14, 28, 14, 0.5) 0%, #030603 100%);
  align-items: center;
}

@media (max-width: 860px) {
  .crt-terminal-layout {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

.crt-radar-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.crt-radar-canvas {
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: #040904;
  border: 2px solid rgba(143, 225, 63, 0.4);
  box-shadow: 0 0 20px rgba(143, 225, 63, 0.2), inset 0 0 30px rgba(0, 255, 65, 0.15);
  display: block;
}

.crt-radar-label {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.crt-center-telemetry {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-secondary);
}

.crt-status-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--ember);
  display: flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.05em;
}

.crt-oscilloscope-canvas {
  width: 100%;
  height: 48px;
  background: rgba(3, 8, 3, 0.7);
  border: 1px solid rgba(143, 225, 63, 0.2);
  border-radius: var(--radius-sm);
  display: block;
}

.crt-scanning-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.crt-scanning-img {
  image-rendering: pixelated;
  width: 100%;
  max-width: 190px;
  height: auto;
  border-radius: var(--radius-sm);
  filter: contrast(1.1) brightness(1.08) drop-shadow(0 0 10px rgba(143, 225, 63, 0.3));
  border: 1px solid rgba(143, 225, 63, 0.2);
}

.crt-scanlines {
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    rgba(0, 0, 0, 0.32) 0px,
    rgba(0, 0, 0, 0.32) 1px,
    transparent 1px,
    transparent 2px
  );
  pointer-events: none;
  z-index: 10;
}

.crt-glow-overlay {
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 60px rgba(143, 225, 63, 0.08);
  pointer-events: none;
  z-index: 9;
}

/* Telemetry Log Stream */
.telemetry-stream-box {
  background: #050805;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--sp-md) var(--sp-lg);
  font-family: var(--font-mono);
  font-size: 13px;
  margin-top: var(--sp-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.telemetry-line {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(4px);
  animation: telemetry-appear 0.25s forwards ease-out;
}

@keyframes telemetry-appear {
  to { opacity: 1; transform: translateY(0); }
}

.telemetry-time {
  color: var(--text-muted);
  font-size: 11px;
  flex: none;
  width: 50px;
}

.telemetry-tag {
  font-weight: 700;
  padding: 1px 6px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  letter-spacing: 0.05em;
  flex: none;
}

.telemetry-tag.info {
  background: rgba(143, 225, 63, 0.15);
  color: var(--ember);
}

.telemetry-tag.success {
  background: rgba(143, 225, 63, 0.25);
  color: var(--ember-bright);
}

.telemetry-tag.warn {
  background: rgba(255, 179, 64, 0.2);
  color: var(--unchecked);
}

.telemetry-tag.danger {
  background: rgba(255, 59, 48, 0.25);
  color: var(--fail);
}

.telemetry-msg {
  color: var(--text-primary);
  flex: 1;
}

/* ==========================================================================
   Custom Range Sliders & Interactive Controls (Split Studio)
   ========================================================================== */

.slider-group {
  margin: var(--sp-md) 0 var(--sp-lg);
}

.slider-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.slider-label {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.slider-value-pill {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 800;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-variant-numeric: tabular-nums;
}

.split-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 10px;
  border-radius: var(--radius-pill);
  background: #141A14;
  outline: none;
  border: 1px solid var(--border-glass);
  cursor: pointer;
  transition: all 0.2s ease;
}

.split-slider:hover {
  border-color: var(--border-highlight);
}

/* WebKit Slider Thumb */
.split-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ember-bright);
  border: 3px solid #060806;
  box-shadow: 0 0 12px var(--ember-glow), 0 2px 6px rgba(0, 0, 0, 0.8);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.split-slider::-webkit-slider-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow: 0 0 22px var(--ember-bright);
}

/* Firefox Slider Thumb */
.split-slider::-moz-range-thumb {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--ember-bright);
  border: 3px solid #060806;
  box-shadow: 0 0 12px var(--ember-glow), 0 2px 6px rgba(0, 0, 0, 0.8);
  cursor: grab;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.split-slider::-moz-range-thumb:active {
  cursor: grabbing;
  transform: scale(1.2);
  box-shadow: 0 0 22px var(--ember-bright);
}

/* Specific Incinerator Slider Variation */
.split-slider.slider-incinerator::-webkit-slider-thumb {
  background: var(--flame-warm);
  box-shadow: 0 0 14px rgba(255, 138, 31, 0.6);
}

.split-slider.slider-incinerator::-webkit-slider-thumb:active {
  box-shadow: 0 0 24px var(--flame-warm);
}

.split-slider.slider-incinerator::-moz-range-thumb {
  background: var(--flame-warm);
  box-shadow: 0 0 14px rgba(255, 138, 31, 0.6);
}

/* Specific Creator Ops Slider Variation */
.split-slider.slider-creator::-webkit-slider-thumb {
  background: #60A5FA;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.6);
}

.split-slider.slider-creator::-moz-range-thumb {
  background: #60A5FA;
  box-shadow: 0 0 14px rgba(96, 165, 250, 0.6);
}

/* ==========================================================================
   Filter Tabs & Micro Split Visualizers (Directory & Audit Sheet)
   ========================================================================== */

.filter-tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: var(--sp-md) 0 var(--sp-lg);
}

.filter-tab {
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.18s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.filter-tab:hover {
  color: var(--text-primary);
  border-color: var(--border-highlight);
  background: rgba(255, 255, 255, 0.04);
}

.filter-tab.active {
  background: var(--pass-bg);
  border-color: var(--ember);
  color: var(--ember);
  font-weight: 700;
  box-shadow: 0 0 12px var(--ember-halo);
}

.filter-badge-count {
  font-size: 11px;
  padding: 1px 6px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-glass);
}

.filter-tab.active .filter-badge-count {
  background: var(--ember);
  color: var(--bg-void);
  border-color: var(--ember);
}

/* Micro Inline Fee-Split Bar for Directory cards */
.micro-split-wrap {
  margin-top: 10px;
}

.micro-split-header {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.micro-split-bar {
  height: 8px;
  width: 100%;
  border-radius: var(--radius-pill);
  background: #0A0F0A;
  border: 1px solid var(--border-glass);
  overflow: hidden;
  display: flex;
}

/* Invariant Proof Drawer Details/Summary */
.proof-item {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  margin-bottom: var(--sp-md);
  overflow: hidden;
  transition: all 0.2s ease;
}

.proof-item:hover {
  border-color: var(--border-highlight);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.6), 0 0 16px var(--ember-halo);
}

.proof-summary {
  padding: var(--sp-md) var(--sp-lg);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-md);
  flex-wrap: wrap;
  user-select: none;
  list-style: none;
}

.proof-summary::-webkit-details-marker {
  display: none;
}

.proof-title-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.proof-expand-icon {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.2s ease;
}

details[open] .proof-expand-icon {
  transform: rotate(90deg);
  color: var(--ember);
}

.proof-details-body {
  padding: 0 var(--sp-lg) var(--sp-lg);
  border-top: 1px solid var(--border-glass);
  background: rgba(0, 0, 0, 0.25);
}

.proof-code-box {
  background: #040704;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #9EC091;
  overflow-x: auto;
  line-height: 1.6;
  margin-top: var(--sp-sm);
}

/* Universal Copy Button */
.btn-copy {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11.5px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-copy:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.btn-copy.copied {
  background: var(--pass-bg) !important;
  color: var(--ember-bright) !important;
  border-color: var(--ember) !important;
  box-shadow: 0 0 10px var(--ember-glow);
}

/* ==========================================================================
   GLOBAL LIVE FACILITY TELEMETRY STRIP (Top Marquee)
   ========================================================================== */

.facility-telemetry-strip {
  background: rgba(3, 5, 3, 0.96);
  border-bottom: 1px solid var(--border-subtle);
  padding: 6px var(--sp-lg);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  position: relative;
  z-index: 1001;
  overflow-x: auto;
  white-space: nowrap;
}

.telemetry-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-md);
}

.telemetry-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.telemetry-beacon {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ember-bright);
  box-shadow: 0 0 8px var(--ember-bright);
  animation: none;
}

@keyframes beacon-pulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.3); opacity: 1; box-shadow: 0 0 12px var(--ember-bright); }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.telemetry-label {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.04em;
}

.telemetry-val {
  color: var(--text-primary);
  font-weight: 700;
}

.telemetry-val.font-pass { color: var(--ember-bright); }
.telemetry-val.font-flame { color: var(--flame-warm); }
.telemetry-val.font-ember { color: var(--ember); }

.telemetry-divider {
  color: rgba(255, 255, 255, 0.12);
  font-weight: 300;
}

.telemetry-badge {
  background: rgba(255, 138, 31, 0.12);
  border: 1px solid rgba(255, 138, 31, 0.35);
  color: var(--flame-warm);
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: var(--radius-sm);
  letter-spacing: 0.05em;
}

/* ==========================================================================
   MAGNETIC BUTTONS & CONIC-GRADIENT ROTATING BORDERS
   ========================================================================== */

@property --conic-angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

.btn-conic-glow {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  padding: 1px;
  background: conic-gradient(
    from var(--conic-angle),
    var(--ember) 0deg,
    var(--flame-warm) 120deg,
    var(--ember-bright) 240deg,
    var(--ember) 360deg
  );
  animation: none;
  box-shadow: 0 0 20px rgba(143, 225, 63, 0.25);
  cursor: pointer;
  text-decoration: none;
  border: none;
  outline: none;
  overflow: hidden;
}



.btn-conic-glow .btn-inner {
  background: var(--bg-void);
  color: var(--text-primary);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 11px 22px;
  border-radius: calc(var(--radius-sm) - 1px);
  width: 100%;
  height: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s ease, color 0.2s ease;
}

.btn-conic-glow:hover .btn-inner {
  background: rgba(143, 225, 63, 0.12);
  color: #fff;
}

.btn-conic-glow:hover {
  box-shadow: 0 0 32px var(--ember-glow), 0 0 48px rgba(255, 138, 31, 0.3);
}

.btn-magnetic {
  display: inline-flex;
  position: relative;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.25, 1, 0.5, 1);
}

/* ==========================================================================
   HIGH-IMPACT HERO COMMAND BAR INPUT
   ========================================================================== */

.command-hero-box {
  background: linear-gradient(135deg, rgba(14, 20, 14, 0.92) 0%, rgba(6, 9, 6, 0.98) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  margin-top: var(--sp-xl);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.75), 0 0 24px rgba(143, 225, 63, 0.06);
  position: relative;
  transition: all 0.3s ease;
}

.command-hero-box:focus-within {
  border-color: var(--border-highlight);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85), 0 0 32px var(--ember-glow);
}

.command-box-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-xs);
  margin-bottom: var(--sp-sm);
}

.command-title-lockup {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ember-bright);
}

.command-status-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}

.kbd-shortcut {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
}

.kbd-shortcut kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 3px;
  padding: 1px 5px;
  color: var(--text-secondary);
}

.status-indicator {
  color: var(--text-muted);
  font-size: 11px;
}

.input-with-adornment {
  display: flex;
  gap: var(--sp-xs);
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 4px;
  align-items: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-with-adornment:focus-within {
  border-color: var(--border-neon-active);
  box-shadow: 0 0 16px var(--ember-glow);
}

.input-prefix-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 10px;
  color: var(--ember);
}

.command-main-input {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 15px;
  padding: 10px 8px;
  outline: none;
  min-width: 0;
}

.command-main-input::placeholder {
  color: var(--text-muted);
  font-size: 13.5px;
}

.btn-command-paste {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-command-paste:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  border-color: var(--border-highlight);
}

.btn-command-execute {
  background: var(--ember);
  border: none;
  color: var(--bg-void);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0.03em;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 16px var(--ember-glow);
  white-space: nowrap;
}

.btn-command-execute:hover {
  background: var(--ember-bright);
  transform: translateY(-1px);
  box-shadow: 0 0 24px var(--ember-glow);
}

.command-chips-tray {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: var(--sp-sm);
  font-size: 11.5px;
}

.chips-label {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 11px;
}

.command-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-pill);
  padding: 3px 10px;
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.command-chip:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
  border-color: var(--border-highlight);
  transform: translateY(-1px);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.dot-flame { background: var(--flame-warm); box-shadow: 0 0 6px var(--flame-warm); }
.dot-blue { background: var(--sol-blue); box-shadow: 0 0 6px var(--sol-blue); }
.dot-fail { background: var(--fail-crimson); box-shadow: 0 0 6px var(--fail-crimson); }

.chip-name { font-weight: 700; color: var(--text-primary); }
.chip-meta { color: var(--text-muted); font-size: 10.5px; }

/* ==========================================================================
   LIVE VERIFIED COINS TICKER TAPE / MARQUEE
   ========================================================================== */

.ticker-tape-container {
  margin: var(--sp-2xl) 0 var(--sp-lg);
  position: relative;
  overflow: hidden;
}

.ticker-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--sp-xs);
  padding: 0 4px;
}

.ticker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ticker-link {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--ember);
}

.ticker-marquee-track {
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 6px 0;
}

.ticker-marquee-track::before,
.ticker-marquee-track::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  z-index: 2;
  pointer-events: none;
}
.ticker-marquee-track::before {
  left: 0;
  background: linear-gradient(90deg, var(--bg-base) 0%, transparent 100%);
}
.ticker-marquee-track::after {
  right: 0;
  background: linear-gradient(270deg, var(--bg-base) 0%, transparent 100%);
}

.marquee-content-loop {
  display: flex;
  gap: var(--sp-md);
  width: max-content;
  animation: none;
}

.marquee-content-loop:hover {
  animation-play-state: paused;
}



.ticker-card {
  background: var(--bg-glass-card);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  min-width: 220px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ticker-card:hover {
  border-color: var(--border-highlight);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px var(--ember-halo);
}

.ticker-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.ticker-coin-sym {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 13.5px;
  color: var(--text-primary);
}

.ticker-tag-burn {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--flame-warm);
  background: rgba(255, 138, 31, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
}

.ticker-tag-ops {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--sol-blue);
  background: rgba(0, 229, 255, 0.12);
  padding: 1px 5px;
  border-radius: 3px;
}

.ticker-tag-fail {
  font-family: var(--font-mono);
  font-size: 9.5px;
  font-weight: 700;
  color: var(--fail-crimson);
  background: rgba(255, 43, 62, 0.15);
  padding: 1px 5px;
  border-radius: 3px;
}

.ticker-card-mid {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--text-muted);
}

.ticker-highlight {
  color: var(--ember-bright);
  font-weight: 700;
}

.ticker-mini-bar {
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
  margin-top: 4px;
}

.mini-bar-fill {
  height: 100%;
  border-radius: 2px;
}
.fill-burn { background: linear-gradient(90deg, #FF3B1F, #FF8A1F); }
.fill-ops { background: linear-gradient(90deg, #00E5FF, #3B82F6); }
.fill-fail { background: #FF2B3E; }

/* ==========================================================================
   INTERACTIVE POPPERIAN PROOF EXPLORER SANDBOX
   ========================================================================== */

.popper-sandbox-section {
  margin: var(--sp-3xl) 0;
  position: relative;
}

.sandbox-glass-card {
  background: linear-gradient(135deg, rgba(14, 20, 14, 0.88) 0%, rgba(6, 9, 6, 0.96) 100%);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: var(--sp-xl);
  backdrop-filter: var(--glass-blur);
  box-shadow: var(--shadow-obsidian);
  margin-top: var(--sp-lg);
}

.sandbox-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--sp-md);
  margin-bottom: var(--sp-lg);
}

.sandbox-toggle-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--sp-sm);
}

.toggle-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.toggle-check-id {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.toggle-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* Switch Glow Component */
.switch-glow {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}

.switch-glow input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-switch {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.slider-switch:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #fff;
  border-radius: 50%;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

input:checked + .slider-switch {
  background-color: var(--ember);
  border-color: var(--ember-bright);
  box-shadow: 0 0 12px var(--ember-glow);
}

input:checked + .slider-switch:before {
  transform: translateX(20px);
  background-color: var(--bg-void);
}

.switch-danger input:not(:checked) + .slider-switch {
  background-color: var(--fail-crimson);
  border-color: var(--fail-crimson);
  box-shadow: 0 0 12px var(--fail-glow);
}
.switch-danger input:not(:checked) + .slider-switch:before {
  transform: translateX(0);
}

.sandbox-reactive-terminal {
  background: #040604;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.8);
}

.terminal-top-hud {
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
  margin-bottom: var(--sp-md);
  font-size: 11px;
}

.hud-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ember-bright);
  box-shadow: 0 0 8px var(--ember-bright);
}
.hud-dot.dot-refusal {
  background: var(--fail-crimson);
  box-shadow: 0 0 10px var(--fail-crimson);
  animation: none;
}

.hud-status {
  font-family: var(--font-mono);
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: 0.06em;
}

.hud-mode {
  margin-left: auto;
  color: var(--text-muted);
}

.metric-readout {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 4px 0;
}
.metric-readout.font-fail {
  color: var(--fail-crimson);
  text-shadow: 0 0 16px rgba(255, 43, 62, 0.5);
}

.metric-sub {
  font-size: 12px;
  color: var(--text-muted);
}

/* ==========================================================================
   CHARLIE DESIGN SYSTEM V2.0 - CYBER-INDUSTRIAL TECHNICAL SPEC
   Iconography, Telemetry Badges, Chamfered Cards & Split Visualizers
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base Technical Icons
   -------------------------------------------------------------------------- */
.sys-icon {
  width: 1.25em;
  height: 1.25em;
  display: inline-block;
  vertical-align: -0.22em;
  flex-shrink: 0;
  stroke-width: 1.75;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease, stroke 0.2s ease;
}

.sys-icon--xs { width: 14px; height: 14px; }
.sys-icon--sm { width: 16px; height: 16px; }
.sys-icon--md { width: 20px; height: 20px; }
.sys-icon--lg { width: 24px; height: 24px; }
.sys-icon--xl { width: 32px; height: 32px; }

/* Neon Glow Ambient Drop-Shadow Filters */
.sys-icon--flame {
  filter: drop-shadow(0 0 6px rgba(255, 138, 31, 0.65));
}
.sys-icon--verified {
  filter: drop-shadow(0 0 6px rgba(143, 225, 63, 0.65));
}
.sys-icon--pulse {
  filter: drop-shadow(0 0 6px rgba(166, 255, 77, 0.7));
}
.sys-icon--hazard {
  filter: drop-shadow(0 0 6px rgba(255, 59, 48, 0.7));
}
.sys-icon--vault {
  filter: drop-shadow(0 0 6px rgba(0, 229, 255, 0.65));
}

.btn-icon:hover .sys-icon,
.btn-preset:hover .sys-icon,
.command-chip:hover .sys-icon {
  transform: scale(1.12);
}

/* --------------------------------------------------------------------------
   2. Status Pills & Telemetry Badges
   -------------------------------------------------------------------------- */
.status-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px 4px 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Holographic Shimmer Highlight Sweep */
.status-pill::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.16) 50%,
    transparent 100%
  );
  transform: skewX(-25deg);
  animation: none;
  pointer-events: none;
}



/* Glowing LED Dot with Ping Shockwave */
.pill-led {
  position: relative;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill-led::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.6;
  animation: none;
}



/* VERIFIED STATE */
.status-pill--verified {
  background: rgba(143, 225, 63, 0.08);
  border: 1px solid rgba(143, 225, 63, 0.38);
  color: var(--ember-bright);
  box-shadow: 0 0 14px rgba(143, 225, 63, 0.14), inset 0 0 8px rgba(143, 225, 63, 0.06);
}
.status-pill--verified .pill-led {
  background: var(--ember-bright);
  color: var(--ember-bright);
  box-shadow: 0 0 8px var(--ember-bright);
}

/* REFUSED / FAIL STATE */
.status-pill--refused {
  background: rgba(255, 59, 48, 0.12);
  border: 1px solid rgba(255, 59, 48, 0.65);
  color: #FF5A52;
  box-shadow: 0 0 18px rgba(255, 59, 48, 0.3), inset 0 0 10px rgba(255, 59, 48, 0.14);
  animation: none;
}
.status-pill--refused .pill-led {
  background: #FF3B30;
  color: #FF3B30;
  box-shadow: 0 0 10px #FF3B30;
  animation: none;
}

@keyframes pulse-refused-border {
  from { border-color: rgba(255, 59, 48, 0.4); box-shadow: 0 0 10px rgba(255, 59, 48, 0.2); }
  to { border-color: rgba(255, 59, 48, 0.9); box-shadow: 0 0 24px rgba(255, 59, 48, 0.5); }
}



/* LIVE ON-CHAIN STATE */
.status-pill--live {
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--sol-blue);
  box-shadow: 0 0 14px rgba(0, 229, 255, 0.16), inset 0 0 8px rgba(0, 229, 255, 0.06);
}
.status-pill--live .pill-led {
  background: var(--sol-blue);
  color: var(--sol-blue);
  box-shadow: 0 0 8px var(--sol-blue);
}

/* ONE-WAY DOOR (PERMANENT) STATE */
.status-pill--oneway {
  background: linear-gradient(90deg, rgba(255, 138, 31, 0.16), rgba(255, 59, 31, 0.12));
  border: 1px solid rgba(255, 138, 31, 0.55);
  color: #FFB340;
  box-shadow: 0 0 16px rgba(255, 138, 31, 0.22);
}
.status-pill--oneway .pill-led {
  background: var(--flame-warm);
  color: var(--flame-warm);
  box-shadow: 0 0 8px var(--flame-warm);
}

/* UNCHECKED STATE */
.status-pill--unchecked {
  background: rgba(255, 179, 64, 0.08);
  border: 1px dashed rgba(255, 179, 64, 0.45);
  color: var(--unchecked);
}
.status-pill--unchecked .pill-led {
  background: var(--unchecked);
  color: var(--unchecked);
}

/* --------------------------------------------------------------------------
   3. Chamfered Cybernetic Metric Cards & Glass Panels
   -------------------------------------------------------------------------- */
.cyber-card {
  position: relative;
  background: linear-gradient(135deg, rgba(16, 21, 16, 0.88) 0%, rgba(8, 11, 8, 0.96) 100%);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  padding: var(--sp-lg);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

/* Chamfered Octagonal Silhouette */
.cyber-card--chamfer {
  clip-path: polygon(
    0 12px, 12px 0,
    calc(100% - 12px) 0, 100% 12px,
    100% calc(100% - 12px), calc(100% - 12px) 100%,
    12px 100%, 0 calc(100% - 12px)
  );
  border: none;
}

/* Gradient Hairline Border Mask */
.cyber-card--chamfer::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(143, 225, 63, 0.4) 0%,
    rgba(255, 255, 255, 0.08) 35%,
    rgba(255, 255, 255, 0.02) 65%,
    rgba(143, 225, 63, 0.25) 100%
  );
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  clip-path: polygon(
    0 12px, 12px 0,
    calc(100% - 12px) 0, 100% 12px,
    100% calc(100% - 12px), calc(100% - 12px) 100%,
    12px 100%, 0 calc(100% - 12px)
  );
  transition: opacity 0.3s ease;
}

.cyber-card--chamfer:hover {
  transform: none;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(143, 225, 63, 0.12);
}

/* Ensure all cards, tables, panels and drawers remain stationary and stable when hovered */
.tilt-card,
.cyber-card,
.counter-card,
.editorial-card,
.studio-card,
.dossier-card,
.fly-step-card,
.popper-sandbox-card,
.command-hero-box,
table,
tr,
tbody tr {
  transform: none !important;
}

.cyber-card--chamfer:hover::before {
  background: linear-gradient(
    135deg,
    rgba(166, 255, 77, 0.75) 0%,
    rgba(255, 255, 255, 0.18) 50%,
    rgba(166, 255, 77, 0.45) 100%
  );
}

/* Tactical Corner Brackets */
.cyber-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  border-color: var(--ember);
  border-style: solid;
  opacity: 0.55;
  transition: all 0.25s ease;
  pointer-events: none;
}
.cyber-corner--tl { top: 3px; left: 3px; border-width: 2px 0 0 2px; }
.cyber-corner--tr { top: 3px; right: 3px; border-width: 2px 2px 0 0; }
.cyber-corner--bl { bottom: 3px; left: 3px; border-width: 0 0 2px 2px; }
.cyber-corner--br { bottom: 3px; right: 3px; border-width: 0 2px 2px 0; }

.cyber-card:hover .cyber-corner {
  opacity: 1;
  border-color: var(--ember-bright);
  filter: drop-shadow(0 0 4px var(--ember));
}

/* --------------------------------------------------------------------------
   4. Kinetic Fee Split Visualizer with Flowing Stripes & Tooltips
   -------------------------------------------------------------------------- */
.split-visualizer {
  position: relative;
  width: 100%;
  margin: var(--sp-md) 0;
}

.split-scale-ruler {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 5px;
  padding: 0 2px;
}

.split-bar-track {
  position: relative;
  height: 28px;
  background: #050705;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  display: flex;
  overflow: visible;
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.8), 0 0 16px rgba(0, 0, 0, 0.4);
}

.split-bar-inner {
  display: flex;
  width: 100%;
  height: 100%;
  border-radius: calc(var(--radius-sm) - 1px);
  overflow: hidden;
}

.split-segment {
  position: relative;
  height: 100%;
  transition: width 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.2s ease;
  cursor: pointer;
}

.split-segment:not(:last-child) {
  border-right: 1px solid rgba(0, 0, 0, 0.7);
}

/* Glowing Flowing Gradient Stripes */
.split-segment::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    -45deg,
    transparent,
    transparent 8px,
    rgba(255, 255, 255, 0.12) 8px,
    rgba(255, 255, 255, 0.12) 16px
  );
  background-size: 32px 32px;
  animation: none;
  pointer-events: none;
}



.split-segment--incinerator {
  background: linear-gradient(90deg, #FF3B1F 0%, #FF8A1F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px rgba(255, 138, 31, 0.4);
}

.split-segment--protocol {
  background: linear-gradient(90deg, #64A32B 0%, #8FE13F 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px rgba(143, 225, 63, 0.4);
}

.split-segment--creator {
  background: linear-gradient(90deg, #2563EB 0%, #38BDF8 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 0 14px rgba(56, 189, 248, 0.4);
}

.split-segment:hover {
  filter: brightness(1.25) saturate(1.25);
  z-index: 10;
}

/* Tactical HUD Tooltip */
.split-segment .split-tooltip {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: rgba(10, 14, 10, 0.95);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  min-width: 190px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.85), 0 0 14px rgba(143, 225, 63, 0.25);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 100;
  white-space: nowrap;
}

.split-segment .split-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border-highlight);
}

.split-segment:hover .split-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ==========================================================================
   HIGH-STAKES IRREVERSIBLE SAFETY MODAL (enroll.html)
   ========================================================================== */

.modal-backdrop-high-stakes {
  position: fixed;
  inset: 0;
  background: rgba(3, 4, 3, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--sp-lg);
}

.modal-card-nuclear {
  background: linear-gradient(135deg, rgba(18, 24, 18, 0.96) 0%, rgba(8, 11, 8, 0.99) 100%);
  border: 1px solid rgba(255, 138, 31, 0.4);
  border-radius: var(--radius-md);
  max-width: 580px;
  width: 100%;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.9), 0 0 32px rgba(255, 138, 31, 0.2);
  animation: modal-slam 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-slam {
  0% { opacity: 0; transform: scale(0.92) translateY(12px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.hazard-stripe-bar {
  height: 6px;
  background: repeating-linear-gradient(
    -45deg,
    #FF8A1F,
    #FF8A1F 10px,
    #050705 10px,
    #050705 20px
  );
}

.modal-nuclear-content {
  padding: var(--sp-xl);
}

.nuclear-warning-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #FFB340;
  background: rgba(255, 138, 31, 0.12);
  border: 1px solid rgba(255, 138, 31, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  margin-bottom: var(--sp-sm);
}

.nuclear-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--text-primary);
  margin: var(--sp-xs) 0 var(--sp-sm);
}

.nuclear-explainer {
  font-size: 14px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.nuclear-summary-dossier {
  background: #050705;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  margin: var(--sp-md) 0;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nuclear-agreements {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: var(--sp-md) 0;
}

.checkbox-container {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.checkbox-container input {
  margin-top: 3px;
  accent-color: var(--ember);
}

.nuclear-actions-deck {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-sm);
  margin-top: var(--sp-lg);
}

.btn-nuclear-abort {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-nuclear-abort:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-primary);
}

.btn-nuclear-commit {
  background: var(--flame-warm);
  border: none;
  color: var(--bg-void);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 13.5px;
  padding: 10px 22px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 20px rgba(255, 138, 31, 0.35);
}

.btn-nuclear-commit:hover:not(:disabled) {
  background: #FFA74D;
  transform: translateY(-1px);
  box-shadow: 0 0 32px rgba(255, 138, 31, 0.55);
}

.btn-nuclear-commit:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
}

/* ==========================================================================
   Footer
   ========================================================================== */

footer {
  border-top: 1px solid var(--border-glass);
  padding: var(--sp-2xl) var(--sp-lg);
  color: var(--text-muted);
  font-size: 13px;
  background: var(--bg-void);
}

footer .footer-inner {
  max-width: var(--shell);
  margin: 0 auto;
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .walker, .facing, .charlie-img, .smoke-drift, .furnace .smoke,
  .fly-path, .fly-orbit, .fly-rider, .furnace::before, .badge-fail,
  .marquee-content-loop, body::after, .btn-conic-glow, .split-segment::after {
    animation: none !important;
  }
}

/* ==========================================================================
   Global Facility Telemetry Strip
   ========================================================================== */
.facility-telemetry-strip {
  width: 100%;
  background: #040704;
  border-bottom: 1px solid rgba(143, 225, 63, 0.22);
  padding: 8px 16px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-x: auto;
  white-space: nowrap;
  position: relative;
  z-index: 1001;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.facility-telemetry-inner {
  max-width: var(--shell);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 24px;
  justify-content: space-between;
}

.telemetry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.telemetry-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-charlie);
  box-shadow: 0 0 10px var(--neon-charlie);
  animation: none;
  flex: none;
}

@keyframes led-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

.telemetry-label {
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: 0.06em;
}

.telemetry-value {
  color: var(--text-primary);
  font-weight: 700;
}

.telemetry-value--ember {
  color: var(--flame-warm);
  text-shadow: 0 0 10px rgba(255, 138, 31, 0.5);
}

.telemetry-value--green {
  color: var(--neon-charlie);
  text-shadow: 0 0 10px rgba(143, 225, 63, 0.5);
}

/* ==========================================================================
   Font Monospace Utility
   ========================================================================== */
.font-mono {
  font-family: var(--font-mono) !important;
  font-feature-settings: "tnum" 1, "zero" 1;
}

/* ==========================================================================
   Inline Technical SVG Icon Suite
   ========================================================================== */
.sys-icon {
  display: inline-block;
  vertical-align: middle;
  flex: none;
  transition: transform 0.2s ease, stroke 0.2s ease;
}

.sys-icon--flame {
  stroke: var(--flame-core);
  filter: drop-shadow(0 0 8px rgba(255, 77, 46, 0.6));
}

/* ==========================================================================
   Chamfered Cybernetic Card System & Perspective Tilt
   ========================================================================== */
.cyber-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.15s ease;
}

.cyber-card--chamfer {
  clip-path: polygon(
    14px 0%,
    calc(100% - 14px) 0%,
    100% 14px,
    100% calc(100% - 14px),
    calc(100% - 14px) 100%,
    14px 100%,
    0% calc(100% - 14px),
    0% 14px
  );
}

.cyber-corner {
  position: absolute;
  width: 8px;
  height: 8px;
  pointer-events: none;
  z-index: 2;
}

.cyber-corner--tl {
  top: 4px;
  left: 4px;
  border-top: 2px solid var(--neon-charlie);
  border-left: 2px solid var(--neon-charlie);
}

.cyber-corner--br {
  bottom: 4px;
  right: 4px;
  border-bottom: 2px solid var(--neon-charlie);
  border-right: 2px solid var(--neon-charlie);
}

.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
}

.tilt-card:hover {
  border-color: rgba(143, 225, 63, 0.45);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.7), 0 0 24px rgba(143, 225, 63, 0.15);
}

/* ==========================================================================
   Command Hero Box
   ========================================================================== */
.command-hero-box {
  margin-top: var(--sp-xl);
  background: linear-gradient(135deg, rgba(14, 19, 14, 0.85) 0%, rgba(8, 11, 8, 0.95) 100%);
  border: 1px solid rgba(143, 225, 63, 0.3);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.8), 0 0 30px rgba(143, 225, 63, 0.12);
  transition: all 0.25s ease;
}

.command-hero-box.command-focused {
  border-color: var(--neon-charlie);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(143, 225, 63, 0.3);
}

.command-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
}

.command-label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--neon-charlie);
}

.command-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.command-shortcut-hint {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--text-muted);
}

.command-kbd {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-glass);
  border-bottom: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 4px;
  padding: 1px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-primary);
}

/* ==========================================================================
   Conic-Gradient Rotating Border Button Wrap
   ========================================================================== */
@property --conic-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

.btn-conic-glow {
  position: relative;
  display: inline-flex;
  border-radius: var(--radius-sm);
  padding: 1.5px;
  background: conic-gradient(from var(--conic-angle), #FF4D26, #FF8A1F, #8FE13F, #4EFA8B, #FF4D26);
  animation: none;
  box-shadow: 0 0 20px rgba(143, 225, 63, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-conic-glow:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(143, 225, 63, 0.45);
}



.btn-conic-glow > .btn-submit {
  width: 100%;
  height: 100%;
  background: #080C08;
  color: var(--text-primary);
  border: none;
  border-radius: calc(var(--radius-sm) - 1px);
  padding: 10px 20px;
  font-family: var(--font-display);
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-conic-glow > .btn-submit:hover {
  background: #0D140D;
}

/* ==========================================================================
   Status Pill System
   ========================================================================== */
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}

.status-pill-led {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: none;
}

.status-pill--verified {
  background: rgba(143, 225, 63, 0.12);
  color: var(--neon-charlie);
  border: 1px solid rgba(143, 225, 63, 0.45);
}
.status-pill--verified .status-pill-led {
  background: var(--neon-charlie);
  box-shadow: 0 0 8px var(--neon-charlie);
}

.status-pill--refused {
  background: rgba(255, 43, 62, 0.14);
  color: var(--fail-crimson);
  border: 1px solid rgba(255, 43, 62, 0.6);
}
.status-pill--refused .status-pill-led {
  background: var(--fail-crimson);
  box-shadow: 0 0 8px var(--fail-crimson);
}

.status-pill--unverified {
  background: rgba(255, 179, 64, 0.12);
  color: var(--unchecked);
  border: 1px solid rgba(255, 179, 64, 0.4);
}
.status-pill--unverified .status-pill-led {
  background: var(--unchecked);
  box-shadow: 0 0 8px var(--unchecked);
}

/* ==========================================================================
   Live Verified Coins Marquee Ticker Tape
   ========================================================================== */
.ticker-tape-container {
  width: 100%;
  overflow: hidden;
  background: #060906;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  user-select: none;
  padding: 10px 0;
  margin: var(--sp-xl) 0;
}

.marquee-content-loop {
  display: flex;
  gap: 36px;
  flex: none;
  animation: none;
}



.marquee-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-secondary);
}

.marquee-symbol {
  font-weight: 800;
  color: var(--text-primary);
}

.marquee-stat {
  color: var(--text-muted);
}

.marquee-badge {
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 700;
}

.marquee-badge--pass {
  background: rgba(143, 225, 63, 0.15);
  color: var(--neon-charlie);
  border: 1px solid rgba(143, 225, 63, 0.35);
}

/* ==========================================================================
   Interactive Popperian Proof Explorer Sandbox
   ========================================================================== */
.popper-sandbox-section {
  margin: var(--sp-3xl) 0;
}

.popper-sandbox-card {
  background: linear-gradient(135deg, rgba(14, 18, 14, 0.95) 0%, rgba(8, 10, 8, 0.98) 100%);
  border: 1px solid rgba(143, 225, 63, 0.35);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 35px rgba(143, 225, 63, 0.1);
  transition: all 0.3s ease;
}

.sandbox-controls-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-lg);
}

.sandbox-switch-col {
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  transition: border-color 0.2s ease;
}

.sandbox-switch-col:hover {
  border-color: var(--border-highlight);
}

.sandbox-switch-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sandbox-switch-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.sandbox-switch-desc {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* Glow Switch Button */
.switch-glow {
  width: 44px;
  height: 24px;
  border-radius: 12px;
  background: #1C241C;
  border: 1px solid var(--border-glass);
  position: relative;
  cursor: pointer;
  padding: 2px;
  transition: all 0.25s ease;
}

.switch-thumb {
  display: block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #718071;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.switch-glow.active {
  background: rgba(143, 225, 63, 0.25);
  border-color: var(--neon-charlie);
  box-shadow: 0 0 12px rgba(143, 225, 63, 0.4);
}

.switch-glow.active .switch-thumb {
  transform: translateX(20px);
  background: var(--neon-charlie);
  box-shadow: 0 0 8px var(--neon-charlie);
}

/* ==========================================================================
   Protocol Gatekeep & Coming Soon System
   ========================================================================== */
.nav-badge-soon {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 138, 31, 0.15);
  color: var(--flame-warm);
  border: 1px solid rgba(255, 138, 31, 0.35);
  margin-left: 6px;
  line-height: 1.2;
}

.gatekeep-banner {
  background: linear-gradient(135deg, rgba(24, 20, 16, 0.95) 0%, rgba(14, 12, 10, 0.98) 100%);
  border: 1px solid rgba(255, 138, 31, 0.45);
  border-left: 4px solid var(--flame-warm);
  border-radius: var(--radius-md);
  padding: var(--sp-lg);
  margin-bottom: var(--sp-xl);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.85), 0 0 30px rgba(255, 138, 31, 0.12);
}

.gatekeep-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-sm);
  margin-bottom: var(--sp-md);
  padding-bottom: var(--sp-sm);
  border-bottom: 1px solid var(--border-glass);
}

.gatekeep-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--flame-warm);
  background: rgba(255, 138, 31, 0.12);
  padding: 4px 10px;
  border-radius: 4px;
  border: 1px solid rgba(255, 138, 31, 0.3);
}

.gatekeep-body h2, .gatekeep-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: var(--sp-xs);
  color: var(--text-primary);
}

.gatekeep-body p {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-secondary);
  margin-bottom: var(--sp-md);
}

.gatekeep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-sm);
  background: var(--bg-void);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-glass);
  font-size: 12px;
}

.gatekeep-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.gatekeep-stat .stat-lbl {
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.gatekeep-stat .stat-val {
  font-weight: 700;
  font-size: 12.5px;
}

.gatekeep-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 138, 31, 0.15);
  color: var(--flame-warm);
  border: 1px solid rgba(255, 138, 31, 0.4);
}

.gatekeep-watermark {
  position: absolute;
  top: 12px;
  right: 12px;
  pointer-events: none;
  opacity: 0.85;
}

/* ==========================================================================
   Phase 5 Blueprint & Architecture Preview Styles
   ========================================================================== */
.blueprint-card {
  background: linear-gradient(135deg, rgba(10, 14, 10, 0.95) 0%, rgba(6, 8, 6, 0.98) 100%);
  border: 1px solid rgba(143, 225, 63, 0.25);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-xl);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.85), 0 0 25px rgba(143, 225, 63, 0.08);
}

.blueprint-flow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--sp-md);
  margin: var(--sp-lg) 0;
  position: relative;
}

.blueprint-flow-item {
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: var(--sp-md);
  position: relative;
  transition: all 0.2s ease;
}

.blueprint-flow-item:hover {
  border-color: rgba(143, 225, 63, 0.4);
  background: rgba(143, 225, 63, 0.04);
}

.blueprint-flow-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(143, 225, 63, 0.15);
  color: var(--neon-charlie);
  border: 1px solid rgba(143, 225, 63, 0.4);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  margin-bottom: 8px;
}

.blueprint-flow-title {
  font-family: var(--font-display);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.blueprint-flow-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
}

.blueprint-spec-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: 12.5px;
  margin-top: var(--sp-md);
}

.blueprint-spec-table th {
  text-align: left;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border-bottom: 1px solid var(--border-glass);
}

.blueprint-spec-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--text-secondary);
}

.blueprint-spec-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-primary);
}

.waitlist-card {
  background: linear-gradient(135deg, rgba(20, 16, 12, 0.95) 0%, rgba(10, 8, 6, 0.98) 100%);
  border: 1px solid rgba(255, 138, 31, 0.4);
  border-radius: var(--radius-md);
  padding: var(--sp-xl);
  margin-bottom: var(--sp-xl);
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(255, 138, 31, 0.12);
}

.waitlist-input {
  flex: 1;
  min-width: 260px;
  background: var(--bg-surface);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.waitlist-input:focus {
  outline: none;
  border-color: var(--flame-warm);
  box-shadow: 0 0 16px rgba(255, 138, 31, 0.35);
}

.waitlist-confirm {
  background: rgba(143, 225, 63, 0.1);
  border: 1px solid var(--pass-border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  color: var(--neon-charlie);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: modal-slam 0.25s ease;
}




/* ==========================================================================
   MOBILE & INTERACTION LAYER
   Appended: the stylesheet previously had one breakpoint for 4,245 lines.
   Ordered last so these win without touching the rules above.
   ========================================================================== */

/* --- Missing heading scale. h1-h4 set family/weight but never font-size, so
       every unstyled h2 rendered at the UA default 32px, phone and desktop. --- */
h2 { font-size: clamp(21px, 3.6vw, 30px); letter-spacing: -0.025em; }
h3 { font-size: clamp(16px, 2.2vw, 20px); letter-spacing: -0.015em; }
h4 { font-size: clamp(14px, 1.8vw, 16px); letter-spacing: -0.01em; }

/* Display type wants 12-20 chars per line, not the full 1200px shell. */
.hero h1 { max-width: 20ch; text-wrap: balance; }
.hero .tagline { text-wrap: pretty; }

/* --- Tablet --- */
@media (max-width: 860px) {
  .facility-telemetry-strip {
    position: sticky; top: 0; z-index: 60;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
            mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    scrollbar-width: none;
  }
  .facility-telemetry-strip::-webkit-scrollbar { display: none; }
  .facility-telemetry-inner { justify-content: flex-start; gap: var(--sp-md); }
  .telemetry-pill { flex: none; }

  .site-header { top: 34px; padding: 8px var(--sp-md); }
  .header-inner { flex-wrap: nowrap; gap: var(--sp-sm); align-items: center; }
  .site-nav {
    order: 3; flex-basis: 100%; flex-wrap: nowrap;
    overflow-x: auto; scrollbar-width: none;
    margin: 6px calc(var(--sp-md) * -1) 0; padding: 0 var(--sp-md);
  }
  .site-nav::-webkit-scrollbar { display: none; }
  .nav-link { flex: none; white-space: nowrap; }
}

/* --- Phone: shrink the spacing scale itself. Because --sp-* is consumed
       sitewide, this one block rebalances dozens of components at once. --- */
@media (max-width: 640px) {
  :root {
    --sp-lg: 16px;
    --sp-xl: 20px;
    --sp-2xl: 32px;
    --sp-3xl: 40px;
  }

  main   { padding: var(--sp-xl) var(--sp-md) var(--sp-2xl); }
  footer { padding: var(--sp-xl) var(--sp-md); }

  /* Legibility floor: 11px was the site's most common size. */
  .telemetry-label, .telemetry-value, .status-pill,
  .stage-badge, .preview-pill, .facility-telemetry-strip { font-size: 12px; }
  .nav-badge-soon, .telemetry-badge, .kbd-shortcut,
  .crt-radar-label, .gatekeep-stat .stat-lbl { font-size: 11px; }

  /* Explicit single column beats relying on auto-fit arithmetic. */
  .dossier-grid, .counters-grid, .split-grid, .fly-steps,
  .sandbox-controls-grid, .gatekeep-grid, .blueprint-flow-grid {
    grid-template-columns: 1fr;
  }

  /* min-width floors that sat within a few px of overflowing. */
  .waitlist-input { min-width: 0; flex: 1 1 100%; }
  .waitlist-card  { padding: var(--sp-lg) var(--sp-md); }
  .ticker-card    { min-width: 200px; }

  /* 44-char base58 addresses: truncate rather than wrap to 3 ragged lines.
     The copy button already carries the full value. */
  #auditMintHeader {
    font-size: 15px; white-space: nowrap;
    overflow: hidden; text-overflow: ellipsis; max-width: 100%;
  }

  .scene-3d-box { aspect-ratio: 4 / 3; }
  /* Shrink rather than hide: this toolbar holds #btnStageAudio, the only
     labelled control for the ambient audio. */
  .stage-controls { gap: 4px; transform: scale(0.85); transform-origin: right center; }
}

/* --- Touch: 44px targets, and stop hover from sticking after tap. --- */
@media (pointer: coarse) {
  .nav-link, .btn-icon, .btn-copy, .chip,
  .btn-mode, .btn-stage-ctrl, .btn-paste, .btn-submit {
    min-height: 44px;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .btn-copy, .chip, .btn-stage-ctrl { padding-inline: 12px; }

  .nav-link:active, .btn-icon:active, .btn-copy:active,
  .chip:active, .btn-submit:active, .btn-mode:active {
    transform: scale(0.97); opacity: 0.9;
  }

  /* This tooltip carries the per-destination split and was unreachable on touch. */
  .split-segment .split-tooltip {
    position: static; opacity: 1; visibility: visible;
    transform: none; min-width: 0; margin-top: 6px; pointer-events: auto;
  }
}

/* --- Keyboard focus: there were zero :focus-visible rules sitewide. --- */
:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 2px solid var(--ember-bright);
  outline-offset: 3px;
  border-radius: 4px;
}

/* --- Notch / home indicator. --- */
@supports (padding: max(0px)) {
  /* --sp-lg (24px) is what these rules already use; --sp-md would have
     silently shrunk desktop padding by 8px, since env() is 0 off-notch. */
  .site-header, main, footer, .facility-telemetry-strip {
    padding-left:  max(var(--sp-lg), env(safe-area-inset-left));
    padding-right: max(var(--sp-lg), env(safe-area-inset-right));
  }
  footer { padding-bottom: max(var(--sp-2xl), env(safe-area-inset-bottom)); }
}

/* --- Reduced motion: the existing block covered 12 of 26 infinite
       animations. This closes the gap. --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   MOTION REDUCTION
   26 infinite animations ran concurrently; the costly ones animated
   left / background-position / box-shadow (layout+paint every frame).
   Disabled here rather than deleted so any can be restored by removing
   a single line. Keyframes above are left intact.
   ========================================================================== */

/* Full-viewport 240px sweep at z-index 99999 with a drop-shadow filter:
   forced a whole-page composite every frame. */
body::after { animation: none !important; display: none !important; }

/* Animated `left` on every .status-pill — 45 concurrent layout loops on
   coin.html alone. The single worst performance item on the site. */
.status-pill::before { animation: none !important; display: none !important; }

/* Expanding ring behind each LED, ~15 concurrent. */
.pill-led::after { animation: none !important; display: none !important; }

/* Rotating conic-gradient border: full gradient re-rasterisation, forever. */
.btn-conic-glow { animation: none !important; }
.btn-conic-glow::before, .btn-conic-glow::after { animation: none !important; }

/* Barber-pole stripes animating background-position made settled data
   read as perpetually loading. */
.split-segment::after { animation: none !important; }

/* Blinking status dots. A static dot reads as confident; a blinking one
   reads as filler. Keeping the furnace/mascot ambience, dropping these. */
.telemetry-led, .telemetry-beacon, .stage-pulse-dot { animation: none !important; }

/* box-shadow / border-color keyframes = paint every frame. */
.badge-fail, .status-pill--refused { animation: none !important; }

/* Glowing text is never premium. */
.metric-readout.font-fail,
.telemetry-value--ember,
.telemetry-value--green { text-shadow: none !important; }

/* Contrast fix: #fff on --fail (#FF2B3E) measured 3.71:1. */
.badge-fail { color: #1A0407; }

/* Considered easing + a real duration scale, replacing `transition: all`
   defaults and the stray 400-500ms hovers. */
:root {
  --e-out:      cubic-bezier(0.16, 1, 0.3, 1);
  --e-out-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --e-snap:     cubic-bezier(0.2, 0.9, 0.25, 1.05);
  --d-1: 120ms; --d-2: 180ms; --d-3: 260ms;
}

/* These two ran at 400ms and 500ms — the element visibly lagged the cursor. */
.dossier-media img, .stack-3d { transition: transform var(--d-2) var(--e-out-soft) !important; }

/* Press feedback: the site had 45 :hover rules and 3 :active. */
.btn-icon, .btn-mode, .btn-copy, .chip, .btn-submit, .btn-paste,
button, [role="button"] {
  transition: transform var(--d-1) var(--e-snap),
              border-color var(--d-2) var(--e-out-soft),
              background-color var(--d-2) var(--e-out-soft);
}
button:active, [role="button"]:active { transform: translateY(1px) scale(0.985); }

/* Navigation and motion respond to the visitor, never invent a reading. */
@view-transition { navigation: auto; }
html { background: var(--bg-void); }
::view-transition-old(root) { animation: vt-out 160ms ease-out both; }
::view-transition-new(root) { animation: vt-in 260ms ease-out both; }
@keyframes vt-out { to { opacity: 0; transform: scale(.994); } }
@keyframes vt-in { from { opacity: 0; transform: scale(1.006); } }
.site-header { view-transition-name: chrome-header; }
.facility-telemetry-strip { view-transition-name: chrome-strip; }
.reveal-ready { opacity: 0; }
.reveal-ready.revealed { animation: enter-away 480ms ease-out calc(var(--i, 0) * 60ms) both; }
@keyframes enter-away { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.fly-orbit { animation: fly-orbit 42s linear infinite; }
.fly-rider { animation: fly-rider 42s linear infinite; }
@property --hearth-y { syntax: '<percentage>'; inherits: true; initial-value: 72%; }
body::before {
  content: ''; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse at 62% var(--hearth-y), rgba(225, 98, 24, .045), transparent 65%);
}
#furnaceCanvas { opacity: 0; pointer-events: none; transition: opacity 160ms ease-out; }
/* The decorative LED/glow loops stay off -- they blinked for their own sake.
   The furnace is NOT in that set: its smoke and thermal glow are what the
   hero depicts, and the still image alone does not depict it. `.scene *` used
   to be in this list and took the smoke down with the LEDs. */
.stage-hearth-glow, .stage-catwalk-glow, .stage-pulse-dot, .fly-path,
.status-pill-led, .telemetry-led, .crt-rec-dot { animation: none !important; }
/* Reduced motion stops everything. A touch device only drops the entrance
   reveals and the WebGL overlay -- the flywheel keeps turning and the smoke
   keeps drifting, because those are the subject rather than decoration. */
@media (prefers-reduced-motion: reduce) {
  .reveal-ready { opacity: 1; }
  .reveal-ready.revealed, .fly-orbit, .fly-rider { animation: none !important; }
  ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  body::before, #furnaceCanvas { display: none; }
}
@media (pointer: coarse) {
  .reveal-ready { opacity: 1; }
  .reveal-ready.revealed { animation: none !important; }
  #furnaceCanvas { display: none; }
}

/* Keep navigation readable without squeezing labels into letter columns. */
.brand-lockup, .site-nav a, .header-actions button { white-space: nowrap; flex-shrink: 0; }
@media (max-width: 860px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; }
  .brand-lockup { grid-column: 1; grid-row: 1; }
  .header-actions { grid-column: 2; grid-row: 1; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; display: flex; width: 100%; min-width: 0; gap: 12px; overflow-x: auto; padding-bottom: 4px; }
  .site-nav a { min-height: 44px; display: inline-flex; align-items: center; }
  .header-actions .btn-icon { width: auto; min-width: 44px; }
}
@media (max-width: 640px) {
  .verify-form { flex-wrap: wrap; }
  .verify-form > .verify-input { flex: 1 0 100%; width: 100%; min-height: 48px; }
  .verify-form > .btn-submit, .verify-form > .btn-conic-glow { flex: 1; }
}

body { isolation: isolate; }
