/* מנוע המערכות של קלוד לעצלנים: רכיבים מובייל פירסט + חמש ערכות נושא (library/styles.md).
   כל ערכת נושא מגדירה את אותם משתנים. המבנה זהה, והאופי משתנה. */

:root, [data-theme="clean-pro"] {
  --bg: #F4F5F7;
  --bg-fx: none;
  --surface: #FFFFFF;
  --surface-2: #F1F2F5;
  --text: #111827;
  --muted: #6B7280;
  --line: #E5E7EB;
  --accent: #2563EB;
  --on-accent: #FFFFFF;
  --hero: #111827;
  --on-hero: #FFFFFF;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(17 24 39 / .05), 0 8px 22px rgb(17 24 39 / .06);
  --glass: none;
  --nav-bg: #FFFFFF;
  --nav-text: #9CA3AF;
  --nav-active: #111827;
  --nav-active-bg: transparent;
  --font-head: 'Heebo', system-ui, sans-serif;
  --head-weight: 800;
  --num-weight: 800;
  --tile-1: var(--surface); --tile-2: var(--surface); --tile-3: var(--surface); --tile-4: var(--surface);
}

[data-theme="bold-dark"] {
  --bg: #0C0C0F;
  --surface: #18181D;
  --surface-2: #232329;
  --text: #F4F4F6;
  --muted: #8E8E99;
  --line: #2B2B33;
  --accent: #FFE14D;
  --on-accent: #111111;
  --hero: var(--accent);
  --on-hero: var(--on-accent);
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 12px 30px rgb(0 0 0 / .35);
  --nav-bg: #1E1E24;
  --nav-text: #8E8E99;
  --nav-active: var(--on-accent);
  --nav-active-bg: var(--accent);
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 900;
  --num-weight: 900;
}

