/* ============================================
   ExodusHub - Main Stylesheet (Echoes Theme)
   ============================================ */
@import url('https://fonts.googleapis.com/css2?family=Handjet:wght@100..900&display=swap');

/* ============================================
   CSS Variables (Design Tokens)
   ============================================ */
:root {
  /* Colors - Monochrome red palette from Echoes */
  --bg-primary: #080408;
  --bg-secondary: #1a0d10;
  --bg-tertiary: #120810;

  --neon-red: #ff2a4a;
  --neon-red-glow: rgba(255, 42, 74, 0.6);
  --neon-red-super-glow: rgba(255, 42, 74, 0.4);
  /* Wider, softer glow */
  --neon-red-dim: #cc2244;
  --neon-red-bright: #ff4466;
  --neon-core: #ff6680;
  /* Hot red center - no white */

  --text-primary: #d8c8cc;
  --text-secondary: #886070;
  --text-muted: #553848;

  /* Glowing Text Colors for Terminal Logs */
  --glow-green: #00ff88;
  --glow-green-dim: #00cc66;
  --glow-green-glow: rgba(0, 255, 136, 0.6);

  --glow-yellow: #ffdd00;
  --glow-yellow-dim: #ccaa00;
  --glow-yellow-glow: rgba(255, 221, 0, 0.6);

  --glow-white: #ffffff;
  --glow-white-dim: #cccccc;
  --glow-white-glow: rgba(255, 255, 255, 0.5);

  --glow-orange: #ff8800;
  --glow-orange-dim: #cc6600;
  --glow-orange-glow: rgba(255, 136, 0, 0.6);

  --glow-cyan: #00ddff;
  --glow-cyan-dim: #00aacc;
  --glow-cyan-glow: rgba(0, 221, 255, 0.6);

  --glow-blue: #0088ff;
  --glow-blue-dim: #0066cc;
  --glow-blue-glow: rgba(0, 136, 255, 0.6);

  /* Mappings to Main.css standard variables */
  --color-bg: var(--bg-primary);
  --color-bg-elevated: rgba(12, 6, 10, 0.8);
  --color-bg-card: rgba(12, 6, 10, 0.6);
  --color-bg-hover: rgba(255, 42, 74, 0.1);

  --color-text-primary: var(--text-primary);
  --color-text-secondary: var(--text-secondary);
  --color-text-muted: var(--text-muted);

  --color-accent: var(--neon-red);
  --color-accent-hover: var(--neon-red-bright);
  --color-accent-glow: var(--neon-red-glow);
  --color-accent-shadow: rgba(255, 42, 74, 0.2);

  --color-border: var(--neon-red-dim);
  --color-border-light: #553848;

  /* Typography */
  --font-display: 'Handjet', cursive;
  --font-mono: 'Courier New', monospace;
  --font-family: var(--font-mono);
  /* Default to mono for content */

  --font-size-xs: 0.75rem;
  --font-size-sm: 0.875rem;
  --font-size-base: 1rem;
  --font-size-lg: 1.125rem;
  --font-size-xl: 1.25rem;
  --font-size-2xl: 1.5rem;
  --font-size-3xl: 2rem;
  --font-size-4xl: 2.5rem;
  --font-size-5xl: 3rem;

  /* ============================================
   Footer
   ============================================ */
  .footer {
    background: var(--bg-tertiary);
    border-top: 1px solid var(--neon-red-dim);
    padding: var(--spacing-lg) 0;
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    position: relative;
    z-index: 10;
  }

  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;
  --spacing-3xl: 6rem;

  /* Border Radius - sharper for cyberpunk feel */
  --radius-sm: 0px;
  --radius-md: 2px;
  --radius-lg: 4px;
  --radius-xl: 8px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.8);
  --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.8);
  --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.9);
  --shadow-glow: 0 0 15px var(--neon-red-glow);

  /* Glass */
  --glass-bg: rgba(8, 4, 8, 0.7);
  --glass-border: var(--neon-red-dim);
  --glass-blur: 8px;

  /* Z-index layers */
  --z-dropdown: 100;
  --z-navbar: 1000;
  --z-modal: 2000;
  --z-tooltip: 3000;
  --z-crt: 9999;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 250ms ease;

  /* Custom Cursors - SVG Data URIs */
  --cursor-default: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4V24.5858L12.7071 19.8787L13.4142 19.1716H14.4142H24L8 4Z' fill='%23ff2a4a' stroke='black' stroke-width='1'/%3E%3Cpath d='M8 4V24.5858L12.7071 19.8787L13.4142 19.1716H14.4142H24L8 4Z' fill='%23ff2a4a' style='filter: drop-shadow(0 0 2px %23ff2a4a) drop-shadow(0 0 4px rgba(255, 42, 74, 0.5))'/%3E%3C/svg%3E") 0 0;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4V24.5858L12.7071 19.8787L13.4142 19.1716H14.4142H24L8 4Z' fill='black' stroke='%23ff2a4a' stroke-width='1'/%3E%3Cpath d='M8 4V24.5858L12.7071 19.8787L13.4142 19.1716H14.4142H24L8 4Z' fill='black' style='filter: drop-shadow(0 0 2px %23ff2a4a) drop-shadow(0 0 4px rgba(255, 42, 74, 0.5))'/%3E%3C/svg%3E") 0 0;
  --cursor-text: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 8H20M12 24H20M16 8V24' stroke='%23ff2a4a' stroke-width='2' stroke-linecap='round' style='filter: drop-shadow(0 0 2px %23ff2a4a)'/%3E%3C/svg%3E") 16 16;
  --cursor-wait: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='16' cy='16' r='10' stroke='%23ff2a4a' stroke-width='2' stroke-dasharray='15 10' style='filter: drop-shadow(0 0 3px %23ff2a4a)'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 16 16' to='360 16 16' dur='1s' repeatCount='indefinite' /%3E%3C/circle%3E%3C/svg%3E") 16 16;
  --cursor-help: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M8 4V24.5858L12.7071 19.8787L13.4142 19.1716H14.4142H24L8 4Z' fill='%23ff2a4a' stroke='black' stroke-width='1'/%3E%3Ctext x='18' y='28' fill='%23ff2a4a' font-family='monospace' font-weight='bold' font-size='16' style='filter: drop-shadow(0 0 2px %23ff2a4a)'%3E?%3C/text%3E%3C/svg%3E") 0 0;
  --cursor-grab: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='7' y='7' width='18' height='18' stroke='%23ff2a4a' stroke-width='2' fill='none' style='filter:drop-shadow(0 0 2px %23ff2a4a)'/%3E%3C/svg%3E") 16 16;
  --cursor-grabbing: url("data:image/svg+xml,%3Csvg width='32' height='32' viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='10' y='10' width='12' height='12' fill='%23ff2a4a' style='filter:drop-shadow(0 0 4px %23ff2a4a)'/%3E%3C/svg%3E") 16 16;
}

/* ============================================
   Reset & Base
   ============================================ */
/* Anti-FOUC Guard logic removed for faster load */
/* html::before { ... } */


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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  height: 100%;
  cursor: var(--cursor-default), auto;
}

body {
  font-family: var(--font-mono);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.app-title {
  font-weight: 900;
  text-transform: uppercase;
}

/* Headings use the Display Font */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  color: var(--neon-red);
  text-shadow: 0 0 2px var(--neon-core),
    0 0 10px var(--neon-red-glow),
    0 0 20px var(--neon-red-super-glow);
}


