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

:root {
  --bg-core: #06070a;
  --bg-surface: #0b0e15;
  --bg-surface-glow: rgba(11, 14, 21, 0.94);
  --neon-cyan: #00f3ff;
  --neon-gold: #ffb700;
  --neon-green: #00ff9d;
  --neon-red: #ff0055;
  --text-main: #e2e8f0;
  --text-muted: #64748b;
  --border-neon: rgba(0, 243, 255, 0.25);
  --font-hud: 'Orbitron', -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

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

html, body {
  width: 100%;
  overflow-x: hidden;
  background-color: var(--bg-core);
  color: var(--text-main);
  font-family: var(--font-mono);
  min-height: 100vh;
}

#cyber-mesh-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.85;
}

body::after {
  content: " ";
  display: block;
  position: fixed;
  top: 0; left: 0; bottom: 0; right: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.3) 50%);
  background-size: 100% 4px;
  z-index: 1;
  pointer-events: none;
  opacity: 0.4;
}

.hud-navbar,
.cyber-container,
.hud-footer,
.synapse-overlay,
.cyber-jukebox-rig {
  position: relative;
  z-index: 10;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--bg-core); }
::-webkit-scrollbar-thumb { background: var(--neon-cyan); box-shadow: 0 0 8px var(--neon-cyan); }

/* =====================================================================
   HUD NAVBAR
   ===================================================================== */
.hud-navbar {
  position: sticky;
  top: 0;
  background: var(--bg-surface-glow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-neon);
  box-shadow: 0 4px 25px rgba(0, 243, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: clamp(10px, 2vw, 15px) clamp(15px, 4vw, 40px);
  z-index: 1000;
}

.brand-wrapper { display: flex; align-items: center; gap: 12px; }
.brand-badge {
  font-family: var(--font-hud);
  font-weight: 900;
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  color: #fff;
  letter-spacing: 2px;
  text-decoration: none;
  text-shadow: 0 0 10px var(--neon-cyan);
  white-space: nowrap;
}
.brand-badge span { color: var(--neon-gold); }

.status-pill {
  font-size: 0.65rem;
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid var(--neon-green);
  color: var(--neon-green);
  padding: 3px 8px;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
}
.status-pill::before {
  content: '';
  width: 5px; height: 5px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--neon-green);
  animation: pulseDot 1.5s infinite;
}
@keyframes pulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

.hud-menu-wrapper { display: flex; align-items: center; }
.hud-menu {
  display: flex;
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  gap: 6px;
  align-items: center;
}
.hud-item { position: relative; }
.hud-link {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  color: var(--text-main) !important;
  text-decoration: none !important;
  padding: 8px 16px;
  height: 38px;
  background: rgba(0, 0, 0, 0.5) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  letter-spacing: 1px;
  transition: all 0.2s ease-in-out;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  white-space: nowrap;
}
.hud-link:hover, .hud-link.active {
  color: var(--neon-cyan) !important;
  background: rgba(0, 243, 255, 0.12) !important;
  border-color: var(--neon-cyan) !important;
  box-shadow: 0 0 12px rgba(0, 243, 255, 0.3) !important;
}

.hud-dropdown {
  display: none;
  position: absolute;
  top: 100%; left: 0;
  background: var(--bg-surface);
  border: 1px solid var(--border-neon);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.9);
  min-width: 230px;
  max-width: 320px;
  list-style: none !important;
  padding: 6px 0 !important;
  margin: 0 !important;
  z-index: 1001;
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}
.hud-dropdown.dropdown-align-right {
  left: auto !important; right: 0 !important;
  border-color: rgba(255, 183, 0, 0.4);
  clip-path: polygon(10px 0, 100% 0, 100% 100%, 0 100%, 0 10px);
}
.hud-item:hover .hud-dropdown {
  display: block;
  animation: fadeInDrop 0.2s ease-out forwards;
}
@keyframes fadeInDrop {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.hud-dropdown .hud-link {
  width: 100%;
  clip-path: none;
  padding: 10px 16px;
  border: none !important;
  border-left: 3px solid transparent !important;
}
.hud-dropdown .hud-link:hover {
  border-left-color: var(--neon-cyan) !important;
  background: rgba(0, 243, 255, 0.08) !important;
  color: var(--neon-cyan) !important;
}
.hud-dropdown.dropdown-align-right .hud-link:hover {
  border-left-color: var(--neon-gold) !important;
  background: rgba(255, 183, 0, 0.08) !important;
  color: var(--neon-gold) !important;
}

.hud-sfx-toggle {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--border-neon);
  color: var(--text-main);
  padding: 6px 12px;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 1px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.hud-sfx-toggle:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 0 10px rgba(0, 243, 255, 0.2);
  transform: translateY(-1px);
}
.sfx-indicator-dot {
  width: 6px; height: 6px;
  background: #334155;
  border-radius: 50%;
  transition: all 0.3s ease;
}
.sfx-indicator-dot.active {
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: radarPulse 1.5s infinite ease-in-out;
}

.hud-mobile-toggle {
  display: none;
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid var(--border-neon);
  color: var(--neon-cyan);
  padding: 8px 12px;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  letter-spacing: 1px;
  cursor: pointer;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

/* =====================================================================
   GLOBAL TACTICAL BUTTONS (SHARED ACROSS ALL MODULAR PAGES)
   ===================================================================== */
.btn-synapse-launch {
  background: rgba(0, 243, 255, 0.12);
  border: 2px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-hud);
  font-size: clamp(0.85rem, 1.6vw, 0.95rem);
  font-weight: 800;
  letter-spacing: 2px;
  padding: 13px 26px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
  box-shadow: 0 0 25px rgba(0, 243, 255, 0.25);
}
.btn-synapse-launch:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 35px var(--neon-cyan);
  transform: translateY(-2px);
}

