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

:root {
  --bg-color: #030408;
  --panel-bg: rgba(6, 10, 18, 0.8);
  --panel-border: rgba(0, 240, 255, 0.15);
  --panel-border-hover: rgba(255, 0, 127, 0.4);
  
  --cyan: #00f0ff;
  --cyan-glow: rgba(0, 240, 255, 0.3);
  --magenta: #ff007f;
  --magenta-glow: rgba(255, 0, 127, 0.3);
  --purple: #8b5cf6;
  
  --text-primary: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-cyan: #22d3ee;
  
  --font-title: 'Orbitron', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: 'Share Tech Mono', monospace;
  
  --transition-speed: 0.3s;
}

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

body {
  background-color: var(--bg-color);
  color: var(--text-primary);
  font-family: var(--font-body);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.2);
}
::-webkit-scrollbar-thumb {
  background: var(--cyan-glow);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--cyan);
}

/* Scanline Effect */
body::before {
  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%), linear-gradient(90deg, rgba(255, 0, 0, 0.05), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.05));
  z-index: 9999;
  background-size: 100% 4px, 6px 100%;
  pointer-events: none;
}

/* Background Cyber Grid */
.grid-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-image: 
    linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: center;
  z-index: -2;
  pointer-events: none;
}

/* Dynamic Particles Canvas */
#particle-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: all;
}

/* MATRIX OVERLAY */
#matrix-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 9998;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1.5s ease;
}
#matrix-canvas.active {
  opacity: 0.15;
}

/* PRELOADER / SYSTEM BOOT SCREEN */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #020306;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  font-family: var(--font-mono);
  padding: 20px;
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.preloader.fade-out {
  opacity: 0;
  pointer-events: none;
  transform: scale(1.05);
}

.boot-container {
  width: 100%;
  max-width: 600px;
  border: 1px solid var(--cyan-glow);
  background: rgba(1, 2, 4, 0.95);
  padding: 25px;
  box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
  position: relative;
  border-radius: 8px;
}

.boot-header {
  border-bottom: 1px solid var(--cyan-glow);
  padding-bottom: 12px;
  margin-bottom: 15px;
  display: flex;
  justify-content: space-between;
  color: var(--cyan);
  font-size: 0.95rem;
}

.boot-logs {
  height: 250px;
  overflow-y: auto;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #10b981;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.boot-log-line {
  display: flex;
}

.boot-log-line::before {
  content: "> ";
  color: var(--cyan);
  margin-right: 6px;
}

.progress-bar-container {
  border: 1px solid rgba(255, 255, 255, 0.1);
  height: 12px;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  width: 0%;
  box-shadow: 0 0 10px var(--cyan);
  transition: width 0.1s linear;
}

.boot-button {
  background: transparent;
  border: 1px solid var(--cyan);
  color: var(--cyan);
  padding: 12px 20px;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 2px;
  cursor: pointer;
  margin-top: 15px;
  width: 100%;
  transition: all 0.2s ease;
  box-shadow: 0 0 8px rgba(0, 240, 255, 0.1);
  display: none;
  border-radius: 4px;
}

.boot-button:hover {
  background: var(--cyan);
  color: #000;
  box-shadow: 0 0 15px var(--cyan);
}

/* APP FRAMEWORK LAYOUT */
.app-container {
  max-width: 1600px;
  margin: 0 auto;
  padding: 20px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* HEADER STYLE */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(12px);
  padding: 15px 30px;
  border-radius: 8px;
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

header::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--cyan), var(--magenta), transparent);
}