button {
  cursor: var(--cursor-pointer), pointer;
}

/* Standard App Subtitle */
.app-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-secondary);
  opacity: 0.8;
  letter-spacing: 1px;
}

a {
  color: var(--neon-red);
  text-decoration: none;
  transition: all var(--transition-fast);
  cursor: var(--cursor-pointer), pointer;
}

a:hover {
  color: var(--neon-red-bright);
  text-shadow: 0 0 5px var(--neon-core), 0 0 15px var(--neon-red), 0 0 30px var(--neon-red-glow);
}

/* Scrollbars */
*::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

*::-webkit-scrollbar-track {
  background: var(--bg-primary);
  border-left: 1px solid var(--color-border);
}

*::-webkit-scrollbar-thumb {
  background: var(--neon-red-dim);
  border: 1px solid var(--bg-primary);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--neon-red);
  box-shadow: 0 0 5px var(--neon-red);
}

/* ============================================
   Global CRT & Terminal Effects
   ============================================ */
.terminal-background {
  position: fixed;
  top: 100px;
  right: 0;
  width: 20%;
  height: calc(100% - 100px);
  z-index: -1;
  font-family: var(--font-mono);
  color: var(--neon-red-dim);
  opacity: 0.33;
  padding: 20px;
  overflow: hidden;
  white-space: pre-wrap;
  pointer-events: none;
  line-height: 1.2;
  mask-image: linear-gradient(to bottom, black 90%, transparent);
  text-align: right;
  border-left: 1px solid rgba(255, 42, 74, 0.1);
}

.real-terminal-container {
  position: fixed;
  top: 120px;
  left: 40px;
  width: 500px;
  max-width: 90vw;
  max-height: calc(100vh - 250px);
  /* Limit height to stay above footer */
  z-index: 50;
  pointer-events: auto;
  overflow: hidden;
  /* No scrolling */
  transition: background-color 0.2s ease;
  padding: 10px;
  /* Persistent padding to prevent jump */
  box-sizing: border-box;
  /* Ensure padding doesn't affect width */
}

.real-terminal-container.typing {
  background-color: rgba(0, 0, 0, 0.85);
  /* Much darker background for readability */
  border-radius: var(--radius-md);
  /* border: none; Removed to avoid potential layout shifts if border existed */
}

/* Hide scrollbar for Chrome/Safari */
.real-terminal-container::-webkit-scrollbar {
  display: none;
}

/* Make sure the input line is visible and nice */
.real-terminal-logs {
  margin-bottom: 10px;
  font-size: 14px;
  color: var(--neon-red-dim);
  text-shadow: 0 0 2px var(--neon-red-dim);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  opacity: 0.9;
}

#terminal-input-line {
  /* Resetting previous fixed positioning from background-theme.js */
  position: relative !important;
  bottom: auto !important;
  left: auto !important;
  width: 100% !important;
  color: var(--neon-red-bright);
  text-shadow: 0 0 5px var(--neon-red);
  font-family: var(--font-mono);
  font-size: 14px;
  display: flex;
  flex-wrap: wrap;
  /* Allow wrapping */
  white-space: pre-wrap;
  /* Preserve spaces but wrap */
  word-break: break-word;
  /* distinct from break-all, keeps words together mostly */
  margin-top: 10px;
}

.terminal-line {
  display: block;
  margin-bottom: 2px;
  white-space: pre-wrap;
  /* Allow wrapping */
  word-break: break-word;
  opacity: 0;
  animation: fade-in 0.1s forwards;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

/* Critical Log Flashing Animation */
@keyframes critical-flash {

  0%,
  100% {
    color: var(--neon-red-dim);
    text-shadow: 0 0 2px var(--neon-red-dim);
  }

  50% {
    color: var(--neon-red-bright);
    text-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red-glow);
  }
}

.critical-flash {
  animation: critical-flash 0.5s ease-in-out infinite;
}

/* Notification Button Flashing */
@keyframes notification-flash {

  0%,
  100% {
    background-color: transparent;
    color: var(--neon-red);
  }

  50% {
    background-color: var(--neon-red);
    color: #000;
    box-shadow: 0 0 10px var(--neon-red), 0 0 20px var(--neon-red-glow);
  }
}

.notification-flashing {
  animation: notification-flash 1s steps(2, start) infinite;
}

.crt-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-crt);
}

/* Scanlines - increased spacing for better visibility */
.scanlines {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: var(--z-crt);
  /* Increased from 2px to 4px total spacing */
  background: repeating-linear-gradient(0deg, transparent, transparent 2px, rgba(0, 0, 0, 0.25) 2px, rgba(0, 0, 0, 0.25) 4px);
  /* Edge warping - lines curve at edges like old CRT */
  border-radius: 12px;
  mask-image: radial-gradient(ellipse 120% 120% at 50% 50%, black 70%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 120% 120% at 50% 50%, black 70%, transparent 100%);
  /* Periodic flicker animation */
  animation: scanline-flicker 4s infinite;
}

.scanlines::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 42, 74, 0.03);
  animation: crt-flicker 0.08s infinite;
}

/* Periodic scanline flicker - brief flutter every ~4 seconds */
@keyframes scanline-flicker {

  0%,
  92%,
  100% {
    opacity: 1;
  }

  93% {
    opacity: 0.7;
  }

  94% {
    opacity: 0.9;
  }

  95% {
    opacity: 0.5;
  }

  96% {
    opacity: 0.85;
  }

  97% {
    opacity: 0.6;
  }

  98% {
    opacity: 0.95;
  }
}

/* Subtle constant red tint flicker */
@keyframes crt-flicker {

  0%,
  100% {
    opacity: 0.03;
  }

  50% {
    opacity: 0.06;
  }
}

/* Glitch Effects */
@keyframes hover-glitch {
  0% {
    transform: translate(0) skewX(0);
    filter: none;
    text-shadow: none;
  }

  20% {
    transform: translate(-1px, 0) skewX(-2deg);
    filter: hue-rotate(15deg) brightness(1.3);
    text-shadow: 2px 0 var(--neon-red), -2px 0 rgba(0, 255, 255, 0.5);
  }

  40% {
    transform: translate(1px, 0) skewX(2deg);
    filter: hue-rotate(-10deg);
    text-shadow: -2px 0 var(--neon-red), 2px 0 rgba(0, 255, 255, 0.5);
  }

  60% {
    transform: translate(0, 1px) skewX(-1deg);
    filter: brightness(1.5);
    text-shadow: 1px 0 var(--neon-red);
  }

  80% {
    transform: translate(0, -1px) skewX(1deg);
    text-shadow: -1px 0 var(--neon-red);
  }

  100% {
    transform: translate(0) skewX(0);
    filter: none;
    text-shadow: none;
  }
}

/* Apply glitch on hover to interactive elements */
.btn:hover,
.navbar__link:hover,
.app-card:hover h3,
a:hover {
  animation: hover-glitch 0.2s ease-out forwards;
}

/* Text Glitch Class */
.glitch-text {
  position: relative;
  color: var(--neon-red);
}

/* ============================================
   Layout & Containers
   ============================================ */
.btn,
.navbar__link,
.app-card,
button,
select,
[role="button"] {
  cursor: var(--cursor-pointer), pointer;
}

