:root {
  --space-black:   #020410;
  --nebula-deep:   #0a0e1f;
  --nebula-mid:    #0d1b3e;
  --accent-cyan:   #00d4ff;
  --accent-purple: #7b2fff;
  --accent-orange: #ff6b35;
  --text-primary:  #c8e6ff;
  --text-dim:      #4a7fa8;
  --text-ghost:    #1e3a5f;
  --border-glow:   #1a4a7a;
  --glow-cyan:     0 0 8px #00d4ff, 0 0 20px rgba(0,212,255,.25);
  --glow-purple:   0 0 8px #7b2fff, 0 0 20px rgba(123,47,255,.25);
}

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

html, body {
  height: 100%;
  background: var(--space-black);
  color: var(--text-primary);
  font-family: 'Share Tech Mono', monospace;
  overflow-x: hidden;
}

/* ── Starfield canvas ── */
#stars-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── Nebula gradient overlay ── */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 60% 40% at 20% 80%, rgba(123,47,255,.12) 0%, transparent 70%),
    radial-gradient(ellipse 50% 30% at 80% 20%, rgba(0,100,200,.10) 0%, transparent 60%),
    radial-gradient(ellipse 80% 60% at 50% 50%, rgba(2,4,16,.6) 0%, transparent 100%);
  pointer-events: none;
}

/* ── Layout ── */
#app {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ── Typography ── */
h1, h2, h3, .orbitron {
  font-family: 'Orbitron', sans-serif;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* ── Glowing separator ── */
.sep {
  border: none;
  border-top: 1px solid var(--border-glow);
  box-shadow: 0 0 6px rgba(0,212,255,.2);
  margin: 16px 0;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-glow); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-cyan); }

/* ── Panel card ── */
.panel {
  background: rgba(10,14,31,.85);
  border: 1px solid var(--border-glow);
  border-radius: 4px;
  box-shadow: inset 0 0 30px rgba(0,0,0,.5), 0 0 1px var(--accent-cyan);
  backdrop-filter: blur(4px);
}

/* ── Scan line animation ── */
@keyframes scanline {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100vh); }
}
.scanline {
  position: fixed;
  left: 0; width: 100%;
  height: 2px;
  background: linear-gradient(transparent, rgba(0,212,255,.06), transparent);
  animation: scanline 8s linear infinite;
  z-index: 2;
  pointer-events: none;
}

/* ── Cursor blink ── */
@keyframes blink { 0%,49%{opacity:1} 50%,100%{opacity:0} }
.cursor { display:inline-block; animation: blink 1s step-end infinite; }
