/* =============================================================================
   HASAN ALGO SUITE — DIZAYN TOKENLARI
   =============================================================================
   Audit (2026-10) dan oldin terminalda birorta ham CSS o'zgaruvchisi yo'q edi:
   index.html da 24 ta, app.js da 19 ta hardcoded hex qiymat bor edi, shu
   jumladan ko'zga deyarli bir xil ko'rinadigan 16 ta qora-ko'k fon rangi
   (#070714, #070913, #070916, #070b14, #071326, #090c17, #090c1a, #0a0e17,
   #0a0f1d, #0d1424 ...) bir-birining o'rniga tasodifiy ishlatilardi.

   Bu fayl yagona manba. Yangi rang qo'shishdan oldin shu yerga qarang.
   Tailwind utility ranglari index.html dagi `tailwind.config` orqali xuddi
   shu qiymatlarga bog'langan - ikkalasi bir joydan oziqlanadi.
   ========================================================================== */

:root {
  /* --- Sirtlar (Flowboard Neutral Obsidian #09090B & Bento Elevation) ------- */
  --bg-rgb:        9 9 11;    /* #09090B - Zinc-950 True Obsidian */
  --surface-1-rgb: 18 18 22;  /* #121216 - Primary Flowboard Card */
  --surface-2-rgb: 24 24 30;  /* #18181E - Nested Input & Pills */
  --surface-3-rgb: 34 34 42;  /* #22222A - Hover & Muted Chart Bars */

  --bg:          #09090B;                    /* sahifa foni - Neutral Obsidian */
  --surface-1:   linear-gradient(180deg, #16161B 0%, #101014 100%);
  --surface-2:   linear-gradient(180deg, #1A1A20 0%, #121216 100%);
  --surface-3:   rgb(var(--surface-3-rgb));  /* hover / tanlangan holat */

  /* --- Chegaralar (Hairline + Warm Flowboard Edge) ------------------------ */
  --border:          rgba(255, 255, 255, 0.07);
  --border-hairline: rgba(255, 255, 255, 0.07);
  --border-specular: rgba(255, 255, 255, 0.14);
  --border-strong:   rgba(249, 115, 22, 0.42);  /* Tangerine-Orange Edge */
  --border-gold:     rgba(245, 184, 61, 0.35);  /* Champagne Gold */
  --border-emerald:  rgba(16, 185, 129, 0.30);  /* Emerald Rim */

  /* --- Matn (Zinc High Contrast & Hierarchy) ------------------------------ */
  --text:        #F8FAFC;
  --text-muted:  #A1A1AA;
  --text-dim:    #71717A;

  /* --- Semantik ranglar (Tashqi PnL va Statuslar) ------------------------- */
  --profit-rgb:  16 185 129;  /* #10B981 - Semantic Profit */
  --loss-rgb:    239 68 68;   /* #EF4444 - Semantic Loss */
  --profit:      #10B981;     /* Institutional Emerald */
  --loss:        #EF4444;     /* Crimson Veto */
  --warn:        #F59E0B;     /* Pending / Amber */
  --info:        #06B6D4;     /* Telemetry Cyan */

  /* --- Urg'u (Flowboard Tangerine-Orange + Legacy Presets) ---------------- */
  --flow-orange:        #FF6B00;
  --flow-orange-bright: #FF8400;
  --flow-orange-deep:   #EA580C;
  --flow-amber:         #FB923C;
  --flow-grad:          linear-gradient(90deg, #FF7A00 0%, #EA580C 100%);
  --flow-glow:          radial-gradient(circle at 92% 8%, rgba(249, 115, 22, 0.16), transparent 62%);
  --flow-border-warm:   rgba(249, 115, 22, 0.28);

  --accent:        #F59E0B;   /* Oltin / Sariq */
  --accent-strong: #F5B83D;   /* Radiant Champagne Gold */
  --accent-gold:   #F5B83D;   /* Luxury Gold */
  --accent-indigo: #3B82F6;   /* Moviy Kvant */
  --accent-cyan:   #06B6D4;   /* Electric Cyan */

  /* --- Tipografika (Space Grotesk / Plus Jakarta Sans + JetBrains Mono) ---- */
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-sans:    'Plus Jakarta Sans', Inter, system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* --- Masofa shkalasi ---------------------------------------------------- */
  --space-1: 0.25rem;  --space-2: 0.5rem;   --space-3: 0.75rem;
  --space-4: 1rem;     --space-5: 1.25rem;  --space-6: 1.5rem;
  --space-8: 2rem;

  /* --- Burchak radiusi ----------------------------------------------------
     Ilgari olti xil shkala aralash ishlatilardi (rounded-sm/md/lg/xl/2xl/full).
     Uchtaga qisqartirildi. */
  --radius-sm: 0.5rem;   /* nishonlar, kichik tugmalar */
  --radius-md: 0.75rem;  /* tugmalar, kiritish maydonlari */
  --radius-lg: 1rem;     /* kartochkalar, panellar */

  /* --- Soya / balandlik --------------------------------------------------- */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.45);

  /* --- Harakat ------------------------------------------------------------ */
  --motion-fast: 120ms;
  --motion-base: 200ms;
  --motion-slow: 320ms;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* =============================================================================
   HARAKATNI KAMAYTIRISH
   Ilgari bu blok faqat `.animate-slide-up` ni to'xtatardi; 55 soniyalik
   tiker marquee va fizika rejimi ishlashda davom etardi.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .ticker-track,
  .animate-marquee,
  .pulse-live,
  .a-plus-pulse {
    animation: none !important;
  }
}