[title],
.help,
.info,
[data-tooltip],
[data-tippy-content] {
  cursor: var(--cursor-help), help !important;
}

[draggable="true"],
.draggable,
.grab-handle,
[style*="cursor: grab"],
[style*="cursor: move"] {
  cursor: var(--cursor-grab), grab !important;
}

[draggable="true"]:active,
.draggable:active,
.grab-handle:active,
[style*="cursor: grabbing"] {
  cursor: var(--cursor-grabbing), grabbing !important;
}

.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
  position: relative;
  z-index: 1;
}

.section {
  padding: var(--spacing-xl) 0;
}

.main-content {
  padding-top: 100px;
  flex: 1;
  /* Space for navbar */
}

body.navbar-hidden .main-content {
  padding-top: 0 !important;
  transition: padding-top 0.3s ease;
}

body.navbar-hidden .footer {
  display: none !important;
}

/* App Container - Standard layout for all apps */
.app-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--spacing-xl) var(--spacing-md);
  min-height: calc(100vh - 300px);
}

/* App Header - Terminal style header for all apps */
.app-header {
  border-bottom: 2px solid var(--neon-red);
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: var(--spacing-md);
}

.app-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 5px;
  color: var(--neon-red);
  text-shadow: 0 0 10px var(--neon-red-glow);
  margin-bottom: var(--spacing-xs);
  font-weight: 900;
}

.terminal-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  opacity: 0.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.system-status {
  display: inline-block;
  padding: 2px 8px;
  background: var(--neon-red-dim);
  color: #000;
  font-weight: bold;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.dashboard-meta {
  text-align: right;
}

.meta-label {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

#clock-display {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--neon-red);
  text-shadow: 0 0 5px var(--neon-red-glow);
}

/* Section Cards - Base styling for content sections */
.section-card {
  margin-bottom: var(--spacing-2xl);
}

.section-card__header {
  margin-bottom: var(--spacing-lg);
  border-left: 4px solid var(--neon-red);
  padding-left: var(--spacing-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.section-card__title {
  font-family: var(--font-mono);
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--neon-red);
  text-transform: uppercase;
}

/* Responsive app header */
@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .app-title {
    font-size: 2rem;
  }

  .dashboard-meta {
    text-align: left;
  }
}

/* ============================================
   Navbar
   ============================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-navbar);
  background: var(--bg-primary);
  border-bottom: 2px solid var(--neon-red);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.9);
  /* Scanline texture overlay */
  background-image: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

/* Utilities needed for JS injections */
.flex {
  display: flex;
}

.flex-center {
  align-items: center;
}

.gap-md {
  gap: var(--spacing-md);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.navbar__username {
  font-family: var(--font-mono);
  color: var(--neon-red);
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
}

.navbar__credits {
  font-family: var(--font-mono);
  color: var(--neon-red);
  text-shadow: 0 0 5px var(--neon-red-glow);
  margin-right: var(--spacing-md);
  font-size: 0.8rem;
  letter-spacing: 1px;
  border: 1px dashed var(--neon-red-dim);
  padding: 4px 8px;
  background: rgba(0, 0, 0, 0.6);
}

.navbar__logout-form {
  margin: 0;
}

.navbar__container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
  /* Slightly more compact */
  padding: 0 var(--spacing-md);
  max-width: 100%;
  margin: 0 auto;
}

.navbar__logo-icon {
  display: block;
  width: 180px;
  /* Approximate width */
  height: 50px;
  background-color: var(--neon-red);
  -webkit-mask-image: url('/media/exodus-red.svg');
  mask-image: url('/media/exodus-red.svg');
  -webkit-mask-size: contain;
  mask-size: contain;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center left;
  mask-position: center left;
  transition: background-color 0.3s;
}

.navbar__logo:hover .navbar__logo-icon {
  background-color: var(--neon-red-bright);
  filter: drop-shadow(0 0 5px var(--neon-red-glow));
}

.navbar__nav {
  display: flex;
  gap: var(--spacing-md);
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.navbar__link {
  color: var(--neon-red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 8px 16px;
  border: 1px solid var(--neon-red-dim);
  background: rgba(20, 10, 10, 0.5);
  transition: all 0.15s steps(2);
  /* Steppy animation for terminal feel */
  position: relative;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - 6px),
      calc(100% - 6px) 100%,
      0 100%);
}

.navbar__link:hover,
.navbar__link--active {
  color: #000;
  /* Inverted text */
  background: var(--neon-red);
  border-color: var(--neon-red);
  text-shadow: none;
  box-shadow: 0 0 15px var(--neon-red-glow);
}

/* Add a pseudo-element for a 'decoration' on hover if desired, but inverted block is strong enough */

/* ============================================
   Components: Buttons
   ============================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 12px 24px;
  border: 2px solid var(--neon-red);
  background: rgba(255, 42, 74, 0.1);
  color: var(--neon-red);
  cursor: var(--cursor-pointer), pointer;
  transition: all 0.2s;
  box-shadow: 0 0 10px rgba(255, 42, 74, 0.2);
}

.btn:hover {
  background: var(--neon-red);
  color: var(--bg-primary);
  box-shadow: 0 0 25px var(--neon-red-glow), inset 0 0 10px var(--neon-red-dim);
  text-shadow: 0 0 2px var(--bg-primary);
  /* Contrast against hot bg */
}

.btn--primary {
  background: var(--neon-red);
  color: var(--bg-primary);
  box-shadow: 0 0 15px var(--neon-red-glow), inset 0 0 5px rgba(255, 42, 74, 0.2);
}

.btn--primary:hover {
  background: var(--neon-red-bright);
  box-shadow: 0 0 30px var(--neon-red-glow), 0 0 10px var(--neon-red);
}

.btn--ghost {
  background: transparent;
  border-color: var(--text-muted);
  color: var(--text-primary);
  box-shadow: none;
}

.btn--ghost:hover {
  border-color: var(--neon-red);
  color: var(--neon-red);
  background: rgba(255, 42, 74, 0.1);
  box-shadow: 0 0 15px var(--neon-red-glow), inset 0 0 5px var(--neon-red-dim);
  text-shadow: 0 0 5px var(--neon-red);
}

/* ============================================
   Components: Forms (Auth Pages)
   ============================================ */
.form-group {
  margin-bottom: var(--spacing-md);
}

.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--neon-red);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: var(--spacing-xs);
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  font-family: var(--font-mono);
  font-size: 1rem;
  color: var(--text-primary);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--neon-red-dim);
  border-radius: var(--radius-md);
  outline: none;
  transition: all 0.2s ease;
  cursor: var(--cursor-text), text;
}

.form-input::placeholder {
  color: var(--text-muted);
  font-style: italic;
}

.form-input:hover {
  border-color: var(--neon-red);
  background: rgba(0, 0, 0, 0.7);
}

.form-input:focus {
  border-color: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red-glow), inset 0 0 5px rgba(255, 42, 74, 0.1);
  background: rgba(0, 0, 0, 0.8);
}

/* ============================================
   Components: Cards (Dashboard)
   ============================================ */
.app-card {
  display: block;
  background: rgba(12, 6, 10, 0.8);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s;
  overflow: hidden;
  position: relative;
}

.app-card:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 20px var(--neon-red-glow), 0 0 40px rgba(255, 42, 74, 0.1);
  /* Neon glow on hover */
  transform: translateY(-5px);
  z-index: 10;
}

