@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #090b11;
  --bg2: #10131c;
  --bg3: #171b27;
  --bg4: #1f2536;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.15);
  --text: #eef0f7;
  --text2: #9ba3bd;
  --text3: #6c748f;
  --accent: #8b7dff;
  --accent2: #a99eff;
  --accent-soft: rgba(139, 125, 255, 0.14);
  --btn: #6a5df2;
  --btn-h: #594be4;
  --ring: rgba(139, 125, 255, 0.28);
  --green: #34d399;
  --green-bg: rgba(52, 211, 153, 0.13);
  --red: #f87171;
  --red-bg: rgba(248, 113, 113, 0.13);
  --yellow: #fbbf24;
  --yellow-bg: rgba(251, 191, 36, 0.14);
  --blue: #60a5fa;
  --blue-bg: rgba(96, 165, 250, 0.14);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 10px 28px -8px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px -16px rgba(0, 0, 0, 0.65);
  --surface-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --page-glow: radial-gradient(85% 320px at 50% -90px, rgba(139, 125, 255, 0.075), transparent 72%);
  --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%239ba3bd' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f7fb;
  --bg2: #ffffff;
  --bg3: #f1f3f9;
  --bg4: #e5e8f2;
  --border: rgba(15, 23, 42, 0.08);
  --border-strong: rgba(15, 23, 42, 0.15);
  --text: #111827;
  --text2: #525b76;
  --text3: #8089a4;
  --accent: #5b4ef5;
  --accent2: #4a3ee0;
  --accent-soft: rgba(91, 78, 245, 0.09);
  --btn: #5b4ef5;
  --btn-h: #4a3ee0;
  --ring: rgba(91, 78, 245, 0.2);
  --green: #059669;
  --green-bg: rgba(5, 150, 105, 0.1);
  --red: #dc2626;
  --red-bg: rgba(220, 38, 38, 0.09);
  --yellow: #d97706;
  --yellow-bg: rgba(217, 119, 6, 0.1);
  --blue: #2563eb;
  --blue-bg: rgba(37, 99, 235, 0.09);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 10px 26px -10px rgba(15, 23, 42, 0.1);
  --shadow-lg: 0 24px 60px -16px rgba(15, 23, 42, 0.16);
  --surface-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.7);
  --page-glow: radial-gradient(85% 320px at 50% -90px, rgba(91, 78, 245, 0.055), transparent 72%);
  --select-chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23525b76' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.num, .stat-num, .tbl td.num { font-variant-numeric: tabular-nums; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(18px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes modalPop {
  from { opacity: 0; transform: scale(0.98) translateY(6px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 2px var(--green-bg); }
  50% { box-shadow: 0 0 0 5px var(--green-bg); }
}

.spin { animation: spin 0.9s linear infinite; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--text3); }
