@font-face {
  font-family: 'Vazirmatn';
  src: url('/static/vendor-local/Vazirmatn-Variable.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root,
html[data-theme="light"] {
  --font-sans: 'Vazirmatn', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Code', 'JetBrains Mono', Consolas, monospace;

  /* Porcelain Light */
  --bg: #F4F6FA;
  --bg-subtle: #ECEFF6;
  --surface: #FFFFFF;
  --surface-2: #F8FAFC;
  --surface-hover: #F1F5F9;
  --surface-glass: rgba(255, 255, 255, 0.88);

  --text: #0F172A;
  --text-2: #475569;
  --text-3: #64748B;
  --text-muted: #94A3B8;

  --border: rgba(15, 23, 42, 0.085);
  --border-strong: rgba(15, 23, 42, 0.15);
  --ring: rgba(59, 91, 255, 0.25);

  --primary: #3B5BFF;
  --primary-hover: #2C49E8;
  --primary-soft: rgba(59, 91, 255, 0.10);
  --primary-soft-2: rgba(59, 91, 255, 0.16);
  --primary-text: #2744DB;

  --emerald: #059669;
  --emerald-soft: rgba(5, 150, 105, 0.11);
  --emerald-text: #047857;

  --amber: #D97706;
  --amber-soft: rgba(217, 119, 6, 0.12);
  --amber-text: #B45309;

  --rose: #E11D48;
  --rose-soft: rgba(225, 29, 72, 0.10);
  --rose-text: #BE123C;

  --violet: #7C3AED;
  --violet-soft: rgba(124, 58, 237, 0.11);
  --violet-text: #6D28D9;

  --sky: #0284C7;
  --sky-soft: rgba(2, 132, 199, 0.11);
  --sky-text: #0369A1;

  --gold: #C28A14;
  --gold-soft: rgba(234, 179, 8, 0.15);

  /* Unified 4-Stage Customer/Sales Status Palette: Lead=Red, Possible=Yellow, Potential=Light Green, Customer=Deep Green */
  --st-lead: #EF4444;
  --st-lead-soft: #FEE2E2;
  --st-lead-border: rgba(239, 68, 68, 0.32);
  --st-lead-text: #DC2626;

  --st-possible: #EAB308;
  --st-possible-soft: #FEF9C3;
  --st-possible-border: rgba(234, 179, 8, 0.44);
  --st-possible-text: #A16207;

  --st-potential: #4ADE80;
  --st-potential-soft: #DCFCE7;
  --st-potential-border: rgba(74, 222, 128, 0.55);
  --st-potential-text: #16A34A;

  --st-customer: #047857;
  --st-customer-bg: #047857;
  --st-customer-border: #065F46;
  --st-customer-text: #FFFFFF;
  --st-customer-dot: #6EE7B7;

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05), 0 1px 2px rgba(15, 23, 42, 0.03);
  --shadow-md: 0 10px 30px -6px rgba(15, 23, 42, 0.10), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 24px 60px -12px rgba(15, 23, 42, 0.24);

  --r-xs: 6px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 18px;
  --r-xl: 22px;
  --r-pill: 999px;

  --sidebar-w: 256px;
  --sidebar-rail: 74px;
  --topbar-h: 62px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 150ms var(--ease);
  --t-base: 220ms var(--ease);
  --t-slow: 300ms var(--ease);
}

html[data-theme="dark"] {
  /* Obsidian Trading Desk Dark */
  --bg: #080C15;
  --bg-subtle: #0D1320;
  --surface: #111827;
  --surface-2: #162033;
  --surface-hover: #1C2940;
  --surface-glass: rgba(15, 22, 36, 0.88);

  --text: #F1F5F9;
  --text-2: #CBD5E1;
  --text-3: #94A3B8;
  --text-muted: #64748B;

  --border: rgba(148, 163, 184, 0.11);
  --border-strong: rgba(148, 163, 184, 0.21);
  --ring: rgba(91, 124, 255, 0.34);

  --primary: #5B7CFF;
  --primary-hover: #708DFF;
  --primary-soft: rgba(91, 124, 255, 0.15);
  --primary-soft-2: rgba(91, 124, 255, 0.24);
  --primary-text: #93ACFF;

  --emerald: #10B981;
  --emerald-soft: rgba(16, 185, 129, 0.15);
  --emerald-text: #34D399;

  --amber: #F59E0B;
  --amber-soft: rgba(245, 158, 11, 0.16);
  --amber-text: #FBBF24;

  --rose: #F43F5E;
  --rose-soft: rgba(244, 63, 94, 0.16);
  --rose-text: #FB7185;

  --violet: #A78BFA;
  --violet-soft: rgba(167, 139, 250, 0.16);
  --violet-text: #C4B5FD;

  --sky: #38BDF8;
  --sky-soft: rgba(56, 189, 248, 0.15);
  --sky-text: #7DD3FC;

  --gold: #FACC15;
  --gold-soft: rgba(250, 204, 21, 0.16);

  /* Unified 4-Stage Customer/Sales Status Palette (Dark Theme) */
  --st-lead: #EF4444;
  --st-lead-soft: rgba(239, 68, 68, 0.17);
  --st-lead-border: rgba(239, 68, 68, 0.38);
  --st-lead-text: #FCA5A5;

  --st-possible: #FACC15;
  --st-possible-soft: rgba(250, 204, 21, 0.16);
  --st-possible-border: rgba(250, 204, 21, 0.36);
  --st-possible-text: #FDE047;

  --st-potential: #4ADE80;
  --st-potential-soft: rgba(134, 239, 172, 0.15);
  --st-potential-border: rgba(74, 222, 128, 0.38);
  --st-potential-text: #86EFAC;

  --st-customer: #059669;
  --st-customer-bg: #065F46;
  --st-customer-border: #10B981;
  --st-customer-text: #ECFDF5;
  --st-customer-dot: #34D399;

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.30);
  --shadow-sm: 0 4px 14px rgba(0, 0, 0, 0.28);
  --shadow-md: 0 14px 36px -6px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 70px -10px rgba(0, 0, 0, 0.72);
}
