/* 67proxies — design tokens */
:root {
  /* Surfaces (cool neutral dark) */
  --bg-0: #07090d;      /* page */
  --bg-1: #0c1017;      /* card */
  --bg-2: #131823;      /* elevated */
  --bg-3: #1a2130;      /* hover */
  --line: #1e2533;
  --line-soft: #161c27;

  /* Text */
  --fg-0: #e7ecf3;
  --fg-1: #aab3c2;
  --fg-2: #6b7689;
  --fg-3: #465062;

  /* Accent — cyan electric */
  --accent: #3ddcc4;
  --accent-2: #7af7e3;
  --accent-ink: #062a25;
  --accent-glow: rgba(61, 220, 196, 0.18);

  /* Status */
  --ok: #4ade80;
  --warn: #f2b95a;
  --err: #f87171;
  --info: #7aa7f7;

  /* Effects */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --sh-card: 0 1px 0 rgba(255,255,255,0.03) inset, 0 20px 40px -24px rgba(0,0,0,0.6);
  --sh-pop: 0 24px 60px -20px rgba(0,0,0,0.7), 0 2px 0 rgba(255,255,255,0.04) inset;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg-0);
  color: var(--fg-0);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-feature-settings: 'ss01', 'ss02', 'cv11';
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-feature-settings: 'zero', 'ss01'; }

button, input, select, textarea { font-family: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; text-decoration: none; }

/* Scrollbars */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #1b2230; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #252d3e; }

/* Utility */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  transition: all 0.15s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: var(--accent-ink);
  box-shadow: 0 0 0 1px rgba(125, 247, 227, 0.4), 0 8px 24px -8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-2); transform: translateY(-1px); }
.btn-ghost { color: var(--fg-0); border: 1px solid var(--line); background: var(--bg-1); }
.btn-ghost:hover { border-color: var(--fg-2); background: var(--bg-2); }
.btn-sm { padding: 6px 10px; font-size: 13px; border-radius: 8px; }

.card {
  background: var(--bg-1);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-card);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px; border-radius: 999px;
  font-size: 11px; font-weight: 500;
  background: var(--bg-2); border: 1px solid var(--line);
  color: var(--fg-1);
}
.chip-accent { background: rgba(61, 220, 196, 0.1); border-color: rgba(61, 220, 196, 0.3); color: var(--accent); }
.chip-ok { background: rgba(74, 222, 128, 0.1); border-color: rgba(74, 222, 128, 0.3); color: var(--ok); }
.chip-warn { background: rgba(242, 185, 90, 0.1); border-color: rgba(242, 185, 90, 0.3); color: var(--warn); }
.chip-err { background: rgba(248, 113, 113, 0.1); border-color: rgba(248, 113, 113, 0.3); color: var(--err); }

.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }

.hr { height: 1px; background: var(--line); border: none; margin: 0; }

/* Noise overlay for richness */
.noise::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0.9 0 0 0 0 0.95 0 0 0 0 1 0 0 0 0.08 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  opacity: 0.4; mix-blend-mode: overlay;
}

.grid-bg {
  background-image:
    linear-gradient(rgba(255,255,255,0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.02) 1px, transparent 1px);
  background-size: 48px 48px;
}

input, select, textarea {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 12px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}
input:hover, select:hover, textarea:hover { border-color: var(--fg-3); }
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  background: var(--bg-1);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent);
}
input::placeholder { color: var(--fg-3); }

@keyframes authGlow {
  0%, 100% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); }
}
@keyframes authFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-fade-up > * { animation: authFadeUp 0.5s ease both; }
.auth-fade-up > *:nth-child(1) { animation-delay: 0.02s; }
.auth-fade-up > *:nth-child(2) { animation-delay: 0.08s; }
.auth-fade-up > *:nth-child(3) { animation-delay: 0.14s; }
.auth-fade-up > *:nth-child(4) { animation-delay: 0.20s; }
.auth-fade-up > *:nth-child(5) { animation-delay: 0.26s; }
.auth-fade-up > *:nth-child(6) { animation-delay: 0.32s; }
.auth-fade-up > *:nth-child(7) { animation-delay: 0.38s; }

table { border-collapse: collapse; width: 100%; }
