/* Voltara design tokens + shared primitives */
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url(../fonts/sora-600.woff2) format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url(../fonts/sora-700.woff2) format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 800; font-display: swap; src: url(../fonts/sora-800.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url(../fonts/manrope-400.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 500; font-display: swap; src: url(../fonts/manrope-500.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url(../fonts/manrope-600.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 700; font-display: swap; src: url(../fonts/manrope-700.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url(../fonts/manrope-800.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url(../fonts/jetbrains-mono-500.woff2) format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-weight: 700; font-display: swap; src: url(../fonts/jetbrains-mono-700.woff2) format('woff2'); }

:root {
  --ink-0: #05070a; --ink-1: #0a0e13; --ink-2: #10151c; --ink-3: #171e27; --ink-4: #212a35;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12); --line-3: rgba(255,255,255,.2);
  --text: #eef2f6; --muted: #8d99a8; --dim: #5d6876;
  --volt: #c8ff2e; --volt-2: #a6e01a; --volt-ink: #0b1102; --volt-glow: rgba(200,255,46,.35);
  --cyan: #3ce6d2; --cyan-glow: rgba(60,230,210,.3);
  --amber: #ffb547; --red: #ff5d6c; --violet: #a594ff; --violet-glow: rgba(165,148,255,.35); --blue: #4da3ff;
  --r-sm: 10px; --r: 16px; --r-lg: 22px; --r-xl: 28px;
  --f-display: 'Sora', 'Manrope', system-ui, sans-serif;
  --f-ui: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
  --ease: cubic-bezier(.2,.8,.2,1); --spring: cubic-bezier(.34,1.56,.64,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink-0); color: var(--text); font-family: var(--f-ui); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
svg { display: block; }
svg.ic { width: 18px; height: 18px; flex: none; }
.btn svg.ic { width: 18px; height: 18px; }
.btn-sm svg.ic { width: 16px; height: 16px; }
a.btn { text-decoration: none; }
.mono { font-family: var(--f-mono); font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.display { font-family: var(--f-display); letter-spacing: -.02em; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--volt); outline-offset: 2px; border-radius: 8px; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px;
  transition: transform .18s var(--spring), background .2s, box-shadow .2s, opacity .2s; user-select: none; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn-volt { background: var(--volt); color: var(--volt-ink); box-shadow: 0 8px 28px -8px var(--volt-glow), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-volt:hover { background: #d4ff55; }
.btn-ghost { background: rgba(255,255,255,.06); border: 1px solid var(--line-2); }
.btn-ghost:hover { background: rgba(255,255,255,.1); }
.btn-danger { background: rgba(255,93,108,.12); color: var(--red); border: 1px solid rgba(255,93,108,.3); }
.btn-ai { background: linear-gradient(135deg, #8f7bff, #5ad8ff); color: #08091a; box-shadow: 0 8px 28px -8px var(--violet-glow); }
.btn-sm { height: 36px; padding: 0 14px; border-radius: 11px; font-size: 13px; }
.btn-block { width: 100%; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: transform .18s var(--spring), background .2s; }
.icon-btn:active { transform: scale(.9); }
.icon-btn svg { width: 20px; height: 20px; }

.chip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted); transition: all .2s var(--ease); }
.chip.on { background: var(--volt); color: var(--volt-ink); border-color: transparent; }
.chip svg { width: 15px; height: 15px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 7px; font-size: 11.5px; font-weight: 700; letter-spacing: .01em; white-space: nowrap; }
.tag.volt { background: rgba(200,255,46,.12); color: var(--volt); }
.tag.cyan { background: rgba(60,230,210,.12); color: var(--cyan); }
.tag.amber { background: rgba(255,181,71,.13); color: var(--amber); }
.tag.red { background: rgba(255,93,108,.13); color: var(--red); }
.tag.violet { background: rgba(165,148,255,.14); color: var(--violet); }
.tag.plain { background: rgba(255,255,255,.06); color: var(--muted); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.dot.live { background: var(--volt); box-shadow: 0 0 0 0 var(--volt-glow); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--volt-glow); } 70% { box-shadow: 0 0 0 8px rgba(200,255,46,0); } 100% { box-shadow: 0 0 0 0 rgba(200,255,46,0); } }

.card { background: linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.015)); border: 1px solid var(--line); border-radius: var(--r-lg); }
.skel { background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.09) 50%, rgba(255,255,255,.04) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: 12px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.rise { animation: rise .5s var(--ease) both; }

/* toast */
.toasts { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 400px); pointer-events: none; }
.toast { pointer-events: auto; background: rgba(23,30,39,.96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border: 1px solid var(--line-2); border-radius: 14px; padding: 12px 14px;
  display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; box-shadow: 0 18px 40px -12px rgba(0,0,0,.6); animation: rise .35s var(--spring) both; }
.toast.err { border-color: rgba(255,93,108,.4); }
.toast.err::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.toast.ok::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--volt); flex: none; }
.toast.out { opacity: 0; transform: translateY(8px); transition: all .3s; }

.credit { font-size: 11.5px; color: var(--dim); text-decoration: none; }
.credit b { color: var(--muted); font-weight: 700; }
.credit:hover b { color: var(--volt); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; } }