.btn-hero-outline {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  padding: 13px 22px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn-hero-outline:hover {
  border-color: var(--neon-gold);
  color: var(--neon-gold) !important;
  background: rgba(255, 183, 0, 0.08);
}

.btn-deploy-terminal {
  background: var(--neon-cyan);
  color: #000;
  border: none;
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 2px;
  padding: 15px 32px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: all 0.25s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn-deploy-terminal:hover {
  box-shadow: 0 0 30px var(--neon-cyan);
  transform: translateY(-2px);
}

.btn-cyber {
  background: rgba(0, 243, 255, 0.12);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-hud);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 1.5px;
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.btn-cyber:hover {
  background: var(--neon-cyan);
  color: #000 !important;
  box-shadow: 0 0 20px var(--neon-cyan);
}

/* =====================================================================
   MAIN CONTAINER & TELEMETRY DECK
   ===================================================================== */
.cyber-container {
  width: 100%;
  max-width: 1320px;
  margin: clamp(15px, 3vw, 35px) auto;
  padding: 0 clamp(12px, 3vw, 25px);
}

.telemetry-deck {
  background: linear-gradient(180deg, rgba(14, 17, 24, 0.98) 0%, rgba(7, 8, 12, 0.99) 100%);
  border: 1px solid var(--border-neon);
  box-shadow: 0 0 30px rgba(0, 243, 255, 0.12), inset 0 0 15px rgba(0, 243, 255, 0.04);
  padding: clamp(14px, 2.5vw, 22px);
  margin-bottom: clamp(20px, 3.5vw, 35px);
  position: relative;
  clip-path: polygon(0 0, calc(100% - 15px) 0, 100% 15px, 100% 100%, 15px 100%, 0 calc(100% - 15px));
}

.telemetry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(0, 243, 255, 0.2);
  padding-bottom: 10px;
  margin-bottom: 15px;
  flex-wrap: wrap;
  gap: 8px;
}

.telemetry-tag {
  font-family: var(--font-hud);
  font-size: clamp(0.7rem, 1.8vw, 0.8rem);
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.telemetry-radar-dot {
  width: 8px; height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: radarPulse 1.2s infinite ease-in-out;
  flex-shrink: 0;
}

@keyframes radarPulse {
  0% { transform: scale(0.9); opacity: 0.4; }
  50% { transform: scale(1.3); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.4; }
}

.telemetry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(clamp(135px, 22vw, 210px), 1fr));
  gap: clamp(8px, 1.5vw, 14px);
  margin-bottom: 16px;
}

.stat-card {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--neon-cyan);
  padding: clamp(10px, 1.8vw, 14px);
  position: relative;
  transition: all 0.25s ease;
}
.stat-card:hover {
  border-color: var(--neon-cyan);
  box-shadow: 0 4px 15px rgba(0, 243, 255, 0.15);
  transform: translateY(-2px);
}
.stat-card.gold-node { border-left-color: var(--neon-gold); background: rgba(255, 183, 0, 0.02); }
.stat-card.green-node { border-left-color: var(--neon-green); }

.stat-label {
  font-size: clamp(0.58rem, 1.2vw, 0.65rem);
  font-family: var(--font-hud);
  color: var(--text-muted);
  letter-spacing: 1px;
  text-transform: uppercase;
}
.stat-digit {
  font-family: var(--font-hud);
  font-size: clamp(1.2rem, 2.5vw, 1.7rem);
  font-weight: 800;
  color: #fff;
  margin-top: 4px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  flex-wrap: wrap;
}
.stat-subtext {
  font-size: clamp(0.6rem, 1.2vw, 0.7rem);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: normal;
}

.subsystem-deck {
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 15px;
}
.subsystem-item { display: flex; align-items: center; gap: 12px; }
.subsystem-icon { font-size: 1.4rem; }
.subsystem-data { display: flex; flex-direction: column; }
.subsystem-title {
  font-size: 0.65rem;
  font-family: var(--font-hud);
  color: var(--text-muted);
  letter-spacing: 1.5px;
}
.subsystem-val {
  font-size: 0.95rem;
  font-family: var(--font-mono);
  font-weight: bold;
  color: #fff;
}

.chan-manifest {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 243, 255, 0.15);
  padding: clamp(10px, 2vw, 14px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.roster-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-height: 100px;
  overflow-y: auto;
}
.nick-pill {
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid rgba(0, 243, 255, 0.25);
  color: var(--neon-cyan);
  font-size: clamp(0.68rem, 1.4vw, 0.75rem);
  padding: 3px 8px;
  border-radius: 2px;
  letter-spacing: 0.5px;
}
.nick-pill.op {
  color: var(--neon-gold);
  border-color: rgba(255, 183, 0, 0.6);
  background: rgba(255, 183, 0, 0.1);
  font-weight: bold;
}
.nick-pill.voice {
  color: var(--neon-green);
  border-color: rgba(0, 255, 157, 0.4);
}

/* =====================================================================
   FOOTER MASTERPIECE RIG & TACTICAL TRIBUTE BADGES
   ===================================================================== */
