/* ==========================================================================
   Steam Workshop Downloader Controller - GitHub Pages Stylesheet
   Theme: Modern Dark Gamer UI / Obsidian Glassmorphism
   Version: 1.2.0
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. CSS VARIABLES & DESIGN TOKENS
   -------------------------------------------------------------------------- */
:root {
  /* ==========================================================================
     STEAM THEME (Default Theme)
     Authentic Steam Client / Steam Deck / Workshop Design Tokens
     ========================================================================== */
  --steam-bg-darkest: #101822;      /* Deepest Steam navy/charcoal */
  --steam-bg-primary: #171d25;      /* Canonical Steam client main background */
  --steam-bg-secondary: #1b2838;    /* Steam header / card background */
  --steam-bg-tertiary: #213349;     /* Elevated Steam panel/search input background */
  --steam-bg-surface: #2a475e;      /* Steam button/action surface */
  --steam-bg-surface-elevated: #316282;

  --steam-accent-blue: #66c0f4;     /* Steam bright cyan/blue link & badge color */
  --steam-accent-blue-hover: #ffffff;
  --steam-accent-blue-glow: rgba(102, 192, 244, 0.35);

  --steam-accent-green: #5c7e10;    /* Steam Store "In Cart" / "Install" green */
  --steam-accent-green-bright: #a4d007; /* Steam Store purchase / active green */
  --steam-accent-green-hover: #799918;

  --steam-accent-steel: #4f687a;
  --steam-accent-petrol: #1c354d;
  --steam-accent-amber: #c1a875;    /* Steam points / gold / sale amber */

  --steam-text-primary: #f3f3f3;
  --steam-text-secondary: #c6d4df;  /* Classic Steam light-blue-grey text */
  --steam-text-muted: #8f98a0;      /* Classic Steam secondary caption text */
  --steam-text-dim: #626d78;

  --steam-gradient-nav: linear-gradient(180deg, #171a21 0%, #171d25 100%);
  --steam-gradient-btn-blue: linear-gradient(90deg, #47bfff 0%, #1a9fff 100%);
  --steam-gradient-btn-green: linear-gradient(90deg, #75b022 0%, #588a1b 100%);
  --steam-gradient-btn-card: linear-gradient(135deg, rgba(42, 71, 94, 0.6) 0%, rgba(27, 40, 56, 0.85) 100%);

  /* Default assignments pointing to Steam Theme */
  --bg-black: var(--steam-bg-darkest);
  --bg-primary: var(--steam-bg-primary);
  --bg-secondary: var(--steam-bg-secondary);
  --bg-tertiary: var(--steam-bg-tertiary);
  --bg-surface: var(--steam-bg-surface);
  --bg-surface-elevated: var(--steam-bg-surface-elevated);

  /* Glassmorphism Backdrops (Steam Tinted) */
  --bg-glass-subtle: rgba(27, 40, 56, 0.55);
  --bg-glass: rgba(23, 29, 37, 0.88);
  --bg-glass-card: rgba(27, 40, 56, 0.78);
  --bg-glass-hover: rgba(42, 71, 94, 0.85);
  --bg-glass-active: rgba(49, 98, 130, 0.9);
  --bg-glass-input: rgba(16, 24, 34, 0.85);

  /* Borders */
  --border-subtle: rgba(102, 192, 244, 0.12);
  --border-default: rgba(102, 192, 244, 0.22);
  --border-medium: #2a475e;
  --border-light: #3d688a;
  --border-glow-cyan: rgba(102, 192, 244, 0.5);
  --border-glow-indigo: rgba(102, 192, 244, 0.4);
  --border-glow-emerald: rgba(164, 208, 7, 0.45);

  /* Accent Palette */
  --accent-cyan: #66c0f4;
  --accent-cyan-hover: #8fd5f8;
  --accent-cyan-dim: rgba(102, 192, 244, 0.16);
  --accent-cyan-glow: rgba(102, 192, 244, 0.35);

  --accent-indigo: #417a9b;
  --accent-indigo-hover: #569cb8;
  --accent-indigo-dim: rgba(65, 122, 155, 0.2);

  --accent-emerald: #a4d007;
  --accent-emerald-hover: #b8e60a;
  --accent-emerald-dim: rgba(164, 208, 7, 0.16);

  --accent-amber: #e5c158;
  --accent-amber-hover: #f3d47d;
  --accent-amber-dim: rgba(229, 193, 88, 0.16);

  --accent-rose: #e64559;
  --accent-rose-hover: #fa556a;
  --accent-rose-dim: rgba(230, 69, 89, 0.16);

  --accent-purple: #9b72cf;
  --accent-purple-dim: rgba(155, 114, 207, 0.16);

  /* Typography Colors */
  --text-primary: #f6f7f9;
  --text-secondary: #c6d4df;
  --text-muted: #8f98a0;
  --text-dim: #626d78;
  --text-inverse: #0d1217;

  /* Gradients */
  --gradient-brand: linear-gradient(135deg, #66c0f4 0%, #1999e3 60%, #1a4f78 100%);
  --gradient-hero-title: linear-gradient(135deg, #ffffff 25%, #a6dcff 65%, #66c0f4 100%);
  --gradient-accent-cyan: linear-gradient(135deg, #66c0f4 0%, #1077b9 100%);
  --gradient-accent-emerald: linear-gradient(135deg, #b8e60a 0%, #588a1b 100%);
  --gradient-accent-purple: linear-gradient(135deg, #a77ee6 0%, #4b6699 100%);
  --gradient-card-glass: linear-gradient(145deg, rgba(33, 51, 73, 0.7) 0%, rgba(20, 30, 43, 0.88) 100%);
  --gradient-border-glow: linear-gradient(135deg, rgba(102, 192, 244, 0.5), rgba(42, 71, 94, 0.4), rgba(255, 255, 255, 0.06));

  /* Glow Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 8px 24px -4px rgba(0, 0, 0, 0.55);
  --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, 0.75);
  --shadow-xl: 0 24px 60px -12px rgba(0, 0, 0, 0.9);
  --shadow-glow-cyan: 0 0 25px -4px rgba(102, 192, 244, 0.45);
  --shadow-glow-indigo: 0 0 25px -4px rgba(65, 122, 155, 0.4);
  --shadow-glow-emerald: 0 0 25px -4px rgba(164, 208, 7, 0.4);
  --shadow-glow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.08);

  /* Radii */
  --radius-xs: 4px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 18px;
  --radius-full: 9999px;

  /* Font Families */
  --font-sans: "Motiva Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Transitions */
  --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-smooth: 350ms cubic-bezier(0.16, 1, 0.3, 1);
  --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container-max-width: 1240px;
  --navbar-height: 72px;
}

/* ==========================================================================
   OBSIDIAN CYBER THEME (Alternative selectable theme)
   ========================================================================== */
html[data-theme="obsidian"] {
  --bg-black: #060911;
  --bg-primary: #0b0f19;
  --bg-secondary: #0f172a;
  --bg-tertiary: #131d36;
  --bg-surface: #1e293b;
  --bg-surface-elevated: #243352;

  --bg-glass-subtle: rgba(15, 23, 42, 0.45);
  --bg-glass: rgba(15, 23, 42, 0.72);
  --bg-glass-card: rgba(19, 29, 54, 0.7);
  --bg-glass-hover: rgba(30, 41, 59, 0.85);
  --bg-glass-active: rgba(45, 62, 94, 0.9);
  --bg-glass-input: rgba(11, 15, 25, 0.75);

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-default: rgba(148, 163, 184, 0.14);
  --border-medium: #1e293b;
  --border-light: #2c3e5e;
  --border-glow-cyan: rgba(56, 189, 248, 0.45);
  --border-glow-indigo: rgba(129, 140, 248, 0.45);
  --border-glow-emerald: rgba(16, 185, 129, 0.45);

  --accent-cyan: #38bdf8;
  --accent-cyan-hover: #0ea5e9;
  --accent-cyan-dim: rgba(56, 189, 248, 0.15);
  --accent-cyan-glow: rgba(56, 189, 248, 0.35);

  --accent-indigo: #818cf8;
  --accent-indigo-hover: #6366f1;
  --accent-indigo-dim: rgba(129, 140, 248, 0.15);

  --accent-emerald: #10b981;
  --accent-emerald-hover: #059669;
  --accent-emerald-dim: rgba(16, 185, 129, 0.15);

  --accent-amber: #f59e0b;
  --accent-amber-hover: #d97706;
  --accent-amber-dim: rgba(245, 158, 11, 0.15);

  --accent-rose: #f43f5e;
  --accent-rose-hover: #e11d48;
  --accent-rose-dim: rgba(244, 63, 94, 0.15);

  --accent-purple: #c084fc;
  --accent-purple-dim: rgba(192, 132, 252, 0.15);

  --text-primary: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --text-inverse: #020617;

  --gradient-brand: linear-gradient(135deg, #38bdf8 0%, #818cf8 50%, #c084fc 100%);
  --gradient-hero-title: linear-gradient(135deg, #ffffff 30%, #38bdf8 70%, #818cf8 100%);
  --gradient-accent-cyan: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
  --gradient-accent-emerald: linear-gradient(135deg, #34d399 0%, #059669 100%);
  --gradient-accent-purple: linear-gradient(135deg, #c084fc 0%, #6366f1 100%);
  --gradient-card-glass: linear-gradient(145deg, rgba(30, 41, 59, 0.6) 0%, rgba(15, 23, 42, 0.8) 100%);
  --gradient-border-glow: linear-gradient(135deg, rgba(56, 189, 248, 0.5), rgba(129, 140, 248, 0.3), rgba(255, 255, 255, 0.05));
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* --------------------------------------------------------------------------
   2. GLOBAL STYLES & RESET
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--navbar-height) + 1.5rem);
  color-scheme: dark;
}

body {
  background-color: var(--bg-primary);
  background-image: 
    radial-gradient(ellipse 90% 50% at 50% -20px, rgba(102, 192, 244, 0.14), transparent),
    radial-gradient(ellipse 70% 40% at 85% 60%, rgba(42, 71, 94, 0.25), transparent),
    linear-gradient(to bottom, transparent, var(--bg-black));
  background-attachment: fixed;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html[data-theme="obsidian"] body {
  background-image: 
    radial-gradient(ellipse 80% 50% at 50% -20px, rgba(56, 189, 248, 0.12), transparent),
    radial-gradient(ellipse 60% 40% at 85% 60%, rgba(129, 140, 248, 0.08), transparent),
    linear-gradient(to bottom, transparent, var(--bg-black));
}

/* Selection Color */
::selection {
  background-color: rgba(102, 192, 244, 0.35);
  color: #ffffff;
}

/* Links */
a {
  color: var(--accent-cyan);
  text-decoration: none;
  transition: color var(--transition-fast), text-shadow var(--transition-fast);
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px var(--accent-cyan-glow);
}

/* Scrollbar Custom Styling */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}

::-webkit-scrollbar-track {
  background: var(--bg-black);
}

::-webkit-scrollbar-thumb {
  background: #1e293b;
  border-radius: var(--radius-full);
  border: 2px solid var(--bg-black);
}

::-webkit-scrollbar-thumb:hover {
  background: #334155;
}

/* Base Image & Media Defaults */
img, svg, video {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Typography Base */
h1, h2, h3, h4, h5, h6 {
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
}

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

code, kbd, samp, pre {
  font-family: var(--font-mono);
}

/* --------------------------------------------------------------------------
   3. LAYOUT & CONTAINER UTILITIES
   -------------------------------------------------------------------------- */
.container {
  max-width: var(--container-max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  width: 100%;
}

.section {
  padding: 6rem 0;
  position: relative;
}

.section-alt {
  background-color: rgba(15, 23, 42, 0.4);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  border: 1px solid rgba(56, 189, 248, 0.25);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  margin-bottom: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Ambient Section Glow Backgrounds */
.ambient-glow {
  position: absolute;
  pointer-events: none;
  z-index: -1;
  filter: blur(80px);
  border-radius: 50%;
  opacity: 0.5;
}

.glow-cyan {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.25) 0%, transparent 70%);
}

.glow-indigo {
  background: radial-gradient(circle, rgba(129, 140, 248, 0.2) 0%, transparent 70%);
}

.glow-emerald {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
}

/* --------------------------------------------------------------------------
   4. BUTTONS & INTERACTIVE CONTROLS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.btn:active {
  transform: translateY(1px);
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  pointer-events: none;
}

/* Primary Button with Cyan/Indigo Glow */
.btn-primary {
  background: var(--gradient-brand);
  color: #020617;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}

.btn-primary:hover {
  color: #000000;
  box-shadow: 0 6px 22px rgba(56, 189, 248, 0.6), 0 0 30px rgba(129, 140, 248, 0.4);
  transform: translateY(-2px);
}

/* Secondary Button - High-Tech Glass */
.btn-secondary {
  background: rgba(30, 41, 59, 0.6);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  backdrop-filter: blur(10px);
}

.btn-secondary:hover {
  background: rgba(45, 62, 94, 0.85);
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* Outline Button */
.btn-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid rgba(148, 163, 184, 0.25);
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  transform: translateY(-1px);
}

/* Success Button */
.btn-success {
  background: var(--gradient-accent-emerald);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
}

.btn-success:hover {
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.5);
  color: #ffffff;
  transform: translateY(-2px);
}

/* Danger Button */
.btn-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fda4af;
  border: 1px solid rgba(244, 63, 94, 0.35);
}

.btn-danger:hover {
  background: var(--accent-rose);
  color: #ffffff;
  border-color: var(--accent-rose);
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
  transform: translateY(-1px);
}

/* Warning Button */
.btn-warning {
  background: var(--accent-amber);
  color: #000000;
  font-weight: 700;
}

.btn-warning:hover {
  background: var(--accent-amber-hover);
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.4);
}

/* Button Sizes */
.btn-sm {
  padding: 0.45rem 0.85rem;
  font-size: 0.8125rem;
  border-radius: var(--radius-sm);
  gap: 0.4rem;
}

.btn-lg {
  padding: 0.95rem 1.9rem;
  font-size: 1.0625rem;
  border-radius: var(--radius-lg);
  font-weight: 700;
}

.btn-icon {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
}

/* Button Group */
.btn-group {
  display: inline-flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
}

/* --------------------------------------------------------------------------
   5. BADGES, TAGS & STATUS INDICATORS
   -------------------------------------------------------------------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  background: rgba(148, 163, 184, 0.12);
  color: var(--text-secondary);
  border: 1px solid var(--border-subtle);
  line-height: 1;
  white-space: nowrap;
}

.badge-accent {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: rgba(56, 189, 248, 0.3);
}

.badge-indigo {
  background: rgba(129, 140, 248, 0.15);
  color: var(--accent-indigo);
  border-color: rgba(129, 140, 248, 0.3);
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-emerald);
  border-color: rgba(16, 185, 129, 0.3);
}

.badge-warning {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.3);
}

.badge-danger {
  background: rgba(244, 63, 94, 0.15);
  color: #fb7185;
  border-color: rgba(244, 63, 94, 0.3);
}

.badge-purple {
  background: rgba(192, 132, 252, 0.15);
  color: var(--accent-purple);
  border-color: rgba(192, 132, 252, 0.3);
}

/* Glowing Pulsing Status Dots */
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
  flex-shrink: 0;
}

.status-dot::after {
  content: "";
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  border-radius: 50%;
  animation: radar-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
  opacity: 0.75;
}

.dot-online, .dot-ready, .status-dot.active {
  background-color: var(--accent-emerald);
  box-shadow: 0 0 8px var(--accent-emerald);
}
.dot-online::after, .dot-ready::after, .status-dot.active::after {
  background-color: var(--accent-emerald);
}

.dot-busy, .dot-working {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 8px var(--accent-cyan);
}
.dot-busy::after, .dot-working::after {
  background-color: var(--accent-cyan);
}

.dot-idle {
  background-color: #64748b;
}
.dot-idle::after {
  display: none;
}

.dot-error {
  background-color: var(--accent-rose);
  box-shadow: 0 0 8px var(--accent-rose);
}
.dot-error::after {
  background-color: var(--accent-rose);
}

/* --------------------------------------------------------------------------
   6. HEADER / NAVBAR
   -------------------------------------------------------------------------- */
.header, .navbar-wrapper {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(11, 15, 25, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--navbar-height);
  gap: 1.5rem;
}

/* Brand Logo Component */
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: #ffffff;
  flex-shrink: 0;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, #1e2838, #171a21);
  border: 1px solid rgba(102, 192, 244, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(102, 192, 244, 0.25);
  transition: all var(--transition-normal);
}

.brand-steam-svg {
  fill: currentColor;
  transition: transform var(--transition-fast);
}

.nav-brand:hover .brand-icon {
  transform: rotate(12deg) scale(1.05);
  box-shadow: 0 0 25px rgba(102, 192, 244, 0.5);
  border-color: #ffffff;
  color: #ffffff;
}

.brand-text-group {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.brand-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.brand-title span {
  color: var(--accent-cyan);
}

.version-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  background: rgba(56, 189, 248, 0.12);
  color: var(--accent-cyan);
  border: 1px solid rgba(56, 189, 248, 0.25);
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  list-style: none;
}

.nav-link {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-muted);
  position: relative;
  padding: 0.5rem 0;
  transition: color var(--transition-fast);
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-brand);
  border-radius: var(--radius-full);
  box-shadow: 0 0 8px var(--accent-cyan);
  transition: width var(--transition-normal);
}

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

.nav-link:hover::after, .nav-link.active::after {
  width: 100%;
}

/* Navbar Action Buttons (GitHub Star) */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn-github-star {
  display: inline-flex;
  align-items: center;
  background: rgba(30, 41, 59, 0.8);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 0.5rem;
  transition: all var(--transition-fast);
}

.btn-github-star:hover {
  background: #27354f;
  border-color: rgba(56, 189, 248, 0.4);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.star-count {
  background: rgba(15, 23, 42, 0.9);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

/* Theme Toggle Button (Steam / Obsidian) */
.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(42, 71, 94, 0.45);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.42rem 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.theme-toggle-btn:hover {
  background: rgba(42, 71, 94, 0.85);
  border-color: var(--accent-cyan);
  color: #ffffff;
  box-shadow: 0 0 12px var(--accent-cyan-dim);
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  transform: translateY(0);
}

.theme-toggle-btn .theme-icon {
  font-size: 0.95rem;
  line-height: 1;
}

.theme-toggle-btn .theme-label {
  font-size: 0.785rem;
  letter-spacing: 0.02em;
}

/* Mobile Hamburger Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  width: 40px;
  height: 40px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
  align-items: center;
}

.mobile-toggle span {
  width: 22px;
  height: 2px;
  background-color: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
}

.mobile-toggle.active span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.mobile-toggle.active span:nth-child(2) {
  opacity: 0;
}
.mobile-toggle.active span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile Drawer Menu */
.mobile-drawer {
  display: none;
  position: fixed;
  top: var(--navbar-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(11, 15, 25, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
  z-index: 999;
  border-bottom: 1px solid var(--border-subtle);
  animation: fadeInDown 0.3s ease forwards;
}

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

.mobile-drawer .nav-link {
  font-size: 1.2rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
  width: 100%;
}

/* --------------------------------------------------------------------------
   7. HERO SECTION
   -------------------------------------------------------------------------- */
#hero,
.hero,
.hero-section {
  position: relative;
  padding: 7rem 0 5rem 0;
  overflow: hidden;
}

.hero-background-glow {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 1200px;
  height: 600px;
  background: 
    radial-gradient(ellipse at 50% 10%, rgba(56, 189, 248, 0.16) 0%, transparent 65%),
    radial-gradient(ellipse at 80% 30%, rgba(129, 140, 248, 0.12) 0%, transparent 60%);
  pointer-events: none;
  z-index: -1;
}

.hero-content {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

/* Hero Eyebrow Pill */
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.15);
  margin-bottom: 1.75rem;
  animation: pulse-glow 3s infinite;
}

.hero-eyebrow .pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-cyan);
}

/* Hero Title with Gradient Clip */
.hero-title {
  font-size: clamp(2.6rem, 5.8vw, 4.4rem);
  font-weight: 900;
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin-bottom: 1.5rem;
  background: var(--gradient-hero-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 740px;
  margin: 0 auto 2.5rem auto;
}

.hero-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 4rem;
}

/* Key Stat Cards Grid */
.hero-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
  margin-top: 1rem;
}

.stat-card {
  background: var(--gradient-card-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: transparent;
  transition: background var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.2);
}

.stat-card:hover::before {
  background: var(--gradient-brand);
}

.stat-icon {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
  display: inline-block;
  filter: drop-shadow(0 0 8px rgba(56, 189, 248, 0.3));
}

.stat-number {
  font-size: 2.25rem;
  font-weight: 800;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 0.35rem;
  letter-spacing: -0.02em;
}

.stat-card:nth-child(1) .stat-number { color: var(--accent-cyan); text-shadow: 0 0 15px rgba(56, 189, 248, 0.4); }
.stat-card:nth-child(2) .stat-number { color: var(--accent-emerald); text-shadow: 0 0 15px rgba(16, 185, 129, 0.4); }
.stat-card:nth-child(3) .stat-number { color: var(--accent-indigo); text-shadow: 0 0 15px rgba(129, 140, 248, 0.4); }
.stat-card:nth-child(4) .stat-number { color: var(--accent-purple); text-shadow: 0 0 15px rgba(192, 132, 252, 0.4); }

.stat-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   8. INTERACTIVE DEMO SECTION (#demo)
   -------------------------------------------------------------------------- */
#demo,
.demo,
.demo-section {
  padding-top: 2rem;
  position: relative;
}

/* Desktop Window Frame Mockup */
.mockup-window {
  background: var(--bg-black);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-xl);
  box-shadow: 0 25px 60px -10px rgba(0, 0, 0, 0.85), 0 0 35px var(--shadow-glow-cyan);
  overflow: hidden;
  position: relative;
}

/* Title Bar / Controls */
.window-titlebar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.window-dots {
  display: flex;
  gap: 7px;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background-color: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.5); }
.dot-yellow { background-color: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.5); }
.dot-green { background-color: #10b981; box-shadow: 0 0 6px rgba(16, 185, 129, 0.5); }

.window-title {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  font-family: var(--font-mono);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.window-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Mockup Dashboard Header */
.mockup-dashboard-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.9rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.mockup-brand-group {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.game-profile-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(42, 71, 94, 0.4);
  color: var(--accent-cyan);
  border: 1px solid var(--border-medium);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 700;
}

.profile-select-control {
  background: var(--bg-surface);
  border: 1px solid var(--border-default);
  color: var(--text-primary);
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.75rem;
  font-size: 0.8125rem;
  outline: none;
  cursor: pointer;
}

.mockup-system-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Mockup Demo Tabs Navigation */
.demo-tabs,
.demo-tabs-bar {
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 0.5rem 1.25rem 0 1.25rem;
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
}

.demo-tab,
.demo-tab-btn {
  background: transparent;
  border: 1px solid transparent;
  border-bottom: none;
  color: var(--text-muted);
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.demo-tab:hover,
.demo-tab-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.04);
}

.demo-tab.active,
.demo-tab-btn.active {
  background: var(--bg-primary);
  color: var(--accent-cyan);
  border-color: var(--border-medium);
  border-bottom-color: var(--bg-primary);
  box-shadow: 0 -3px 12px var(--shadow-glow-cyan);
}

.demo-tab-badge {
  background: var(--accent-cyan-dim);
  color: var(--accent-cyan);
  font-size: 0.6875rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
}

/* Demo Content Container */
.demo-body {
  background: var(--bg-primary);
  padding: 1.75rem;
  min-height: 480px;
}

.demo-pane,
.demo-tab-pane {
  display: none;
}

.demo-pane.active,
.demo-tab-pane.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

/* --- TAB 1: INSTALLED MODS UI --- */
.demo-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.demo-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.45rem 0.85rem;
  flex: 1;
  min-width: 240px;
  max-width: 380px;
}

.demo-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-primary);
  font-size: 0.875rem;
  width: 100%;
  margin-left: 0.5rem;
}

.demo-filters {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.demo-filter-select,
.demo-select-sm {
  background: var(--bg-surface);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  padding: 0.5rem 0.85rem;
  font-size: 0.8125rem;
  outline: none;
  cursor: pointer;
}

.demo-filter-select:focus,
.demo-select-sm:focus {
  border-color: var(--accent-cyan);
}

.demo-toolbar-buttons {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

/* ================= Steam-Style Mods Layout & Filter Sidebar ================= */
.mods-layout {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.steam-filter-sidebar {
  width: 250px;
  min-width: 250px;
  background-color: #17202d;
  background-image: linear-gradient(180deg, #1b2838 0%, #16202d 100%);
  border: 1px solid #2a3f5a;
  border-radius: var(--radius-md);
  padding: 14px 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.steam-filter-search-wrap {
  display: flex;
  align-items: center;
  background: #101822;
  border: 1px solid #2a3f5a;
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
  padding: 2px 4px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.steam-filter-search-wrap:focus-within {
  border-color: #67c1f5;
  box-shadow: 0 0 8px rgba(103, 193, 245, 0.25);
}

.steam-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: inherit;
  font-size: 13px;
  font-style: italic;
  padding: 6px 8px;
  outline: none;
  min-width: 0;
}

.steam-search-input::placeholder {
  color: #626f7d;
  font-style: italic;
}

.steam-search-cog-btn {
  background: transparent;
  border: none;
  color: #626f7d;
  font-size: 14px;
  padding: 4px 6px;
  cursor: pointer;
  border-radius: 3px;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 1;
}

.steam-search-cog-btn:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.steam-filter-section {
  margin-bottom: 14px;
}

.steam-filter-heading {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8f98a0;
  margin-bottom: 7px;
  user-select: none;
}

.steam-select-control {
  width: 100%;
  background-color: #212c3d;
  border: 1px solid #2a3f5a;
  border-radius: var(--radius-sm);
  color: #c6d4df;
  font-family: inherit;
  font-size: 12px;
  padding: 6px 10px;
  outline: none;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.steam-select-control:focus,
.steam-select-control:hover {
  border-color: #67c1f5;
}

.steam-select-control option {
  background-color: #17202d;
  color: #c6d4df;
}

.steam-tags-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.steam-filter-group {
  display: flex;
  flex-direction: column;
}

.steam-tags-scroll {
  max-height: 220px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  margin-right: -4px;
}

/* Custom Steam Scrollbar */
.steam-tags-scroll::-webkit-scrollbar {
  width: 5px;
}

.steam-tags-scroll::-webkit-scrollbar-track {
  background: #101822;
  border-radius: 3px;
}

.steam-tags-scroll::-webkit-scrollbar-thumb {
  background: #3d4450;
  border-radius: 3px;
}

.steam-tags-scroll::-webkit-scrollbar-thumb:hover {
  background: #556070;
}

/* Steam Tag Row */
.steam-tag-row {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 2px;
  font-size: 12px;
  line-height: 1.35;
  user-select: none;
  border-radius: 2px;
  transition: background-color 0.12s ease;
}

.steam-tag-row:hover {
  background-color: rgba(255, 255, 255, 0.04);
}

.steam-tag-btn {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border-radius: 2px;
  background-color: #243040;
  border: 1px solid #36495f;
  color: #8f98a0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transition: all 0.15s ease;
}

.steam-tag-btn:hover {
  background-color: #314257;
  border-color: #537090;
  color: #fff;
}

/* Active Include (+) State */
.steam-tag-btn-include.active {
  background-color: #1999e3;
  border-color: #67c1f5;
  color: #fff;
  box-shadow: 0 0 6px rgba(25, 153, 227, 0.5);
}

/* Active Exclude (-) State */
.steam-tag-btn-exclude.active {
  background-color: #c23c2a;
  border-color: #f87171;
  color: #fff;
  box-shadow: 0 0 6px rgba(194, 60, 42, 0.5);
}

.steam-tag-label {
  color: #c6d4df;
  cursor: pointer;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steam-tag-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.steam-tag-label:hover {
  color: #fff;
}

.steam-tag-row.is-included .steam-tag-label {
  color: #67c1f5;
  font-weight: 600;
}

.steam-tag-row.is-excluded .steam-tag-label {
  color: #f87171;
  text-decoration: line-through;
  opacity: 0.75;
}

.steam-tag-count {
  font-size: 10px;
  color: #626f7d;
  font-weight: normal;
  flex-shrink: 0;
}

/* Actions in Steam Sidebar */
.steam-filter-actions {
  margin-top: 14px;
  margin-bottom: 12px;
}

.steam-date-btn {
  width: 100%;
  background: #2b3949;
  border: 1px solid #384b60;
  color: #c6d4df;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.steam-date-btn:hover {
  background: #3a4d63;
  color: #fff;
  border-color: #67c1f5;
}

.steam-incompatible-note {
  font-size: 11px;
  color: #8f98a0;
  line-height: 1.35;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 10px;
}

.steam-incompatible-note p {
  margin-bottom: 6px;
}

.steam-checkbox-label {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  color: #b8c6d4;
  user-select: none;
}

.steam-checkbox-label input[type="checkbox"] {
  accent-color: #1999e3;
  width: 14px;
  height: 14px;
  cursor: pointer;
}

/* Main Area */
.mods-main-area {
  flex: 1;
  min-width: 0;
}

.mods-main-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.mods-summary-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.mods-showing-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.active-filter-chips {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.active-chip-inc {
  background-color: rgba(25, 153, 227, 0.18);
  border: 1px solid #1999e3;
  color: #67c1f5;
}

.active-chip-inc:hover {
  background-color: rgba(25, 153, 227, 0.35);
}

.active-chip-exc {
  background-color: rgba(194, 60, 42, 0.18);
  border: 1px solid #c23c2a;
  color: #f87171;
}

.active-chip-exc:hover {
  background-color: rgba(194, 60, 42, 0.35);
}

.active-chip-clear {
  background-color: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.15s ease;
}

.active-chip-clear:hover {
  background-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

/* Demo Mod Cards Grid */
.mods-grid,
.demo-mods-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.25rem;
}

.mod-card,
.demo-mod-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.mod-card:hover,
.demo-mod-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5), 0 0 15px var(--shadow-glow-cyan);
}

.demo-mod-card.mod-card-outdated {
  border-color: rgba(245, 158, 11, 0.45);
  background: linear-gradient(145deg, rgba(245, 158, 11, 0.08) 0%, var(--bg-glass-card) 100%);
}

.mod-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}

.mod-icon {
  font-size: 1.75rem;
  flex-shrink: 0;
}

.mod-title-box {
  flex: 1;
  min-width: 0;
}

.mod-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.15rem;
}

.mod-author {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.mod-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.mod-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
  font-size: 0.75rem;
}

.mod-tags {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.mod-tag {
  font-size: 0.6875rem;
  background: rgba(148, 163, 184, 0.1);
  color: var(--text-muted);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
}

.mod-tag:hover {
  background-color: rgba(56, 189, 248, 0.2);
  border-color: var(--accent-cyan);
  color: #fff;
  transform: translateY(-1px);
}

.mod-tag.tag-is-included {
  background-color: rgba(25, 153, 227, 0.25);
  border-color: #67c1f5;
  color: #67c1f5;
  font-weight: 600;
}

.mod-tag.tag-is-excluded {
  background-color: rgba(194, 60, 42, 0.25);
  border-color: #f87171;
  color: #fca5a5;
  text-decoration: line-through;
}

.mod-size {
  font-family: var(--font-mono);
  color: var(--text-dim);
  font-size: 0.75rem;
}

.mod-footer {
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mod-id-code {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* --- TAB 2: DOWNLOAD QUEUE UI --- */
.demo-queue-input-card {
  background: rgba(19, 29, 54, 0.5);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.queue-input-row {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.queue-text-input {
  flex: 1;
  background: var(--bg-black);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
  transition: border-color var(--transition-fast);
}

.queue-text-input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.25);
}

.quick-add-pills {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
}

.quick-add-pill {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.75rem;
  font-family: var(--font-mono);
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.quick-add-pill:hover {
  background: rgba(56, 189, 248, 0.15);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

/* Worker Status Monitor Grid */
.workers-monitor-bar {
  margin-bottom: 1.5rem;
}

.workers-headline {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.workers-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.worker-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  position: relative;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.worker-card.active {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
}

.worker-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.35rem;
}

.worker-id-badge {
  font-size: 0.75rem;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
}

.worker-status-pill {
  font-size: 0.6875rem;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-weight: 600;
}

.worker-status-pill.active {
  background: rgba(16, 185, 129, 0.2);
  color: var(--accent-emerald);
}

.worker-status-pill.idle {
  background: rgba(100, 116, 139, 0.2);
  color: var(--text-dim);
}

.worker-current-job {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 0.25rem;
}

.worker-path-badge {
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: var(--text-dim);
}

/* Queue List Items */
.queue-header-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}

.queue-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.queue-item {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  transition: all var(--transition-normal);
}

.queue-item:hover {
  border-color: rgba(56, 189, 248, 0.35);
}

.queue-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.queue-item-title-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.queue-item-title {
  font-size: 0.95rem;
  color: #ffffff;
  font-weight: 700;
}

.queue-item-id {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-xs);
}

.queue-item-meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.queue-worker-tag {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-indigo);
  background: rgba(129, 140, 248, 0.12);
  border: 1px solid rgba(129, 140, 248, 0.25);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
}

.queue-progress-bar-bg {
  height: 8px;
  background: #080d1a;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.queue-progress-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  transition: width 0.25s ease;
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

.queue-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
}

.queue-speed-label {
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  font-weight: 600;
}

.queue-staging-path {
  font-family: var(--font-mono);
  color: var(--text-dim);
}

/* --- TAB 3: FOLDER HEALER UI --- */
.refactor-hero-box {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(56, 189, 248, 0.08) 100%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.refactor-icon {
  font-size: 2.5rem;
  flex-shrink: 0;
}

.healer-progress-wrap {
  background: rgba(15, 23, 42, 0.8);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
}

.healer-progress-bar {
  height: 8px;
  background: #090e1a;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.healer-progress-fill {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, #10b981 0%, #38bdf8 100%);
  transition: width 0.3s ease;
}

.healer-status-text {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-family: var(--font-mono);
}

.healer-table-container {
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.healer-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.healer-table th {
  background: rgba(11, 15, 25, 0.85);
  padding: 0.85rem 1.2rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.healer-table td {
  padding: 0.85rem 1.2rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.healer-table tr:last-child td {
  border-bottom: none;
}

.healer-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.code-badge {
  background: rgba(255, 255, 255, 0.06);
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: #fb7185;
}

.healer-action-bar {
  padding: 1rem 1.2rem;
  background: rgba(11, 15, 25, 0.7);
  border-top: 1px solid var(--border-subtle);
  display: flex;
  justify-content: flex-end;
}

/* --- TAB 4: SETTINGS UI --- */
.settings-mockup-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.settings-card {
  background: var(--bg-glass-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}

.settings-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ffffff;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
}

.full-width {
  width: 100%;
}

.demo-slider {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #1e293b;
  border-radius: var(--radius-full);
  outline: none;
  margin-top: 0.5rem;
  cursor: pointer;
}

.demo-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  border: 2px solid #ffffff;
}

.demo-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-cyan);
  cursor: pointer;
  box-shadow: 0 0 10px var(--accent-cyan);
  border: 2px solid #ffffff;
}

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-subtle);
}

.setting-row:last-child {
  border-bottom: none;
}

.setting-label-group {
  max-width: 75%;
}

.setting-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.setting-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
}

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

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

.slider-round {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #1e293b;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: #ffffff;
  transition: .3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
}

input:checked + .slider-round {
  background-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
}

input:checked + .slider-round:before {
  transform: translateX(20px);
  background-color: #020617;
}

.settings-actions {
  display: flex;
  gap: 1rem;
  margin-top: 1.5rem;
  justify-content: flex-end;
}

/* --- TAB 5: CONSOLE LOGS --- */
.terminal-window {
  background: #050811;
  border: 1px solid #1a2333;
  border-radius: var(--radius-lg);
  overflow: hidden;
  font-family: var(--font-mono);
}

.terminal-header {
  background: #0c1220;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #1a2333;
  font-size: 0.75rem;
  color: var(--text-dim);
  flex-wrap: wrap;
  gap: 0.5rem;
}

.terminal-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.terminal-logs-stream {
  padding: 1.25rem;
  max-height: 380px;
  min-height: 260px;
  overflow-y: auto;
  font-size: 0.8125rem;
  line-height: 1.7;
}

.log-line,
.term-line {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.2rem;
}

.log-time,
.term-time {
  color: var(--text-dim);
  user-select: none;
  flex-shrink: 0;
}

.log-tag,
.term-tag {
  font-weight: 700;
  flex-shrink: 0;
}

.tag-workerpool, .log-tag-cyan { color: var(--accent-cyan); }
.tag-steamcmd, .log-tag-amber { color: var(--accent-amber); }
.tag-backupengine, .log-tag-purple { color: var(--accent-purple); }
.tag-fastapi { color: #60a5fa; }
.tag-modrefactorer, .log-tag-emerald { color: var(--accent-emerald); }
.tag-steamapi { color: #f472b6; }
.log-tag-rose { color: var(--accent-rose); }

.log-text {
  color: var(--text-secondary);
}

.terminal-cursor {
  display: inline-block;
  width: 8px;
  height: 14px;
  background-color: var(--accent-cyan);
  vertical-align: middle;
  margin-left: 4px;
  animation: terminal-blink 1s step-end infinite;
}

/* --------------------------------------------------------------------------
   9. FEATURE GRID (#features)
   -------------------------------------------------------------------------- */
#features,
.features,
.features-section {
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
}

.feature-card {
  background: var(--gradient-card-glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 2.25rem 1.85rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  padding: 1px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 60%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.7), 0 0 25px rgba(56, 189, 248, 0.2);
}

.feature-icon-wrapper {
  width: 58px;
  height: 58px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  transform: scale(1.1) rotate(6deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.feature-card:nth-child(1) .feature-icon-wrapper { color: var(--accent-cyan); }
.feature-card:nth-child(2) .feature-icon-wrapper { color: var(--accent-emerald); }
.feature-card:nth-child(3) .feature-icon-wrapper { color: var(--accent-amber); }
.feature-card:nth-child(4) .feature-icon-wrapper { color: var(--accent-indigo); }
.feature-card:nth-child(5) .feature-icon-wrapper { color: var(--accent-purple); }
.feature-card:nth-child(6) .feature-icon-wrapper { color: var(--accent-rose); }

.feature-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.85rem;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.feature-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.feature-badge-row {
  margin-top: auto;
  padding-top: 1rem;
  display: flex;
  gap: 0.5rem;
}

/* --------------------------------------------------------------------------
   10. ARCHITECTURE SECTION (#architecture)
   -------------------------------------------------------------------------- */
#architecture,
.architecture,
.architecture-section {
  position: relative;
}

.arch-flow-container {
  background: var(--gradient-card-glass);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  box-shadow: var(--shadow-xl);
  margin-bottom: 3.5rem;
}

.arch-flow-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}

.arch-node {
  background: #111a2e;
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  text-align: center;
  flex: 1;
  max-width: 200px;
  position: relative;
  z-index: 2;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.arch-node:hover {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 8px 24px rgba(56, 189, 248, 0.25);
}

.arch-node-icon {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.arch-node-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.arch-node-tag {
  font-size: 0.75rem;
  color: var(--accent-cyan);
  font-family: var(--font-mono);
}

.arch-connector {
  flex: 0.6;
  height: 2px;
  background: linear-gradient(90deg, #38bdf8 0%, #818cf8 100%);
  position: relative;
  box-shadow: 0 0 8px var(--accent-cyan);
}

.arch-connector::after {
  content: "▶";
  position: absolute;
  right: -6px;
  top: -8px;
  font-size: 10px;
  color: #818cf8;
}

/* Concurrency Comparison: Standard SteamCMD vs Controller Isolation */
.concurrency-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.comparison-card {
  border-radius: var(--radius-xl);
  padding: 2.25rem;
  border: 1px solid var(--border-subtle);
  position: relative;
}

.comparison-card.flawed {
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.06) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(244, 63, 94, 0.3);
}

.comparison-card.superior {
  background: linear-gradient(145deg, rgba(16, 185, 129, 0.08) 0%, rgba(15, 23, 42, 0.8) 100%);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.15);
}

.comparison-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.comparison-title {
  font-size: 1.25rem;
  font-weight: 800;
}

.comparison-card.flawed .comparison-title { color: #fda4af; }
.comparison-card.superior .comparison-title { color: #6ee7b7; }

.comparison-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.comparison-icon-fail {
  color: var(--accent-rose);
  font-size: 1.15rem;
  line-height: 1;
}

.comparison-icon-pass {
  color: var(--accent-emerald);
  font-size: 1.15rem;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   11. QUICK START SECTION (#quickstart)
   -------------------------------------------------------------------------- */
#quickstart,
.quickstart,
.quickstart-section {
  position: relative;
}

.quickstart-container {
  max-width: 860px;
  margin: 0 auto;
}

/* Platform Tabs */
.platform-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.platform-tab-btn {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.7rem 1.4rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-normal);
}

.platform-tab-btn:hover {
  background: rgba(45, 62, 94, 0.8);
  color: #ffffff;
}

.platform-tab-btn.active {
  background: var(--bg-surface-elevated);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 15px rgba(56, 189, 248, 0.2);
}

.platform-content {
  display: none;
}

.platform-content.active {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

/* Code Snippet Box */
.code-box-wrapper {
  background: #050811;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  position: relative;
}

.code-box-header {
  background: #0c1220;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
}

.code-box-title {
  font-size: 0.8125rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-copy {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  transition: all var(--transition-fast);
}

.btn-copy:hover {
  background: rgba(56, 189, 248, 0.2);
  color: var(--accent-cyan);
  border-color: var(--accent-cyan);
}

.code-box-content {
  padding: 1.5rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.9375rem;
  line-height: 1.7;
}

.code-box-content pre {
  margin: 0;
}

/* Syntax Highlighting */
.token-comment { color: #64748b; font-style: italic; }
.token-cmd { color: var(--accent-cyan); font-weight: 600; }
.token-arg { color: #f1f5f9; }
.token-opt { color: var(--accent-purple); }
.token-str { color: var(--accent-emerald); }
.token-prompt { color: var(--text-dim); user-select: none; }

/* --------------------------------------------------------------------------
   12. SUPPORTED GAMES GRID (#games)
   -------------------------------------------------------------------------- */
#games,
.games,
.games-section {
  position: relative;
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.game-card {
  background: var(--gradient-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.game-card:hover {
  transform: translateY(-5px);
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.25);
}

.game-card-icon {
  font-size: 2.25rem;
  margin-bottom: 1rem;
}

.game-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.game-appid-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  color: var(--accent-cyan);
  background: rgba(56, 189, 248, 0.1);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(56, 189, 248, 0.2);
  width: fit-content;
  margin-bottom: 0.85rem;
}

.game-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.game-compat-status {
  margin-top: auto;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-emerald);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* --------------------------------------------------------------------------
   13. FAQ ACCORDION (#faq)
   -------------------------------------------------------------------------- */
#faq,
.faq,
.faq-section {
  position: relative;
}

.faq-container {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: var(--gradient-card-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
}

.faq-item:hover {
  border-color: rgba(56, 189, 248, 0.3);
}

.faq-item.active,
.faq-item[open] {
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5), 0 0 15px rgba(56, 189, 248, 0.15);
}

.faq-question {
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-family: inherit;
  padding: 1.25rem 1.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  user-select: none;
  transition: color var(--transition-fast);
}

.faq-question:hover {
  color: var(--accent-cyan);
}

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

.faq-chevron {
  font-size: 0.9rem;
  color: var(--accent-cyan);
  transition: transform var(--transition-normal);
  pointer-events: none;
}

.faq-item.active .faq-chevron,
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

.faq-item.active .faq-answer,
.faq-item[open] .faq-answer {
  display: block;
  animation: fadeIn 0.25s ease-in-out;
}

.faq-answer a {
  color: var(--accent-cyan);
  text-decoration: underline;
  transition: color var(--transition-fast);
}

.faq-answer a:hover {
  color: #ffffff;
}

/* --------------------------------------------------------------------------
   14. FOOTER
   -------------------------------------------------------------------------- */
#footer,
.footer,
.site-footer {
  background: #060911;
  border-top: 1px solid var(--border-subtle);
  padding: 5rem 0 2.5rem 0;
  position: relative;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand-col p {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-top: 1rem;
  max-width: 360px;
}

.footer-heading {
  font-size: 0.875rem;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1.25rem;
}

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

.footer-link {
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--accent-cyan);
}

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

/* --------------------------------------------------------------------------
   15. UTILITIES & KEYFRAME ANIMATIONS
   -------------------------------------------------------------------------- */
/* Alerts */
.alert-banner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
}

.alert-warning {
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fde68a;
}

.alert-info {
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.35);
  color: #bae6fd;
}

.alert-success {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #a7f3d0;
}

.alert-danger {
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  color: #fecdd3;
}

/* Tooltips */
.tooltip {
  position: relative;
  display: inline-flex;
}

.tooltip .tooltip-text,
[data-tooltip]::after {
  position: absolute;
  bottom: 125%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #0f172a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 500;
  padding: 0.35rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-medium);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
  z-index: 100;
}

[data-tooltip]::after {
  content: attr(data-tooltip);
}

.tooltip:hover .tooltip-text,
[data-tooltip]:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* Repair & Diagnostics Table (Folder Healer) */
.repair-table,
.diagnostics-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
  margin-top: 1rem;
}

.repair-table th,
.diagnostics-table th {
  background: rgba(15, 23, 42, 0.7);
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-weight: 700;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
}

.repair-table td,
.diagnostics-table td {
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

.repair-table tr:hover td,
.diagnostics-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* Spinners */
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid rgba(56, 189, 248, 0.2);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

/* Keyframes */
@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pulse-glow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.15);
  }
  50% {
    box-shadow: 0 0 28px rgba(56, 189, 248, 0.4);
    border-color: rgba(56, 189, 248, 0.6);
  }
}

@keyframes progress-shimmer {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

@keyframes radar-ping {
  0% { transform: scale(1); opacity: 0.8; }
  70% { transform: scale(2.4); opacity: 0; }
  100% { transform: scale(2.4); opacity: 0; }
}

@keyframes terminal-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --------------------------------------------------------------------------
   15. TOAST NOTIFICATION ENGINE & ACCESSIBILITY UTILITIES
   -------------------------------------------------------------------------- */
.toast-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  pointer-events: none;
  max-width: 380px;
  width: calc(100vw - 3rem);
}

.toast-item {
  pointer-events: auto;
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.6), 0 0 15px rgba(56, 189, 248, 0.15);
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.4;
  transform: translateY(20px);
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast-item.toast-visible {
  transform: translateY(0);
  opacity: 1;
}

.toast-item.toast-hiding {
  transform: translateY(20px);
  opacity: 0;
}

.toast-item.toast-info {
  border-left: 4px solid var(--accent-cyan);
}
.toast-item.toast-info .toast-icon {
  color: var(--accent-cyan);
}

.toast-item.toast-success {
  border-left: 4px solid var(--accent-emerald);
}
.toast-item.toast-success .toast-icon {
  color: var(--accent-emerald);
}

.toast-item.toast-warning {
  border-left: 4px solid var(--accent-amber);
}
.toast-item.toast-warning .toast-icon {
  color: var(--accent-amber);
}

.toast-item.toast-error {
  border-left: 4px solid var(--accent-rose);
}
.toast-item.toast-error .toast-icon {
  color: var(--accent-rose);
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.toast-body {
  flex: 1;
  min-width: 0;
}

.toast-title {
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.2rem;
  color: #ffffff;
}

.toast-message {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  word-break: break-word;
}

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.2rem;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  line-height: 1;
  margin-left: 0.25rem;
}

.toast-close:hover {
  color: #ffffff;
}

/* Copy button feedback */
.btn-copy.copied {
  background: rgba(16, 185, 129, 0.2) !important;
  color: var(--accent-emerald) !important;
  border-color: var(--accent-emerald) !important;
}

/* Accessible focus styling */
:focus-visible {
  outline: 2px solid var(--accent-cyan);
  outline-offset: 2px;
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible),
input:focus:not(:focus-visible),
select:focus:not(:focus-visible) {
  outline: none;
}

/* Screen reader only utility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-to-content {
  position: absolute;
  top: -100px;
  left: 1rem;
  z-index: 10000;
  background: var(--accent-cyan);
  color: #060911;
  font-weight: 700;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  transition: top var(--transition-fast);
}

.skip-to-content:focus {
  top: 1rem;
}

/* --------------------------------------------------------------------------
   16. FULL MOBILE RESPONSIVENESS & MEDIA QUERIES
   -------------------------------------------------------------------------- */
/* Large Tablet & Small Laptop (1024px) */
@media (max-width: 1024px) {
  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .games-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }

  .arch-flow-row {
    flex-wrap: wrap;
    justify-content: center;
    gap: 1.5rem;
  }

  .arch-connector {
    display: none;
  }

  .arch-node {
    max-width: 180px;
  }
}

@media (max-width: 960px) {
  .mods-layout {
    flex-direction: column;
  }

  .steam-filter-sidebar {
    width: 100%;
    min-width: 0;
    position: static;
  }
}

/* Tablet Portrait & Large Phone (768px) */
@media (max-width: 768px) {
  :root {
    --navbar-height: 64px;
  }

  .section {
    padding: 4.5rem 0;
  }

  .nav-menu {
    display: none;
  }

  .mobile-toggle {
    display: flex;
  }

  .hero-section {
    padding: 5rem 0 3.5rem 0;
  }

  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

  .concurrency-comparison-grid {
    grid-template-columns: 1fr;
  }

  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .settings-mockup-grid {
    grid-template-columns: 1fr;
  }

  .healer-comparison-grid {
    grid-template-columns: 1fr;
  }

  .workers-cards-grid {
    grid-template-columns: 1fr;
  }

  .queue-row {
    grid-template-columns: 1.5fr 1fr 1fr;
  }

  .queue-row span:nth-child(4),
  .queue-row span:nth-child(5) {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    text-align: center;
  }
}

/* Mobile Devices (480px and below) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 2.1rem;
  }

  .hero-stats-grid {
    grid-template-columns: 1fr;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .games-grid {
    grid-template-columns: 1fr;
  }

  .demo-mods-grid {
    grid-template-columns: 1fr;
  }

  .demo-body {
    padding: 1rem;
  }

  .demo-tabs-bar {
    padding: 0.5rem 0.5rem 0 0.5rem;
  }

  .demo-tab-btn {
    padding: 0.5rem 0.75rem;
    font-size: 0.8125rem;
  }

  .queue-input-row {
    flex-direction: column;
  }

  .queue-row {
    grid-template-columns: 1fr 1fr;
    font-size: 0.75rem;
  }

  .queue-row span:nth-child(2) {
    display: none;
  }

  .code-box-content {
    padding: 1rem;
    font-size: 0.8125rem;
  }
}
