/* الثيمات: لكل ثيم وضع فاتح وداكن. data-mode يفرض الوضع، وبدونه يتبع الجهاز. */
:root { --bg: #eef0ea; --surface: #fbfcf9; --ink: #1d2117; --muted: #545b48; --line: #d3d8c9; --soft: #e2e6d9; --accent: #6b451f; --on-accent: #fff8f0; --bead: repeating-linear-gradient(104deg, rgb(60 30 8 / .28) 0 1px, transparent 1px 4px, rgb(255 220 170 / .12) 4px 5px, transparent 5px 7px), radial-gradient(circle at 32% 28%, #eac795 0, #b27a42 30%, #6f431d 68%, #3a200c); --bead-edge: inset -2px -3px 5px rgb(30 14 3 / .45); --cord: #5a4630; --metal: linear-gradient(90deg, #4d2d12, #c8975c, #4d2d12); --silk: #4f6128; --silk-shade: #2f3b16; --shadow: 0 20px 34px -18px rgb(20 30 35 / .42); }
:root[data-theme="kahraman"] { --bg: #edf1f2; --surface: #fbfdfd; --ink: #17201f; --muted: #4d5b5c; --line: #d0d9da; --soft: #e2e9e9; --accent: #8a4100; --on-accent: #fff8ee; --bead: radial-gradient(circle at 30% 24%, #fffbe6 0 5%, transparent 14%), radial-gradient(circle at 66% 74%, rgb(255 214 92 / .95), transparent 46%), radial-gradient(circle at 45% 42%, #f79a12, #c85a00 58%, #6e2600); --bead-edge: inset 0 0 4px rgb(90 30 0 / .55); --cord: #8a5a2a; --metal: linear-gradient(90deg, #7c6a45, #f6e7b4, #8d7a50); --silk: #c2781c; --silk-shade: #7d4608; --shadow: 0 20px 34px -18px rgb(20 30 35 / .42); }
:root[data-theme="aqeeq"] { --bg: #e9edf0; --surface: #fafbfc; --ink: #141a20; --muted: #4b5763; --line: #ccd4db; --soft: #dbe2e8; --accent: #2f4254; --on-accent: #f4f8fb; --bead: radial-gradient(circle at 31% 25%, #f4f8fc 0 4%, #8a949f 10%, transparent 24%), radial-gradient(circle at 70% 78%, rgb(150 170 190 / .5), transparent 34%), radial-gradient(circle at 45% 40%, #333b45, #12161b 58%, #020304); --bead-edge: inset 0 0 3px rgb(190 205 220 / .4); --cord: #6b747d; --metal: linear-gradient(90deg, #69727b, #ffffff, #737c85); --silk: #2b333c; --silk-shade: #0d1115; --shadow: 0 20px 34px -18px rgb(20 30 35 / .42); }
:root[data-theme="raqami"] { --bg: #e8f2f2; --surface: #fafdfd; --ink: #0f2224; --muted: #46605f; --line: #c8dcdc; --soft: #d8eaea; --accent: #0a636d; --on-accent: #f2fdfe; --body-1: #2b9aa5; --body-2: #0f6c76; --body-3: #08464e; --body-ink: #f1fdfe; --bezel: #06343a; --lcd: #b9c9a8; --lcd-ink: #17240f; --knob-1: #ffffff; --knob-2: #d6dfe0; --knob-3: #9eadaf; --lamp: #b6fff0; --shadow: 0 20px 34px -18px rgb(20 30 35 / .42); }
:root[data-theme="yadawi"] { --bg: #eceef0; --surface: #fcfcfd; --ink: #17191c; --muted: #50555c; --line: #d2d5da; --soft: #e3e5e8; --accent: #9e231d; --on-accent: #fff6f5; --body-1: #fdfdfd; --body-2: #b9bec4; --body-3: #7d848c; --body-ink: #121315; --bezel: #26282b; --knob-1: #ff9d94; --knob-2: #c22d24; --knob-3: #6f100b; --lamp: #c22d24; --shadow: 0 20px 34px -18px rgb(20 30 35 / .42); }
@media (prefers-color-scheme: dark) {
  :root:not([data-mode="light"]) { --bg: #12130f; --surface: #1b1d17; --ink: #ecefe4; --muted: #a8ae9a; --line: #313527; --soft: #292c1f; --accent: #dfae78; --on-accent: #26170a; --bead: repeating-linear-gradient(104deg, rgb(60 30 8 / .28) 0 1px, transparent 1px 4px, rgb(255 220 170 / .12) 4px 5px, transparent 5px 7px), radial-gradient(circle at 32% 28%, #eac795 0, #b27a42 30%, #6f431d 68%, #3a200c); --bead-edge: inset -2px -3px 5px rgb(30 14 3 / .45); --cord: #5a4630; --metal: linear-gradient(90deg, #4d2d12, #c8975c, #4d2d12); --silk: #4f6128; --silk-shade: #2f3b16; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
  :root[data-theme="kahraman"]:not([data-mode="light"]) { --bg: #0e1213; --surface: #171d1e; --ink: #eef0ec; --muted: #a2adad; --line: #2a3334; --soft: #262a24; --accent: #ffb54a; --on-accent: #2b1600; --bead: radial-gradient(circle at 30% 24%, #fffbe6 0 5%, transparent 14%), radial-gradient(circle at 66% 74%, rgb(255 214 92 / .95), transparent 46%), radial-gradient(circle at 45% 42%, #f79a12, #c85a00 58%, #6e2600); --bead-edge: inset 0 0 4px rgb(90 30 0 / .55); --cord: #8a5a2a; --metal: linear-gradient(90deg, #7c6a45, #f6e7b4, #8d7a50); --silk: #c2781c; --silk-shade: #7d4608; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
  :root[data-theme="aqeeq"]:not([data-mode="light"]) { --bg: #12171c; --surface: #1b2229; --ink: #e8eef3; --muted: #9facb8; --line: #2e3842; --soft: #28323c; --accent: #b9cde0; --on-accent: #101c28; --bead: radial-gradient(circle at 31% 25%, #f4f8fc 0 4%, #8a949f 10%, transparent 24%), radial-gradient(circle at 70% 78%, rgb(150 170 190 / .5), transparent 34%), radial-gradient(circle at 45% 40%, #333b45, #12161b 58%, #020304); --bead-edge: inset 0 0 5px rgb(205 222 240 / .75), 0 0 0 1px rgb(170 190 210 / .35); --cord: #6b747d; --metal: linear-gradient(90deg, #69727b, #ffffff, #737c85); --silk: #aebccb; --silk-shade: #627283; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
  :root[data-theme="raqami"]:not([data-mode="light"]) { --bg: #091315; --surface: #111d20; --ink: #e4f1f2; --muted: #97b1b3; --line: #213437; --soft: #173033; --accent: #5fd3dc; --on-accent: #04262a; --body-1: #414a4e; --body-2: #22292c; --body-3: #0f1315; --body-ink: #f1fdfe; --bezel: #050708; --lcd: #0f4a4a; --lcd-ink: #a6fff3; --knob-1: #8fe9ef; --knob-2: #2aa3ad; --knob-3: #0d5a61; --lamp: #b6fff0; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
  :root[data-theme="yadawi"]:not([data-mode="light"]) { --bg: #101113; --surface: #1a1c1f; --ink: #ebedef; --muted: #a3a8ae; --line: #2d3035; --soft: #2d2325; --accent: #ff8f86; --on-accent: #35090a; --body-1: #8a9097; --body-2: #4a4f55; --body-3: #26292d; --body-ink: #ffffff; --bezel: #0a0b0c; --knob-1: #ff9d94; --knob-2: #c22d24; --knob-3: #6f100b; --lamp: #ff8f86; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
}
:root[data-mode="dark"] { --bg: #12130f; --surface: #1b1d17; --ink: #ecefe4; --muted: #a8ae9a; --line: #313527; --soft: #292c1f; --accent: #dfae78; --on-accent: #26170a; --bead: repeating-linear-gradient(104deg, rgb(60 30 8 / .28) 0 1px, transparent 1px 4px, rgb(255 220 170 / .12) 4px 5px, transparent 5px 7px), radial-gradient(circle at 32% 28%, #eac795 0, #b27a42 30%, #6f431d 68%, #3a200c); --bead-edge: inset -2px -3px 5px rgb(30 14 3 / .45); --cord: #5a4630; --metal: linear-gradient(90deg, #4d2d12, #c8975c, #4d2d12); --silk: #4f6128; --silk-shade: #2f3b16; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
:root[data-theme="kahraman"][data-mode="dark"] { --bg: #0e1213; --surface: #171d1e; --ink: #eef0ec; --muted: #a2adad; --line: #2a3334; --soft: #262a24; --accent: #ffb54a; --on-accent: #2b1600; --bead: radial-gradient(circle at 30% 24%, #fffbe6 0 5%, transparent 14%), radial-gradient(circle at 66% 74%, rgb(255 214 92 / .95), transparent 46%), radial-gradient(circle at 45% 42%, #f79a12, #c85a00 58%, #6e2600); --bead-edge: inset 0 0 4px rgb(90 30 0 / .55); --cord: #8a5a2a; --metal: linear-gradient(90deg, #7c6a45, #f6e7b4, #8d7a50); --silk: #c2781c; --silk-shade: #7d4608; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
:root[data-theme="aqeeq"][data-mode="dark"] { --bg: #12171c; --surface: #1b2229; --ink: #e8eef3; --muted: #9facb8; --line: #2e3842; --soft: #28323c; --accent: #b9cde0; --on-accent: #101c28; --bead: radial-gradient(circle at 31% 25%, #f4f8fc 0 4%, #8a949f 10%, transparent 24%), radial-gradient(circle at 70% 78%, rgb(150 170 190 / .5), transparent 34%), radial-gradient(circle at 45% 40%, #333b45, #12161b 58%, #020304); --bead-edge: inset 0 0 5px rgb(205 222 240 / .75), 0 0 0 1px rgb(170 190 210 / .35); --cord: #6b747d; --metal: linear-gradient(90deg, #69727b, #ffffff, #737c85); --silk: #aebccb; --silk-shade: #627283; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
:root[data-theme="raqami"][data-mode="dark"] { --bg: #091315; --surface: #111d20; --ink: #e4f1f2; --muted: #97b1b3; --line: #213437; --soft: #173033; --accent: #5fd3dc; --on-accent: #04262a; --body-1: #414a4e; --body-2: #22292c; --body-3: #0f1315; --body-ink: #f1fdfe; --bezel: #050708; --lcd: #0f4a4a; --lcd-ink: #a6fff3; --knob-1: #8fe9ef; --knob-2: #2aa3ad; --knob-3: #0d5a61; --lamp: #b6fff0; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }
:root[data-theme="yadawi"][data-mode="dark"] { --bg: #101113; --surface: #1a1c1f; --ink: #ebedef; --muted: #a3a8ae; --line: #2d3035; --soft: #2d2325; --accent: #ff8f86; --on-accent: #35090a; --body-1: #8a9097; --body-2: #4a4f55; --body-3: #26292d; --body-ink: #ffffff; --bezel: #0a0b0c; --knob-1: #ff9d94; --knob-2: #c22d24; --knob-3: #6f100b; --lamp: #ff8f86; --shadow: 0 20px 34px -18px rgb(0 0 0 / .8); }

/* الثيمات الكلاسيكية */
:root[data-theme="zumurrud"] { --bg: #eef4f1; --surface: #fbfdfc; --ink: #12241e; --muted: #4a6158; --line: #cfded7; --soft: #dcebe4; --accent: #0d6b4f; --on-accent: #f4fbf8; --shadow: 0 18px 40px -22px color-mix(in srgb, #0d6b4f 45%, transparent); }
:root[data-theme="layl"] { --bg: #eef2f9; --surface: #fbfcff; --ink: #111b30; --muted: #4a5873; --line: #cdd7ea; --soft: #dde6f7; --accent: #2450a6; --on-accent: #f5f8ff; --shadow: 0 18px 40px -22px color-mix(in srgb, #2450a6 45%, transparent); }
:root[data-theme="ward"] { --bg: #f6f0f2; --surface: #fefbfc; --ink: #2b1620; --muted: #6b4f5a; --line: #e3d2d8; --soft: #f0dde3; --accent: #962c52; --on-accent: #fff6f9; --shadow: 0 18px 40px -22px color-mix(in srgb, #962c52 45%, transparent); }
:root[data-theme="fakhar"] { --bg: #eef0f1; --surface: #fcfdfd; --ink: #1b2225; --muted: #505c61; --line: #d3d9dc; --soft: #e6e1de; --accent: #9a4120; --on-accent: #fff7f3; --shadow: 0 18px 40px -22px color-mix(in srgb, #9a4120 45%, transparent); }
:root[data-theme="hibr"] { --bg: #f2f3f3; --surface: #fefefe; --ink: #151818; --muted: #555d5c; --line: #d6dad9; --soft: #e4e7e6; --accent: #1c2322; --on-accent: #f6f8f7; --shadow: 0 18px 40px -22px color-mix(in srgb, #1c2322 45%, transparent); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="zumurrud"]:not([data-mode="light"]) { --bg: #0b1512; --surface: #12201b; --ink: #e6f0ec; --muted: #9db5ab; --line: #24392f; --soft: #183027; --accent: #57c99f; --on-accent: #06231a; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
  :root[data-theme="layl"]:not([data-mode="light"]) { --bg: #0a101f; --surface: #121a2e; --ink: #e6ecf8; --muted: #9eabc6; --line: #253152; --soft: #1a2745; --accent: #8fb3ff; --on-accent: #07142e; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
  :root[data-theme="ward"]:not([data-mode="light"]) { --bg: #160e12; --surface: #22161b; --ink: #f4e8ec; --muted: #c1a6af; --line: #3d2831; --soft: #331e26; --accent: #f092b2; --on-accent: #330a19; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
  :root[data-theme="fakhar"]:not([data-mode="light"]) { --bg: #111517; --surface: #1a2023; --ink: #e9edee; --muted: #a3afb3; --line: #2d363a; --soft: #33251f; --accent: #ee9d74; --on-accent: #31120a; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
  :root[data-theme="hibr"]:not([data-mode="light"]) { --bg: #0e1010; --surface: #181b1b; --ink: #ecefee; --muted: #a2aaa8; --line: #2c3231; --soft: #242a29; --accent: #e6ebe9; --on-accent: #121615; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
}
:root[data-theme="zumurrud"][data-mode="dark"] { --bg: #0b1512; --surface: #12201b; --ink: #e6f0ec; --muted: #9db5ab; --line: #24392f; --soft: #183027; --accent: #57c99f; --on-accent: #06231a; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
:root[data-theme="layl"][data-mode="dark"] { --bg: #0a101f; --surface: #121a2e; --ink: #e6ecf8; --muted: #9eabc6; --line: #253152; --soft: #1a2745; --accent: #8fb3ff; --on-accent: #07142e; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
:root[data-theme="ward"][data-mode="dark"] { --bg: #160e12; --surface: #22161b; --ink: #f4e8ec; --muted: #c1a6af; --line: #3d2831; --soft: #331e26; --accent: #f092b2; --on-accent: #330a19; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
:root[data-theme="fakhar"][data-mode="dark"] { --bg: #111517; --surface: #1a2023; --ink: #e9edee; --muted: #a3afb3; --line: #2d363a; --soft: #33251f; --accent: #ee9d74; --on-accent: #31120a; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
:root[data-theme="hibr"][data-mode="dark"] { --bg: #0e1010; --surface: #181b1b; --ink: #ecefee; --muted: #a2aaa8; --line: #2c3231; --soft: #242a29; --accent: #e6ebe9; --on-accent: #121615; --shadow: 0 18px 40px -22px rgb(0 0 0 / .8); }
