:root {
  --bg-deep: #06060f;
  --bg-card: rgba(12, 12, 30, 0.7);
  --neon-green: #00ff88;
  --neon-blue: #00bbff;
  --neon-pink: #ff3366;
  --neon-purple: #a855f7;
  --text-primary: #e0e0f0;
  --text-dim: #6b7094;
  --border-glow: rgba(0, 255, 136, 0.15);
}

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

body {
  background: var(--bg-deep);
  color: var(--text-primary);
  font-family: 'Space Grotesk', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(0, 255, 136, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 187, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(255, 51, 102, 0.02) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

#root { position: relative; z-index: 1; }

.font-mono { font-family: 'JetBrains Mono', monospace !important; }

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  transition: border-color 0.3s;
}
.glass-card:hover {
  border-color: rgba(0, 255, 136, 0.12);
}

.neon-glow-green {
  box-shadow: 0 0 20px rgba(0, 255, 136, 0.3), 0 0 60px rgba(0, 255, 136, 0.1);
}
.neon-glow-blue {
  box-shadow: 0 0 20px rgba(0, 187, 255, 0.3), 0 0 60px rgba(0, 187, 255, 0.1);
}
.neon-glow-pink {
  box-shadow: 0 0 20px rgba(255, 51, 102, 0.3), 0 0 60px rgba(255, 51, 102, 0.1);
}

.btn-neon {
  background: linear-gradient(135deg, #00ff88, #00cc6a);
  color: #06060f;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.btn-neon:hover {
  transform: translateY(-1px);
  box-shadow: 0 0 30px rgba(0, 255, 136, 0.5), 0 0 80px rgba(0, 255, 136, 0.2);
}
.btn-neon:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--neon-blue);
}

.btn-danger {
  background: rgba(255, 51, 102, 0.15);
  color: var(--neon-pink);
  border: 1px solid rgba(255, 51, 102, 0.3);
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-danger:hover {
  background: rgba(255, 51, 102, 0.25);
}

.drop-zone {
  border: 2px dashed rgba(0, 187, 255, 0.3);
  border-radius: 12px;
  transition: all 0.3s;
  cursor: pointer;
}
.drop-zone:hover, .drop-zone.dragover {
  border-color: var(--neon-blue);
  background: rgba(0, 187, 255, 0.05);
}

.slider-container input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 2px;
  outline: none;
}
.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--neon-green);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 255, 136, 0.5);
}

canvas.pixel-canvas {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

.loss-chart-container {
  position: relative;
  width: 100%;
  height: 200px;
}

@keyframes pulse-glow {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}
.pulse-glow {
  animation: pulse-glow 2s ease-in-out infinite;
}

@keyframes training-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 255, 136, 0.2); }
  50% { box-shadow: 0 0 40px rgba(0, 255, 136, 0.5), 0 0 80px rgba(0, 255, 136, 0.2); }
}
.training-active {
  animation: training-pulse 1.5s ease-in-out infinite;
}

.grid-bg {
  background-image: 
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 20px 20px;
}

.scrollbar-thin::-webkit-scrollbar { width: 4px; }
.scrollbar-thin::-webkit-scrollbar-track { background: transparent; }
.scrollbar-thin::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

select {
  background: rgba(255,255,255,0.06);
  color: var(--text-primary);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 6px 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
}
select:focus { border-color: var(--neon-green); }
select option { background: #0a0a1a; }

.timeline-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 8px 0;
}
.timeline-strip::-webkit-scrollbar { height: 3px; }
.timeline-strip::-webkit-scrollbar-thumb { background: rgba(0,255,136,0.3); border-radius: 2px; }