:root {
  --bg: #0b0f14;
  --panel: #131922;
  --border: #232b38;
  --accent: #34d399;
  --violet: #a78bfa;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); }

.nc-display { font-family: 'Bricolage Grotesque', sans-serif; }
.nc-mono { font-family: 'JetBrains Mono', monospace; }
.nc-code { font-family: 'JetBrains Mono', monospace; }

.nc-bg {
  background:
    radial-gradient(circle at 12% 8%, rgba(52,211,153,0.10), transparent 45%),
    radial-gradient(circle at 88% 92%, rgba(167,139,250,0.10), transparent 45%),
    var(--bg);
  background-attachment: fixed;
}

/* Cards */
.nc-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0));
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

/* Inputs */
.nc-input {
  width: 100%;
  background: #0d131b;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  color: #e5e7eb;
  font-size: 14px;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.nc-input::placeholder { color: #4b5563; }
.nc-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(52,211,153,0.15);
}
textarea.nc-code { line-height: 1.5; }

/* Buttons */
.nc-btn {
  border: none;
  border-radius: 10px;
  padding: 11px 16px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: transform .1s, filter .15s, background .15s;
  font-family: 'Bricolage Grotesque', sans-serif;
}
.nc-btn:active { transform: translateY(1px) scale(0.99); }
.nc-btn-primary { background: var(--accent); color: #04180f; }
.nc-btn-primary:hover { filter: brightness(1.08); }
.nc-btn-accent { background: var(--violet); color: #170b2e; }
.nc-btn-accent:hover { filter: brightness(1.08); }
.nc-btn-ghost {
  background: transparent; color: #9ca3af;
  border: 1px solid var(--border);
}
.nc-btn-ghost:hover { color: #e5e7eb; border-color: #3a4556; }
.nc-btn-disabled {
  background: #1c232e; color: #4b5563; cursor: not-allowed;
}
.nc-btn-stop {
  background: #ef4444; color: #180404;
  animation: stopPulse 1.1s ease-in-out infinite;
}
.nc-btn-stop:hover { filter: brightness(1.08); }
@keyframes stopPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.5); }
  50% { box-shadow: 0 0 14px 3px rgba(239,68,68,0.55); }
}

/* Dataset entries */
.nc-entry {
  background: #0d131b;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  transition: border-color .15s;
}
.nc-entry:hover { border-color: #3a4556; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Progress bar */
.nc-progress-track {
  height: 10px;
  background: #0d131b;
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border);
}
.nc-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  transition: width .25s ease;
  box-shadow: 0 0 12px rgba(52,211,153,0.5);
}

/* Confidence bars */
.nc-bar-track {
  height: 8px;
  background: #0d131b;
  border-radius: 999px;
  overflow: hidden;
}
.nc-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width .5s cubic-bezier(.22,1,.36,1);
}

/* Brain pulse */
.brain { display: inline-block; animation: pulse 2.4s ease-in-out infinite; }
.brain-fast { animation: pulse 0.6s ease-in-out infinite; filter: drop-shadow(0 0 8px rgba(52,211,153,0.7)); }
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.12); }
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #2a3341; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #3a4556; }