/* ==========================================================================
   Creatorcalc.me — Ultra-Dark Minimalist Design System (v4.0)
   Aesthetic: Linear / Vercel / Euler Stream / Zebracat High-Contrast Precision
   Palette: Strict Ultra-Dark (#050505 / #0C0C0E / #141417 / #FFFFFF / #8A8A93)
   100% Zero-Slop, No Navy/Slate, WCAG AAA Contrast Compliant
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  /* ==========================================================================
     STRICT ULTRA-DARK MINIMALIST PALETTE
     ========================================================================== */
  --bg-canvas: #050505;
  /* Pure Black Canvas Body */
  --bg-surface: #0C0C0E;
  /* Card & Container Elevation */
  --bg-surface-elevated: #101014;
  /* Subtle Secondary Elevation */
  --bg-input: #141417;
  /* Inputs, Selects & Secondary Buttons */
  --bg-surface-hover: #18181D;
  /* Interactive Hover States */
  --bg-glass: rgba(5, 5, 5, 0.80);
  /* Glassmorphic Navbar */

  /* Precise Monochromatic Borders */
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-focus: rgba(255, 255, 255, 0.35);
  --line-subtle: rgba(255, 255, 255, 0.08);
  --line-medium: rgba(255, 255, 255, 0.16);

  /* High-Contrast Typography */
  --text-main: #FFFFFF;
  /* Pure White Headlines & Key Metrics (21:1 on canvas) */
  --text-muted: #8A8A93;
  /* Secondary Text & Subtitles (6.3:1 contrast - WCAG AA) */
  --text-dim: #94949E;
  /* Tertiary Labels & Annotations (WCAG AA Compliant on #141417 & #0C0C0E) */
  --signal-copper: #FFFFFF;
  /* High-Contrast Primary Metric Highlight */

  /* Minimalist Accents */
  --accent-white: #FFFFFF;
  --accent-black: #050505;
  --glow-purple: rgba(124, 58, 237, 0.15);
  /* Subtle ambient glow behind Hero & CTA only */

  /* Platform Tints (Monochrome/Minimalist Neutral) */
  --brand-kick: #22C55E;
  --brand-twitch: #A855F7;
  --brand-youtube: #EF4444;
  --brand-tiktok: #F43F5E;
  --brand-obs: #38BDF8;
  --brand-wise: #A3E635;
  --brand-paypal: #60A5FA;
  --brand-payoneer: #FB923C;

  /* Telemetry Gauges */
  --meter-optimal: #22C55E;
  --meter-tight: #F59E0B;
  --meter-alert: #EF4444;

  /* Neutral Soft Shadows */
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.6);
  --shadow-raised: 0 8px 30px rgba(0, 0, 0, 0.8);
  --shadow-input: inset 0 1px 2px rgba(0, 0, 0, 0.5);

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Layout & Geometry */
  --wrap-max: 1040px;
  /* Strict 1040px Centered Container */
  --radius-xs: 4px;
  --radius-sm: 8px;
  /* Pill buttons & quick actions */
  --radius-md: 12px;
  /* Accordions & inputs */
  --radius-lg: 16px;
  /* Calculator chassis */
  --radius-xl: 20px;
  /* CTA Banner */
  --radius-full: 9999px;

  /* Animation Timers */
  --transition-fast: 150ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   BASE RESET & TYPOGRAPHY
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.5;
  background-color: var(--bg-canvas);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-canvas);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Clean Global Container */
.container {
  width: 100%;
  max-width: var(--wrap-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

main.container {
  flex: 1;
}

/* Links */
a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), border-color var(--transition-fast);
}

/* Headlines */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--text-main);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

/* ==========================================================================
   NAVBAR (Euler Stream / Vercel Glassmorphism)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  background: #FFFFFF;
  color: #050505;
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  letter-spacing: -0.02em;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #FFFFFF;
  letter-spacing: -0.02em;
}

.brand-name span {
  color: var(--text-dim);
  font-weight: 500;
}

.nav-cluster {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: color var(--transition-fast);
  padding: 6px 0;
}

.nav-link:hover,
.nav-link.active {
  color: #FFFFFF;
}

/* Language Switcher Pill */
.lang-switcher {
  display: inline-flex;
  align-items: center;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 2px;
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: #FFFFFF;
  color: #050505;
}

