/**
 * Design tokens — единый источник значений.
 * Меняем здесь — переиспользуется везде.
 */
:root {
  /* Colors */
  --color-bg: #0a0e14;
  --color-bg-elevated: rgba(15, 20, 28, 0.75);
  --color-surface: rgba(255, 255, 255, 0.06);
  --color-border: rgba(255, 255, 255, 0.12);
  --color-border-focus: rgba(0, 212, 255, 0.25);

  --color-text: #e7e9ea;
  --color-text-muted: rgba(231, 233, 234, 0.65);
  --color-text-subtle: rgba(231, 233, 234, 0.45);
  --color-text-placeholder: rgba(231, 233, 234, 0.35);

  --color-accent: #00d4ff;
  --color-accent-alt: #00ffaa;
  --color-accent-violet: #7c3aed;
  --color-accent-violet-raw: 138, 43, 226;

  --color-on-accent: #0a0e14;
  --color-error: #f4212e;
  --color-error-bg: rgba(244, 33, 46, 0.15);
  --color-error-border: rgba(244, 33, 46, 0.3);
  --color-success: #00ba7c;
  --color-success-bg: rgba(0, 186, 124, 0.15);
  --color-success-border: rgba(0, 186, 124, 0.3);
  --color-warning: #ff7700;

  /* Gradients (reference) */
  --gradient-brand: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-alt) 50%, var(--color-accent-violet) 100%);
  --gradient-btn: linear-gradient(135deg, var(--color-accent) 0%, var(--color-accent-alt) 100%);

  /* Spacing */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-11: 44px;
  --space-12: 48px;
  --space-16: 64px;

  /* Typography */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-size-xs: 12px;
  --font-size-sm: 13px;
  --font-size-base: 14px;
  --font-size-md: 15px;
  --font-size-lg: 18px;
  --font-size-xl: 24px;
  --font-size-2xl: 2.25rem;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;
  --line-height-tight: 1.2;
  --line-height-normal: 1.5;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* Shadows */
  --shadow-card: 0 24px 64px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --shadow-btn-hover: 0 8px 24px rgba(0, 212, 255, 0.35);

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;

  /* Z-index */
  --z-bg: 0;
  --z-content: 1;
  --z-modal: 1000;

  /* Layout */
  --sidebar-width: 260px;
  --select-arrow-space: 40px;

  /* Breakpoints (для медиа-запросов, значения в px) */
  --bp-mobile: 480;
  --bp-tablet: 768;
  --bp-desktop: 1024;

  /* Touch targets (мин. высота для кликабельных элементов) */
  --touch-target-min: 44px;

  /* Safe area (для notch и т.п.) */
  --safe-top: env(safe-area-inset-top, 0);
  --safe-right: env(safe-area-inset-right, 0);
  --safe-bottom: env(safe-area-inset-bottom, 0);
  --safe-left: env(safe-area-inset-left, 0);

  /* Scrollbar */
  --scrollbar-width: 8px;
  --scrollbar-radius: 4px;
  --scrollbar-track: var(--color-bg);
  --scrollbar-thumb: rgba(255, 255, 255, 0.2);
  --scrollbar-thumb-hover: rgba(255, 255, 255, 0.3);
}