.brand-container {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-family: var(--font-title);
  font-size: 1.6rem;
  font-weight: 900;
  letter-spacing: 4px;
  background: linear-gradient(90deg, #fff, var(--cyan), var(--magenta));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-transform: uppercase;
  animation: shine 6s linear infinite;
  background-size: 200% auto;
}

.brand-subtitle {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 3px;
  color: var(--text-cyan);
  margin-top: 2px;
}

.system-stats {
  display: flex;
  gap: 25px;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-dot 1.5s infinite;
}

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

.status-val {
  color: var(--cyan);
}

/* WORKSPACE GRID WITH SIDEBAR */
.dashboard-wrapper {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  flex-grow: 1;
}

/* CYBER SIDEBAR NAVIGATION (Grouped & Scrollable) */
.sidebar {
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  padding: 15px 10px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  position: sticky;
  top: 20px;
}

.sidebar-section-title {
  font-family: var(--font-title);
  font-size: 0.65rem;
  color: var(--text-cyan);
  letter-spacing: 1.5px;
  padding-left: 8px;
  margin-top: 10px;
  margin-bottom: 2px;
  text-transform: uppercase;
  border-left: 2px solid var(--magenta);
}

.nav-menu {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

a.nav-item {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  font-family: var(--font-title);
  font-size: 0.75rem;
  letter-spacing: 0.5px;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

a.nav-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 3px;
  height: 100%;
  background: var(--cyan);
  transform: scaleY(0);
  transition: transform 0.2s ease;
}

a.nav-item:hover {
  color: #fff;
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.1);
  padding-left: 16px;
}

a.nav-item.active {
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.08);
  border-color: rgba(0, 240, 255, 0.25);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.05);
}

a.nav-item.active::before {
  transform: scaleY(1);
}

.sidebar-footer {
  margin-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 12px;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-secondary);
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* PANELS AND GRIDS GENERAL */
.panel {
  border: 1px solid var(--panel-border);
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  border-radius: 8px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
  transition: border-color var(--transition-speed), box-shadow var(--transition-speed);
  position: relative;
  overflow: hidden;
}

.panel:hover {
  border-color: var(--panel-border-hover);
  box-shadow: 0 8px 32px rgba(255, 0, 127, 0.15), 0 0 15px rgba(0, 240, 255, 0.05);
}

.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.panel-title {
  font-family: var(--font-title);
  font-size: 0.95rem;
  letter-spacing: 2px;
  color: var(--cyan);
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: 10px;
}

.panel-icon {
  font-size: 0.85rem;
}

.panel-tag {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  background: rgba(0, 240, 255, 0.1);
  color: var(--cyan);
  padding: 2px 8px;
  border-radius: 4px;
  border: 1px solid rgba(0, 240, 255, 0.15);
}

/* WIDGET METRICS FOR CORE / NEW PAGES */
.core-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 20px;
}

.core-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  margin-top: 10px;
}

.core-avatar-container {
  position: relative;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  padding: 5px;
  background: linear-gradient(45deg, var(--cyan), var(--magenta));
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
  animation: spin-glow 15s linear infinite;
}

.core-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #05070c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #fff;
  overflow: hidden;
  position: relative;
}

.core-avatar i {
  animation: float 3s ease-in-out infinite;
}

.core-avatar::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.6) 100%);
}

.core-name {
  font-family: var(--font-title);
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  margin-top: 8px;
}

.core-rank {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--magenta);
}

/* SCROLLING PERFORMANCE CHARTS */
.performance-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 10px;
}

.chart-container {
  height: 160px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(0, 0, 0, 0.3);
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}

.chart-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.chart-label {
  position: absolute;
  top: 10px;
  left: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-cyan);
  z-index: 2;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.chart-value {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--magenta);
  z-index: 2;
  text-shadow: 0 0 5px rgba(0,0,0,0.8);
}

.stat-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 10px;
}

.stat-bar-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.stat-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  font-family: var(--font-mono);
  text-transform: uppercase;
}

.stat-label-left {
  color: var(--text-secondary);
}

.stat-label-right {
  color: var(--cyan);
}

.stat-bar-outer {
  height: 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}

.stat-bar-inner {
  height: 100%;
  background: linear-gradient(90deg, var(--cyan), var(--magenta));
  width: 0%;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.badge-group {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.badge {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
}

.badge.hot {
  border-color: var(--magenta);
  color: var(--magenta);
  background: rgba(255, 0, 127, 0.05);
}

/* AUDIO ROOM AND SYNTH LAB */
.audio-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.visualizer-screen-container {
  width: 100%;
  height: 135px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(2, 4, 8, 0.85);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.9);
}

#synth-visualizer {
  width: 100%;
  height: 100%;
  display: block;
}