.lang-btn:not(.active):hover {
  color: #FFFFFF;
}

/* Mobile Nav Toggle */
.mobile-nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  padding: 6px 10px;
  border-radius: 8px;
  cursor: pointer;
}

.mobile-menu-drawer {
  display: none;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 24px;
  flex-direction: column;
  gap: 12px;
}

.mobile-menu-drawer.open {
  display: flex;
}

.mobile-menu-drawer a {
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 0;
}

.mobile-menu-drawer a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   HERO SECTION (High-Contrast Minimalist + Ambient Purple Radial)
   ========================================================================== */
.console-hero {
  position: relative;
  padding-top: 56px;
  padding-bottom: 24px;
}

/* Subtle Ambient Purple Radial Glow strictly behind Hero Title */
.console-hero::before {
  content: "";
  position: absolute;
  top: 10px;
  left: -20px;
  width: 500px;
  height: 260px;
  background: radial-gradient(ellipse at center, var(--glow-purple) 0%, rgba(5, 5, 5, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.console-hero-header {
  position: relative;
  z-index: 1;
}

.hero-with-medallion {
  display: flex;
  align-items: flex-start;
  gap: 28px;
}

/* Monochromatic Metallic Medallion Badge */
.medallion-badge {
  flex-shrink: 0;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0C0C0E;
  border: 1px solid var(--border-subtle);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.7);
}

.medallion-svg {
  width: 68px;
  height: 68px;
  display: block;
}

.hero-header-text {
  flex: 1;
}

.hero-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  margin-bottom: 14px;
}

.beacon-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--meter-optimal);
}

.console-h1 {
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.15;
  margin-bottom: 12px;
}

.console-lead {
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
}

/* ==========================================================================
   HUB TAB NAVIGATION (Ultra-Dark Minimalist Hero Calculator Selector)
   ========================================================================== */
.channel-strip-nav,
.channel-selector-bar {
  margin-top: 32px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 4px;
}

.channel-tab-btn,
.channel-tab {
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #8A8A93;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 8px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  outline: none;
}

.channel-tab-btn:hover,
.channel-tab:hover {
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.16);
  background: #1A1A20;
}

.channel-tab-btn.active,
.channel-tab.active {
  background: #FFFFFF;
  color: #050505;
  border-color: #FFFFFF;
  font-weight: 600;
}

.channel-tab-btn .channel-tag,
.channel-tab .tab-badge {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.06);
  color: #8A8A93;
  transition: all var(--transition-fast);
}

.channel-tab-btn.active .channel-tag,
.channel-tab.active .tab-badge {
  background: rgba(0, 0, 0, 0.12);
  color: #050505;
}

/* ==========================================================================
   CALCULATOR CHASSIS (#0C0C0E + 16px radius + 32px padding)
   ========================================================================== */
.console-chassis {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-top: 24px;
  box-shadow: var(--shadow-card);
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 20px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.console-topbar-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #FFFFFF;
}

.console-status-led {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--meter-optimal);
}

.calc-title-h2 {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #FFFFFF;
  margin-bottom: 4px;
}

.field-hint {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Main Grid (Controls on Left, Telemetry on Right) */
.console-main-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 36px;
  align-items: start;
}

.controls-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.telemetry-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ==========================================================================
   FORM CONTROLS & INPUTS (Fondo #141417)
   ========================================================================== */
.control-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #FFFFFF;
}

