:root {
  --bg-primary: #0a0a14;
  --bg-secondary: #0f0f1a;
  --bg-card: rgba(18, 18, 32, 0.85);
  --blue: #00d4ff;
  --pink: #ff2d7b;
  --green: #39ff14;
  --yellow: #ffe31a;
  --border-glass: rgba(255,255,255,0.06);
  --text-dim: rgba(255,255,255,0.45);
}

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

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

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0,212,255,0.06) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 100%, rgba(255,45,123,0.05) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 50%, rgba(57,255,20,0.02) 0%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

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

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

.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  border: 1px solid var(--border-glass);
  border-radius: 16px;
}

.glow-blue { box-shadow: 0 0 20px rgba(0,212,255,0.15), inset 0 0 20px rgba(0,212,255,0.03); }
.glow-pink { box-shadow: 0 0 20px rgba(255,45,123,0.15), inset 0 0 20px rgba(255,45,123,0.03); }
.glow-green { box-shadow: 0 0 20px rgba(57,255,20,0.15), inset 0 0 20px rgba(57,255,20,0.03); }

.neon-border-blue { border-color: rgba(0,212,255,0.3); }
.neon-border-pink { border-color: rgba(255,45,123,0.3); }

@keyframes pulse-border {
  0%, 100% { border-color: rgba(0,212,255,0.2); }
  50% { border-color: rgba(0,212,255,0.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

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

.drop-zone {
  border: 2px dashed rgba(0,212,255,0.3);
  transition: all 0.3s ease;
}
.drop-zone:hover, .drop-zone.drag-over {
  border-color: var(--blue);
  background: rgba(0,212,255,0.05);
  box-shadow: 0 0 30px rgba(0,212,255,0.1);
}

.btn-primary {
  background: linear-gradient(135deg, var(--blue), #0099cc);
  color: #000;
  font-weight: 700;
  border: none;
  padding: 12px 32px;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 15px;
  letter-spacing: 0.5px;
}
.btn-primary:hover {
  box-shadow: 0 0 25px rgba(0,212,255,0.4);
  transform: translateY(-1px);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

.btn-danger {
  background: linear-gradient(135deg, var(--pink), #cc1155);
  color: #fff;
}
.btn-danger:hover {
  box-shadow: 0 0 25px rgba(255,45,123,0.4);
}

.btn-secondary {
  background: rgba(255,255,255,0.06);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 8px 18px;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-family: 'Space Grotesk', sans-serif;
  font-size: 13px;
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.2);
}

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

select {
  background: rgba(255,255,255,0.06);
  color: #ccc;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 12px;
  border-radius: 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  outline: none;
}
select:focus { border-color: var(--blue); }

.console-log {
  background: #05050d;
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  line-height: 1.6;
  max-height: 200px;
  overflow-y: auto;
  padding: 12px;
}
.console-log::-webkit-scrollbar { width: 4px; }
.console-log::-webkit-scrollbar-track { background: transparent; }
.console-log::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.1); border-radius: 2px; }

.thumbnail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 6px;
}

.img-thumb {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.08);
  transition: all 0.2s;
}
.img-thumb:hover {
  border-color: var(--blue);
  box-shadow: 0 0 12px rgba(0,212,255,0.2);
}

.gen-sample {
  border-radius: 6px;
  image-rendering: pixelated;
  border: 1px solid rgba(255,255,255,0.06);
  transition: all 0.3s;
}

.section-title {
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
}

.vs-badge {
  background: linear-gradient(135deg, var(--blue), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 28px;
  font-weight: 800;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn 0.4s ease-out; }

@keyframes spin-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.spin-slow { animation: spin-slow 8s linear infinite; }

@media (max-width: 768px) {
  .main-grid { grid-template-columns: 1fr !important; }
}