.synth-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 12px;
}

.synth-key {
  height: 75px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(0, 240, 255, 0.15);
  border-radius: 6px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.synth-key::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--cyan);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.synth-key:hover {
  background: rgba(0, 240, 255, 0.08);
  border-color: var(--cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
  transform: translateY(-2px);
}

.synth-key:hover::before {
  transform: scaleX(1);
}

.synth-key:active {
  transform: scale(0.95);
  background: rgba(255, 0, 127, 0.15);
  border-color: var(--magenta);
}

.synth-key:active::before {
  background: var(--magenta);
}

.synth-note {
  font-family: var(--font-title);
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
}

.synth-freq {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--text-cyan);
}

/* SEQUENCER BEATMAKER */
.sequencer-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.seq-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.seq-controls-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.seq-btn {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  padding: 8px 16px;
  border-radius: 4px;
  font-family: var(--font-title);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.seq-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}

.seq-btn.play-active {
  background: rgba(16, 185, 129, 0.1);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.seq-bpm-slider {
  -webkit-appearance: none;
  width: 100px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}
.seq-bpm-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 5px var(--cyan);
}

.seq-grid-wrapper {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 10px;
  background: rgba(0, 0, 0, 0.25);
  padding: 15px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.seq-notes-labels {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 8px 0;
  font-family: var(--font-title);
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-cyan);
}

.seq-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 1fr);
  gap: 8px;
}

.seq-pad {
  height: 38px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.seq-pad:hover {
  background: rgba(0, 240, 255, 0.05);
  border-color: rgba(0, 240, 255, 0.2);
}

.seq-pad.active {
  background: linear-gradient(135deg, var(--magenta), var(--purple));
  border-color: var(--magenta);
  box-shadow: 0 0 10px rgba(255, 0, 127, 0.4);
}

.seq-pad.playing-step::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border: 2px solid var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  border-radius: 4px;
  pointer-events: none;
}

.synth-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px 18px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.synth-wave-selector {
  display: flex;
  gap: 8px;
}

.wave-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  font-size: 0.8rem;
}

.wave-btn.active, .wave-btn:hover {
  color: var(--cyan);
  border-color: var(--cyan);
  background: rgba(0, 240, 255, 0.05);
}

.master-vol-container {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.master-vol-slider {
  -webkit-appearance: none;
  width: 80px;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}
.master-vol-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cyan);
  cursor: pointer;
  box-shadow: 0 0 5px var(--cyan);
}

/* CYBER CONSOLE PANEL */
.terminal-panel {
  display: flex;
  flex-direction: column;
  min-height: 420px;
  flex-grow: 1;
}

.terminal-window {
  flex-grow: 1;
  background: rgba(2, 4, 8, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 20px;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: #10b981;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  height: 380px;
  gap: 8px;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.9);
}

.terminal-history {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.terminal-input-row {
  display: flex;
  align-items: center;
}

.terminal-prompt {
  color: var(--cyan);
  margin-right: 8px;
}

.terminal-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  flex-grow: 1;
  caret-color: var(--cyan);
}

.terminal-line {
  word-break: break-all;
  line-height: 1.4;
}
.terminal-line.output { color: var(--text-primary); }
.terminal-line.system { color: var(--text-cyan); }
.terminal-line.error { color: var(--magenta); }
.terminal-line.success { color: #10b981; }

/* SECTOR NETWORK MAP */
.network-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
}

.map-card {
  height: 400px;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-bg-art {
  position: absolute;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 240, 255, 0.05) 1px, transparent 1px);
  background-size: 15px 15px;
  opacity: 0.6;
}

.map-node {
  position: absolute;
  width: 16px;
  height: 16px;
  background: rgba(0, 240, 255, 0.1);
  border: 2px solid var(--cyan);
  border-radius: 50%;
  cursor: pointer;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px var(--cyan);
}

