/**
 * TaxHeaven Design Tokens — CSS Custom Properties
 *
 * AUTO-GENERATED — Do not edit manually.
 * Source: src/config/designTokens.ts, src/utils/glassStyles.ts
 * Generated: 2026-01-31
 *
 * Usage:
 *   <link rel="stylesheet" href="taxheaven-tokens.css">
 *   color: var(--th-text-primary);
 *   font-family: var(--th-font-body);
 *
 * Naming: --th-{category}-{name}
 * Regenerate: npm run generate:chatgpt-tokens
 */

:root {

  /* Brand Colors (shared across themes) */
  --th-color-primary: #8B7FFA;
  --th-color-primary-rgb: 139, 127, 250;

  /* Financial Colors (shared across themes) */
  --th-color-financial-income: #10D4A0;
  --th-color-financial-expense: #FFAA6C;
  --th-color-financial-tax: #8B7FFA;
  --th-color-financial-profit: #6EC1E4;
  --th-color-financial-neutral: #FFAA00;
  --th-color-financial-warning: #FF8C00;

  /* Typography — Font Families */
  --th-font-heading: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --th-font-body: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --th-font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Typography — Font Sizes (fluid clamp) */
  --th-font-size-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
  --th-font-size-sm: clamp(0.875rem, 0.8rem + 0.375vw, 1rem);
  --th-font-size-base: clamp(1rem, 0.9rem + 0.5vw, 1.125rem);
  --th-font-size-lg: clamp(1.125rem, 1rem + 0.625vw, 1.25rem);
  --th-font-size-xl: clamp(1.25rem, 1.1rem + 0.75vw, 1.5rem);
  --th-font-size-2xl: clamp(1.5rem, 1.3rem + 1vw, 2rem);
  --th-font-size-3xl: clamp(1.875rem, 1.6rem + 1.375vw, 2.5rem);
  --th-font-size-4xl: clamp(2.25rem, 1.9rem + 1.75vw, 3rem);
  --th-font-size-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
  --th-font-size-6xl: clamp(3.75rem, 3rem + 3.75vw, 5rem);

  /* Typography — Font Weights */
  --th-font-weight-light: 300;
  --th-font-weight-normal: 400;
  --th-font-weight-medium: 500;
  --th-font-weight-semibold: 600;
  --th-font-weight-bold: 700;

  /* Typography — Line Heights */
  --th-line-height-none: 1;
  --th-line-height-tight: 1.25;
  --th-line-height-snug: 1.375;
  --th-line-height-normal: 1.5;
  --th-line-height-relaxed: 1.625;
  --th-line-height-loose: 2;

  /* Typography — Letter Spacing */
  --th-letter-spacing-tighter: -0.05em;
  --th-letter-spacing-tight: -0.025em;
  --th-letter-spacing-normal: 0;
  --th-letter-spacing-wide: 0.025em;
  --th-letter-spacing-wider: 0.05em;
  --th-letter-spacing-widest: 0.1em;

  /* Spacing (base-8 system) */
  --th-spacing-0: 0;
  --th-spacing-1: 0.25rem;
  --th-spacing-2: 0.5rem;
  --th-spacing-3: 0.75rem;
  --th-spacing-4: 1rem;
  --th-spacing-5: 1.25rem;
  --th-spacing-6: 1.5rem;
  --th-spacing-8: 2rem;
  --th-spacing-10: 2.5rem;
  --th-spacing-12: 3rem;
  --th-spacing-16: 4rem;
  --th-spacing-20: 5rem;
  --th-spacing-24: 6rem;
  --th-spacing-32: 8rem;
  --th-spacing-40: 10rem;
  --th-spacing-48: 12rem;
  --th-spacing-64: 16rem;
  --th-spacing-unit: 4px;
  --th-spacing-base: 8px;

  /* Border Radius */
  --th-radius-none: 0;
  --th-radius-sm: 0.75rem;
  --th-radius-md: 1rem;
  --th-radius-lg: 1.5rem;
  --th-radius-xl: 2rem;
  --th-radius-2xl: 2.5rem;
  --th-radius-3xl: 3rem;
  --th-radius-full: 9999px;

  /* Glass Border Radius */
  --th-glass-radius-sm: 0.5rem;
  --th-glass-radius-md: 0.75rem;
  --th-glass-radius-lg: 1rem;
  --th-glass-radius-xl: 1.5rem;

  /* Heaven — Accent Colors */
  --th-color-accent: #6EC1E4;
  --th-color-accent-rgb: 110, 193, 228;

  /* Heaven — Semantic Colors */
  --th-color-success: #10D4A0;
  --th-color-warning: #FFAA6C;
  --th-color-error: #FF6B6B;
  --th-color-info: #8B7FFA;

  /* Heaven — Backgrounds */
  --th-bg-base: #F8FAFB;
  --th-bg-secondary: #F0F4F8;
  --th-bg-tertiary: #E8F0F7;
  --th-bg-glass: rgba(255, 255, 255, 0.7);
  --th-bg-glass-border: rgba(255, 255, 255, 0.3);
  --th-bg-glass-hover: rgba(255, 255, 255, 0.85);

  /* Heaven — Text Colors */
  --th-text-primary: #1A202C;
  --th-text-secondary: #4A5568;
  --th-text-tertiary: #5B6B7D;
  --th-text-inverse: #FFFFFF;

  /* Heaven — Control Surfaces */
  --th-control-input-bg: rgba(255, 255, 255, 0.7);
  --th-control-input-border: rgba(0, 0, 0, 0.08);
  --th-control-track-bg: rgba(0, 0, 0, 0.06);
  --th-control-active-bg: #FFFFFF;

  /* Heaven — Shadows */
  --th-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04);
  --th-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --th-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08);
  --th-shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.1);
  --th-shadow-glow-primary: 0 0 40px rgba(139, 127, 250, 0.3);
  --th-shadow-glow-accent: 0 0 40px rgba(110, 193, 228, 0.3);
  --th-shadow-glow-success: 0 0 40px rgba(16, 212, 160, 0.3);

  /* Heaven — Glass Effects */
  --th-glass-bg: rgba(255, 255, 255, 0.35);
  --th-glass-border: rgba(255, 255, 255, 0.5);
  --th-glass-blur: blur(40px) saturate(180%);
  --th-glass-shadow-card: 0 4px 20px rgba(139, 127, 250, 0.08);
  --th-glass-shadow-elevated: 0 8px 32px rgba(139, 127, 250, 0.12), 0 2px 8px rgba(0, 0, 0, 0.06);

  /* Button */
  --th-button-bg: #8B7FFA;
  --th-button-text: #FFFFFF;
}