.app-card__image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  filter: grayscale(80%) contrast(1.2);
  transition: all 0.5s;
  border-bottom: 1px solid var(--color-border);
}

.app-card:hover .app-card__image {
  filter: grayscale(0%) contrast(1.1) sepia(20%) hue-rotate(-30deg);
  /* Slight red tint shift */
}

.app-card__content {
  padding: var(--spacing-md);
}

.app-card__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin-bottom: 0.5rem;
  transition: color 0.2s;
}

.app-card:hover .app-card__title {
  color: var(--neon-red);
  text-shadow: 0 0 5px var(--neon-red);
}

.app-card__description {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
  text-align: center;
  padding: var(--spacing-lg);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  border-top: 1px solid var(--color-border);
  background: var(--bg-secondary);
  position: relative;
  z-index: 1;
}

/* ============================================
   Responsive Design for Laptops (1280px - 1440px)
   ============================================ */
@media (max-width: 1440px) {
  html {
    font-size: 14px;
    /* Scales down all rem-based sizes */
  }

  .container {
    max-width: 1000px;
  }

  /* Prevent navbar overlapping */
  .navbar__nav {
    gap: var(--spacing-sm);
    /* Reduce gap from md to sm */
  }

  .navbar__link {
    padding: 6px 10px;
    /* Compact padding */
    font-size: 0.85rem;
  }

  .section {
    padding: var(--spacing-lg) 0;
  }

  /* Compact headers for smaller vertical space */
  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  /* Adjust unexpected layout shifts if necessary */
  .real-terminal-container {
    top: 100px;
    max-height: calc(100vh - 180px);
  }
}

/* ============================================
   Utility / Stats Cards
   ============================================ */
.stat-card {
  background: rgba(20, 10, 16, 0.8);
  border: 1px solid var(--neon-red-dim);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.stat-card__label {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-red);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.stat-card__value {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--text-primary);
  text-shadow: 0 0 5px rgba(255, 42, 74, 0.3);
}

/* Hiding the old starfield if it exists physically */
.starfield {
  display: none !important;
}

/* ============================================
   Notifications
   ============================================ */
.hidden {
  display: none !important;
}

.notification-container {
  position: relative;
  display: inline-block;
  margin-right: var(--spacing-sm);
}

.notification-toggle {
  background: rgba(20, 10, 10, 0.5);
  border: 1px solid var(--neon-red-dim);
  color: var(--neon-red);
  cursor: var(--cursor-pointer), pointer;
  padding: 4px 12px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s steps(2);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 1px;
  min-height: 32px;
  clip-path: polygon(0 0,
      100% 0,
      100% calc(100% - 4px),
      calc(100% - 4px) 100%,
      0 100%);
}

.notification-toggle:hover {
  background: var(--neon-red);
  color: #000;
  border-color: var(--neon-red);
  text-shadow: none;
  box-shadow: 0 0 10px var(--neon-red-glow);
}

.notification-toggle svg {
  display: none;
}

.notification-count {
  margin-left: 6px;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: bold;
  display: inline-block;
}

.notification-dropdown {
  position: absolute;
  top: 100%;
  right: -20px;
  width: 350px;
  max-width: 90vw;
  background: var(--bg-primary);
  border: 1px solid var(--neon-red);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9), 0 0 10px rgba(255, 42, 74, 0.1);
  z-index: var(--z-dropdown);
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  animation: slide-in 0.2s ease-out;
  /* Terminal texture */
  background-image: linear-gradient(rgba(18, 16, 16, 0) 50%,
      rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
  background-size: 100% 2px, 3px 100%;
}

/* Triangle connector - styled as a solid block connector */
.notification-dropdown::before {
  content: '';
  position: absolute;
  top: -6px;
  right: 24px;
  width: 12px;
  height: 6px;
  background: var(--neon-red);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  border: none;
  transform: none;
}

@keyframes slide-in {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

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

.notification-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 2px solid var(--neon-red);
  background: var(--neon-red);
  /* Solid red for black text contrast */
}

.notification-header__title {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #000;
  /* Black text */
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 700;
}

.notification-header__clear {
  background: transparent;
  border: 1px solid #000;
  /* Black border */
  color: #000;
  /* Black text */
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 2px 6px;
  cursor: var(--cursor-pointer), pointer;
  transition: all 0.15s steps(2);
  text-transform: uppercase;
  font-weight: 700;
}

.notification-header__clear:hover {
  background: #000;
  color: var(--neon-red);
  border-color: #000;
}

.notification-list {
  list-style: none;
  max-height: 400px;
  overflow-y: auto;
  padding: 4px;
  margin: 0;
}

/* Custom Scrollbar for the list */
.notification-list::-webkit-scrollbar {
  width: 4px;
}

.notification-list::-webkit-scrollbar-track {
  background: #000;
}

.notification-list::-webkit-scrollbar-thumb {
  background: var(--neon-red);
}

.notification-item {
  display: flex;
  align-items: flex-start;
  padding: 10px;
  border-bottom: 1px solid var(--neon-red-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3);
  margin-bottom: 2px;
  transition: all 0.15s;
}

.notification-item:hover {
  background: rgba(255, 42, 74, 0.15);
  border-left: 2px solid var(--neon-red);
  padding-left: 8px;
  /* Offset for border */
}

.notification-item:last-child {
  border-bottom: none;
}

/* ============================================
   Standardized Header Styles
   ============================================ */
.app-header {
  border-bottom: 2px solid var(--neon-red);
  margin-bottom: var(--spacing-2xl);
  padding-bottom: var(--spacing-sm);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.app-title {
  font-family: var(--font-display);
  font-size: 3rem;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 5px;
  text-shadow: 0 0 10px var(--neon-red-glow);
  margin-bottom: var(--spacing-xs);
  color: var(--neon-red);
}

.dashboard-meta {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  opacity: 0.8;
  text-align: right;
  color: var(--neon-red);
}

.terminal-subtitle {
  font-family: var(--font-mono);
  font-size: 1rem;
  opacity: 0.8;
  color: var(--text-secondary);
  margin-bottom: var(--spacing-sm);
}

.system-status {
  display: inline-block;
  padding: 2px 8px;
  background: var(--neon-red-dim);
  color: #000;
  font-weight: bold;
  font-family: var(--font-mono);
  font-size: 0.9rem;
}

.meta-label {
  margin-bottom: 5px;
}

@media (max-width: 768px) {
  .app-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-md);
  }

  .dashboard-meta {
    text-align: left;
  }
}

.notification-item:hover {
  background: rgba(255, 42, 74, 0.05);
}

.notification-item__content {
  flex: 1;
}

.notification-item__message {
  color: var(--text-primary);
  margin-bottom: 4px;
}

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

.notification-item__dismiss {
  background: transparent;
  border: none;
  color: var(--text-secondary);
  cursor: var(--cursor-pointer), pointer;
  padding: 4px;
  margin-left: 8px;
  opacity: 0.5;
  transition: all 0.2s;
}

.notification-item__dismiss:hover {
  opacity: 1;
  color: var(--neon-red);
}

.notification-item__dismiss svg {
  width: 16px;
  height: 16px;
}

.notification-empty {
  padding: var(--spacing-lg);
  text-align: center;
  color: var(--text-muted);
}

.notification-empty svg {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-sm);
  opacity: 0.5;
}

.notification-empty p {
  font-family: var(--font-mono);
}

