:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #12122a;
  --bg-card: #181838;
  --cyan: #00f5ff;
  --purple: #b829ff;
  --green: #00ff88;
  --red: #ff3366;
  --yellow: #ffcc00;
  --text: #e0e0f0;
  --text-dim: #8888aa;
}

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

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

body::before {
  content: '';
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: 
    radial-gradient(ellipse at 20% 50%, rgba(184, 41, 255, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(0, 245, 255, 0.04) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 80%, rgba(0, 255, 136, 0.03) 0%, transparent 40%);
  pointer-events: none;
  z-index: 0;
}

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

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

.gradient-text {
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glow-cyan { box-shadow: 0 0 20px rgba(0, 245, 255, 0.3), inset 0 0 20px rgba(0, 245, 255, 0.05); }
.glow-purple { box-shadow: 0 0 20px rgba(184, 41, 255, 0.3), inset 0 0 20px rgba(184, 41, 255, 0.05); }
.glow-green { box-shadow: 0 0 20px rgba(0, 255, 136, 0.4), inset 0 0 20px rgba(0, 255, 136, 0.05); }

.neon-border {
  border: 2px dashed var(--cyan);
  transition: all 0.3s ease;
}
.neon-border:hover, .neon-border.drag-over {
  border-color: var(--purple);
  box-shadow: 0 0 30px rgba(184, 41, 255, 0.3);
}

.card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 12px;
  transition: all 0.3s ease;
}
.card:hover {
  border-color: rgba(0, 245, 255, 0.2);
}

.btn-primary {
  background: linear-gradient(135deg, var(--cyan), var(--purple));
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 24px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 20px rgba(0, 245, 255, 0.4); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.btn-green {
  background: linear-gradient(135deg, #00cc66, var(--green));
  color: #000;
  font-weight: 700;
  border: none;
  padding: 14px 36px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 1.1rem;
  transition: all 0.3s;
  font-family: 'Space Grotesk', sans-serif;
}
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(0, 255, 136, 0.5); }
.btn-green:disabled { opacity: 0.4; cursor: not-allowed; transform: none; box-shadow: none; }

.btn-red {
  background: linear-gradient(135deg, #cc2255, var(--red));
  color: #fff;
  font-weight: 600;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
}

.btn-outline {
  background: transparent;
  color: var(--cyan);
  border: 1px solid var(--cyan);
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Space Grotesk', sans-serif;
  transition: all 0.2s;
}
.btn-outline:hover { background: rgba(0, 245, 255, 0.1); }

.slider-container input[type="range"] {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  outline: none;
}
.slider-container input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 245, 255, 0.5);
}

.progress-bar {
  height: 8px;
  border-radius: 4px;
  background: var(--bg-secondary);
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
  transition: width 0.3s ease;
}

.shimmer {
  background: linear-gradient(90deg, transparent 0%, rgba(0,245,255,0.1) 50%, transparent 100%);
  background-size: 200% 100%;
  animation: shimmer 2s infinite;
}

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

@keyframes pulse { 
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

.pulse-anim { animation: pulse 2s ease-in-out infinite; }

.toast-container {
  position: fixed;
  bottom: 60px;
  right: 20px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.toast {
  padding: 12px 20px;
  border-radius: 8px;
  font-size: 0.875rem;
  max-width: 360px;
  animation: toastIn 0.3s ease;
  font-family: 'Space Grotesk', sans-serif;
}
.toast-success { background: rgba(0, 255, 136, 0.15); border: 1px solid var(--green); color: var(--green); }
.toast-error { background: rgba(255, 51, 102, 0.15); border: 1px solid var(--red); color: var(--red); }
.toast-warning { background: rgba(255, 204, 0, 0.15); border: 1px solid var(--yellow); color: var(--yellow); }
.toast-info { background: rgba(0, 245, 255, 0.15); border: 1px solid var(--cyan); color: var(--cyan); }

@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

.tab-active {
  background: linear-gradient(135deg, rgba(184, 41, 255, 0.2), rgba(0, 245, 255, 0.2));
  border-bottom: 2px solid var(--cyan);
}

.frame-thumb {
  width: 64px;
  height: 64px;
  border-radius: 4px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.1);
  flex-shrink: 0;
}

.scrollbar-hide::-webkit-scrollbar { display: none; }
.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }

@keyframes neuronPulse {
  0%, 100% { fill-opacity: 0.3; }
  50% { fill-opacity: 1; }
}

.status-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-secondary);
  border-top: 1px solid rgba(255,255,255,0.06);
  padding: 6px 16px;
  font-size: 0.75rem;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
}