input[type="text"],
input[type="number"],
input[type="email"],
select,
textarea {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-size: 0.92rem;
  color: #FFFFFF;
  font-family: var(--font-sans);
  outline: none;
  box-shadow: var(--shadow-input);
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

input[type="text"]:focus,
input[type="number"]:focus,
input[type="email"]:focus,
select:focus,
textarea:focus {
  border-color: var(--border-focus);
  background: #18181D;
}

input::placeholder,
textarea::placeholder {
  color: var(--text-dim);
}

/* Symbol prefix / suffix */
.input-with-symbol {
  position: relative;
  display: flex;
  align-items: center;
}

.input-prefix,
.input-suffix {
  position: absolute;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-family: var(--font-mono);
  pointer-events: none;
}

.input-prefix {
  left: 14px;
}

.input-suffix {
  right: 14px;
}

input.pad-left {
  padding-left: 30px;
}

input.pad-right {
  padding-right: 30px;
}

/* Sliders */
.slider-container {
  display: grid;
  grid-template-columns: 1fr 90px;
  gap: 12px;
  align-items: center;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #FFFFFF;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
  transition: transform var(--transition-fast);
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
}

/* Segmented Control */
.segmented-control {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.seg-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.seg-btn.active {
  background: #FFFFFF;
  color: #050505;
}

.seg-btn:not(.active):hover {
  color: #FFFFFF;
}

/* Checkboxes */
.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 4px;
}

.checkbox-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.4;
}

input[type="checkbox"] {
  accent-color: #FFFFFF;
  width: 16px;
  height: 16px;
  margin-top: 2px;
  cursor: pointer;
}

/* ==========================================================================
   QUICK ACTIONS STRIP (Horizontal bar with pill buttons — Euler Stream Inspired)
   ========================================================================== */
.quick-action-strip {
  margin-top: 24px;
  padding: 16px 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.quick-action-header {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.quick-action-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-main);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.quick-action-hint {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.quick-preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.preset-chip {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  padding: 6px 14px;
  font-size: 0.82rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip:hover {
  background: #FFFFFF;
  color: #050505;
  border-color: #FFFFFF;
}

/* ==========================================================================
   TELEMETRY & RESULTS (2.5rem - 3rem tabular-nums)
   ========================================================================== */
.telemetry-lead-metric {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
}

.telemetry-tag {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.telemetry-primary-number {
  font-size: 2.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #FFFFFF;
  line-height: 1.1;
  margin-bottom: 6px;
}

.telemetry-sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.4;
}

/* Ledger Breakdown Stack */
.ledger-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ledger-item {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  transition: border-color var(--transition-fast);
}

.ledger-item:hover {
  border-color: var(--border-hover);
}

.ledger-item.featured {
  border-color: rgba(255, 255, 255, 0.22);
}

.ledger-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ledger-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ledger-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.ledger-indicator.kick {
  background-color: var(--brand-kick);
}

.ledger-indicator.twitch {
  background-color: var(--brand-twitch);
}

.ledger-indicator.youtube {
  background-color: var(--brand-youtube);
}

.ledger-indicator.tiktok {
  background-color: var(--brand-tiktok);
}

.ledger-indicator.obs {
  background-color: var(--brand-obs);
}

.ledger-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #FFFFFF;
}

.ledger-sub-tag {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.05);
  padding: 2px 6px;
  border-radius: 4px;
}

.ledger-figure {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ledger-figure-sub {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-align: right;
}

.calc-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Hardware Visual Meter Track */
.hardware-meter-track {
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  margin-top: 10px;
  overflow: hidden;
}

.hardware-meter-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width var(--transition-smooth);
}

.hardware-meter-fill.kick {
  background: var(--brand-kick);
}

.hardware-meter-fill.twitch {
  background: var(--brand-twitch);
}

.hardware-meter-fill.youtube {
  background: var(--brand-youtube);
}

.hardware-meter-fill.optimal {
  background: var(--meter-optimal);
}

.hardware-meter-fill.tight {
  background: var(--meter-tight);
}

.hardware-meter-fill.alert {
  background: var(--meter-alert);
}

/* Delta Log / Annotations */
.delta-log {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* Sparkline Card (Euler Stream Inspired) */
.sparkline-box {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

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

.sparkline-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.sparkline-current-rate {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.trend-delta {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--meter-optimal);
  margin-left: 8px;
}

.timeframe-pills {
  display: inline-flex;
  background: #0C0C0E;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 2px;
  gap: 2px;
}

.timeframe-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.timeframe-btn.active {
  background: #FFFFFF;
  color: #050505;
}

.timeframe-btn:not(.active):hover {
  color: #FFFFFF;
}

.sparkline-chart-container {
  width: 100%;
  height: 60px;
}

.sparkline-svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.sparkline-path {
  fill: none;
  stroke: #FFFFFF;
  stroke-width: 1.5;
}

.sparkline-area {
  fill: url(#sparkline-area-grad);
}

.sparkline-axis-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-dim);
}

/* ==========================================================================
   BUTTONS (High Contrast White / Euler Stream Style)
   ========================================================================== */
.btn-machine {
  background: #FFFFFF;
  color: #050505;
  border: 1px solid #FFFFFF;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.btn-machine:hover {
  background: #E4E4E7;
  border-color: #E4E4E7;
  color: #050505;
  transform: translateY(-1px);
}

.btn-soft-secondary {
  background: var(--bg-input);
  color: #FFFFFF;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  font-weight: 500;
  font-size: 0.92rem;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}

.btn-soft-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-surface-hover);
  color: #FFFFFF;
}