/* ============================================
   Welcome Page Specific Styles
   ============================================ */

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 var(--spacing-md);
  margin-top: -80px;
  /* Offset fixed navbar */
}

.hero__content {
  max-width: 800px;
  position: relative;
  z-index: 2;
}

.hero__title {
  font-size: 4rem;
  margin-bottom: var(--spacing-md);
  letter-spacing: 0.1em;
  text-shadow: 0 0 20px var(--neon-red-glow);
  animation: glitch-text-anim 3s infinite linear alternate-reverse;
}

.hero__subtitle {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-xl);
  line-height: 1.8;
  text-shadow: 0 0 5px rgba(0, 0, 0, 0.8);
}

.hero__subtitle strong {
  color: var(--neon-red);
  font-weight: bold;
}

.hero__actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Partners / Coverflow */
.partners {
  padding: var(--spacing-xl) 0;
  text-align: center;
  background: transparent;
  overflow: hidden;
}

.partners__title {
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: var(--spacing-lg);
  font-size: 0.9rem;
}

.partners__track-wrapper {
  perspective: 1000px;
  height: 200px;
  position: relative;
  width: 100%;
}

.partners__track {
  position: relative;
  height: 100%;
  width: 100%;
  transform-style: preserve-3d;
  display: flex;
  justify-content: center;
  align-items: center;
}

.partners__item {
  position: absolute;
  width: 120px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  box-shadow: none;
  transition: all 0.5s ease;
  left: 50%;
  top: 50%;
  margin-left: -60px;
  /* Half width */
  margin-top: -40px;
  /* Half height */
}

.partners__item svg {
  max-width: 80%;
  max-height: 80%;
  fill: var(--neon-red);
  filter: drop-shadow(0 0 5px var(--neon-red-glow));
}

/* Sections Common */
.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.section-tag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--neon-red);
  border: 1px solid var(--neon-red-dim);
  padding: 4px 8px;
  margin-bottom: var(--spacing-sm);
  background: rgba(255, 42, 74, 0.05);
}

.section-title {
  font-size: 3rem;
  margin-bottom: var(--spacing-md);
  color: var(--neon-red);
}

.section-subtitle {
  font-family: var(--font-mono);
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Features / Ranks Grid */
.ranks-section,
.perks-section,
.faq-section {
  padding: var(--spacing-3xl) 0;
  position: relative;
}

.ranks-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-red-dim), transparent);
}

.ranks-grid,
.perks-grid,
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.rank-card,
.perk-card,
.faq-item,
.team-card {
  background: rgba(8, 4, 8, 0.6);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  /* Center align for ranks */
  text-align: center;
}

.perk-card {
  align-items: flex-start;
  /* Left align for perks */
  text-align: left;
}

.rank-card:hover,
.perk-card:hover,
.faq-item:hover,
.team-card:hover {
  transform: translateY(-5px);
  border-color: var(--neon-red);
  box-shadow: 0 10px 30px -10px var(--neon-red-glow);
  background: rgba(12, 6, 10, 0.9);
}

.rank-card::before,
.perk-card::before,
.faq-item::before,
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--neon-red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.rank-card:hover::before,
.perk-card:hover::before,
.faq-item:hover::before,
.team-card:hover::before {
  transform: scaleX(1);
}

.rank-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 0 2px var(--neon-red));
}

.rank-icon img,
.rank-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rank-card h4,
.perk-card h3,
.faq-item h3,
.team-card h4 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--neon-red);
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.rank-card p,
.faq-item p,
.team-card p {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
}

/* Specific Badge */
.trial-badge {
  margin-top: auto;
  /* Push to bottom */
  display: inline-block;
  background: var(--neon-red);
  color: var(--bg-primary);
  font-family: var(--font-mono);
  font-weight: bold;
  font-size: 0.7rem;
  padding: 4px 8px;
  border-radius: 2px;
  cursor: help;
  position: relative;
  top: var(--spacing-md);
}

.trial-badge:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 120%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(10, 5, 10, 0.95);
  border: 1px solid var(--neon-red);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 0.75rem;
  white-space: pre-wrap;
  width: max-content;
  max-width: 250px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5), 0 0 10px var(--neon-red-glow);
  z-index: 100;
  line-height: 1.4;
  text-align: center;
  pointer-events: none;
}

.trial-badge:hover::before {
  content: '';
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: var(--neon-red) transparent transparent transparent;
  z-index: 100;
}

/* Perk Lists */
.perk-card h5 {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  text-transform: uppercase;
  margin-bottom: var(--spacing-sm);
  font-weight: 500;
}

.perk-list {
  list-style: none;
  padding: 0;
}

.perk-list li {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-primary);
  margin-bottom: 8px;
  padding-left: 20px;
  position: relative;
}

.perk-list li::before {
  content: '>';
  position: absolute;
  left: 0;
  color: var(--neon-red);
  font-family: var(--font-mono);
}

@media (max-width: 768px) {
  .hero__title {
    font-size: 2.5rem;
  }

  .partners__item {
    width: 80px;
    height: 60px;
    margin-left: -40px;
    margin-top: -30px;
  }

  .ranks-grid,
  .perks-grid,
  .faq-grid,
  .team-grid {
    grid-template-columns: 1fr;
  }
}

/* FAQ Grid Specifics */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.faq-item {
  display: flex;
  flex-direction: column;
}

/* Team Section Specifics */
.team-grid {
  justify-items: center;
}

.team-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--spacing-xl);
}

.team-image {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  margin-bottom: var(--spacing-md);
  border: 4px solid var(--bg-secondary);
  box-shadow: 0 0 0 2px var(--neon-red), 0 0 20px var(--neon-red-glow);
  transition: all 0.3s ease;
}

.team-card:hover .team-image {
  transform: scale(1.05);
  box-shadow: 0 0 0 2px var(--neon-red), 0 0 30px var(--neon-red-glow);
}

.team-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-info {
  text-align: center;
}

.team-info h4 {
  margin-bottom: 5px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.team-info p {
  color: var(--text-muted);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* Contact Section */
.contact-section {
  padding: var(--spacing-3xl) 0;
  border-top: 1px solid var(--color-border);
  background: linear-gradient(to bottom, transparent, rgba(8, 4, 8, 0.8));
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-2xl);
  align-items: center;
}

.contact-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-title {
  font-size: 3rem;
  margin: var(--spacing-md) 0;
}

.contact-info .btn--primary {
  margin-bottom: var(--spacing-xl);
  font-size: 1.2rem;
  padding: 1rem 2rem;
}

.contact-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  width: 100%;
}

.contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-md);
}

.contact-icon {
  font-size: 1.5rem;
  color: var(--neon-red);
  background: rgba(255, 42, 74, 0.1);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--neon-red-dim);
}