.hud-footer {
  margin-top: 60px;
  background: linear-gradient(180deg, rgba(14, 17, 24, 0.98) 0%, #050608 100%);
  border-top: 1px solid var(--border-neon);
  box-shadow: 0 -15px 40px rgba(0, 0, 0, 0.85);
}
.footer-ticker {
  background: rgba(0, 243, 255, 0.03);
  border-bottom: 1px dashed rgba(0, 243, 255, 0.18);
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 2px;
  color: var(--neon-cyan);
  flex-wrap: wrap;
  gap: 10px;
}
.footer-container {
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(35px, 4vw, 55px) clamp(15px, 3vw, 25px);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: clamp(20px, 3vw, 35px);
  margin-bottom: 40px;
}
.footer-col-title {
  font-family: var(--font-hud);
  font-size: 0.85rem;
  color: #fff;
  letter-spacing: 1.5px;
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}
.footer-nav-list {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-nav-link {
  color: #94a3b8 !important;
  text-decoration: none !important;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}
.footer-nav-link:hover {
  color: var(--neon-cyan) !important;
  transform: translateX(5px);
  text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}
.pgp-terminal-box {
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 183, 0, 0.35);
  border-left: 3px solid var(--neon-gold);
  padding: 12px 14px;
  margin-top: 15px;
}
.pgp-title {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  color: var(--neon-gold);
  letter-spacing: 1.5px;
  margin-bottom: 6px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.pgp-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #cbd5e1;
  word-break: break-all;
  line-height: 1.4;
}
.btn-pgp-copy {
  background: transparent;
  border: none;
  color: var(--neon-gold);
  font-size: 0.65rem;
  font-family: var(--font-hud);
  cursor: pointer;
  text-decoration: underline;
}
.btn-pgp-copy:hover { color: #fff; }

.sec-badges-cluster { display: flex; flex-direction: column; gap: 8px; }
.sec-badge-item {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 9px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
}

.footer-bottom-bar {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.cyber-tribute-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.tribute-label {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  margin-right: 4px;
}
.btn-tribute {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 6px 12px;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 1px;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.25s ease;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.btn-tribute.kofi { color: var(--neon-gold) !important; border-color: rgba(255, 183, 0, 0.35); }
.btn-tribute.kofi:hover { background: rgba(255, 183, 0, 0.15); border-color: var(--neon-gold); box-shadow: 0 0 15px rgba(255, 183, 0, 0.35); transform: translateY(-2px); }

.btn-tribute.paypal { color: var(--neon-cyan) !important; border-color: rgba(0, 243, 255, 0.35); }
.btn-tribute.paypal:hover { background: rgba(0, 243, 255, 0.15); border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0, 243, 255, 0.35); transform: translateY(-2px); }

.btn-tribute.btc { color: var(--neon-gold) !important; border-color: rgba(255, 183, 0, 0.35); cursor: pointer; }
.btn-tribute.btc:hover { background: rgba(255, 183, 0, 0.15); border-color: var(--neon-gold); box-shadow: 0 0 15px rgba(255, 183, 0, 0.35); transform: translateY(-2px); }

.btn-tribute.eth { color: var(--neon-cyan) !important; border-color: rgba(0, 243, 255, 0.35); cursor: pointer; }
.btn-tribute.eth:hover { background: rgba(0, 243, 255, 0.15); border-color: var(--neon-cyan); box-shadow: 0 0 15px rgba(0, 243, 255, 0.35); transform: translateY(-2px); }

.btn-apex-jump {
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid var(--border-neon);
  color: var(--neon-cyan);
  padding: 8px 18px;
  font-family: var(--font-hud);
  font-size: 0.72rem;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: all 0.2s;
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}
.btn-apex-jump:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--neon-cyan);
  transform: translateY(-2px);
}

/* =====================================================================
   THUNDER_SYNAPSE // FULL PRODUCTION WEBIRC ENGINE [V-6.0]
   ===================================================================== */
.synapse-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(7, 8, 12, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: clamp(10px, 2vw, 25px);
}
.synapse-overlay.is-active {
  display: flex;
  animation: fadeInModal 0.25s ease-out forwards;
}
@keyframes fadeInModal {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.synapse-window {
  width: 100%;
  max-width: 1140px;
  height: 86vh;
  background: var(--bg-surface);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.3), inset 0 0 25px rgba(0, 243, 255, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 20px, 100% 100%, 20px 100%, 0 calc(100% - 20px));
  transition: all 0.3s ease;  
  position: relative;
}
.synapse-window.fullscreen {
  max-width: 100vw;
  height: 100vh;
  height: 100dvh;
  clip-path: none;
  border-radius: 0;
}

.synapse-titlebar {
  background: rgba(14, 18, 24, 0.98);
  border-bottom: 1px solid var(--border-neon);
  padding: 10px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.synapse-title {
  font-family: var(--font-hud);
  font-size: 0.8rem;
  color: #fff;
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.synapse-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.synapse-btn {
  background: rgba(0, 243, 255, 0.06);
  border: 1px solid var(--border-neon);
  color: var(--neon-cyan);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  letter-spacing: 1px;
  padding: 5px 10px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.synapse-btn:hover { background: var(--neon-cyan); color: #000; }
.synapse-btn.is-on {
  background: rgba(0, 255, 157, 0.14);
  border-color: var(--neon-green);
  color: var(--neon-green);
}
.synapse-btn.synapse-close:hover {
  background: var(--neon-red);
  border-color: var(--neon-red);
  color: #fff;
  box-shadow: 0 0 12px var(--neon-red);
}

/* CONFIG DRAWER */
.syn-config-drawer {
  display: none;
  background: rgba(8, 11, 18, 0.98);
  border-bottom: 1px solid var(--neon-cyan);
  padding: 14px 18px;
  gap: 12px;
  flex-wrap: wrap;
  align-items: flex-end;
  flex-shrink: 0;
}
.syn-config-drawer.is-open { display: flex; }
.syn-cfg-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 170px;
}
.syn-cfg-field label {
  font-family: var(--font-hud);
  font-size: 0.62rem;
  color: var(--neon-gold);
  letter-spacing: 1px;
}
.syn-cfg-field input {
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 243, 255, 0.3);
  color: #fff;
  padding: 7px 10px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  outline: none;
}
.syn-cfg-field input:focus { border-color: var(--neon-cyan); }

/* MAIN DECK & FLEXBOX SCROLL FIX */
.syn-client-deck {
  flex: 1;
  min-height: 0;
  display: flex;
  overflow: hidden;
  background: #000;
  position: relative;
}
.syn-main-chat {
  flex: 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-neon);
}

.syn-tab-bar {
  background: rgba(8, 10, 15, 0.98);
  border-bottom: 1px solid var(--border-neon);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px 0 10px;
  overflow-x: auto;
  white-space: nowrap;
  flex-shrink: 0;
}
.syn-tab-item {
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  color: #94a3b8;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  letter-spacing: 1px;
  padding: 6px 12px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  transition: all 0.2s ease;
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 100%, 0 100%);
  user-select: none;
}
.syn-tab-item:hover {
  color: #fff;
  background: rgba(0, 243, 255, 0.08);
  border-color: rgba(0, 243, 255, 0.3);
}
.syn-tab-item.active {
  color: var(--neon-cyan) !important;
  background: rgba(0, 243, 255, 0.09);
  border-color: var(--neon-cyan);
  font-weight: bold;
  box-shadow: 0 -4px 15px rgba(0, 243, 255, 0.2);
}
.syn-tab-item.unread {
  border-color: rgba(0, 243, 255, 0.6);
  color: #fff;
}
.syn-tab-item.unread-mention {
  border-color: var(--neon-gold) !important;
  color: var(--neon-gold) !important;
  animation: unreadPulse 1.2s infinite ease-in-out;
}
@keyframes unreadPulse {
  0%, 100% { box-shadow: 0 0 5px rgba(255, 183, 0, 0.2); }
  50% { box-shadow: 0 0 15px rgba(255, 183, 0, 0.6); }
}
.syn-tab-close {
  font-size: 0.65rem;
  color: var(--text-muted);
  cursor: pointer;
  padding: 1px 4px;
  border-radius: 2px;
}
.syn-tab-close:hover {
  color: var(--neon-red);
  background: rgba(255, 0, 85, 0.15);
}

.syn-topic-bar {
  background: rgba(14, 18, 26, 0.95);
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  padding: 7px 14px;
  font-size: 0.74rem;
  color: var(--neon-gold);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  flex-shrink: 0;
}
.syn-topic-bar.is-expanded {
  white-space: normal;
  word-break: break-word;
  overflow: visible;
  line-height: 1.5;
}

.syn-chat-stream {
  flex: 1 1 0;
  min-height: 0;
  padding: 14px;
  overflow-y: auto;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: rgba(0, 0, 0, 0.78);
}
.syn-chat-line { line-height: 1.5; word-break: break-word; }
.syn-ts { color: var(--text-muted); font-size: 0.71rem; }
.syn-nick { color: var(--neon-cyan); font-weight: bold; }
.syn-nick.op { color: var(--neon-gold); }
.syn-nick.voice { color: var(--neon-green); }
.syn-msg { color: #f1f5f9; }
.syn-sys { color: var(--neon-cyan); opacity: 0.9; }
.syn-notice { color: #fde047; }
.syn-event { color: var(--neon-green); font-size: 0.78rem; }
.syn-action { color: var(--neon-gold); font-style: italic; }
.syn-error { color: var(--neon-red); }

.syn-link {
  color: var(--neon-cyan);
  text-decoration: none;
  border-bottom: 1px dashed rgba(0, 243, 255, 0.55);
  word-break: break-all;
}
.syn-link:hover {
  color: #fff;
  border-bottom-style: solid;
  text-shadow: 0 0 8px rgba(0, 243, 255, 0.6);
}
.syn-chan-link {
  color: var(--neon-green);
  cursor: pointer;
  text-decoration: underline dotted;
}
.syn-chan-link:hover { color: #fff; }

.syn-chat-line.is-mention {
  background: rgba(255, 183, 0, 0.1);
  border-left: 3px solid var(--neon-gold);
  padding: 2px 8px;
  margin: 2px -8px;
}
.syn-mention-token {
  color: #000;
  background: var(--neon-gold);
  font-weight: bold;
  padding: 0 4px;
  border-radius: 2px;
}

.syn-input-container {
  background: rgba(10, 13, 18, 0.98);
  border-top: 1px solid var(--border-neon);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.syn-prompt {
  color: var(--neon-green);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  white-space: nowrap;
}
.syn-input-field {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  outline: none;
}

/* SIDEBAR ROSTER (SCROLLABLE + FILTERABLE) */
.syn-sidebar {
  width: 215px;
  min-height: 0;
  height: 100%;
  background: rgba(11, 14, 21, 0.98);
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.syn-sidebar-title {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(0, 243, 255, 0.2);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  color: var(--neon-cyan);
  letter-spacing: 1px;
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}
.syn-user-filter-box {
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  flex-shrink: 0;
}
.syn-user-filter-input {
  width: 100%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(0, 243, 255, 0.2);
  color: #e2e8f0;
  padding: 5px 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  outline: none;
}
.syn-user-filter-input:focus { border-color: var(--neon-cyan); }

.syn-user-list {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px 0;
  display: flex;
  flex-direction: column;
}
.syn-user-item {
  padding: 5px 12px;
  font-size: 0.78rem;
  color: #cbd5e1;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex-shrink: 0;
  transition: background 0.15s;
}
.syn-user-item:hover {
  background: rgba(0, 243, 255, 0.12);
  color: var(--neon-cyan);
}
.syn-user-item.op { color: var(--neon-gold); font-weight: bold; }
.syn-user-item.voice { color: var(--neon-green); }

/* USER ACTION POPOVER */
.syn-nick-menu {
  display: none;
  position: absolute;
  z-index: 40;
  min-width: 195px;
  background: #0b0e15;
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.92), 0 0 18px rgba(0, 243, 255, 0.25);
  padding: 6px 0;
  font-family: var(--font-mono);
}
.syn-nick-menu.is-open { display: block; }
.syn-nick-menu-head {
  padding: 6px 12px;
  font-family: var(--font-hud);
  font-size: 0.7rem;
  color: var(--neon-gold);
  border-bottom: 1px dashed rgba(255, 255, 255, 0.12);
  margin-bottom: 4px;
}
.syn-nick-menu-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: none;
  color: #e2e8f0;
  padding: 7px 12px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  cursor: pointer;
}
.syn-nick-menu-btn:hover {
  background: rgba(0, 243, 255, 0.12);
  color: var(--neon-cyan);
}
.syn-nick-menu-btn.danger:hover {
  background: rgba(255, 0, 85, 0.15);
  color: var(--neon-red);
}

.syn-btn-roster-mobile { display: none; }

@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hud-palette-pill { display: none; }
  .hud-navbar {
    flex-wrap: wrap;
    gap: 8px;
  }
  .hud-sfx-toggle, .hud-mobile-toggle {
    padding: 6px 9px;
    font-size: 0.68rem;
  }
  .syn-sidebar { display: none; }
  .syn-btn-roster-mobile {
    display: inline-flex;
    align-items: center;
    gap: 4px;
  }
  .syn-sidebar.is-mobile-open {
    display: flex !important;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 220px;
    z-index: 25;
    border-left: 1px solid var(--neon-cyan);
    box-shadow: -12px 0 35px rgba(0, 0, 0, 0.92);
  }
}

/* =====================================================================
   THUNDER_SYNTH // 100% FOSS CREATIVE COMMONS JUKEBOX WIDGET
   ===================================================================== */
.cyber-jukebox-rig {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-family: var(--font-mono);
}
.jukebox-capsule {
  background: rgba(11, 14, 21, 0.95);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 20px rgba(0, 243, 255, 0.3);
  padding: 8px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: all 0.25s ease;
  clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.jukebox-capsule:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 25px var(--neon-cyan);
}
.jukebox-capsule.is-hidden { display: none; }

.capsule-pulse {
  width: 8px; height: 8px;
  background: var(--neon-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--neon-green);
  animation: radarPulse 1.2s infinite ease-in-out;
}
.capsule-text {
  font-size: 0.75rem;
  color: #fff;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.jukebox-window {
  display: none;
  width: 360px;
  max-width: calc(100vw - 30px);
  background: var(--bg-surface);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 243, 255, 0.2);
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
  flex-direction: column;
  animation: fadeInModal 0.2s ease-out forwards;
}
.jukebox-window.is-open { display: flex; }

.jb-header {
  background: rgba(14, 18, 26, 0.98);
  border-bottom: 1px solid var(--border-neon);
  padding: 10px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.jb-title {
  font-family: var(--font-hud);
  font-size: 0.72rem;
  color: var(--neon-cyan);
  letter-spacing: 1.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.jb-btn-min {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.85rem;
  padding: 2px 6px;
  transition: color 0.2s;
}
.jb-btn-min:hover { color: #fff; }

.jb-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.jb-visualizer-canvas {
  width: 100%;
  height: 48px;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(0, 243, 255, 0.2);
  display: block;
}

.jb-track-info { display: flex; flex-direction: column; gap: 3px; }
.jb-track-title {
  font-family: var(--font-hud);
  font-size: 0.82rem;
  color: #fff;
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.jb-track-meta {
  font-size: 0.7rem;
  color: var(--neon-gold);
  display: flex;
  justify-content: space-between;
}

.jb-controls-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: rgba(0, 0, 0, 0.4);
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}
.jb-btn-ctrl {
  background: rgba(0, 243, 255, 0.1);
  border: 1px solid var(--border-neon);
  color: var(--neon-cyan);
  font-family: var(--font-hud);
  font-size: 0.68rem;
  padding: 6px 12px;
  cursor: pointer;
  transition: all 0.2s;
}
.jb-btn-ctrl:hover { background: var(--neon-cyan); color: #000; }
.jb-btn-skip { background: rgba(255, 183, 0, 0.1); border-color: rgba(255, 183, 0, 0.4); color: var(--neon-gold); }
.jb-btn-skip:hover { background: var(--neon-gold); color: #000; }

.jb-vol-container {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.68rem;
  color: var(--text-muted);
}
.jb-vol-slider {
  -webkit-appearance: none;
  width: 70px;
  height: 4px;
  background: rgba(0, 243, 255, 0.25);
  outline: none;
  border-radius: 2px;
  cursor: pointer;
}
.jb-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 12px;
  height: 12px;
  background: var(--neon-cyan);
  border-radius: 50%;
  cursor: pointer;
}

.jb-queue-drawer {
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
  padding-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 120px;
  overflow-y: auto;
}
.jb-queue-item {
  font-size: 0.72rem;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.3);
  padding: 5px 8px;
  border-left: 2px solid var(--neon-gold);
}
.jb-queue-tip {
  font-size: 0.65rem;
  color: var(--text-muted);
  text-align: center;
  font-family: var(--font-hud);
  margin-top: 4px;
}
.jb-license-pill {
  font-size: 0.6rem;
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.3);
  padding: 2px 6px;
  text-align: center;
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
}

/* =====================================================================
   HUD COMMAND PALETTE (CTRL + K TACTICAL QUICK LAUNCHER)
   ===================================================================== */
.palette-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: rgba(6, 7, 10, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 999999;
  align-items: flex-start;
  justify-content: center;
  padding: 10vh 20px 20px 20px;
}
.palette-overlay.is-active {
  display: flex;
  animation: fadeInModal 0.2s ease-out forwards;
}

.palette-window {
  width: 100%;
  max-width: 650px;
  background: var(--bg-surface);
  border: 1px solid var(--neon-cyan);
  box-shadow: 0 0 50px rgba(0, 243, 255, 0.35), inset 0 0 20px rgba(0, 243, 255, 0.05);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.palette-search-bar {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  background: rgba(14, 18, 26, 0.98);
  border-bottom: 1px solid var(--border-neon);
  gap: 12px;
}
.palette-prompt {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  color: var(--neon-green);
}
.palette-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 1rem;
  outline: none;
}

.palette-results-list {
  max-height: 380px;
  overflow-y: auto;
  padding: 8px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.palette-item {
  padding: 11px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #cbd5e1;
  border-left: 3px solid transparent;
}
.palette-item:hover, .palette-item.selected {
  background: rgba(0, 243, 255, 0.1);
  color: var(--neon-cyan) !important;
  border-left-color: var(--neon-cyan);
}

.palette-badge {
  font-family: var(--font-hud);
  font-size: 0.62rem;
  letter-spacing: 1px;
  padding: 2px 7px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-muted);
  border-radius: 2px;
}
.palette-item:hover .palette-badge, .palette-item.selected .palette-badge {
  border-color: var(--neon-cyan);
  color: var(--neon-cyan);
}

.palette-footer-hints {
  background: #080a0f;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.palette-footer-hints kbd {
  background: rgba(255, 255, 255, 0.1);
  padding: 1px 5px;
  border-radius: 2px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.hud-palette-pill {
  background: rgba(0, 243, 255, 0.05);
  border: 1px solid var(--border-neon);
  color: var(--neon-cyan);
  padding: 6px 10px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
}
.hud-palette-pill:hover {
  background: var(--neon-cyan);
  color: #000;
  box-shadow: 0 0 15px var(--neon-cyan);
}

/* =====================================================================
   RESPONSIVE MOBILE BREAKPOINTS & ACCORDION
   ===================================================================== */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 992px) {
  .hud-navbar .status-pill { display: none; }
  .hud-mobile-toggle { display: block; }

  .hud-menu-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(10, 12, 18, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-neon);
    padding: 15px 20px 30px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.95);
  }
  .hud-menu-wrapper.is-open {
    display: block;
    animation: slideDownNav 0.25s ease-out forwards;
  }
  @keyframes slideDownNav {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .hud-menu {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }
  .hud-item { width: 100%; }
  .hud-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.88rem;
  }

  .hud-dropdown {
    position: static !important;
    display: none;
    background: rgba(0, 0, 0, 0.45);
    border: none !important;
    border-left: 2px solid var(--neon-cyan) !important;
    margin-top: 5px;
    margin-left: 12px;
    width: calc(100% - 12px);
    min-width: unset !important;
    max-width: 100% !important;
    box-shadow: none !important;
    clip-path: none !important;
  }
  .hud-dropdown.dropdown-align-right {
    border-left-color: var(--neon-gold) !important;
  }
  .hud-item.open-sub .hud-dropdown {
    display: block;
  }
}

/* =====================================================================
   SERVICE RADAR MATRIX (TAHAP 1 - TELEMETRY DECK)
   ===================================================================== */
.service-radar-deck {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 243, 255, 0.18);
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.service-radar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-hud);
  font-size: clamp(0.68rem, 1.4vw, 0.75rem);
  color: #cbd5e1;
  letter-spacing: 1px;
}