/* ==========================================================================
   INTERMEDIATE CTA BANNER (Zebracat / Euler Stream Radial Style)
   ========================================================================== */
.editorial-callout-banner {
  margin-top: 80px;
  position: relative;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-subtle);
  background: radial-gradient(circle at top, rgba(255, 255, 255, 0.08), #0C0C0E 70%);
  padding: 48px 32px;
  text-align: center;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

/* Ambient Purple Glow inside CTA */
.editorial-callout-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 200px;
  background: radial-gradient(ellipse at center, var(--glow-purple) 0%, rgba(12, 12, 14, 0) 70%);
  pointer-events: none;
}

.callout-inner {
  position: relative;
  z-index: 1;
  max-width: 680px;
  margin: 0 auto;
}

.callout-title {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  line-height: 1.2;
  margin-bottom: 12px;
}

.callout-desc {
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 28px;
}

.callout-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

/* ==========================================================================
   SUITE TOOLS GRID (3 Columns / Euler Stream Style)
   ========================================================================== */
.suite-tools-section {
  margin-top: 80px;
}

.suite-header {
  margin-bottom: 24px;
}

.suite-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.suite-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.suite-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.suite-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 14px;
  padding: 24px;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-fast);
}

.suite-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.suite-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.suite-icon-box {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
}

.suite-icon-box.kick {
  color: var(--brand-kick);
}

.suite-icon-box.tiktok {
  color: var(--brand-tiktok);
}

.suite-icon-box.obs {
  color: var(--brand-obs);
}

.suite-icon-box.wise {
  color: var(--brand-wise);
}

.suite-tag {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--text-dim);
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  padding: 2px 8px;
  border-radius: 6px;
}

.suite-card-h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.suite-card-p {
  color: var(--text-muted);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 20px;
  flex-grow: 1;
}

.suite-action-link {
  font-size: 0.85rem;
  font-weight: 500;
  color: #FFFFFF;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap var(--transition-fast);
}

.suite-card:hover .suite-action-link {
  gap: 8px;
}

/* ==========================================================================
   TECHNICAL EDITORIAL & DOCUMENTATION
   ========================================================================== */
.reference-section {
  margin-top: 80px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 40px;
}

.reference-header {
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-subtle);
}

.reference-title {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 8px;
}

.reference-subtitle {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.5;
}

