/* SHEKAR design tokens — dark (default), light, system */
:root {
  --font-fa: "Vazirmatn", "Vazir", "Tahoma", system-ui, sans-serif;
  --font-lat: "Manrope", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  --font: var(--font-fa);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 20px; --s6: 24px; --s8: 32px; --s10: 40px;
  --r-sm: 10px; --r-md: 14px; --r-lg: 20px; --r-xl: 28px; --r-pill: 999px;

  --emerald: #10b981;
  --emerald-2: #34d399;
  --emerald-3: #6ee7b7;
  --lime: #b5f04a;
  --gold: #d9b45a;
  --gold-2: #f0d48a;
  --danger: #f2557a;
  --warn: #f5a524;
  --info: #4cc3f0;

  --ease: cubic-bezier(.22, .8, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.4, .5, 1);
  --t-fast: 140ms; --t-med: 260ms; --t-slow: 420ms;

  --nav-h: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  --maxw: 760px;
}

/* ---------- DARK (default) ---------- */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #040a07;
  --bg-2: #07130d;
  --bg-grad: radial-gradient(120% 60% at 85% -10%, rgba(16,185,129,.18), transparent 60%),
             radial-gradient(90% 50% at -10% 10%, rgba(181,240,74,.06), transparent 60%),
             linear-gradient(180deg, #06110b 0%, #040a07 55%, #030806 100%);
  --surface: rgba(14, 34, 25, .62);
  --surface-2: rgba(20, 46, 34, .72);
  --surface-solid: #0c1d15;
  --surface-solid-2: #11281d;
  --surface-hi: rgba(52, 211, 153, .08);
  --border: rgba(110, 231, 183, .10);
  --border-2: rgba(110, 231, 183, .20);
  --text: #e9f6ef;
  --text-2: #a5c1b3;
  --text-3: #6f8b7d;
  --on-accent: #02140b;
  --accent: var(--emerald-2);
  --accent-strong: var(--emerald);
  --accent-soft: rgba(52, 211, 153, .14);
  --lime-soft: rgba(181, 240, 74, .14);
  --gold-soft: rgba(217, 180, 90, .14);
  --danger-soft: rgba(242, 85, 122, .14);
  --warn-soft: rgba(245, 165, 36, .14);
  --info-soft: rgba(76, 195, 240, .14);
  --shadow-1: 0 1px 0 rgba(255,255,255,.03) inset, 0 6px 18px rgba(0,0,0,.35);
  --shadow-2: 0 1px 0 rgba(255,255,255,.04) inset, 0 18px 40px rgba(0,0,0,.5);
  --glow: 0 0 0 1px rgba(52,211,153,.25), 0 8px 30px rgba(16,185,129,.25);
  --blur: saturate(160%) blur(18px);
  --grid-line: rgba(110,231,183,.09);
  --skeleton: linear-gradient(90deg, rgba(255,255,255,.04), rgba(255,255,255,.09), rgba(255,255,255,.04));
}

/* ---------- LIGHT ---------- */
[data-theme="light"] {
  color-scheme: light;
  --bg: #eef4f0;
  --bg-2: #e6efe9;
  --bg-grad: radial-gradient(120% 60% at 85% -10%, rgba(16,185,129,.16), transparent 60%),
             linear-gradient(180deg, #f4f8f5 0%, #eaf2ed 100%);
  --surface: rgba(255, 255, 255, .78);
  --surface-2: rgba(255, 255, 255, .92);
  --surface-solid: #ffffff;
  --surface-solid-2: #f3f8f5;
  --surface-hi: rgba(16, 185, 129, .07);
  --border: rgba(10, 60, 38, .09);
  --border-2: rgba(10, 60, 38, .18);
  --text: #0a1f15;
  --text-2: #3f5a4c;
  --text-3: #6d8679;
  --on-accent: #ffffff;
  --accent: #0d9f6e;
  --accent-strong: #08865b;
  --accent-soft: rgba(13, 159, 110, .11);
  --lime: #6a9e12;
  --lime-soft: rgba(106, 158, 18, .12);
  --gold: #a7801f;
  --gold-2: #8a6a17;
  --gold-soft: rgba(167, 128, 31, .12);
  --danger: #d6345c;
  --danger-soft: rgba(214, 52, 92, .10);
  --warn: #c27a00;
  --warn-soft: rgba(194, 122, 0, .11);
  --info: #0b88b8;
  --info-soft: rgba(11, 136, 184, .1);
  --emerald-2: #0d9f6e;
  --shadow-1: 0 1px 2px rgba(10,40,25,.06), 0 6px 18px rgba(10,40,25,.06);
  --shadow-2: 0 2px 6px rgba(10,40,25,.08), 0 18px 40px rgba(10,40,25,.10);
  --glow: 0 0 0 1px rgba(13,159,110,.25), 0 8px 24px rgba(13,159,110,.18);
  --grid-line: rgba(10,60,38,.08);
  --skeleton: linear-gradient(90deg, rgba(10,40,25,.05), rgba(10,40,25,.10), rgba(10,40,25,.05));
}
