:root {
  --bg-deep: #080810;
  --bg-surface: #111120;
  --bg-card: #181830;
  --bg-card-hover: #1e1e40;
  --accent-teal: #00d4aa;
  --accent-teal-dim: #009977;
  --accent-amber: #f59e0b;
  --accent-violet: #8b5cf6;
  --accent-red: #ef4444;
  --text-primary: #e8e8f0;
  --text-secondary: #8888aa;
  --text-muted: #555570;
  --border: #2a2a45;
}

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

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

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

@keyframes gradient-stripe {
  0% { background-position: 0 0; }
  100% { background-position: 40px 0; }
}

.progress-stripe {
  background-image: linear-gradient(
    45deg,
    rgba(255,255,255,0.08) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255,255,255,0.08) 50%,
    rgba(255,255,255,0.08) 75%,
    transparent 75%
  );
  background-size: 40px 40px;
  animation: gradient-stripe 0.8s linear infinite;
}

@keyframes dash-march {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -20; }
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(0, 212, 170, 0.15); }
  50% { box-shadow: 0 0 40px rgba(0, 212, 170, 0.3); }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-fade-in { animation: fade-in-up 0.35s ease-out forwards; }

@keyframes confetti-fall {
  0% { transform: translateY(-10px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(200px) rotate(720deg); opacity: 0; }
}

.confetti-piece {
  position: absolute;
  width: 8px;
  height: 8px;
  animation: confetti-fall 2s ease-out forwards;
}

.glass-card {
  background: rgba(24, 24, 48, 0.7);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.drop-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  transition: all 0.3s ease;
  cursor: pointer;
}

.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--accent-teal);
  background: rgba(0, 212, 170, 0.04);
  box-shadow: 0 0 30px rgba(0, 212, 170, 0.08);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent-teal);
  cursor: pointer;
  box-shadow: 0 0 8px rgba(0, 212, 170, 0.4);
}

input[type="number"], input[type="text"], select {
  background: var(--bg-deep);
  border: 1px solid var(--border);
  color: var(--text-primary);
  border-radius: 8px;
  padding: 8px 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  outline: none;
  transition: border-color 0.2s;
}

input[type="number"]:focus, select:focus {
  border-color: var(--accent-teal);
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

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

.toast {
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  animation: fade-in-up 0.3s ease-out;
  max-width: 360px;
}