:root {
  --nd-accent: #3b82f6;
  --nd-accent-light: #60a5fa;
  --nd-accent-dark: #2563eb;
  --nd-success: #22c55e;
  --nd-warning: #f59e0b;
  --nd-danger: #ef4444;
  --nd-bg: #09090b;
  --nd-surface: #18181b;
  --nd-surface-hover: #27272a;
  --nd-text: #fafafa;
  --nd-text-secondary: #a1a1aa;
  --nd-text-muted: #71717a;
  --space-1: 4px; --space-2: 8px; --space-3: 12px; --space-4: 16px;
  --space-5: 20px; --space-6: 24px; --space-8: 32px; --space-10: 40px;
  --font-sans: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
  --radius: 10px; --radius-lg: 14px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 14px; -webkit-font-smoothing: antialiased; }
body {
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.6;
  color: var(--nd-text);
  background: var(--nd-bg);
}

/* Layout */
.nd-container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--space-4); }
.nd-container-sm { max-width: 640px; }
.nd-flex { display: flex; }
.nd-flex-col { flex-direction: column; }
.nd-items-center { align-items: center; }
.nd-justify-between { justify-content: space-between; }
.nd-gap-2 { gap: var(--space-2); }
.nd-gap-3 { gap: var(--space-3); }
.nd-gap-4 { gap: var(--space-4); }
.nd-grid { display: grid; }
.nd-grid-2 { grid-template-columns: repeat(2, 1fr); gap: var(--space-4); }
.nd-grid-3 { grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }

@media (max-width: 768px) {
  .nd-grid-2, .nd-grid-3 { grid-template-columns: 1fr; }
}

/* Typography */
.nd-text-sm { font-size: 13px; }
.nd-text-lg { font-size: 16px; }
.nd-text-xl { font-size: 20px; }
.nd-text-2xl { font-size: 24px; }
.nd-font-semibold { font-weight: 600; }
.nd-font-bold { font-weight: 700; }
.nd-text-secondary { color: var(--nd-text-secondary); }
.nd-text-muted { color: var(--nd-text-muted); }

/* Buttons */
.nd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 150ms ease;
  text-decoration: none;
}
.nd-btn-primary {
  background: var(--nd-accent);
  color: white;
}
.nd-btn-primary:hover { background: var(--nd-accent-dark); }
.nd-btn-secondary {
  background: var(--nd-surface);
  color: var(--nd-text);
  border: 1px solid #3f3f46;
}
.nd-btn-secondary:hover { background: var(--nd-surface-hover); }
.nd-btn-lg {
  padding: 14px 28px;
  font-size: 16px;
}
.nd-btn-full {
  width: 100%;
}
.nd-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Cards */
.nd-card {
  background: var(--nd-surface);
  border: 1px solid #27272a;
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}
.nd-card-hover:hover {
  border-color: #3f3f46;
  background: var(--nd-surface-hover);
}

/* Forms */
.nd-field {
  margin-bottom: var(--space-4);
}
.nd-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--nd-text-secondary);
  margin-bottom: var(--space-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nd-field > label {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  text-transform: none;
  font-size: 14px;
  font-weight: normal;
  cursor: pointer;
  margin-bottom: var(--space-3);
}
.nd-field > label input[type="checkbox"] {
  width: auto;
  margin: 0;
}
.nd-field input,
.nd-field textarea,
.nd-field select {
  width: 100%;
  background: var(--nd-bg);
  border: 1px solid #27272a;
  border-radius: var(--radius);
  padding: 12px 16px;
  color: var(--nd-text);
  font-size: 14px;
  font-family: inherit;
  transition: all 150ms ease;
}
.nd-field input:focus,
.nd-field textarea:focus,
.nd-field select:focus {
  outline: none;
  border-color: var(--nd-accent);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
.nd-field textarea {
  resize: vertical;
  min-height: 100px;
}

/* Badges */
.nd-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.nd-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}
.nd-badge-blue { background: rgba(59, 130, 246, 0.1); color: var(--nd-accent-light); }
.nd-badge-green { background: rgba(34, 197, 94, 0.1); color: var(--nd-success); }
.nd-badge-amber { background: rgba(245, 158, 11, 0.1); color: var(--nd-warning); }
.nd-badge-red { background: rgba(239, 68, 68, 0.1); color: var(--nd-danger); }