.service-radar-summary {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--neon-green);
}
.service-radar-summary.degraded {
  color: var(--neon-gold);
}

.service-radar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(195px, 1fr));
  gap: 8px;
}

.radar-node-card {
  background: rgba(11, 14, 21, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-left: 3px solid var(--neon-green);
  padding: 8px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  transition: all 0.2s ease;
}
.radar-node-card:hover {
  border-color: rgba(0, 243, 255, 0.35);
  background: rgba(0, 243, 255, 0.04);
}
.radar-node-card.is-offline {
  border-left-color: var(--neon-red);
  background: rgba(255, 0, 85, 0.05);
}

.radar-node-name {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.radar-node-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-hud);
  font-size: 0.62rem;
  letter-spacing: 1px;
  color: var(--neon-green);
  flex-shrink: 0;
}
.radar-node-card.is-offline .radar-node-status {
  color: var(--neon-red);
}

.radar-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--neon-green);
  box-shadow: 0 0 8px var(--neon-green);
  animation: radarPulse 1.5s infinite ease-in-out;
}
.radar-node-card.is-offline .radar-dot {
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
  animation: radarPulse 0.8s infinite ease-in-out;
}
.radar-node-card.is-clickable {
  cursor: pointer;
}
.radar-node-card.is-clickable:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 243, 255, 0.14);
}
.radar-node-card.is-offline.is-clickable:hover {
  border-color: rgba(255, 0, 85, 0.45);
  box-shadow: 0 4px 14px rgba(255, 0, 85, 0.14);
}
.sfx-indicator-dot.offline {
  background: var(--neon-red);
  box-shadow: 0 0 8px var(--neon-red);
  animation: radarPulse 0.9s infinite ease-in-out;
}
/* =====================================================================
   SERVICE RADAR STAGE 3 // PALETTE BADGES & TRANSITION PING
   ===================================================================== */