[data-theme="hell"],
.dark {

  /* Hell — Accent Colors */
  --th-color-accent: #00D9FF;
  --th-color-accent-rgb: 0, 217, 255;

  /* Hell — Semantic Colors */
  --th-color-success: #00DC82;
  --th-color-warning: #FFAA00;
  --th-color-error: #FF4D6D;
  --th-color-info: #00D9FF;

  /* Hell — Backgrounds */
  --th-bg-base: #0F0F1E;
  --th-bg-secondary: #1A1A2E;
  --th-bg-tertiary: #252538;
  --th-bg-glass: rgba(255, 255, 255, 0.05);
  --th-bg-glass-border: rgba(255, 255, 255, 0.1);
  --th-bg-glass-hover: rgba(255, 255, 255, 0.08);

  /* Hell — Text Colors */
  --th-text-primary: #FFFFFF;
  --th-text-secondary: #E5E7EB;
  --th-text-tertiary: #D1D5DB;
  --th-text-inverse: #0F0F1E;

  /* Hell — Control Surfaces */
  --th-control-input-bg: rgba(255, 255, 255, 0.08);
  --th-control-input-border: rgba(255, 255, 255, 0.1);
  --th-control-track-bg: rgba(0, 0, 0, 0.4);
  --th-control-active-bg: rgba(255, 255, 255, 0.20);

  /* Hell — Shadows */
  --th-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --th-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
  --th-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
  --th-shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
  --th-shadow-glow-primary: 0 0 40px rgba(139, 127, 250, 0.4);
  --th-shadow-glow-accent: 0 0 40px rgba(0, 217, 255, 0.4);
  --th-shadow-glow-success: 0 0 40px rgba(0, 220, 130, 0.4);

  /* Hell — Glass Effects */
  --th-glass-bg: rgba(255, 255, 255, 0.03);
  --th-glass-border: rgba(255, 255, 255, 0.02);
  --th-glass-blur: blur(40px) saturate(180%);
  --th-glass-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
  --th-glass-shadow-elevated: 0 4px 24px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="heaven"]):not([data-theme="light"]) {
  
  /* Hell — Accent Colors */
    --th-color-accent: #00D9FF;
    --th-color-accent-rgb: 0, 217, 255;
  
  /* Hell — Semantic Colors */
    --th-color-success: #00DC82;
    --th-color-warning: #FFAA00;
    --th-color-error: #FF4D6D;
    --th-color-info: #00D9FF;
  
  /* Hell — Backgrounds */
    --th-bg-base: #0F0F1E;
    --th-bg-secondary: #1A1A2E;
    --th-bg-tertiary: #252538;
    --th-bg-glass: rgba(255, 255, 255, 0.05);
    --th-bg-glass-border: rgba(255, 255, 255, 0.1);
    --th-bg-glass-hover: rgba(255, 255, 255, 0.08);
  
  /* Hell — Text Colors */
    --th-text-primary: #FFFFFF;
    --th-text-secondary: #E5E7EB;
    --th-text-tertiary: #D1D5DB;
    --th-text-inverse: #0F0F1E;
  
  /* Hell — Control Surfaces */
    --th-control-input-bg: rgba(255, 255, 255, 0.08);
    --th-control-input-border: rgba(255, 255, 255, 0.1);
    --th-control-track-bg: rgba(0, 0, 0, 0.4);
    --th-control-active-bg: rgba(255, 255, 255, 0.20);
  
  /* Hell — Shadows */
    --th-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
    --th-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --th-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.4);
    --th-shadow-xl: 0 12px 48px rgba(0, 0, 0, 0.5);
    --th-shadow-glow-primary: 0 0 40px rgba(139, 127, 250, 0.4);
    --th-shadow-glow-accent: 0 0 40px rgba(0, 217, 255, 0.4);
    --th-shadow-glow-success: 0 0 40px rgba(0, 220, 130, 0.4);
  
  /* Hell — Glass Effects */
    --th-glass-bg: rgba(255, 255, 255, 0.03);
    --th-glass-border: rgba(255, 255, 255, 0.02);
    --th-glass-blur: blur(40px) saturate(180%);
    --th-glass-shadow-card: 0 4px 20px rgba(0, 0, 0, 0.1);
    --th-glass-shadow-elevated: 0 4px 24px rgba(0, 0, 0, 0.15);
  }
}