.contact-item h5 {
  font-family: var(--font-mono);
  font-size: 1.1rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 500;
  color: var(--neon-red);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.contact-item p,
.contact-item a {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.contact-item a:hover {
  color: var(--neon-red);
}

.contact-widget {
  display: flex;
  justify-content: center;
}

.contact-widget iframe {
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--color-border);
}

@media (max-width: 900px) {
  .contact-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .contact-info {
    align-items: center;
  }

  .contact-details {
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    text-align: left;
    max-width: 400px;
  }
}

/* Back to Top Button */
.back-to-top {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 99;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(12, 6, 10, 0.8);
  border: 1px solid var(--neon-red);
  color: var(--neon-red);
  font-size: 1.2rem;
  border-radius: var(--radius-md);
  cursor: var(--cursor-pointer), pointer;
  transition: all 0.3s ease;
  /* Always visible for now since JS toggle might be missing */
  opacity: 0.8;
  visibility: visible;
  box-shadow: 0 0 10px var(--color-accent-shadow);
}

.back-to-top:hover {
  background: var(--neon-red);
  color: var(--bg-primary);
  box-shadow: 0 0 20px var(--neon-red-glow);
  opacity: 1;
}

/* ============================================
   Final UI Polish (User Feedback)
   ============================================ */

/* 1. Team Card Spacing */
.team-card {
  margin-bottom: var(--spacing-lg);
}

/* 2. Discord Button Icon Spacing */
.btn--primary svg,
.btn--ghost svg {
  margin-right: 8px;
  /* Add space between icon and text */
}

@media (min-width: 900px) {
  #navbarToggler {
    display: none !important;
  }
}

/* ============================================
   Mobile / Responsive Overrides
   ============================================ */
@media (max-width: 900px) {

  /* --- Navbar --- */
  #navbarToggler {
    display: block !important;
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1001;
    background: transparent;
    border: none;
    cursor: var(--cursor-pointer), pointer;
    width: 30px;
    height: 24px;
    padding: 0;
  }

  .navbar__toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--neon-red);
    margin-bottom: 6px;
    transition: all 0.3s ease;
    box-shadow: 0 0 5px var(--neon-red-glow);
  }

  .navbar__toggle span:last-child {
    margin-bottom: 0;
  }

  /* Hamburger to X animation */
  .navbarTogglerActive span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 6px);
  }

  .navbarTogglerActive span:nth-child(2) {
    opacity: 0;
  }

  .navbarTogglerActive span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -6px);
  }

  /* Mobile Menu Container */
  .navbar__nav {
    position: fixed;
    top: 80px;
    left: 0;
    width: 100%;
    background: rgba(8, 4, 8, 0.95);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-lg) 0;
    border-bottom: 2px solid var(--neon-red);
    /* Basic Visibility Transition */
    opacity: 0;
    visibility: hidden;
    transform: translateY(-20px);
    transition: all 0.3s ease-in-out;
    pointer-events: none;
  }

  .navbar__nav--open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: all;
  }

  .navbar__link {
    font-size: 1.5rem;
    padding: var(--spacing-sm) 0;
    width: 100%;
    text-align: center;
  }

  /* Reorganize navbar container for mobile */
  .navbar__container {
    padding: 0 var(--spacing-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0;
    /* No gap - pack tightly */
  }

  /* Logo stays on the left */
  .navbar__logo {
    flex-shrink: 0;
    margin-right: 0;
  }

  .navbar__logo-icon {
    width: 40px;
    /* Smaller logo on mobile */
    height: 35px;
  }

  /* Username and credits next to logo - no gap */
  .navbar__username,
  .navbar__credits {
    font-size: 0.7rem;
    /* Slightly bigger now that we have space */
    margin: 0;
    padding: 3px 6px;
    white-space: nowrap;
    /* Prevent wrapping */
  }

  .navbar__credits {
    padding: 3px 6px;
    margin-right: 4px;
    /* Tiny gap between credits and username */
    margin-left: 0;
  }

  /* Actions (notification + logout) on the right */
  .navbar__actions {
    margin-right: 60px;
    /* Space for hamburger */
    gap: 4px;
    /* Minimal gap */
    flex-shrink: 0;
    margin-left: auto;
    /* Push to the right */
  }

  /* Compact notification button on mobile */
  .notification-container {
    margin-right: 0;
  }

  .notification-toggle {
    padding: 4px 10px;
    /* Slightly more padding now */
    font-size: 0.75rem;
    /* Slightly bigger */
    min-height: 28px;
  }

  /* --- Hide Terminal, Background Theme, and Media Player on Mobile --- */
  /* Terminal (from terminal.js) */
  .real-terminal-container,
  #terminal-input-line {
    display: none !important;
  }

  /* Background Theme (from background-theme.js) */
  .terminal-background,
  .crt-overlay,
  .scanlines {
    display: none !important;
  }

  /* Media Player (from media-player.js) */
  #exodus-media-player {
    display: none !important;
  }

  /* --- Cards & Grids --- */
  .ranks-grid,
  .perks-grid,
  .faq-grid,
  .team-grid {
    grid-template-columns: 1fr;
    padding: 0 var(--spacing-sm);
  }

  .faq-grid {
    /* Override the explicit repeat(4, 1fr) */
    grid-template-columns: 1fr !important;
  }

  .hero__title {
    font-size: 3rem;
  }

  .hero__subtitle {
    font-size: 1rem;
    padding: 0 var(--spacing-sm);
  }

  .contact-grid,
  .footer__row {
    grid-template-columns: 1fr;
    flex-direction: column;
    gap: var(--spacing-xl);
  }

  .contact-details {
    grid-template-columns: 1fr;
  }

  .contact-item {
    flex-direction: row;
    align-items: flex-start;
  }

  /* --- Notifications Mobile "Drawer" Style --- */
  .notification-container {
    position: static;
    /* Allow dropdown to be relative to screen/navbar if needed */
  }

  .notification-dropdown {
    position: fixed !important;
    top: 80px !important;
    left: 0 !important;
    right: auto !important;
    /* Reset right */
    width: 100vw !important;
    max-width: 100vw !important;
    margin: 0 !important;
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-bottom: 2px solid var(--neon-red);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
    z-index: 2000;

    transform: translateY(0);
    animation: mobile-slide-down 0.3s ease-out forwards;
  }

  .notification-dropdown::before {
    display: none;
    /* No triangle on mobile */
  }

  @keyframes mobile-slide-down {
    from {
      opacity: 0;
      transform: translateY(-100%);
      /* Slide from behind navbar */
    }

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

/* ============================================
   Global Terminal Maintenance Pages
   ============================================ */
.construction-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 60vh;
  padding: var(--spacing-md);
}

.terminal-box {
  border: 1px solid var(--neon-red-dim);
  background: rgba(10, 5, 10, 0.95);
  box-shadow: 0 0 30px rgba(255, 42, 74, 0.15);
  width: 100%;
  position: relative;
}

.terminal-header {
  background: var(--neon-red-dim);
  color: #000;
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-weight: bold;
  letter-spacing: 2px;
  font-size: 0.8rem;
}

.terminal-content {
  padding: var(--spacing-xl) var(--spacing-lg);
  font-family: var(--font-mono);
  border-top: 1px solid var(--neon-red);
}

.status-line {
  font-size: var(--font-size-2xl);
  color: var(--neon-red);
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
  text-shadow: 0 0 10px var(--neon-red-glow);
  letter-spacing: 1px;
}

.error-code {
  color: var(--text-secondary);
  margin-bottom: var(--spacing-lg);
  font-size: var(--font-size-sm);
  opacity: 0.7;
  letter-spacing: 0.05em;
}

.terminal-text {
  font-size: var(--font-size-lg);
}

.terminal-text p {
  color: var(--text-primary);
  margin-bottom: var(--spacing-xs);
  line-height: 1.6;
}

.error-text {
  color: var(--neon-red);
  text-shadow: 0 0 5px var(--neon-red-glow);
  font-weight: bold;
}