.palette-radar-pill {
  font-family: var(--font-hud);
  font-size: 0.58rem;
  letter-spacing: 0.8px;
  padding: 2px 6px;
  border-radius: 2px;
}
.palette-radar-pill.online {
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.08);
  border: 1px solid rgba(0, 255, 157, 0.35);
}
.palette-radar-pill.offline {
  color: var(--neon-red);
  background: rgba(255, 0, 85, 0.1);
  border: 1px solid rgba(255, 0, 85, 0.45);
}

.radar-node-card.is-transitioned {
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.45);
  border-color: var(--neon-cyan);
}
@media (max-width: 640px) {
  .footer-grid { grid-template-columns: 1fr; }
  .hud-palette-pill { display: none; }
}
@media (max-width: 1420px) {
  .hud-navbar .status-pill { display: none; }
  .hud-link { padding: 8px 11px; font-size: 0.74rem; }
}

@media (max-width: 1140px) {
  .hud-mobile-toggle { display: block; }
  .hud-menu-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 65px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(10, 12, 18, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-neon);
    padding: 15px 20px 30px 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.95);
  }
  .hud-menu-wrapper.is-open {
    display: block;
    animation: slideDownNav 0.25s ease-out forwards;
  }
  .hud-menu {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }
  .hud-item { width: 100%; }
  .hud-link { width: 100%; padding: 12px 16px; font-size: 0.88rem; }
  .hud-dropdown {
    position: static !important;
    display: none;
    background: rgba(0, 0, 0, 0.45);
    border: none !important;
    border-left: 2px solid var(--neon-cyan) !important;
    margin-top: 5px;
    margin-left: 12px;
    width: calc(100% - 12px);
    min-width: unset !important;
    max-width: 100% !important;
    box-shadow: none !important;
    clip-path: none !important;
  }
  .hud-dropdown.dropdown-align-right { border-left-color: var(--neon-gold) !important; }
  .hud-item.open-sub .hud-dropdown { display: block; }
}