.map-node::after {
  content: "";
  position: absolute;
  width: 30px;
  height: 30px;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  animation: pulse-ring 2s infinite linear;
}

.map-node.offline {
  border-color: var(--magenta);
  box-shadow: 0 0 10px var(--magenta);
}
.map-node.offline::after {
  border-color: var(--magenta);
}

.map-node.breached {
  border-color: var(--purple);
  box-shadow: 0 0 10px var(--purple);
}
.map-node.breached::after {
  border-color: var(--purple);
}

.map-node:hover {
  transform: translate(-50%, -50%) scale(1.3);
  background: var(--cyan);
}
.map-node.offline:hover {
  background: var(--magenta);
}

.node-tooltip {
  position: absolute;
  background: rgba(3, 4, 8, 0.95);
  border: 1px solid var(--cyan);
  padding: 6px 12px;
  border-radius: 4px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
  transform: translate(-50%, -130%);
  z-index: 10;
  box-shadow: 0 0 10px rgba(0,240,255,0.25);
  white-space: nowrap;
}

.nodes-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.node-item-card {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 6px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.node-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-title);
  font-size: 0.8rem;
  font-weight: 700;
}

.node-status-badge {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.node-status-badge.offline {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.node-status-badge.breached {
  background: rgba(139, 92, 246, 0.1);
  color: #a78bfa;
}

.node-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.node-btn {
  flex-grow: 1;
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  padding: 5px 0;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.node-btn:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  background: rgba(0,240,255,0.05);
}

/* ========================================= */
/* NEW PAGES SPECIFIC STYLING - THE BIZARRE  */
/* ========================================= */

/* GLITCH METIN EFEKTI */
.glitch-text {
  position: relative;
}
.glitch-text::before, .glitch-text::after {
  content: attr(data-text);
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: var(--bg-color);
}
.glitch-text::before {
  left: 2.5px;
  text-shadow: -1.5px 0 var(--magenta);
  clip: rect(44px, 450px, 56px, 0);
  animation: glitch-anim 6s infinite linear alternate-reverse;
}
.glitch-text::after {
  left: -2.5px;
  text-shadow: -1.5px 0 var(--cyan);
  clip: rect(85px, 450px, 140px, 0);
  animation: glitch-anim2 6s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
  0% { clip: rect(12px, 9999px, 66px, 0); }
  100% { clip: rect(40px, 9999px, 55px, 0); }
}
@keyframes glitch-anim2 {
  0% { clip: rect(65px, 9999px, 110px, 0); }
  100% { clip: rect(18px, 9999px, 85px, 0); }
}

/* FLASHING ALERT WIDGETS */
.alert-panel {
  border: 1px solid var(--magenta);
  background: rgba(255, 0, 127, 0.05);
  animation: alert-flash 1.5s infinite alternate;
}

@keyframes alert-flash {
  from {
    box-shadow: 0 0 10px rgba(255, 0, 127, 0.15);
    border-color: rgba(255, 0, 127, 0.3);
  }
  to {
    box-shadow: 0 0 25px rgba(255, 0, 127, 0.5);
    border-color: var(--magenta);
    background: rgba(255, 0, 127, 0.12);
  }
}

/* 3D SYNTHWAVE GRID SCREEN */
.grid3d-container {
  width: 100%;
  height: 450px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  border-radius: 6px;
  overflow: hidden;
  background: #010204;
  position: relative;
}

#grid3d-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* RADAR SCANNER */
.radar-container {
  width: 100%;
  height: 380px;
  border: 1px solid rgba(0, 240, 255, 0.15);
  background: rgba(0, 0, 0, 0.5);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

#radar-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

/* NEURAL SYNC SCANNER VIEW */
.sync-scanner-container {
  width: 100%;
  height: 350px;
  border: 1px solid rgba(0, 240, 255, 0.2);
  background: rgba(2, 4, 8, 0.8);
  border-radius: 6px;
  position: relative;
  overflow: hidden;
}

.sync-scan-line {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: scan-vertical 3s infinite linear;
}

@keyframes scan-vertical {
  0% { top: 0%; }
  50% { top: 100%; }
  100% { top: 0%; }
}

.sync-scan-grid {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 200px; height: 200px;
  border: 2px solid var(--magenta);
  border-radius: 50%;
  box-shadow: 0 0 15px var(--magenta-glow);
  display: flex; align-items: center; justify-content: center;
}

.sync-scan-crosshair {
  position: absolute;
  width: 20px; height: 20px;
  border: 2px solid var(--cyan);
}

/* CYBER STOCK BOARD */
.market-ticker-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.market-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  padding: 10px 15px;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

.market-ticker-symbol {
  font-weight: 700;
  color: var(--text-cyan);
}

.market-ticker-price {
  color: #fff;
}

.market-ticker-change {
  color: #10b981;
}

.market-ticker-change.negative {
  color: #ef4444;
}

/* 3D QUANTUM COIN FLIP */
.coin-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
}

.coin-3d {
  width: 130px;
  height: 130px;
  perspective: 1000px;
  cursor: pointer;
}

.coin-inner {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.coin-inner.flipped {
  transform: rotateY(180deg);
}

.coin-side {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 900;
  border: 3px solid var(--cyan);
  background: #090e1a;
  box-shadow: 0 0 15px var(--cyan-glow);
  color: #fff;
}

.coin-back {
  transform: rotateY(180deg);
  border-color: var(--magenta);
  box-shadow: 0 0 15px var(--magenta-glow);
  color: var(--magenta);
}

/* GLITCH TRANSLATOR INPUT */
.glitch-input-group {
  display: flex;
  gap: 12px;
}

.glitch-text-input {
  flex-grow: 1;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 10px 15px;
  color: #fff;
  border-radius: 4px;
  font-family: var(--font-mono);
  outline: none;
}

.glitch-text-input:focus {
  border-color: var(--cyan);
}

.glitch-result-box {
  background: rgba(0,0,0,0.3);
  border: 1px dashed rgba(255,255,255,0.08);
  padding: 20px;
  border-radius: 4px;
  min-height: 80px;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  color: var(--magenta);
  text-shadow: 0 0 8px var(--magenta-glow);
  word-break: break-all;
}

/* QUANTUM DECRYPT PUZZLE */
.decrypt-nodes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.decrypt-node-btn {
  height: 50px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  cursor: pointer;
  color: var(--text-cyan);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.decrypt-node-btn:hover {
  border-color: var(--cyan);
  background: rgba(0,240,255,0.05);
}

.decrypt-node-btn.solved {
  background: rgba(16, 185, 129, 0.15);
  border-color: #10b981;
  color: #10b981;
  box-shadow: 0 0 10px rgba(16,185,129,0.3);
}

/* BIO-METRICS GAUGES */
.bio-metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
}

.bio-card {
  background: rgba(255,255,255,0.01);
  border: 1px solid rgba(255,255,255,0.05);
  padding: 12px;
  border-radius: 4px;
}

/* FOOTER */
footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-secondary);
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: auto;
}

.footer-link {
  color: var(--cyan);
  text-decoration: none;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--magenta);
  text-shadow: 0 0 8px var(--magenta-glow);
}

/* ANIMATIONS */
@keyframes shine {
  to { background-position: 200% center; }
}

@keyframes pulse-dot {
  0% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.9); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes spin-glow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
  100% { transform: translateY(0px); }
}

@keyframes pulse-ring {
  0% { transform: scale(0.5); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* RESPONSIVENESS */
@media (max-width: 1200px) {
  .dashboard-wrapper {
    grid-template-columns: 1fr;
  }
  .sidebar {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .nav-menu {
    flex-direction: row;
    width: 100%;
    justify-content: space-around;
  }
  .sidebar-section-title, .sidebar-footer {
    display: none;
  }
}

@media (max-width: 900px) {
  .core-grid, .network-grid {
    grid-template-columns: 1fr;
  }
  .synth-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