[data-theme="soft-air"] {
  --bg: #EEECF5;
  --bg-fx: linear-gradient(165deg, #E7E4F1 0%, #F7F6FB 55%, #ECE9F5 100%);
  --surface: rgb(255 255 255 / .62);
  --surface-2: rgb(255 255 255 / .45);
  --text: #1F1C2E;
  --muted: #7B7792;
  --line: rgb(31 28 46 / .08);
  --accent: #5B5BD6;
  --on-accent: #FFFFFF;
  --hero: rgb(255 255 255 / .72);
  --on-hero: #1F1C2E;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 10px 30px rgb(80 70 140 / .10);
  --glass: blur(16px);
  --nav-bg: rgb(255 255 255 / .82);
  --nav-text: #8E8AA5;
  --nav-active: #FFFFFF;
  --nav-active-bg: #1F1C2E;
  --font-head: 'Heebo', system-ui, sans-serif;
  --head-weight: 700;
  --num-weight: 300;
}

[data-theme="photo-immersive"] {
  --bg: #0E1714;
  --surface: rgb(255 255 255 / .08);
  --surface-2: rgb(255 255 255 / .13);
  --text: #F3F6F4;
  --muted: #A9B8B1;
  --line: rgb(255 255 255 / .12);
  --accent: #FFFFFF;
  --on-accent: #0E1714;
  --hero: rgb(255 255 255 / .1);
  --on-hero: #FFFFFF;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 16px 40px rgb(0 0 0 / .35);
  --glass: blur(14px);
  --nav-bg: rgb(20 32 28 / .72);
  --nav-text: #A9B8B1;
  --nav-active: var(--on-accent);
  --nav-active-bg: var(--accent);
  --font-head: 'Heebo', system-ui, sans-serif;
  --head-weight: 500;
  --num-weight: 300;
}

[data-theme="playful-blocks"] {
  --bg: #FFF9EF;
  --surface: #FFFFFF;
  --surface-2: #FFF1DC;
  --text: #1C1B1F;
  --muted: #6E6A75;
  --line: #F0E6D6;
  --accent: #1C1B1F;
  --on-accent: #FFFFFF;
  --hero: #FFE48A;
  --on-hero: #1C1B1F;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 2px 0 rgb(28 27 31 / .06), 0 10px 24px rgb(120 90 40 / .08);
  --nav-bg: #FFFFFF;
  --nav-text: #9A95A2;
  --nav-active: #FFFFFF;
  --nav-active-bg: #1C1B1F;
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 800;
  --num-weight: 800;
  --tile-1: #FFE48A; --tile-2: #E3DAFF; --tile-3: #CDEFDF; --tile-4: #FFD8C6;
}

/* סגול ורך: לבנדר בהיר, כרטיס סגול למספר החשוב, אריחים צבעוניים. נלמד מהשראות של מערכות משמרות ומשימות (בתי ספר) */
[data-theme="school-soft"] {
  --bg: #F3F1FB;
  --bg-fx: linear-gradient(170deg, #EEEAFB 0%, #F8F7FD 50%, #F1EEFB 100%);
  --surface: #FFFFFF;
  --surface-2: #EEEBFA;
  --text: #1E1B3A;
  --muted: #6E6A8A;
  --line: #E6E2F5;
  --accent: #6C4CF1;
  --on-accent: #FFFFFF;
  --hero: linear-gradient(140deg, #6C4CF1, #8B6CFF);
  --on-hero: #FFFFFF;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 2px 4px rgb(108 76 241 / .05), 0 14px 30px rgb(108 76 241 / .10);
  --nav-bg: #FFFFFF;
  --nav-text: #9C98B5;
  --nav-active: #FFFFFF;
  --nav-active-bg: #6C4CF1;
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 700;
  --num-weight: 800;
  --tile-1: #FFD9B3; --tile-2: #CFE6FF; --tile-3: #FFD3E1; --tile-4: #E3DAFF;
}
[data-theme="school-soft"] .nav a.on { padding-inline: 14px; }
[data-theme="school-soft"] .kpi:nth-child(2) { background: var(--tile-1); }
[data-theme="school-soft"] .kpi:nth-child(3) { background: var(--tile-2); }
[data-theme="school-soft"] .kpi:nth-child(4) { background: var(--tile-3); }

/* צבעי סטטוס */
:root { --c-red: #E5484D; --c-orange: #F76B15; --c-yellow: #E0A100; --c-green: #12A150; --c-teal: #0E9F9A; --c-blue: #3B6CF6; --c-purple: #8E4EC6; --c-gray: #8B8D98; }

/* ---------- בסיס ---------- */
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Heebo', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg-fx, none), var(--bg);
  background-attachment: fixed;
  overflow-x: clip;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--font-head); font-weight: var(--head-weight); line-height: 1.15; text-wrap: balance; }
.i { width: 22px; height: 22px; flex: none; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- מבנה ---------- */
.app { padding: 0 16px calc(170px + env(safe-area-inset-bottom)); max-width: 640px; margin: 0 auto; }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 10px 0; margin-bottom: 4px; background: linear-gradient(var(--bg) 70%, transparent); }
[data-theme="soft-air"] .top { background: transparent; backdrop-filter: blur(10px); }
[data-theme="photo-immersive"] .top { background: linear-gradient(rgb(14 23 20 / .9) 60%, transparent); }
.top__title { flex: 1; min-width: 0; }
.top__title h1 { font-size: 22px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__title small { display: block; font-size: 13px; color: var(--muted); }
.icon-btn { display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surface); color: var(--text); box-shadow: var(--shadow); backdrop-filter: var(--glass); cursor: pointer; }
.avatar { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; font-weight: 800; color: var(--on-accent); background: var(--accent); }
.brand-logo { height: 34px; width: auto; }
/* כפתור צף עם בחירה (למשל: הזמנת עדשות / הזמנת חלק) */
.fab-wrap { position: fixed; z-index: 31; left: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); }
.fab-wrap > summary { position: static; list-style: none; }
.fab-wrap > summary::-webkit-details-marker { display: none; }
.fab-wrap[open] > summary .i { transform: rotate(45deg); }
.fab-wrap > summary .i { transition: transform .2s; }
.fab-menu { position: absolute; left: 0; bottom: calc(100% + 10px); display: grid; gap: 8px; min-width: 220px; animation: fab-pop .18s ease-out; }
.fab-menu a { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 18px; border-radius: 999px; font-weight: 800; color: var(--text); background: var(--bg); border: 1.5px solid color-mix(in srgb, var(--accent) 35%, var(--line)); box-shadow: 0 10px 26px rgb(0 0 0 / .16); white-space: nowrap; }
.fab-menu a .i { color: var(--accent); }
@keyframes fab-pop { from { opacity: 0; transform: translateY(8px) scale(.96); } to { opacity: 1; transform: none; } }
[data-theme="gold-light"] .fab-wrap, [data-theme="gold-luxe"] .fab-wrap, [data-theme="fresh-glow"] .fab-wrap, [data-theme="bold-dark"] .fab-wrap, [data-theme="soft-air"] .fab-wrap { bottom: calc(96px + env(safe-area-inset-bottom)); }
@media (min-width: 960px) { .fab-wrap { bottom: 28px !important; left: 32px; } }

/* לוגו: גדול בדף הבית, קטן בשאר המסכים */
.top-logo { flex: none; display: grid; place-items: center; height: 44px; padding: 0 4px; }
.top-logo img { height: 22px; width: auto; display: block; opacity: .9; }
/* דף הבית: הלוגו במרכז השורה העליונה, בין רווח ימני לעיגול ההגדרות, והברכה מתחתיו */
.top--home { position: relative !important; display: grid !important; grid-template-columns: 44px 1fr 44px; align-items: center; min-height: 64px; margin-bottom: 6px; }
.top--home .top-spacer { width: 44px; height: 44px; }
.home-brand { display: grid; place-items: center; }
.home-head { display: block; text-align: center; }
.home-head .greet { min-width: 0; }
.home-logo { width: clamp(118px, 36vw, 150px); height: auto; display: block; }
.nav .nav-logo { display: none !important; }
/* במחשב (מסך רחב): הלוגו עובר לראש התפריט הצדדי, והברכה חוזרת לימין באותה שורה עם עיגול ההגדרות */
@media (min-width: 960px) {
  .nav .nav-logo { display: grid !important; place-items: center; height: auto !important; padding: 6px 8px 18px !important; margin-bottom: 8px; border-bottom: 1px solid var(--line); border-radius: 0 !important; background: none !important; box-shadow: none !important; }
  .nav .nav-logo img { width: 150px; height: auto; display: block; }
  .top--home .home-brand, .top-logo { display: none !important; }
  .top--home { display: flex !important; justify-content: flex-end; background: none !important; backdrop-filter: none !important; min-height: 64px; margin-top: 26px; }
  .top--home .top-spacer { display: none; }
  .home-head { position: relative; z-index: 21; text-align: right; margin-top: -66px; min-height: 60px; max-width: calc(100% - 70px); }
}
[data-theme="bold-dark"] .top-logo img, [data-theme="gold-luxe"] .top-logo img, [data-theme="photo-immersive"] .top-logo img,
[data-theme="bold-dark"] .home-logo, [data-theme="gold-luxe"] .home-logo { filter: invert(1) hue-rotate(180deg) brightness(1.1); }

/* ---------- ניווט ---------- */
.nav { position: fixed; z-index: 30; display: flex; justify-content: space-around; gap: 4px; }
.nav a { display: grid; justify-items: center; gap: 2px; min-width: 56px; padding: 8px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: var(--nav-text); }
.nav a.on { color: var(--nav-active); background: var(--nav-active-bg); }
/* סרגל מלא: נקי וצבעוני */
.nav { left: 0; right: 0; bottom: 0; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: var(--nav-bg); border-top: 1px solid var(--line); }
[data-theme="clean-pro"] .nav a.on { color: var(--accent); }
/* גלולה צפה: כהה, רך, תמונתי */
[data-theme="bold-dark"] .nav, [data-theme="soft-air"] .nav, [data-theme="photo-immersive"] .nav {
  left: 16px; right: 16px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto;
  padding: 8px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(16px);
}
[data-theme="bold-dark"] .nav a span, [data-theme="soft-air"] .nav a span, [data-theme="photo-immersive"] .nav a span { display: none; }
[data-theme="bold-dark"] .nav a, [data-theme="soft-air"] .nav a, [data-theme="photo-immersive"] .nav a { min-width: 52px; height: 52px; place-content: center; }
[data-theme="soft-air"] .nav a.on { border-radius: 16px; }
[data-theme="playful-blocks"] .nav a.on { padding-inline: 14px; }

/* כפתור צף */
.fab { position: fixed; z-index: 31; left: 18px; bottom: calc(92px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 800; font-size: 16px; color: var(--on-accent); background: var(--accent); box-shadow: 0 12px 28px color-mix(in srgb, var(--accent) 45%, transparent); cursor: pointer; }
[data-theme="bold-dark"] .fab, [data-theme="soft-air"] .fab, [data-theme="photo-immersive"] .fab { bottom: calc(96px + env(safe-area-inset-bottom)); }

/* ---------- כרטיסים ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: var(--glass); }
.section { margin-top: 26px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.section__head h2 { font-size: 19px; }
.section__head a { font-size: 14px; font-weight: 700; color: var(--accent); }
[data-theme="photo-immersive"] .section__head a, [data-theme="playful-blocks"] .section__head a { color: var(--text); text-decoration: underline; }

/* ---------- דשבורד ---------- */
.greet h1 { font-size: 28px; }
.greet p { margin-top: 4px; color: var(--muted); }
.cover { position: relative; margin: 0 -16px; padding: 90px 20px 24px; min-height: 240px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); background: linear-gradient(180deg, rgb(0 0 0 / .1), rgb(0 0 0 / .65)), var(--cover, linear-gradient(135deg, #1D3A30, #0E1714)); background-size: cover; background-position: center; color: #fff; overflow: hidden; }
.cover h1 { font-size: 36px; font-weight: 300; line-height: 1.05; }
.cover h1 b { font-weight: 700; }
.cover p { margin-top: 8px; color: rgb(255 255 255 / .8); }
.kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
.kpi { padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: var(--glass); }
.kpi b { display: block; font-family: var(--font-head); font-weight: var(--num-weight); font-size: 32px; line-height: 1.1; letter-spacing: -.5px; }
.kpi span { font-size: 13.5px; font-weight: 600; color: var(--muted); }
.kpi:first-child { grid-column: 1 / -1; background: var(--hero); color: var(--on-hero); border-color: transparent; }
.kpi:first-child span { color: color-mix(in srgb, var(--on-hero) 72%, transparent); }
.kpi:first-child b { font-size: 42px; }
.kpis:has(.kpi:nth-child(4)) { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis:has(.kpi:nth-child(4)) .kpi:not(:first-child) { padding: 14px 12px; }
.kpis:has(.kpi:nth-child(4)) .kpi:not(:first-child) b { font-size: 28px; }
[data-theme="playful-blocks"] .kpi:nth-child(1) { background: var(--tile-1); }
[data-theme="playful-blocks"] .kpi:nth-child(2) { background: var(--tile-2); }
[data-theme="playful-blocks"] .kpi:nth-child(3) { background: var(--tile-3); }
[data-theme="playful-blocks"] .kpi:nth-child(4) { background: var(--tile-4); }
[data-theme="playful-blocks"] .kpi span { color: color-mix(in srgb, var(--text) 70%, transparent); }
[data-theme="soft-air"] .kpi b { font-size: 38px; }
[data-theme="soft-air"] .kpi:first-child b { font-size: 52px; }
.quick { display: flex; gap: 8px; overflow-x: auto; margin: 18px -16px 0; padding: 2px 16px 4px; scrollbar-width: none; }
.quick::-webkit-scrollbar { display: none; }

/* ---------- רשימות ---------- */
.search { position: relative; margin-top: 4px; }
.search input { width: 100%; height: 50px; padding: 0 46px 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); box-shadow: var(--shadow); backdrop-filter: var(--glass); outline: none; }
.search input:focus { border-color: var(--accent); }
.search .i { position: absolute; top: 14px; right: 16px; color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 12px -16px 0; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip-btn { display: inline-flex; align-items: center; gap: 6px; flex: none; height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); font-size: 14px; font-weight: 700; color: var(--text); cursor: pointer; white-space: nowrap; backdrop-filter: var(--glass); }
.chip-btn.on { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.chip-btn em { font-style: normal; font-size: 12px; opacity: .7; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; }
.toolbar small { color: var(--muted); font-weight: 600; }
.seg-view { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); }
.seg-view button { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border: 0; border-radius: 999px; background: transparent; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg-view button.on { color: var(--text); background: var(--surface); box-shadow: var(--shadow); }
.seg-view .i { width: 18px; height: 18px; }

.list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.item { display: flex; align-items: center; gap: 12px; min-width: 0; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); backdrop-filter: var(--glass); cursor: pointer; }
.item__av { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 14px; font-weight: 800; color: var(--text); background: var(--surface-2); overflow: hidden; }
.item__av img { width: 100%; height: 100%; object-fit: cover; }
[data-theme="bold-dark"] .item__av { border-radius: 50%; }
.item__main { flex: 1; min-width: 0; }
.item__main b { display: block; font-size: 16px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__main small { display: block; font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__end { display: grid; justify-items: end; gap: 6px; flex: none; }
.item__end small { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.money { font-family: var(--font-head); font-weight: 800; }

.status { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; color: color-mix(in srgb, var(--c) 78%, var(--text)); background: color-mix(in srgb, var(--c) 16%, transparent); }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
[data-theme="bold-dark"] .status { color: #fff; background: var(--c); }
[data-theme="bold-dark"] .status::before { background: rgb(255 255 255 / .8); }

.empty { padding: 40px 20px; text-align: center; border: 1.5px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); }
.empty b { display: block; margin-bottom: 6px; font-size: 18px; color: var(--text); }

/* לוח עמודות */
.board { display: flex; gap: 12px; overflow-x: auto; margin: 14px -16px 0; padding: 2px 16px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.board::-webkit-scrollbar { display: none; }
.col { flex: none; width: 78%; max-width: 320px; scroll-snap-align: start; padding: 12px; border-radius: var(--radius-lg); background: var(--surface-2); }
.col__head { display: flex; align-items: center; gap: 8px; margin: 2px 4px 12px; font-weight: 800; }
.col__head em { margin-inline-start: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.col .item { padding: 12px; margin-bottom: 8px; box-shadow: none; }
.col .empty { padding: 20px 10px; font-size: 14px; }

/* ---------- כרטיס פרטים ---------- */
.detail-hero { padding: 20px; margin-top: 6px; }
.detail-hero h2 { font-size: 26px; }
.detail-hero p { margin-top: 4px; color: var(--muted); }
.statuses { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.statuses button { height: 38px; padding: 0 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-weight: 700; font-size: 14px; cursor: pointer; }
.statuses button.on { border-color: transparent; color: #fff; background: var(--c); }
.actions { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 10px; margin-top: 14px; }
.action { display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-size: 13px; font-weight: 700; box-shadow: var(--shadow); backdrop-filter: var(--glass); }
.action .i { color: var(--accent); }
[data-theme="photo-immersive"] .action .i, [data-theme="playful-blocks"] .action .i { color: var(--text); }
.action--wa .i { color: #25D366 !important; }
.fields { margin-top: 14px; padding: 4px 16px; }
.fields div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.fields div:last-child { border-bottom: 0; }
.fields dt { color: var(--muted); font-size: 14px; font-weight: 600; flex: none; }
.fields dd { margin: 0; font-weight: 600; text-align: left; overflow-wrap: anywhere; }
.fields dd.long { text-align: right; font-weight: 400; white-space: pre-line; }
.fields img { max-width: 160px; border-radius: 12px; }

/* ---------- טפסים ---------- */
.form { display: grid; gap: 16px; margin-top: 8px; }
.f { display: grid; gap: 7px; }
.f > label, .f > span { font-size: 14px; font-weight: 700; color: var(--muted); }
.f > label i { font-style: normal; color: var(--c-red); }
.f input, .f textarea, .f select { width: 100%; min-height: 52px; padding: 12px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: 17px; outline: none; backdrop-filter: var(--glass); }
.f textarea { min-height: 96px; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.f select option { color: #111; }
.f .money-in { position: relative; }
.f .money-in input { padding-left: 40px; }
.f .money-in b { position: absolute; left: 16px; top: 14px; color: var(--muted); }
.f .err { font-size: 13.5px; font-weight: 700; color: var(--c-red); }
.f.bad input, .f.bad textarea, .f.bad select { border-color: var(--c-red); }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pills label { position: relative; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--surface); font-weight: 700; cursor: pointer; backdrop-filter: var(--glass); }
.pills input { position: absolute; opacity: 0; pointer-events: none; }
.pills label:has(input:checked) { color: var(--on-accent); background: var(--accent); border-color: transparent; }
.pills label.st:has(input:checked) { color: #fff; background: var(--c); }
.switch { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); font-weight: 700; }
.switch input { flex: none; width: 48px !important; height: 28px; min-height: 0 !important; padding: 0 !important; border: 0 !important; box-shadow: none !important; appearance: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgb(0 0 0 / .2); }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(-20px); }
.photo-in { display: flex; align-items: center; gap: 12px; }
.photo-in img { width: 72px; height: 72px; object-fit: cover; border-radius: 14px; }
.savebar { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, var(--bg) 30%); }
.savebar > * { flex: 1; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px; font-weight: 800; font-size: 16px; cursor: pointer; white-space: nowrap; }
.btn--primary { color: var(--on-accent); background: var(--accent); box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 35%, transparent); }
.btn--ghost { color: var(--text); background: var(--surface); border: 1.5px solid var(--line); backdrop-filter: var(--glass); }
.btn--danger { color: var(--c-red); background: transparent; border: 1.5px solid color-mix(in srgb, var(--c-red) 40%, transparent); }
.btn--sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-row { display: flex; gap: 10px; margin-top: 18px; }
.btn-row > * { flex: 1; }

/* ---------- הגדרות ---------- */
.set { padding: 16px; margin-top: 12px; display: grid; gap: 14px; }
.set h3 { font-size: 17px; }
.themes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.theme-card { display: grid; gap: 8px; padding: 12px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface-2); cursor: pointer; text-align: right; }
.theme-card.on { border-color: var(--accent); }
.theme-card b { font-size: 14px; }
.swatches { display: flex; gap: 4px; }
.swatches i { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .08); }

/* ---------- הודעה ---------- */
.toast { position: fixed; z-index: 60; left: 16px; right: 16px; bottom: calc(96px + env(safe-area-inset-bottom)); max-width: 460px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-radius: 999px; color: #fff; background: #1C1B22; box-shadow: 0 12px 30px rgb(0 0 0 / .3); font-weight: 700; transform: translateY(20px); opacity: 0; pointer-events: none; transition: .2s; }
.toast.on { transform: none; opacity: 1; pointer-events: auto; }
.toast button { border: 0; background: none; color: #FFE14D; font-weight: 800; cursor: pointer; }

/* ---------- כניסה ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .card { width: min(420px, 100%); padding: 28px 22px; display: grid; gap: 14px; text-align: center; }
.login h1 { font-size: 30px; }
.login-tabs { display: flex; justify-content: center; gap: 8px; }
.login-tabs .chip-btn.on { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.login .f { text-align: right; }
.demo-note { margin-top: 14px; padding: 10px 14px; border-radius: var(--radius); font-size: 13.5px; background: color-mix(in srgb, var(--c-yellow) 16%, transparent); }

/* ---------- מחשב: ניווט בצד ---------- */
@media (min-width: 960px) {
  .app { max-width: 1060px; padding: 0 32px 60px; margin-right: 260px; margin-left: auto; }
  .nav, [data-theme="bold-dark"] .nav, [data-theme="soft-air"] .nav, [data-theme="photo-immersive"] .nav {
    top: 16px; bottom: 16px; right: 16px; left: auto; width: 220px; max-width: none; margin: 0;
    flex-direction: column; justify-content: flex-start; padding: 16px 12px; border: 1px solid var(--line); border-radius: var(--radius-lg);
  }
  .nav a, [data-theme="bold-dark"] .nav a, [data-theme="soft-air"] .nav a, [data-theme="photo-immersive"] .nav a { display: flex; grid-template-columns: none; place-content: initial; align-items: center; gap: 12px; height: 48px; padding: 0 14px; font-size: 15px; border-radius: 14px; }
  .nav a span, [data-theme="bold-dark"] .nav a span, [data-theme="soft-air"] .nav a span, [data-theme="photo-immersive"] .nav a span { display: inline; }
  .fab { bottom: 28px !important; left: 32px; }
  .kpis { grid-template-columns: repeat(4, 1fr); }
  .kpi:first-child { grid-column: auto; }
  .list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .col { width: 300px; }
  .savebar { right: 260px; }
  .toast { bottom: 28px; }
  .cover { margin: 0; border-radius: var(--radius-lg); }
}

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* =====================================================================
   שלושה סגנונות עם תנועה לאופטימלי: רקע עם מעבר צבעים שזז לאט, זכוכית ועומק.
   בצבעי המותג: שחור #231F20, זהב #B08A30, ירוק תפוח #8DC63F.
   ===================================================================== */

/* ---------- 1. זהב יוקרתי (כהה) ---------- */
[data-theme="gold-luxe"] {
  --bg: #0E0C0A;
  --surface: rgb(255 248 235 / .07);
  --surface-2: rgb(255 248 235 / .11);
  --text: #F7F1E6;
  --muted: #B8AD99;
  --line: rgb(232 200 130 / .16);
  --accent: #D4AF5A;
  --on-accent: #1A1408;
  --hero: linear-gradient(120deg, #2A2116 0%, #8A6A28 45%, #E3C47A 60%, #8A6A28 75%, #2A2116 100%);
  --on-hero: #FFFFFF;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 1px 0 rgb(255 230 180 / .08) inset, 0 18px 40px rgb(0 0 0 / .45);
  --glass: blur(18px) saturate(140%);
  --nav-bg: rgb(28 23 17 / .72);
  --nav-text: #A89D88;
  --nav-active: #1A1408;
  --nav-active-bg: linear-gradient(135deg, #F0D58F, #B08A30);
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 800;
  --num-weight: 800;
  --fx-1: rgb(212 175 90 / .38);
  --fx-2: rgb(141 198 63 / .14);
  --fx-3: rgb(160 110 40 / .30);
}

/* ---------- 2. רענן וצבעוני (בהיר) ---------- */
[data-theme="fresh-glow"] {
  --bg: #FBF7EE;
  --surface: rgb(255 255 255 / .66);
  --surface-2: rgb(255 255 255 / .5);
  --text: #1F1B16;
  --muted: #6F665A;
  --line: rgb(80 60 20 / .10);
  --accent: #4F7F1F;
  --on-accent: #FFFFFF;
  --hero: linear-gradient(120deg, #6E9F2E 0%, #9CCB4D 30%, #E2C06A 60%, #B08A30 85%, #6E9F2E 100%);
  --on-hero: #FFFFFF;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 0 rgb(255 255 255 / .8) inset, 0 14px 34px rgb(120 95 30 / .14);
  --glass: blur(18px) saturate(160%);
  --nav-bg: rgb(255 255 255 / .74);
  --nav-text: #8B8273;
  --nav-active: #FFFFFF;
  --nav-active-bg: linear-gradient(135deg, #7DB23A, #4F7F1F);
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 800;
  --num-weight: 800;
  --fx-1: rgb(141 198 63 / .45);
  --fx-2: rgb(226 192 106 / .55);
  --fx-3: rgb(176 138 48 / .25);
}

/* ---------- 3. עדין עם תנועה (לבן ונקי) ---------- */
[data-theme="clean-motion"] {
  --bg: #F7F6F3;
  --surface: #FFFFFF;
  --surface-2: #F2F0EB;
  --text: #1C1A17;
  --muted: #6E6A63;
  --line: #E9E5DD;
  --accent: #A8822B;
  --on-accent: #FFFFFF;
  --hero: linear-gradient(120deg, #231F20 0%, #3A3022 40%, #8C6C2A 70%, #231F20 100%);
  --on-hero: #FFFFFF;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(35 31 32 / .05), 0 10px 26px rgb(35 31 32 / .07);
  --glass: none;
  --nav-bg: #FFFFFF;
  --nav-text: #9C978E;
  --nav-active: #A8822B;
  --nav-active-bg: transparent;
  --font-head: 'Heebo', system-ui, sans-serif;
  --head-weight: 800;
  --num-weight: 800;
  --fx-1: rgb(176 138 48 / .10);
  --fx-2: rgb(141 198 63 / .07);
  --fx-3: rgb(176 138 48 / .06);
}

/* ---------- 4. זהב בהיר: היוקרתי, בגוונים בהירים (הסגנון שלאה בחרה) ---------- */
[data-theme="gold-light"] {
  --bg: #FAF6EE;
  --surface: rgb(255 255 255 / .58);
  --surface-2: rgb(255 252 245 / .55);
  --text: #2A241C;
  --muted: #7A705F;
  --line: rgb(176 138 48 / .16);
  --accent: #9A7428;
  --on-accent: #FFFFFF;
  --hero: linear-gradient(120deg, #F3E6C4 0%, #D9BC78 30%, #C9A24A 50%, #C8D9A0 66%, #E6CF94 80%, #F3E6C4 100%);
  --on-hero: #2A1F0C;
  --radius: 20px;
  --radius-lg: 28px;
  --shadow: 0 1px 0 rgb(255 255 255 / .9) inset, 0 12px 32px rgb(140 105 40 / .12);
  --glass: blur(20px) saturate(150%);
  --nav-bg: rgb(255 253 248 / .7);
  --nav-text: #8D8270;
  --nav-active: #FFFFFF;
  --nav-active-bg: linear-gradient(135deg, #C9A24A, #9A7428);
  --font-head: 'Rubik', 'Heebo', sans-serif;
  --head-weight: 700;
  --num-weight: 800;
  --fx-1: rgb(222 192 120 / .50);
  --fx-2: rgb(160 205 100 / .26);
  --fx-3: rgb(240 214 170 / .60);
}
[data-theme="gold-light"] body { background: var(--bg); isolation: isolate; }
[data-theme="gold-light"] body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 32% at 18% 18%, var(--fx-1), transparent 70%),
    radial-gradient(34% 30% at 88% 34%, var(--fx-2), transparent 70%),
    radial-gradient(46% 40% at 55% 92%, var(--fx-3), transparent 70%),
    radial-gradient(28% 24% at 70% 8%, rgb(255 255 255 / .9), transparent 70%);
  filter: blur(14px);
  animation: opt-drift 30s ease-in-out infinite alternate;
}
[data-theme="gold-light"] .kpi:first-child, [data-theme="gold-light"] .podium { position: relative; overflow: hidden; background-size: 260% 260%; animation: opt-rise .6s cubic-bezier(.2, .8, .2, 1) both, opt-flow 10s ease-in-out infinite; }
[data-theme="gold-light"] .kpi:first-child::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .55) 50%, transparent 65%);
  transform: translateX(120%); animation: opt-shine 6s ease-in-out infinite;
}
[data-theme="gold-light"] .kpi:first-child b { font-size: 48px; }
[data-theme="gold-light"] .kpi:first-child span { color: rgb(42 31 12 / .72); }
[data-theme="gold-light"] .podium { background-image: linear-gradient(120deg, rgb(255 255 255 / .7), rgb(243 230 196 / .7), rgb(226 240 205 / .45), rgb(255 255 255 / .7)); }
[data-theme="gold-light"] .item, [data-theme="gold-light"] .kpi, [data-theme="gold-light"] .action, [data-theme="gold-light"] .chip-btn { transition: transform .25s ease, box-shadow .25s ease; }
[data-theme="gold-light"] .item:hover, [data-theme="gold-light"] .kpi:hover, [data-theme="gold-light"] .action:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 16px 34px rgb(91 138 36 / .16); }
[data-theme="gold-light"] .item:active, [data-theme="gold-light"] .action:active { transform: scale(.98); }
[data-theme="gold-light"] .greet, [data-theme="gold-light"] .kpi { animation: opt-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
[data-theme="gold-light"] .kpi:first-child { animation: opt-rise .6s cubic-bezier(.2, .8, .2, 1) both, opt-flow 10s ease-in-out infinite; }
[data-theme="gold-light"] .greet h1 { background: linear-gradient(90deg, #2A241C 0%, #9A7428 38%, #6E9A35 50%, #9A7428 62%, #2A241C 90%); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: opt-flow 8s linear infinite, opt-rise .6s both; }
[data-theme="gold-light"] .btn--primary, [data-theme="gold-light"] .fab, [data-theme="gold-light"] .chip-btn.on, [data-theme="gold-light"] .pills label:has(input:checked):not(.st), [data-theme="gold-light"] .avatar { background: linear-gradient(135deg, #C9A24A, #9A7428); color: #fff; }
[data-theme="gold-light"] .top { background: linear-gradient(rgb(250 246 238 / .82) 60%, transparent); backdrop-filter: blur(8px); }
[data-theme="gold-light"] .nav {
  left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto;
  padding: 7px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(160%);
}
[data-theme="gold-light"] .nav a { min-width: 42px; padding: 7px 4px; font-size: 10.5px; }
[data-theme="gold-light"] .nav { gap: 0; padding: 6px; }
[data-theme="gold-light"] .nav a.on { background: var(--nav-active-bg); box-shadow: 0 6px 18px rgb(154 116 40 / .3); }
[data-theme="gold-light"] .fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
[data-theme="gold-light"] .section__head h2::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-inline-end: 8px; border-radius: 50%; background: #8DC63F; box-shadow: 0 0 0 4px rgb(141 198 63 / .18); vertical-align: middle; }
[data-theme="gold-light"] .f input:focus, [data-theme="gold-light"] .f textarea:focus, [data-theme="gold-light"] .f select:focus { border-color: #8DC63F; box-shadow: 0 0 0 4px rgb(141 198 63 / .18); }
[data-theme="gold-light"] .f input, [data-theme="gold-light"] .f textarea, [data-theme="gold-light"] .f select { background: rgb(255 255 255 / .75); }
@media (min-width: 960px) {
  [data-theme="gold-light"] .nav { top: 16px; bottom: 16px; right: 16px; left: auto; width: 220px; max-width: none; margin: 0; flex-direction: column; justify-content: flex-start; padding: 16px 12px; border-radius: var(--radius-lg); }
  [data-theme="gold-light"] .nav a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; font-size: 15px; border-radius: 14px; }
}

/* תנועה עדינה בכל מעבר בין מסכים (רק כשעוברים מסך, לא בכל הקלדה בחיפוש) */
[data-enter] .app > * { animation: opt-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
[data-enter] .app > *:nth-child(2) { animation-delay: .04s; }
[data-enter] .app > *:nth-child(3) { animation-delay: .08s; }
[data-enter] .app > *:nth-child(4) { animation-delay: .12s; }
[data-enter] .app > *:nth-child(5) { animation-delay: .16s; }
[data-enter] .app > *:nth-child(n+6) { animation-delay: .2s; }
[data-enter] .list > .item { animation: opt-rise .5s cubic-bezier(.2, .8, .2, 1) both; }
[data-enter] .list > .item:nth-child(2) { animation-delay: .05s; }
[data-enter] .list > .item:nth-child(3) { animation-delay: .1s; }
[data-enter] .list > .item:nth-child(n+4) { animation-delay: .15s; }
[data-enter] .app > .top, [data-enter] .app > .fab { animation: none; }
@media (prefers-reduced-motion: reduce) { [data-enter] .app > *, [data-enter] .list > .item, [data-theme="gold-light"] body::before, [data-theme="gold-light"] .kpi, [data-theme="gold-light"] .kpi::after, [data-theme="gold-light"] .greet h1 { animation: none !important; } }

/* רקע חי: כתמי צבע רכים שזזים לאט מאחורי הכל */
[data-theme="gold-luxe"] body::before, [data-theme="fresh-glow"] body::before, [data-theme="clean-motion"] body::before {
  content: ""; position: fixed; inset: -20%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 35% at 20% 20%, var(--fx-1), transparent 70%),
    radial-gradient(35% 30% at 85% 30%, var(--fx-2), transparent 70%),
    radial-gradient(45% 40% at 60% 90%, var(--fx-3), transparent 70%);
  filter: blur(10px);
  animation: opt-drift 26s ease-in-out infinite alternate;
}
[data-theme="gold-luxe"] body, [data-theme="fresh-glow"] body, [data-theme="clean-motion"] body { background: var(--bg); isolation: isolate; }
@keyframes opt-drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(4%, -3%, 0) rotate(8deg) scale(1.08); }
  100% { transform: translate3d(-4%, 3%, 0) rotate(-6deg) scale(1.02); }
}

/* כרטיס המספר הראשי: מעבר צבעים זז + ברק שעובר עליו */
[data-theme="gold-luxe"] .kpi:first-child, [data-theme="fresh-glow"] .kpi:first-child, [data-theme="clean-motion"] .kpi:first-child,
[data-theme="gold-luxe"] .podium, [data-theme="fresh-glow"] .podium {
  position: relative; overflow: hidden; background-size: 260% 260%; animation: opt-flow 9s ease-in-out infinite;
}
[data-theme="gold-luxe"] .kpi:first-child::after, [data-theme="fresh-glow"] .kpi:first-child::after, [data-theme="clean-motion"] .kpi:first-child::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / .28) 50%, transparent 65%);
  transform: translateX(120%); animation: opt-shine 5.5s ease-in-out infinite;
}
@keyframes opt-flow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
@keyframes opt-shine { 0%, 55% { transform: translateX(120%); } 85%, 100% { transform: translateX(-120%); } }
[data-theme="gold-luxe"] .kpi:first-child b, [data-theme="fresh-glow"] .kpi:first-child b, [data-theme="clean-motion"] .kpi:first-child b { font-size: 48px; text-shadow: 0 2px 14px rgb(0 0 0 / .25); }

/* עומק: כרטיסים שמתרוממים בנגיעה, ונכנסים לאט כשהמסך נפתח */
[data-theme="gold-luxe"] .item, [data-theme="fresh-glow"] .item, [data-theme="clean-motion"] .item,
[data-theme="gold-luxe"] .kpi, [data-theme="fresh-glow"] .kpi, [data-theme="clean-motion"] .kpi { transition: transform .25s ease, box-shadow .25s ease; }
[data-theme="gold-luxe"] .item:hover, [data-theme="fresh-glow"] .item:hover, [data-theme="clean-motion"] .item:hover,
[data-theme="gold-luxe"] .kpi:hover, [data-theme="fresh-glow"] .kpi:hover, [data-theme="clean-motion"] .kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow), 0 18px 36px color-mix(in srgb, var(--accent) 18%, transparent); }
[data-theme="gold-luxe"] .item:active, [data-theme="fresh-glow"] .item:active, [data-theme="clean-motion"] .item:active { transform: scale(.98); }
[data-theme="gold-luxe"] .greet, [data-theme="fresh-glow"] .greet, [data-theme="clean-motion"] .greet,
[data-theme="gold-luxe"] .kpi, [data-theme="fresh-glow"] .kpi, [data-theme="clean-motion"] .kpi { animation: opt-rise .6s cubic-bezier(.2, .8, .2, 1) both; }
[data-theme] .kpi:nth-child(2) { animation-delay: .06s; }
[data-theme] .kpi:nth-child(3) { animation-delay: .12s; }
[data-theme] .kpi:nth-child(4) { animation-delay: .18s; }
[data-theme="gold-luxe"] .kpi:first-child, [data-theme="fresh-glow"] .kpi:first-child, [data-theme="clean-motion"] .kpi:first-child { animation: opt-rise .6s cubic-bezier(.2, .8, .2, 1) both, opt-flow 9s ease-in-out infinite; }
@keyframes opt-rise { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

/* כפתורים: מעבר צבעים עדין */
[data-theme="gold-luxe"] .btn--primary, [data-theme="gold-luxe"] .fab, [data-theme="gold-luxe"] .chip-btn.on, [data-theme="gold-luxe"] .pills label:has(input:checked):not(.st), [data-theme="gold-luxe"] .avatar { background: linear-gradient(135deg, #F0D58F, #B08A30); color: #1A1408; }
[data-theme="fresh-glow"] .btn--primary, [data-theme="fresh-glow"] .fab, [data-theme="fresh-glow"] .chip-btn.on, [data-theme="fresh-glow"] .pills label:has(input:checked):not(.st), [data-theme="fresh-glow"] .avatar { background: linear-gradient(135deg, #7DB23A, #4F7F1F); }
[data-theme="clean-motion"] .btn--primary, [data-theme="clean-motion"] .fab, [data-theme="clean-motion"] .avatar { background: linear-gradient(135deg, #C9A24A, #8C6C2A); }

/* כותרת הברכה בזהב מבריק */
[data-theme="gold-luxe"] .greet h1 { background: linear-gradient(90deg, #F7F1E6, #E3C47A, #F7F1E6); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: opt-flow 7s linear infinite, opt-rise .6s both; }

/* מעטפת עליונה שקופה */
[data-theme="gold-luxe"] .top { background: linear-gradient(rgb(14 12 10 / .88) 60%, transparent); backdrop-filter: blur(8px); }
[data-theme="fresh-glow"] .top { background: linear-gradient(rgb(251 247 238 / .85) 60%, transparent); backdrop-filter: blur(8px); }

/* ניווט: גלולה צפה מזכוכית (בטלפון) */
[data-theme="gold-luxe"] .nav, [data-theme="fresh-glow"] .nav {
  left: 14px; right: 14px; bottom: calc(14px + env(safe-area-inset-bottom)); max-width: 480px; margin: 0 auto;
  padding: 7px; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); backdrop-filter: blur(20px) saturate(160%);
}
[data-theme="gold-luxe"] .nav a, [data-theme="fresh-glow"] .nav a { min-width: 48px; padding: 7px 8px; font-size: 10.5px; }
[data-theme="gold-luxe"] .nav a.on, [data-theme="fresh-glow"] .nav a.on { background: var(--nav-active-bg); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }
[data-theme="gold-luxe"] .fab, [data-theme="fresh-glow"] .fab { bottom: calc(96px + env(safe-area-inset-bottom)); }
[data-theme="clean-motion"] .nav a.on { color: var(--accent); }
[data-theme="clean-motion"] .nav a.on .i { transform: translateY(-2px); transition: transform .2s; }

/* טקסט על רקע כהה */
[data-theme="gold-luxe"] .status { color: color-mix(in srgb, var(--c) 55%, #fff); background: color-mix(in srgb, var(--c) 22%, transparent); }
[data-theme="gold-luxe"] .f select option { color: #111; }
[data-theme="gold-luxe"] .toast { background: #2A2318; border: 1px solid var(--line); }
[data-theme="gold-luxe"] .demo-note { background: rgb(212 175 90 / .14); }

/* במחשב: התפריט בצד, גם בסגנונות החדשים */
@media (min-width: 960px) {
  [data-theme="gold-luxe"] .nav, [data-theme="fresh-glow"] .nav {
    top: 16px; bottom: 16px; right: 16px; left: auto; width: 220px; max-width: none; margin: 0;
    flex-direction: column; justify-content: flex-start; padding: 16px 12px; border-radius: var(--radius-lg);
  }
  [data-theme="gold-luxe"] .nav a, [data-theme="fresh-glow"] .nav a { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; font-size: 15px; border-radius: 14px; }
}

/* מי שביקש פחות תנועה במכשיר: בלי אנימציות */
@media (prefers-reduced-motion: reduce) {
  [data-theme] body::before, [data-theme] .kpi, [data-theme] .kpi::after, [data-theme] .greet, [data-theme] .greet h1, [data-theme] .podium { animation: none !important; }
}