/* =====================================================================
   CYBERDECK 404 SECTOR NOT FOUND DECK
   ===================================================================== */
.err404-deck {
  background: linear-gradient(135deg, rgba(14, 17, 24, 0.97) 0%, rgba(7, 8, 12, 0.99) 100%);
  border: 1px solid rgba(255, 0, 85, 0.5);
  box-shadow: 0 0 40px rgba(255, 0, 85, 0.14), 0 10px 35px rgba(0, 0, 0, 0.75);
  padding: clamp(26px, 4vw, 48px);
  clip-path: polygon(0 0, calc(100% - 24px) 0, 100% 24px, 100% 100%, 24px 100%, 0 calc(100% - 24px));
  margin-bottom: 35px;
}
.err404-code {
  font-family: var(--font-hud);
  font-size: clamp(3.5rem, 9vw, 5.5rem);
  font-weight: 900;
  line-height: 1;
  color: #fff;
  letter-spacing: 6px;
  text-shadow: -3px 0 var(--neon-red), 3px 0 var(--neon-cyan), 0 0 25px rgba(255, 0, 85, 0.45);
  margin: 10px 0;
}
.err404-trace {
  background: rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-left: 3px solid var(--neon-red);
  padding: 14px 18px;
  margin: 18px 0 26px 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #94a3b8;
  line-height: 1.7;
  word-break: break-all;
}

