/* Expert Advisor HQ — Design Tokens */
:root {
  /* Type scale */
  --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --text-sm: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
  --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  --text-lg: clamp(1.125rem, 1rem + 0.75vw, 1.5rem);
  --text-xl: clamp(1.5rem, 1.2rem + 1.25vw, 2.25rem);
  --text-2xl: clamp(2rem, 1.2rem + 2.5vw, 3.5rem);
  --text-3xl: clamp(2.5rem, 1rem + 4vw, 5rem);

  /* Spacing */
  --space-1: .25rem; --space-2: .5rem; --space-3: .75rem; --space-4: 1rem;
  --space-5: 1.25rem; --space-6: 1.5rem; --space-8: 2rem; --space-10: 2.5rem;
  --space-12: 3rem; --space-16: 4rem; --space-20: 5rem; --space-24: 6rem;

  /* Radius */
  --radius-sm: .375rem;
  --radius-md: .625rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;

  --transition: 220ms cubic-bezier(0.16, 1, 0.3, 1);

  --font-display: 'Cabinet Grotesk', 'Inter', sans-serif;
  --font-body: 'General Sans', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  --content-default: 1200px;
  --content-wide: 1400px;
}

/* DARK (default for trading tools) */
:root, [data-theme="dark"] {
  --color-bg: #07090c;
  --color-bg-2: #0b0e13;
  --color-surface: #10141b;
  --color-surface-2: #141924;
  --color-surface-3: #1a2030;
  --color-border: #1f2738;
  --color-border-strong: #2a3347;
  --color-divider: #181d29;

  --color-text: #e6ebf4;
  --color-text-muted: #8a93a6;
  --color-text-faint: #5a6377;
  --color-text-inverse: #0a0d12;

  /* Neon accents */
  --color-primary: #00d4ff;   /* electric blue */
  --color-primary-hover: #33dbff;
  --color-primary-soft: rgba(0, 212, 255, 0.12);
  --color-primary-glow: rgba(0, 212, 255, 0.45);

  --color-gold: #ffd24a;
  --color-gold-hover: #ffdd6e;
  --color-gold-soft: rgba(255, 210, 74, 0.10);
  --color-gold-glow: rgba(255, 210, 74, 0.45);

  --color-success: #2dd4a7;
  --color-error: #ff5d73;
  --color-warning: #ffae3b;

  --glass-bg: rgba(20, 25, 36, 0.55);
  --glass-border: rgba(255,255,255,0.06);
  --glass-shadow: 0 12px 40px rgba(0,0,0,0.45);

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.4);
  --shadow-md: 0 6px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 20px 48px rgba(0,0,0,0.55);
}

/* LIGHT */
[data-theme="light"] {
  --color-bg: #f6f8fb;
  --color-bg-2: #ffffff;
  --color-surface: #ffffff;
  --color-surface-2: #f2f4f8;
  --color-surface-3: #e8ecf3;
  --color-border: #e1e5ed;
  --color-border-strong: #c8cfdc;
  --color-divider: #eceff5;

  --color-text: #0c111a;
  --color-text-muted: #545b6b;
  --color-text-faint: #8a93a6;
  --color-text-inverse: #ffffff;

  --color-primary: #0086a8;
  --color-primary-hover: #00738f;
  --color-primary-soft: rgba(0, 134, 168, 0.08);
  --color-primary-glow: rgba(0, 134, 168, 0.25);

  --color-gold: #b8860b;
  --color-gold-hover: #9a6f08;
  --color-gold-soft: rgba(184, 134, 11, 0.08);
  --color-gold-glow: rgba(184, 134, 11, 0.25);

  --color-success: #0f9a73;
  --color-error: #d13a54;
  --color-warning: #c97a13;

  --glass-bg: rgba(255,255,255,0.7);
  --glass-border: rgba(12,17,26,0.08);
  --glass-shadow: 0 10px 30px rgba(12,17,26,0.08);

  --shadow-sm: 0 1px 2px rgba(12,17,26,0.06);
  --shadow-md: 0 6px 20px rgba(12,17,26,0.08);
  --shadow-lg: 0 20px 48px rgba(12,17,26,0.12);
}