.indented {
  margin-left: var(--spacing-lg);
  color: var(--text-secondary) !important;
  border-left: 2px solid var(--neon-red-dim);
  padding-left: var(--spacing-sm);
}

.terminal-footer {
  padding: var(--spacing-lg);
  border-top: 1px dashed var(--neon-red-dim);
  text-align: center;
  background: rgba(255, 42, 74, 0.02);
}

.terminal-btn {
  min-width: 250px;
}

.blink {
  animation: blink-animation 1s steps(2, start) infinite;
}

@keyframes blink-animation {
  to {
    opacity: 0;
  }
}

/* ============================================
   HOMEPAGE REDESIGN - Bento Grid Layout
   ============================================ */

/* ============================================
   Scroll Animation Utilities
   ============================================ */

/* Basic reveal animation */
.scroll-reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger children animations */
.stagger-reveal>* {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-reveal.revealed>* {
  opacity: 1;
  transform: translateY(0);
}

/* Text decrypt effect */
.text-decrypt,
.scroll-decrypt {
  font-family: var(--font-display);
  letter-spacing: 0.1em;
}

.scroll-decrypt.decrypted,
.text-decrypt.decrypted {
  text-shadow: 0 0 20px var(--neon-red-glow);
}

/* Typewriter cursor */
.typewriter-text {
  display: inline;
}

/* ============================================
   Sticky Section System
   ============================================ */
.sticky-section {
  position: relative;
}

.sticky-section__inner {
  position: sticky;
  top: 80px;
  /* Below navbar */
  height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.sticky-section__scroller {
  /* This determines how long the section stays pinned */
  min-height: 200vh;
}

/* ============================================
   HQ Hero Section (Immersive Sticky)
   ============================================ */
.hq-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-primary);
}

.hq-hero__scroller {
  min-height: 180vh;
  display: flex;
  align-items: flex-start;
  padding-top: 100vh;
}

.hq-hero__media {
  position: absolute;
  top: 100px;
  left: 40px;
  right: 40px;
  bottom: 40px;
  width: auto;
  height: auto;
  z-index: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: rgba(12, 6, 10, 0.8);
}

.hq-hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(8, 4, 8, 0.3) 0%,
      rgba(8, 4, 8, 0.5) 50%,
      rgba(8, 4, 8, 0.85) 100%);
  pointer-events: none;
}

.hq-hero__media video,
.hq-hero__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.8) contrast(1.1);
}

.hq-hero__content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 900px;
  padding: 0 var(--spacing-lg);
}

.hq-hero__title {
  font-size: clamp(2.5rem, 8vw, 5rem);
  line-height: 1.1;
  margin-bottom: var(--spacing-lg);
  color: var(--neon-red);
  text-shadow: 0 0 30px var(--neon-red-glow),
    0 0 60px rgba(255, 42, 74, 0.3);
}

.hq-hero__subtitle {
  font-family: var(--font-mono);
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: var(--spacing-xl);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hq-hero__subtitle strong {
  color: var(--neon-red);
}

.hq-hero__actions {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
}

/* Scroll indicator */
.hq-hero__scroll-hint {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  opacity: 0.6;
  animation: scroll-hint-pulse 2s ease-in-out infinite;
}

.hq-hero__scroll-hint span {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-muted);
}

.hq-hero__scroll-hint::after {
  content: '';
  width: 20px;
  height: 30px;
  border: 2px solid var(--neon-red-dim);
  border-radius: 10px;
  position: relative;
}

.hq-hero__scroll-hint::before {
  content: '';
  width: 4px;
  height: 8px;
  background: var(--neon-red);
  border-radius: 2px;
  position: absolute;
  bottom: 18px;
  animation: scroll-dot 1.5s ease-in-out infinite;
}

@keyframes scroll-hint-pulse {

  0%,
  100% {
    opacity: 0.6;
  }

  50% {
    opacity: 0.3;
  }
}

@keyframes scroll-dot {

  0%,
  100% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(10px);
    opacity: 0.3;
  }
}

/* ============================================
   Sticky Video Section
   ============================================ */
.hq-video-section {
  position: relative;
  z-index: 5;
  background: var(--bg-primary);
}

/* The scroller creates the "extra scroll" height */
.hq-video-section__scroller {
  /* Total scroll distance - video stays pinned for this entire height */
  height: 150vh;
  position: relative;
}

/* The sticky container pins the video */
.hq-video-section__sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #000;
}

.hq-video-section__sticky video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Gradient overlays for smooth transitions */
.hq-video-section__sticky::before,
.hq-video-section__sticky::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 100px;
  pointer-events: none;
  z-index: 2;
}

.hq-video-section__sticky::before {
  top: 0;
  background: linear-gradient(to bottom, var(--bg-primary), transparent);
}

.hq-video-section__sticky::after {
  bottom: 0;
  background: linear-gradient(to top, var(--bg-primary), transparent);
}

/* ============================================
   Partners Strip (DEPRECATED - kept for reference)
   ============================================ */
.hq-partners-strip {
  position: relative;
  z-index: 5;
  padding: var(--spacing-xl) 0;
  background: linear-gradient(to bottom,
      rgba(8, 4, 8, 0.95),
      var(--bg-primary));
  border-top: 1px solid var(--neon-red-dim);
  border-bottom: 1px solid var(--neon-red-dim);
  overflow: hidden;
}

.hq-partners-strip__label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3em;
  color: var(--text-muted);
  margin-bottom: var(--spacing-md);
}

.hq-partners-strip__track {
  display: flex;
  gap: var(--spacing-2xl);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  padding: 0 var(--spacing-lg);
}

.hq-partners-strip__item {
  width: 100px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.5;
  transition: opacity 0.3s, transform 0.3s;
  filter: grayscale(100%);
}

.hq-partners-strip__item:hover {
  opacity: 1;
  transform: scale(1.1);
  filter: grayscale(0%) drop-shadow(0 0 10px var(--neon-red-glow));
}

.hq-partners-strip__item svg,
.hq-partners-strip__item img {
  max-width: 100%;
  max-height: 100%;
  fill: var(--neon-red);
}

/* Partner text labels */
.partner-text {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.3s, text-shadow 0.3s;
}

.hq-partners-strip__item:hover .partner-text {
  color: var(--neon-red);
  text-shadow: 0 0 15px var(--neon-red-glow);
}

/* ============================================
   HQ Dashboard (Bento Grid)
   ============================================ */
.hq-dashboard {
  position: relative;
  z-index: 5;
  padding: var(--spacing-3xl) 0;
  background: var(--bg-primary);
}

.hq-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: var(--spacing-xl);
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.hq-grid__left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

/* Make right column stretch to match left column height */
.hq-grid__right {
  display: flex;
  position: relative;
}

.hq-grid__right .cmd-tile {
  flex: 1;
}

/* ============================================
   Command Module Tiles
   ============================================ */
.cmd-tile {
  background: rgba(12, 6, 10, 0.8);
  border: 1px solid var(--color-border);
  padding: var(--spacing-xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.cmd-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--neon-red), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.cmd-tile:hover {
  border-color: var(--neon-red);
  box-shadow: 0 0 30px rgba(255, 42, 74, 0.1);
}

.cmd-tile:hover::before {
  opacity: 1;
}

.cmd-tile__header {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-sm);
  border-bottom: 1px solid var(--color-border);
}