/* =====================================================================
   THUNDER_SYNAPSE // VIP PASS OVERLAY PANEL
   ===================================================================== */
.syn-vip-overlay {
  display: none;
  position: absolute;
  inset: 0;
  background: rgba(6, 7, 10, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 50;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
}
.syn-vip-overlay.is-open { display: flex; }

.syn-vip-card {
  width: 100%;
  max-width: 520px;
  background: #0b0e15;
  border: 1px solid var(--neon-gold);
  box-shadow: 0 0 40px rgba(255, 183, 0, 0.25);
  padding: 22px;
  clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 16px 100%, 0 calc(100% - 16px));
}
.syn-vip-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px dashed rgba(255, 183, 0, 0.35);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.syn-vip-title {
  font-family: var(--font-hud);
  font-size: 0.9rem;
  color: var(--neon-gold);
  letter-spacing: 1.5px;
}
.syn-vip-perks {
  list-style: none;
  padding: 0;
  margin: 0 0 16px 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  font-size: 0.78rem;
  color: #cbd5e1;
}
@media (max-width: 520px) {
  .syn-vip-perks { grid-template-columns: 1fr; }
}
.syn-vip-perks li {
  background: rgba(255, 183, 0, 0.05);
  border: 1px solid rgba(255, 183, 0, 0.2);
  padding: 7px 10px;
}
.syn-vip-tribute-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 243, 255, 0.2);
  padding: 12px;
  margin-bottom: 16px;
}
.syn-vip-tribute-note {
  font-size: 0.74rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 10px;
}
.syn-vip-input-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.syn-vip-input {
  flex: 1;
  min-width: 180px;
  background: #000;
  border: 1px solid rgba(255, 183, 0, 0.45);
  color: #fff;
  padding: 9px 12px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  outline: none;
}
.syn-vip-input:focus {
  border-color: var(--neon-gold);
  box-shadow: 0 0 10px rgba(255, 183, 0, 0.3);
}
.syn-vip-btn-activate {
  background: var(--neon-gold);
  color: #000;
  border: none;
  font-family: var(--font-hud);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 1px;
  padding: 9px 18px;
  cursor: pointer;
}
.syn-vip-btn-activate:hover { box-shadow: 0 0 18px var(--neon-gold); }
.syn-vip-feedback {
  margin-top: 10px;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  min-height: 18px;
}
/* =====================================================================
   SOVEREIGN INFRA FUNDING DECK (TAHAP 2)
   ===================================================================== */
.funding-deck {
  width: 100%;
  background: linear-gradient(135deg, rgba(14, 17, 24, 0.97) 0%, rgba(7, 8, 12, 0.99) 100%);
  border: 1px solid rgba(255, 183, 0, 0.4);
  border-left: 3px solid var(--neon-gold);
  padding: clamp(20px, 3vw, 28px);
  margin-bottom: 35px;
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 24px;
  align-items: center;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.75);
  clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}
@media (max-width: 860px) {
  .funding-deck { grid-template-columns: 1fr; }
}

.funding-tag {
  font-family: var(--font-hud);
  font-size: 0.7rem;
  color: var(--neon-gold);
  letter-spacing: 2px;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.funding-title {
  font-family: var(--font-hud);
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 8px;
}
.funding-note {
  font-size: 0.82rem;
  color: #94a3b8;
  line-height: 1.6;
  margin-bottom: 14px;
}

.funding-progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  margin-bottom: 7px;
}
.funding-amount-text strong { color: var(--neon-green); }
.funding-pct-badge {
  font-family: var(--font-hud);
  font-size: 0.65rem;
  padding: 2px 8px;
  border: 1px solid rgba(0, 255, 157, 0.4);
  color: var(--neon-green);
  background: rgba(0, 255, 157, 0.08);
}

.funding-bar-track {
  width: 100%;
  height: 12px;
  background: rgba(0, 0, 0, 0.75);
  border: 1px solid rgba(0, 243, 255, 0.25);
  padding: 2px;
  overflow: hidden;
}
.funding-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-green) 100%);
  box-shadow: 0 0 12px rgba(0, 255, 157, 0.45);
  transition: width 0.6s ease;
}

