/*
 * host24 — дизайн-токены для WHMCS. СГЕНЕРИРОВАНО, НЕ РЕДАКТИРОВАТЬ ВРУЧНУЮ.
 * Источник: packages/ui/src/styles/globals.css → bun scripts/build-whmcs-tokens.ts
 */

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #0f1011;
  --surface: #f7f7f5;
  --panel: #f6f6f3;
  --panel-raised: #efefeb;
  --fill: var(--panel);
  --card: #ffffff;
  --card-foreground: #0f1011;
  --popover: #ffffff;
  --popover-foreground: #0f1011;
  --primary: #d3e94d;
  --primary-hover: #cbe52d;
  --primary-foreground: #0f1011;
  --brand-soft: #f7fbe0;
  --brand-ink: #5e6b0f;
  --brand-tint: #eef6c4;
  --contrast: #22252a;
  --contrast-hover: #383c42;
  --contrast-foreground: #ffffff;
  --inverse: #1a1c1f;
  --inverse-foreground: #f4f4f1;
  --inverse-muted: #a3a39d;
  --inverse-border: #2f3236;
  --overlay: rgb(15 16 17 / 0.4);
  --secondary: #f2f2ef;
  --secondary-foreground: #0f1011;
  --muted: #f2f2ef;
  --muted-foreground: #62625c;
  --accent: #f2f2ef;
  --accent-foreground: #0f1011;
  --border: #e5e5e1;
  --input: #dadad5;
  --ring: #86981b;
  --destructive: #dc2626;
  --success: #15803d;
  --warning: #b45309;
  --info: #2563eb;
  --chart-1: #d3e94d;
  --chart-2: #5e6b0f;
  --chart-3: #62625c;
  --chart-4: #2563eb;
  --chart-5: #0f1011;
  --radius: 0.625rem;
  --radius-card-size: 1.25rem;
  --radius-panel-size: 1.5rem;
  --radius-panel-lg-size: 1.75rem;
  --radius-tile-size: 1rem;
  --panel-inset: 0.5rem;
  --elevation-xs: 0 1px 2px 0 rgb(15 16 17 / 0.04);
  --elevation-sm: 0 1px 2px 0 rgb(15 16 17 / 0.05), 0 1px 3px 0 rgb(15 16 17 / 0.05);
  --elevation-md: 0 4px 12px -2px rgb(15 16 17 / 0.07), 0 2px 4px -2px rgb(15 16 17 / 0.04);
  --elevation-lg: 0 12px 32px -8px rgb(15 16 17 / 0.1), 0 4px 8px -4px rgb(15 16 17 / 0.04);
  --elevation-xl: 0 24px 56px -12px rgb(15 16 17 / 0.14);
  --elevation-card: 0 4px 16px rgb(15 16 17 / 0.04), 0 1px 2px rgb(15 16 17 / 0.06);
  --elevation-card-hover: 0 12px 32px rgb(15 16 17 / 0.08), 0 2px 4px rgb(15 16 17 / 0.06);
  --elevation-popover: 0 24px 64px rgb(15 16 17 / 0.12), 0 2px 6px rgb(15 16 17 / 0.05);
  --sidebar: var(--surface);
  --sidebar-foreground: var(--foreground);
  --sidebar-primary: var(--primary);
  --sidebar-primary-foreground: var(--primary-foreground);
  --sidebar-accent: var(--accent);
  --sidebar-accent-foreground: var(--accent-foreground);
  --sidebar-border: var(--border);
  --sidebar-ring: var(--ring);

  /* Шкала радиусов (как в @theme inline сайта) */
  --radius-sm: calc(var(--radius) * 0.6);
  --radius-md: calc(var(--radius) * 0.8);
  --radius-lg: var(--radius);
  --radius-xl: calc(var(--radius) * 1.4);
  --radius-2xl: calc(var(--radius) * 1.8);
  --radius-3xl: calc(var(--radius) * 2.2);
  --radius-4xl: calc(var(--radius) * 2.6);
  --radius-card: var(--radius-card-size);
  --radius-panel: var(--radius-panel-size);
  --radius-panel-lg: var(--radius-panel-lg-size);
  --radius-tile: var(--radius-tile-size);

  /* Типографика и прочие статичные токены (@theme сайта) */
  --text-display-xl: 4.5rem;
  --text-display-xl--line-height: 1.02;
  --text-display-xl--letter-spacing: -0.035em;
  --text-display-xl--font-weight: 600;
  --text-display: 3.75rem;
  --text-display--line-height: 1.06;
  --text-display--letter-spacing: -0.03em;
  --text-display--font-weight: 600;
  --text-title: 3rem;
  --text-title--line-height: 1.08;
  --text-title--letter-spacing: -0.03em;
  --text-title--font-weight: 600;
  --text-price: 2rem;
  --text-price--line-height: 1.1;
  --text-price--letter-spacing: -0.02em;
  --text-price--font-weight: 600;
  --container-site: 76rem;
  --container-prose: 42rem;
  --ease-out-soft: cubic-bezier(0.22, 1, 0.36, 1);

  /* Шрифты: Onest (self-host, fonts/) + знак тенге из системного шрифта, моно — системный стек */
  --font-sans: "Tenge Sign", "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-heading: var(--font-sans);
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, "Cascadia Mono", "Roboto Mono", Consolas, monospace;
}