.prose-block {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.prose-block p {
  margin-bottom: 20px;
}

.prose-block h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 32px;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.prose-block ul {
  margin-left: 20px;
  margin-bottom: 20px;
}

.prose-block li {
  margin-bottom: 10px;
}

.prose-block strong {
  color: #FFFFFF;
}

.formula-display {
  background: var(--bg-input);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px 20px;
  font-family: var(--font-mono);
  font-size: 0.88rem;
  color: #FFFFFF;
  margin: 16px 0 24px 0;
  overflow-x: auto;
}

/* ==========================================================================
   ACCORDION FAQS (Zebracat Style Minimalist with + / x icon)
   ========================================================================== */
.tech-faq-container {
  margin-top: 80px;
}

.tech-faq-container>h3 {
  text-align: center;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 32px;
}

.tech-faq-container>div {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 18px 24px;
  transition: border-color var(--transition-fast);
}

.faq-card:hover {
  border-color: var(--border-hover);
}

.faq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.98rem;
  font-weight: 600;
  color: #FFFFFF;
  cursor: pointer;
  list-style: none;
  user-select: none;
}

.faq-header::-webkit-details-marker {
  display: none;
}

/* Minimalist '+' rotating to 'x' */
.faq-header::after {
  content: "+";
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1;
  margin-left: 16px;
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.faq-card[open] .faq-header::after {
  transform: rotate(45deg);
  color: #FFFFFF;
}

.faq-content {
  color: var(--text-muted);
  font-size: 0.92rem;
  line-height: 1.65;
  padding-top: 14px;
  margin-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

/* ==========================================================================
   LEGAL DOCUMENT SHEETS (About / Terms / Privacy / Contact)
   ========================================================================== */
.doc-sheet {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 48px;
  margin-top: 48px;
  box-shadow: var(--shadow-card);
}

.doc-sheet h1 {
  font-size: 2.25rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #FFFFFF;
  margin-bottom: 6px;
}

.doc-meta {
  font-size: 0.78rem;
  font-family: var(--font-mono);
  color: var(--text-dim);
  letter-spacing: 0.05em;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
}

.doc-body {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.7;
}

.doc-body p {
  margin-bottom: 20px;
}

.doc-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-top: 36px;
  margin-bottom: 12px;
}

.doc-body ul {
  margin-left: 20px;
  margin-bottom: 24px;
}

.doc-body li {
  margin-bottom: 8px;
}

.doc-body strong {
  color: #FFFFFF;
}

/* ==========================================================================
   FOOTER (4 Columns Separated by Hairline Border)
   ========================================================================== */
.site-footer {
  margin-top: 100px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-canvas);
  padding-top: 64px;
  padding-bottom: 40px;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}

@media (max-width: 860px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 32px;
  }
}

@media (max-width: 520px) {
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-col-head {
  font-size: 0.82rem;
  font-weight: 600;
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.9rem;
  transition: color var(--transition-fast);
}

.footer-links a:hover {
  color: #FFFFFF;
}

.footer-brand-strip {
  padding-top: 28px;
  margin-bottom: 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer-brand-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.footer-brand-title .brand-domain {
  color: var(--text-muted);
}

.footer-brand-text {
  color: var(--text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
  max-width: 760px;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-bottom-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}

.footer-bottom-links a:hover {
  color: #FFFFFF;
}

/* ==========================================================================
   TOAST NOTIFICATIONS
   ========================================================================== */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  background: #FFFFFF;
  color: #050505;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
  animation: toastIn 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes toastIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==========================================================================
   AD SLOTS (Controlled by SHOW_AD_SLOTS in assets/calculators.js)
   Zero empty boxes visible in production until approved.
   ========================================================================== */
.ad-slot-wrapper {
  display: none !important;
  width: 100%;
  margin-top: 36px;
  margin-bottom: 36px;
  flex-direction: column;
  align-items: center;
}

body.ads-enabled .ad-slot-wrapper {
  display: flex !important;
}

.ad-slot-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-dim);
  margin-bottom: 8px;
}

.ad-slot-box {
  width: 100%;
  max-width: 970px;
  min-height: 90px;
  border-radius: var(--radius-sm);
  background: var(--bg-surface);
  border: 1px dashed var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   RESPONSIVE MEDIA QUERIES
   ========================================================================== */
@media (max-width: 860px) {
  .console-main-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .nav-links {
    display: none;
  }

  .mobile-nav-toggle {
    display: block;
  }

  .hero-with-medallion {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .doc-sheet {
    padding: 28px 20px;
  }
}