.funding-cta-box {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.funding-perks-text {
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.55;
}
.funding-perks-text strong { color: var(--neon-gold); }
/* Cegah kotak putih/biru bawaan browser pada input autofill */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
select:-webkit-autofill {
  -webkit-text-fill-color: #fff !important;
  -webkit-box-shadow: 0 0 0 1000px #06070a inset !important;
  caret-color: #fff;
  transition: background-color 5000s ease-in-out 0s;
}
/* =====================================================================
   CYBERDECK TOAST NOTIFICATION (PAKET A)
   ===================================================================== */
.cyber-toast {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 999999;
  background: rgba(11, 14, 21, 0.96);
  border: 1px solid var(--neon-cyan);
  border-left: 4px solid var(--neon-green);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(0, 243, 255, 0.25);
  color: #f1f5f9;
  padding: 12px 18px;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  max-width: 390px;
  word-break: break-all;
  clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: all 0.25s ease;
}
.cyber-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}
/* =====================================================================
   PAKET B: NAVBAR SUPPORT PILL & CITADEL TIER PREVIEW
   ===================================================================== */
.hud-support-pill {
  border-color: rgba(255, 183, 0, 0.5) !important;
  color: var(--neon-gold) !important;
  text-decoration: none !important;
}
.hud-support-pill:hover {
  border-color: var(--neon-gold) !important;
  background: rgba(255, 183, 0, 0.14);
  box-shadow: 0 0 12px rgba(255, 183, 0, 0.3) !important;
}
@media (max-width: 520px) {
  .hud-support-pill .support-pill-txt { display: none; }
}

.citadel-tiers-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 18px 0 22px 0;
}
@media (max-width: 768px) {
  .citadel-tiers-preview { grid-template-columns: 1fr; }
}
.citadel-tier-mini {
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 243, 255, 0.25);
  padding: 12px 14px;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.55;
}
.citadel-tier-mini.op { border-color: rgba(0, 255, 157, 0.35); }
.citadel-tier-mini.ov { border-color: rgba(255, 183, 0, 0.5); background: rgba(255, 183, 0, 0.04); }
/* =====================================================================
   MOBILE POLISH: ANTI-OVERLAP JUKEBOX & TOAST
   ===================================================================== */
@media (max-width: 640px) {
  body {
    padding-bottom: 68px;
  }
  .cyber-jukebox-rig {
    bottom: 12px;
    right: 12px;
  }
  .jukebox-capsule {
    padding: 6px 12px;
    gap: 8px;
    max-width: calc(100vw - 24px);
  }
  .capsule-text {
    max-width: 135px;
  }
  .cyber-toast {
    bottom: 64px;
    left: 12px;
    right: 12px;
    max-width: none;
  }
}
/* =====================================================================
   RESPONSIVE NAVBAR HARDENING (LAPTOP, IPAD & IPHONE 16 PRO 402PX)
   ===================================================================== */
@media (max-width: 1480px) {
  .hud-navbar .status-pill { display: none; }
  .hud-link { padding: 8px 11px; font-size: 0.74rem; }
}

@media (max-width: 1220px) {
  .hud-mobile-toggle { display: inline-flex; align-items: center; }
  .hud-menu-wrapper {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    background: rgba(10, 12, 18, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 2px solid var(--border-neon);
    padding: 15px 18px 28px 18px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.95);
  }
  .hud-menu-wrapper.is-open {
    display: block;
    animation: slideDownNav 0.25s ease-out forwards;
  }
  .hud-menu {
    flex-direction: column;
    width: 100%;
    gap: 8px;
    align-items: stretch;
  }
  .hud-item { width: 100%; }
  .hud-link { width: 100%; height: auto; padding: 12px 16px; font-size: 0.86rem; }
  .hud-dropdown {
    position: static !important;
    display: none;
    background: rgba(0, 0, 0, 0.45);
    border: none !important;
    border-left: 2px solid var(--neon-cyan) !important;
    margin-top: 5px;
    margin-left: 12px;
    width: calc(100% - 12px);
    min-width: unset !important;
    max-width: 100% !important;
    box-shadow: none !important;
    clip-path: none !important;
  }
  .hud-dropdown.dropdown-align-right { border-left-color: var(--neon-gold) !important; }
  .hud-item.open-sub .hud-dropdown { display: block; }
}

/* Smartphone (termasuk iPhone 16 Pro 402px & Android 360px) */
@media (max-width: 640px) {
  .hud-navbar {
    padding: 10px 12px;
    gap: 8px;
  }
  .brand-badge {
    font-size: 1rem;
    letter-spacing: 1px;
  }
  .hud-controls-group {
    gap: 6px !important;
  }
  .hud-sfx-toggle,
  .hud-mobile-toggle {
    padding: 6px 8px;
    font-size: 0.68rem;
    gap: 5px;
    letter-spacing: 0.5px;
  }
  .nav-hide-mobile {
    display: none;
  }
}
/* =====================================================================
   SYNAPSE MOBILE TYPING FIX (IPHONE 16 PRO & IOS SAFARI)
   ===================================================================== */
.syn-btn-send {
  background: rgba(0, 243, 255, 0.14);
  border: 1px solid var(--neon-cyan);
  color: var(--neon-cyan);
  font-family: var(--font-hud);
  font-size: 0.85rem;
  font-weight: 900;
  padding: 6px 14px;
  cursor: pointer;
  flex-shrink: 0;
  transition: all 0.2s;
}
.syn-btn-send:hover {
  background: var(--neon-cyan);
  color: #000;
}

@media (max-width: 640px) {
  .synapse-overlay {
    padding: 0;
  }
  .synapse-window {
    height: 100vh;
    height: 100dvh; /* Otomatis menyesuaikan saat keyboard iPhone muncul */
    clip-path: none;
    border-left: none;
    border-right: none;
  }
  .syn-prompt #syn-prompt-nick {
    display: none; /* Nick sudah tampil di tombol 🏷️ atas, sisakan :~$ saja */
  }
  .syn-prompt-suffix {
    font-weight: bold;
    color: var(--neon-green);
  }
  .syn-input-container {
    padding: 8px 10px;
    gap: 6px;
  }
  .syn-input-field {
    font-size: 16px; /* Mencegah iOS Safari auto-zoom saat mengetik */
  }
}