@media (min-width: 64rem) {
  :root {
    --radius-card-size: 1.5rem;
    --radius-panel-size: 2.25rem;
    --radius-panel-lg-size: 3rem;
    --radius-tile-size: 1.25rem;
    --panel-inset: 1.5rem;
  }
}

/* Тёмная тема: переключатель (класс .dark на <html>) */
:root.dark {
  color-scheme: dark;
  --background: #0c0d0e;
  --foreground: #ededea;
  --surface: #111214;
  --panel: #131416;
  --panel-raised: #1b1c1f;
  --card: #1a1b1e;
  --fill: var(--panel);
  --card-foreground: #ededea;
  --popover: #18191b;
  --popover-foreground: #ededea;
  --primary: #d3e94d;
  --primary-hover: #cbe52d;
  --primary-foreground: #0c0d0e;
  --brand-soft: #25290f;
  --brand-ink: #e6f39b;
  --brand-tint: #2c3212;
  --contrast: #ededea;
  --contrast-hover: #d4d4cf;
  --contrast-foreground: #0c0d0e;
  --inverse: #161719;
  --inverse-foreground: #f4f4f1;
  --inverse-muted: #a3a39d;
  --inverse-border: #2e2f33;
  --overlay: rgb(0 0 0 / 0.6);
  --secondary: #1d1e21;
  --secondary-foreground: #ededea;
  --muted: #1d1e21;
  --muted-foreground: #a0a09a;
  --accent: #222326;
  --accent-foreground: #ededea;
  --border: #26272b;
  --input: #34353a;
  --ring: #d4ea52;
  --destructive: #f05252;
  --success: #4ade80;
  --warning: #fbbf24;
  --info: #60a5fa;
  --chart-1: #d3e94d;
  --chart-2: #e6f39b;
  --chart-3: #a0a09a;
  --chart-4: #60a5fa;
  --chart-5: #ededea;
  --elevation-xs: 0 1px 2px 0 rgb(0 0 0 / 0.4);
  --elevation-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4), 0 1px 3px 0 rgb(0 0 0 / 0.3);
  --elevation-md: 0 4px 12px -2px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
  --elevation-lg: 0 12px 32px -8px rgb(0 0 0 / 0.6), 0 4px 8px -4px rgb(0 0 0 / 0.4);
  --elevation-xl: 0 24px 56px -12px rgb(0 0 0 / 0.7);
  --elevation-card: 0 1px 2px rgb(0 0 0 / 0.3);
  --elevation-card-hover: 0 12px 32px rgb(0 0 0 / 0.45), 0 2px 4px rgb(0 0 0 / 0.3);
  --elevation-popover: 0 24px 64px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.4);
}

/* Тёмная тема по системе — если пользователь явно не выбрал светлую (класс .light) */
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    color-scheme: dark;
    --background: #0c0d0e;
    --foreground: #ededea;
    --surface: #111214;
    --panel: #131416;
    --panel-raised: #1b1c1f;
    --card: #1a1b1e;
    --fill: var(--panel);
    --card-foreground: #ededea;
    --popover: #18191b;
    --popover-foreground: #ededea;
    --primary: #d3e94d;
    --primary-hover: #cbe52d;
    --primary-foreground: #0c0d0e;
    --brand-soft: #25290f;
    --brand-ink: #e6f39b;
    --brand-tint: #2c3212;
    --contrast: #ededea;
    --contrast-hover: #d4d4cf;
    --contrast-foreground: #0c0d0e;
    --inverse: #161719;
    --inverse-foreground: #f4f4f1;
    --inverse-muted: #a3a39d;
    --inverse-border: #2e2f33;
    --overlay: rgb(0 0 0 / 0.6);
    --secondary: #1d1e21;
    --secondary-foreground: #ededea;
    --muted: #1d1e21;
    --muted-foreground: #a0a09a;
    --accent: #222326;
    --accent-foreground: #ededea;
    --border: #26272b;
    --input: #34353a;
    --ring: #d4ea52;
    --destructive: #f05252;
    --success: #4ade80;
    --warning: #fbbf24;
    --info: #60a5fa;
    --chart-1: #d3e94d;
    --chart-2: #e6f39b;
    --chart-3: #a0a09a;
    --chart-4: #60a5fa;
    --chart-5: #ededea;
    --elevation-xs: 0 1px 2px 0 rgb(0 0 0 / 0.4);
    --elevation-sm: 0 1px 2px 0 rgb(0 0 0 / 0.4), 0 1px 3px 0 rgb(0 0 0 / 0.3);
    --elevation-md: 0 4px 12px -2px rgb(0 0 0 / 0.5), 0 2px 4px -2px rgb(0 0 0 / 0.4);
    --elevation-lg: 0 12px 32px -8px rgb(0 0 0 / 0.6), 0 4px 8px -4px rgb(0 0 0 / 0.4);
    --elevation-xl: 0 24px 56px -12px rgb(0 0 0 / 0.7);
    --elevation-card: 0 1px 2px rgb(0 0 0 / 0.3);
    --elevation-card-hover: 0 12px 32px rgb(0 0 0 / 0.45), 0 2px 4px rgb(0 0 0 / 0.3);
    --elevation-popover: 0 24px 64px rgb(0 0 0 / 0.6), 0 2px 6px rgb(0 0 0 / 0.4);
  }
}
