/* ==========================================================================
   1. DESIGN TOKENS & RESET (Tactical Dark Bunker Theme, Zero External CDN)
   ========================================================================== */
:root {
  --bg-app: #0c0f13;
  --bg-panel: #131820;
  --bg-panel-alt: #171d26;
  --bg-card: #1a212c;
  --bg-card-hover: #202936;
  --bg-input: #0e1218;
  --bg-modal: #141a23;

  --border: #25303f;
  --border-strong: #344358;
  --border-focus: #f59e0b;

  --accent: #f59e0b;
  --accent-hover: #fbbf24;
  --accent-dark: #b45309;
  --accent-soft: rgba(245, 158, 11, 0.14);
  --accent-glow: rgba(245, 158, 11, 0.25);

  --emerald: #10b981;
  --emerald-soft: rgba(16, 185, 129, 0.14);
  --amber: #f59e0b;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --crimson: #ef4444;
  --crimson-soft: rgba(239, 68, 68, 0.14);
  --sky: #38bdf8;
  --sky-soft: rgba(56, 189, 248, 0.14);
  --discord: #5865f2;
  --discord-hover: #4752c4;

  --text-main: #e6ebf2;
  --text-secondary: #9aa7b9;
  --text-muted: #66758a;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.55);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;

  --header-h: 64px;
  --sidebar-w: 300px;
  --transition: 0.16s ease;
}

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

html, body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  background-color: var(--bg-app);
  color: var(--text-main);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body {
  background-image:
    radial-gradient(circle at 15% 0%, rgba(245, 158, 11, 0.055), transparent 40%),
    radial-gradient(circle at 85% 10%, rgba(16, 185, 129, 0.04), transparent 35%);
}

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

button {
  cursor: pointer;
  border: none;
  background: none;
  padding: 0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-app);
}
::-webkit-scrollbar-thumb {
  background: #2b3748;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3b4b61;
}
