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

body {
  font-family: 'Space Grotesk', sans-serif;
  background-color: #0d1117;
  background-image: radial-gradient(circle at 1px 1px, rgba(88,166,255,0.06) 1px, transparent 0);
  background-size: 24px 24px;
}

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0d1117; }
::-webkit-scrollbar-thumb { background: #30363d; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #484f58; }

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

.panel {
  background: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
}

.card {
  background: #21262d;
  border: 1px solid #30363d;
  border-radius: 8px;
}

.glow-blue { box-shadow: 0 0 20px rgba(88,166,255,0.3), 0 0 40px rgba(88,166,255,0.1); }
.glow-purple { box-shadow: 0 0 20px rgba(188,140,255,0.3), 0 0 40px rgba(188,140,255,0.1); }
.glow-green { box-shadow: 0 0 20px rgba(63,185,80,0.3); }

.gradient-line {
  height: 2px;
  background: linear-gradient(90deg, #58a6ff, #bc8cff, #58a6ff);
  background-size: 200% 100%;
  animation: shimmer 3s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 0.4; transform: scale(0.8); }
  50% { opacity: 1; transform: scale(1.2); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeIn 0.3s ease forwards; }

.pulse-dot { animation: pulse-dot 1.5s ease infinite; }
.pulse-dot-active { animation: pulse-dot 0.5s ease infinite; }

.drop-zone {
  border: 2px dashed #30363d;
  transition: all 0.2s;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: #58a6ff;
  background: rgba(88,166,255,0.05);
}

.btn-primary {
  background: linear-gradient(135deg, #58a6ff, #bc8cff);
  color: white;
  font-weight: 600;
  padding: 10px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(88,166,255,0.3); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-secondary {
  background: #21262d;
  color: #c9d1d9;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid #30363d;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-secondary:hover { border-color: #58a6ff; color: #58a6ff; }
.btn-secondary:disabled { opacity: 0.5; cursor: not-allowed; }

.tab-active {
  background: #58a6ff;
  color: white;
}
.tab-inactive {
  background: #21262d;
  color: #8b949e;
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #21262d;
  height: 6px;
  border-radius: 3px;
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #58a6ff;
  cursor: pointer;
}

.neon-border {
  border: 2px solid #bc8cff;
  box-shadow: 0 0 15px rgba(188,140,255,0.4), inset 0 0 15px rgba(188,140,255,0.1);
}

.training-log {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  color: #8b949e;
}

.tooltip-wrapper { position: relative; }
.tooltip-wrapper .tooltip-text {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #30363d;
  color: #c9d1d9;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 50;
  transition: opacity 0.2s;
  pointer-events: none;
}
.tooltip-wrapper:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

@media (max-width: 1024px) {
  .main-panels { flex-direction: column !important; }
}