.cmd-tile__tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--neon-red);
  background: rgba(255, 42, 74, 0.1);
  padding: 4px 8px;
  border: 1px solid var(--neon-red-dim);
}

.cmd-tile__title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

.cmd-tile__content {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* Mission Tile */
.cmd-tile--mission .cmd-tile__content p {
  margin-bottom: var(--spacing-md);
}

.cmd-tile--mission .cmd-tile__content strong {
  color: var(--neon-red);
}

/* ============================================
   Perks Icons Row
   ============================================ */
.cmd-tile--perks {
  padding: var(--spacing-lg);
}

.perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.perk-icon-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--spacing-md);
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid transparent;
  transition: all 0.3s;
  cursor: default;
}

.perk-icon-item:hover {
  border-color: var(--neon-red-dim);
  background: rgba(255, 42, 74, 0.05);
}

.perk-icon-item__icon {
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--neon-red);
  margin-bottom: var(--spacing-sm);
  text-shadow: 0 0 10px var(--neon-red-glow);
}

.perk-icon-item__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
}

.perk-icon-item__tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: rgba(10, 5, 10, 0.95);
  border: 1px solid var(--neon-red);
  padding: var(--spacing-sm) var(--spacing-md);
  font-size: 0.8rem;
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.2s;
  z-index: 100;
}

.perk-icon-item:hover .perk-icon-item__tooltip {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

/* ============================================
   Rank Timeline (Vertical Progress)
   ============================================ */
.cmd-tile--timeline {
  padding: var(--spacing-lg) var(--spacing-xl);
}

.rank-timeline {
  position: relative;
  padding-left: 40px;
}

/* Vertical line */
.rank-timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--color-border);
}

/* Progress fill */
.rank-timeline::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  width: 2px;
  height: calc(var(--scroll-progress, 0) * 100%);
  background: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red-glow);
  transition: height 0.1s linear;
}

.timeline-node {
  position: relative;
  padding: var(--spacing-md) 0;
  padding-left: var(--spacing-lg);
  opacity: 1;
  transition: opacity 0.3s;
}

.timeline-node.active {
  opacity: 1;
}

/* Node dot */
.timeline-node::before {
  content: '';
  position: absolute;
  left: -32px;
  top: 50%;
  transform: translateY(-50%);
  width: 12px;
  height: 12px;
  background: var(--bg-primary);
  border: 2px solid var(--color-border);
  border-radius: 50%;
  transition: all 0.3s;
  z-index: 2;
}

.timeline-node.active::before {
  border-color: var(--neon-red);
  background: var(--neon-red);
  box-shadow: 0 0 10px var(--neon-red-glow);
}

.timeline-node__rank {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--neon-red);
  margin-bottom: 4px;
}

.timeline-node__desc {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.timeline-node .trial-badge {
  margin-left: var(--spacing-sm);
  font-size: 0.6rem;
  padding: 2px 6px;
  vertical-align: middle;
}

/* ============================================
   FAQ Accordion
   ============================================ */
.hq-faq {
  position: relative;
  z-index: 5;
  padding: var(--spacing-3xl) 0;
  background: var(--bg-primary);
}

.hq-faq__container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.hq-faq__header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.faq-accordion-item {
  background: rgba(12, 6, 10, 0.6);
  border: 1px solid var(--color-border);
  transition: all 0.3s;
}

.faq-accordion-item[open] {
  border-color: var(--neon-red);
}

.faq-accordion-item summary {
  padding: var(--spacing-md) var(--spacing-lg);
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--neon-red);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}

.faq-accordion-item summary::-webkit-details-marker {
  display: none;
}

.faq-accordion-item summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.5rem;
  color: var(--neon-red);
  transition: transform 0.3s;
}

.faq-accordion-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-accordion-item summary:hover {
  background: rgba(255, 42, 74, 0.05);
}

.faq-accordion-item__content {
  padding: var(--spacing-md) var(--spacing-lg) var(--spacing-lg);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
  border-top: 1px solid var(--color-border);
  margin-top: var(--spacing-sm);
}

/* ============================================
   Transmission Section (Contact)
   ============================================ */
.hq-transmission {
  position: relative;
  z-index: 5;
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(to bottom,
      var(--bg-primary),
      rgba(26, 13, 16, 0.8));
  border-top: 1px solid var(--color-border);
}

.hq-transmission__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-lg);
}

.hq-transmission__header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
}

.transmission-grid {
  display: grid;
  grid-template-columns: 1fr 400px;
  gap: var(--spacing-2xl);
  align-items: start;
}

.transmission-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xl);
}

.transmission-cta {
  margin-bottom: var(--spacing-lg);
}

.transmission-cta .btn {
  font-size: 1.1rem;
  padding: var(--spacing-md) var(--spacing-xl);
}

.transmission-details {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
}

.transmission-item {
  display: flex;
  gap: var(--spacing-md);
}

.transmission-item__icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 42, 74, 0.1);
  border: 1px solid var(--neon-red-dim);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.transmission-item__content h5 {
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--neon-red);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.transmission-item__content p,
.transmission-item__content a {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.transmission-item__content a:hover {
  color: var(--neon-red);
}

/* Team Avatars (inline in transmission) */
.transmission-team {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  padding-top: var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.transmission-team__title {
  width: 100%;
  font-family: var(--font-display);
  font-size: 1rem;
  color: var(--neon-red);
  margin-bottom: var(--spacing-sm);
}

.team-avatar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-xs);
}

.team-avatar__image {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--color-border);
  transition: all 0.3s;
}

.team-avatar:hover .team-avatar__image {
  border-color: var(--neon-red);
  box-shadow: 0 0 15px var(--neon-red-glow);
}

.team-avatar__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.team-avatar__name {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

/* Discord Widget */
.transmission-widget iframe {
  border: 1px solid var(--color-border);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
}

/* ============================================
   Responsive - Homepage Redesign
   ============================================ */
@media (max-width: 1024px) {
  .hq-grid {
    grid-template-columns: 1fr;
  }

  .hq-grid__right {
    order: -1;
    /* Timeline first on tablet */
  }

  .cmd-tile--timeline {
    max-height: none;
  }

  /* Disable sticky on smaller screens */
  .sticky-section__inner {
    position: relative;
    top: 0;
    height: auto;
  }

  .sticky-section__scroller {
    min-height: auto;
  }
}

@media (max-width: 900px) {

  /* Hero simplification */
  .hq-hero__media {
    position: absolute;
  }

  .hq-hero__content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    padding: 120px var(--spacing-md) var(--spacing-2xl);
  }

  .hq-hero__scroll-hint {
    display: none;
  }

  /* Partners grid instead of strip */
  .hq-partners-strip__track {
    gap: var(--spacing-lg);
  }

  .hq-partners-strip__item {
    width: 80px;
    height: 50px;
  }

  /* Perks 2 columns */
  .perks-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Transmission stack */
  .transmission-grid {
    grid-template-columns: 1fr;
  }

  .transmission-details {
    grid-template-columns: 1fr;
  }

  .transmission-widget {
    display: flex;
    justify-content: center;
  }

  .transmission-widget iframe {
    width: 100%;
    max-width: 350px;
  }
}

@media (max-width: 480px) {
  .hq-hero__title {
    font-size: 2rem;
  }

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

  .transmission-team {
    flex-wrap: wrap;
    justify-content: center;
  }
}