/* הבית שלנו – עיצוב. שלוש ערכות נושא עם אותם משתנים: night (כהה ונועז), fresh (נקי ורענן), sunny (צבעוני ושמח). */

:root, [data-theme="night"] {
  --bg: #0C0C0F;
  --surface: #17171C;
  --surface-2: #222229;
  --text: #F5F5F7;
  --muted: #9A9AA6;
  --line: #2B2B33;
  --accent: #F9B914;
  --on-accent: #141414;
  --accent-2: #19ABBA;
  --hero: #F9B914;
  --on-hero: #141414;
  --danger: #FF5A52;
  --ok: #3FB950;
  --radius: 18px;
  --radius-lg: 26px;
  --shadow: 0 12px 30px rgb(0 0 0 / .35);
  --nav-bg: #1D1D23;
  --nav-text: #8E8E99;
  --nav-active: #141414;
  --nav-active-bg: #F9B914;
  --head: 'Rubik', 'Heebo', sans-serif;
  --head-w: 900;
  --bought: .42;
  color-scheme: dark;
}

[data-theme="fresh"] {
  --bg: #F2F5F8;
  --surface: #FFFFFF;
  --surface-2: #EDF1F5;
  --text: #141B4D;
  --muted: #5E6690;
  --line: #E1E6EF;
  --accent: #19ABBA;
  --on-accent: #FFFFFF;
  --accent-2: #F9B914;
  --hero: #141B4D;
  --on-hero: #FFFFFF;
  --danger: #E5484D;
  --ok: #1F9D55;
  --radius: 16px;
  --radius-lg: 22px;
  --shadow: 0 1px 2px rgb(20 27 77 / .05), 0 10px 26px rgb(20 27 77 / .07);
  --nav-bg: #FFFFFF;
  --nav-text: #8A90B0;
  --nav-active: #FFFFFF;
  --nav-active-bg: #141B4D;
  --head: 'Rubik', 'Heebo', sans-serif;
  --head-w: 800;
  --bought: .5;
  color-scheme: light;
}

[data-theme="sunny"] {
  --bg: #FFF8EC;
  --surface: #FFFFFF;
  --surface-2: #FFF0D6;
  --text: #1C1B1F;
  --muted: #6E6A75;
  --line: #F1E5D1;
  --accent: #1C1B1F;
  --on-accent: #FFFFFF;
  --accent-2: #19ABBA;
  --hero: #FFD95A;
  --on-hero: #1C1B1F;
  --danger: #E5484D;
  --ok: #1F9D55;
  --radius: 22px;
  --radius-lg: 30px;
  --shadow: 0 2px 0 rgb(28 27 31 / .06), 0 10px 24px rgb(120 90 40 / .09);
  --nav-bg: #FFFFFF;
  --nav-text: #9A95A2;
  --nav-active: #FFFFFF;
  --nav-active-bg: #1C1B1F;
  --head: 'Rubik', 'Heebo', sans-serif;
  --head-w: 800;
  --bought: .5;
  color-scheme: light;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
html.framed { scrollbar-width: none; }
html.framed::-webkit-scrollbar { display: none; }
body { font-family: 'Heebo', system-ui, sans-serif; font-size: 16px; line-height: 1.5; min-height: 100dvh; overscroll-behavior-y: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: var(--head-w); margin: 0; line-height: 1.12; }
p { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
svg.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- מבנה ---------- */
.app { max-width: 560px; margin: 0 auto; padding: 0 16px calc(110px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; gap: 12px; padding: calc(14px + env(safe-area-inset-top)) 0 10px; }
.top .house { font-size: 14px; font-weight: 700; color: var(--muted); }
.top h1 { font-size: 30px; }
.top .grow { flex: 1; min-width: 0; }
.avatar { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-weight: 800; font-size: 16px; color: #141414; flex: none; }
.avatar.sm { width: 28px; height: 28px; font-size: 13px; }
.avatars { display: inline-flex; }
.avatars .avatar { margin-inline-start: -8px; border: 2px solid var(--surface); }
.avatars .avatar:first-child { margin-inline-start: 0; }
.conn { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); }

/* ---------- באנר בקניות ---------- */
.live { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 12px; border-radius: var(--radius); background: var(--accent-2); color: #fff; font-weight: 700; box-shadow: var(--shadow); }
.live .dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; flex: none; animation: pulse 1.4s infinite; }
.live small { display: block; font-weight: 500; opacity: .9; font-size: 14px; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(255 255 255 / .7); } 70% { box-shadow: 0 0 0 10px rgb(255 255 255 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 255 255 / 0); } }

/* ---------- תזכורות ---------- */
.remind { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 4px 0 12px; border-radius: var(--radius); background: var(--danger); color: #fff; box-shadow: var(--shadow); }
.remind b { display: block; font-size: 17px; }
.remind span { font-size: 14px; opacity: .95; }
.remind { flex-wrap: wrap; }
.remind .grow { flex: 1 1 150px; min-width: 0; }
.remind button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; background: #fff; color: #B42318; font-weight: 800; display: inline-flex; align-items: center; gap: 6px; }
.remind button svg { width: 18px; height: 18px; }

/* ---------- כפתור בסופר ---------- */
.shop-btn { width: 100%; display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--hero); color: var(--on-hero); box-shadow: var(--shadow); text-align: start; min-height: 76px; }
.shop-btn .ico { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: rgb(0 0 0 / .1); flex: none; }
[data-theme="fresh"] .shop-btn .ico, [data-theme="night"] .shop-btn.on .ico { background: rgb(255 255 255 / .14); }
.shop-btn .ico svg { width: 26px; height: 26px; }
.shop-btn b { display: block; font-family: var(--head); font-weight: var(--head-w); font-size: 21px; line-height: 1.15; }
.shop-btn span { font-size: 14px; opacity: .85; }
.shop-btn.on { background: var(--accent-2); color: #fff; }

/* ---------- הוספת פריט ---------- */
.adder { position: sticky; top: 0; z-index: 5; padding: 12px 0 8px; background: var(--bg); }
.adder form { display: flex; gap: 8px; }
.field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 54px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--line); }
.field:focus-within { border-color: var(--accent); }
[data-theme="night"] .field:focus-within { border-color: var(--accent); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font-size: 17px; padding: 12px 0; }
.field input::placeholder { color: var(--muted); }
.field .qty { flex: 0 0 64px; text-align: center; border-inline-start: 1.5px solid var(--line); padding-inline-start: 8px; font-size: 15px; }
.icon-btn { display: grid; place-items: center; width: 54px; height: 54px; border-radius: var(--radius); background: var(--accent); color: var(--on-accent); flex: none; }
.suggest { display: flex; gap: 8px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.suggest::-webkit-scrollbar { display: none; }
.hint { font-size: 14px; color: var(--muted); padding-top: 6px; }
.hint.warn { color: var(--danger); font-weight: 700; }

/* ---------- תגיות ---------- */
a.chip, a.btn { text-decoration: none; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: var(--surface); border: 1.5px solid var(--line); font-weight: 700; font-size: 15px; white-space: nowrap; }
.chip.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.chip svg { width: 16px; height: 16px; }
.chip .x { opacity: .6; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.tag.urgent { background: var(--danger); color: #fff; }
.tag.new { background: var(--accent-2); color: #fff; animation: pop .5s ease; }
.tag.soft { background: var(--surface-2); color: var(--muted); }
@keyframes pop { 0% { transform: scale(.4); } 70% { transform: scale(1.12); } 100% { transform: scale(1); } }

/* ---------- רשימות ---------- */
.sec-head { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.sec-head h2 { font-size: 20px; }
.sec-head .count { font-weight: 700; color: var(--muted); font-size: 15px; }
.sec-head .grow { flex: 1; }
.sec-head .dot { width: 12px; height: 12px; border-radius: 4px; }
.link-btn { font-weight: 700; color: var(--accent-2); min-height: 40px; padding: 0 6px; font-size: 15px; }
[data-theme="night"] .link-btn { color: var(--accent); }
.group { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.item { display: flex; align-items: center; gap: 4px; min-height: 60px; border-bottom: 1px solid var(--line); }
.item:last-child { border-bottom: 0; }
.item .tap { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 10px 14px; text-align: start; min-height: 60px; }
.check { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 2.5px solid var(--line); transition: .15s; }
.check svg { width: 18px; height: 18px; stroke-width: 3; opacity: 0; }
.item.done .check { background: var(--ok); border-color: var(--ok); color: #fff; }
.item.done .check svg { opacity: 1; }
.item .name { font-size: 17px; font-weight: 600; overflow-wrap: anywhere; }
.item .meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 2px; font-size: 13.5px; color: var(--muted); }
.item.done .name { text-decoration: line-through; opacity: var(--bought); }
.item.done .meta { opacity: var(--bought); }
.item.fresh-add { animation: flash 2.4s ease; }
@keyframes flash { 0%, 40% { background: color-mix(in srgb, var(--accent-2) 22%, transparent); } 100% { background: transparent; } }
.more { flex: none; display: grid; place-items: center; width: 48px; height: 52px; color: var(--muted); margin-inline-end: 4px; }

/* ---------- אירועים ---------- */
.event { display: flex; gap: 14px; padding: 14px; width: 100%; text-align: start; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); margin-bottom: 10px; align-items: flex-start; }
.event .date { flex: none; width: 58px; padding: 8px 0; border-radius: 16px; text-align: center; background: var(--surface-2); }
.event .date b { display: block; font-family: var(--head); font-weight: var(--head-w); font-size: 24px; line-height: 1; }
.event .date small { font-size: 13px; font-weight: 700; color: var(--muted); }
.event.today .date { background: var(--hero); color: var(--on-hero); }
.event.today .date small { color: inherit; opacity: .8; }
.event .body { flex: 1; min-width: 0; }
.event h3 { font-size: 18px; font-family: 'Heebo', sans-serif; font-weight: 800; overflow-wrap: anywhere; }
.event .row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 5px; color: var(--muted); font-size: 14.5px; }
.event .row span { display: inline-flex; align-items: center; gap: 4px; }
.event .row svg { width: 16px; height: 16px; }
.event .foot { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.event.past { opacity: .55; }
.kind-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--surface-2); color: var(--muted); flex: none; }
.kind-ico svg { width: 18px; height: 18px; }

.search { margin: 6px 0 4px; }

/* ---------- כפתור צף ---------- */
.fab { position: fixed; z-index: 20; inset-inline-start: max(16px, calc(50% - 264px)); bottom: calc(96px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; height: 58px; padding: 0 22px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; font-size: 17px; box-shadow: 0 12px 28px rgb(0 0 0 / .25); }
.fab svg { width: 24px; height: 24px; stroke-width: 2.6; }

/* ---------- ניווט תחתון ---------- */
.nav { position: fixed; z-index: 30; left: 50%; transform: translateX(-50%); bottom: calc(12px + env(safe-area-inset-bottom)); width: min(528px, calc(100% - 24px)); display: flex; gap: 6px; padding: 7px; border-radius: 999px; background: var(--nav-bg); box-shadow: 0 14px 34px rgb(0 0 0 / .22); border: 1px solid var(--line); }
.nav button { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 56px; border-radius: 999px; color: var(--nav-text); font-weight: 700; font-size: 13px; position: relative; }
.nav button svg { width: 23px; height: 23px; }
.nav button.on { background: var(--nav-active-bg); color: var(--nav-active); }
.nav .badge { position: absolute; top: 5px; inset-inline-end: calc(50% - 26px); min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ---------- גיליון (טופס שעולה מלמטה) ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 50; background: rgb(0 0 0 / .45); display: flex; align-items: flex-end; justify-content: center; animation: fade .2s; }
.sheet { width: 100%; max-width: 560px; max-height: 92dvh; overflow-y: auto; background: var(--bg); border-radius: 28px 28px 0 0; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); animation: up .25s ease; }
.sheet .grab { width: 44px; height: 5px; border-radius: 9px; background: var(--line); margin: 0 auto 12px; }
.sheet h2 { font-size: 24px; margin-bottom: 14px; }
.sheet .actions { position: sticky; bottom: calc(-18px - env(safe-area-inset-bottom)); display: flex; gap: 10px; padding: 14px 0 calc(4px + env(safe-area-inset-bottom)); background: var(--bg); margin-top: 8px; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
label.f { display: block; margin-bottom: 14px; }
label.f > span, .f-label { display: block; font-weight: 700; font-size: 15px; margin-bottom: 6px; }
label.f > span i, .f-label i { font-style: normal; color: var(--danger); }
.inp { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--radius); border: 1.5px solid var(--line); background: var(--surface); font-size: 17px; outline: 0; }
.inp:focus { border-color: var(--accent); }
textarea.inp { min-height: 90px; resize: vertical; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--danger); font-weight: 700; font-size: 14px; margin-top: 4px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 20px; border-radius: var(--radius); font-weight: 800; font-size: 17px; background: var(--surface-2); color: var(--text); }
.btn.primary { background: var(--accent); color: var(--on-accent); flex: 1; }
.btn.danger { color: var(--danger); }
.btn.wide { width: 100%; }
.btn svg { width: 20px; height: 20px; }

/* ---------- הגדרות ---------- */
.card { background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); padding: 18px; margin-bottom: 14px; }
.card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.card h3 svg { color: var(--accent-2); }
[data-theme="night"] .card h3 svg { color: var(--accent); }
.card > p { color: var(--muted); font-size: 15px; margin-top: 4px; }
.card .body { margin-top: 14px; }
.invite { background: var(--hero); color: var(--on-hero); }
.invite > p { color: inherit; opacity: .85; }
.invite h3 svg { color: inherit !important; }
.code { font-family: 'Rubik', monospace; font-weight: 900; font-size: 40px; letter-spacing: 6px; direction: ltr; text-align: center; margin: 12px 0; }
.invite .btn { background: rgb(0 0 0 / .14); color: inherit; }
[data-theme="fresh"] .invite .btn { background: rgb(255 255 255 / .14); }
.invite .two .btn { padding: 0 10px; font-size: 16px; }
.invite .btn.primary { background: var(--surface); color: var(--text); }
.member { display: flex; align-items: center; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.member:last-child { border-bottom: 0; }
.member .grow { flex: 1; min-width: 0; }
.member small { display: block; color: var(--muted); font-size: 13.5px; }
.row-set { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; }
.row-set + .row-set { border-top: 1px solid var(--line); }
.row-set select { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--surface-2); padding: 0 10px; font-weight: 700; }
.themes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme { display: grid; gap: 6px; justify-items: center; padding: 10px 6px; border-radius: 16px; border: 2px solid var(--line); font-weight: 700; font-size: 14px; }
.theme.on { border-color: var(--accent); }
.theme i { display: block; width: 100%; height: 44px; border-radius: 12px; }
.note { font-size: 14px; color: var(--muted); margin-top: 10px; }
.ok-line { display: flex; align-items: center; gap: 8px; color: var(--ok); font-weight: 700; }

/* ---------- מסך ריק ---------- */
.empty { text-align: center; padding: 34px 20px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.empty .big { display: inline-grid; place-items: center; width: 70px; height: 70px; border-radius: 22px; background: var(--surface-2); color: var(--accent-2); margin-bottom: 12px; }
[data-theme="night"] .empty .big { color: var(--accent); }
.empty .big svg { width: 34px; height: 34px; }
.empty h3 { font-size: 21px; }
.empty p { color: var(--muted); margin: 6px auto 16px; max-width: 32ch; }

/* ---------- הודעות קופצות ---------- */
.toasts { position: fixed; z-index: 70; top: calc(10px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(528px, calc(100% - 24px)); display: grid; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: #17171C; color: #fff; box-shadow: 0 14px 34px rgb(0 0 0 / .35); animation: drop .3s ease; border: 1px solid rgb(255 255 255 / .08); }
[data-theme="night"] .toast { background: #F5F5F7; color: #141414; }
.toast .grow { flex: 1; min-width: 0; }
.toast b { display: block; }
.toast span { font-size: 14px; opacity: .85; }
.toast button { flex: none; min-height: 40px; padding: 0 12px; border-radius: 12px; font-weight: 800; color: var(--accent); }
[data-theme="night"] .toast button { color: #B07D00; }
.toast.bottom { position: relative; }
@keyframes drop { from { transform: translateY(-16px); opacity: 0; } }
.undo-bar { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(96px + env(safe-area-inset-bottom)); width: min(528px, calc(100% - 24px)); }

/* ---------- כניסה ---------- */
.welcome { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 30px 0; }
.welcome .logo { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; background: var(--hero); color: var(--on-hero); }
.welcome .logo svg { width: 40px; height: 40px; }
.welcome h1 { font-size: 40px; }
.welcome .btn { flex: none; }
.welcome .lead { font-size: 18px; color: var(--muted); }
.tabs2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface-2); }
.tabs2 button { min-height: 48px; border-radius: 999px; font-weight: 800; color: var(--muted); }
.tabs2 button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }

@media (min-width: 900px) {
  .app { max-width: 640px; }
}

/* ---------- מתכונים ---------- */
.rc-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.rc-card { display: flex; flex-direction: column; text-align: start; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; min-width: 0; }
.rc-img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--surface-2); }
.rc-img.ph { display: grid; place-items: center; background: color-mix(in srgb, var(--c) 22%, var(--surface)); color: var(--c); }
.rc-img.ph svg { width: 40px; height: 40px; }
.rc-img.big { aspect-ratio: 16 / 10; border-radius: var(--radius-lg); }
.rc-img.ph.big { aspect-ratio: 16 / 6; }
.rc-img.ph.big svg { width: 48px; height: 48px; }
.rc-body { display: grid; gap: 4px; padding: 10px 12px 12px; min-width: 0; }
.rc-body b { font-size: 16.5px; line-height: 1.3; overflow-wrap: anywhere; }
.rc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--muted); font-size: 13.5px; }
.rc-meta span { display: inline-flex; align-items: center; gap: 4px; }
.rc-meta svg { width: 15px; height: 15px; }
.rc-by { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); margin-top: 2px; }
.ing { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 0; text-align: start; border-bottom: 1px solid var(--line); font-size: 16px; }
.ing:last-child { border-bottom: 0; }
.ing.on .check { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.ing.on .check svg { opacity: 1; }
.ing:not(.on) span:last-child { color: var(--muted); text-decoration: line-through; }
.steps { margin: 14px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; line-height: 1.6; }
.steps li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--hero); color: var(--on-hero); font-weight: 800; font-size: 15px; }
.photo-pick { display: block; position: relative; margin-bottom: 14px; cursor: pointer; border-radius: var(--radius-lg); overflow: hidden; }
.photo-pick img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.photo-pick .chip { position: absolute; bottom: 10px; inset-inline-start: 10px; }
.photo-empty { display: grid; place-items: center; gap: 2px; aspect-ratio: 16 / 7; border: 2px dashed var(--line); border-radius: var(--radius-lg); color: var(--muted); text-align: center; background: var(--surface); }
.photo-empty svg { width: 32px; height: 32px; color: var(--accent-2); }
[data-theme="night"] .photo-empty svg { color: var(--accent); }
.photo-empty b { color: var(--text); }
.btn:disabled { opacity: .5; }
.nav button span { font-size: 12.5px; white-space: nowrap; }

/* ---------- מכירה (בהדגמה) ---------- */
.promo { display: flex; align-items: center; gap: 12px; padding: 12px 14px; margin: 4px 0 12px; border-radius: var(--radius); background: var(--surface); border: 2px solid var(--accent); box-shadow: var(--shadow); }
[data-theme="sunny"] .promo { border-color: #FFC21A; }
.promo .grow { flex: 1; min-width: 0; }
.promo b { display: block; font-size: 16px; }
.promo span { font-size: 14px; color: var(--muted); }
.promo button { flex: none; min-height: 44px; padding: 0 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-weight: 800; }
.buy-hero { text-align: center; display: grid; justify-items: center; gap: 8px; margin-bottom: 14px; }
.buy-hero .logo { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--hero); color: var(--on-hero); }
.buy-hero .logo svg { width: 34px; height: 34px; }
.buy-hero h2 { margin: 4px 0 0; font-size: 27px; }
.buy-hero p { color: var(--muted); max-width: 32ch; }
.buy-list { list-style: none; margin: 0 0 14px; padding: 16px; display: grid; gap: 12px; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.buy-list li { display: flex; gap: 12px; align-items: flex-start; }
.buy-list svg { color: var(--accent-2); margin-top: 2px; }
[data-theme="night"] .buy-list svg { color: var(--accent); }
.buy-list b { display: block; }
.buy-list span { color: var(--muted); font-size: 15px; }
.buy-list span b { color: var(--text); font-size: 16px; }
.price { text-align: center; padding: 16px; border-radius: var(--radius-lg); background: var(--hero); color: var(--on-hero); margin-bottom: 16px; }
.price b { display: block; font-family: var(--head); font-weight: 900; font-size: 46px; line-height: 1; direction: ltr; }
.price span { font-weight: 600; }
.buy-steps { margin-bottom: 6px; }

/* ---------- מתגים ---------- */
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 56px; cursor: pointer; }
.sw-row.sub { min-height: 50px; border-top: 1px solid var(--line); font-size: 15.5px; }
.sw-row b { font-weight: 800; }
.sw { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 56px; height: 32px; border-radius: 999px; background: var(--line); cursor: pointer; transition: background .2s; margin: 0; }
.sw::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: inset-inline-start .2s; }
.sw:checked { background: var(--ok); }
.sw:checked::after { inset-inline-start: 27px; }
.sw:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.sw-list { margin-top: 4px; }

/* ---------- הסברים בהדגמה ---------- */
.help-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-family: var(--head); font-weight: 900; font-size: 22px; }
.intro-bg { position: fixed; inset: 0; z-index: 80; background: rgb(0 0 0 / .6); display: grid; place-items: center; padding: 16px; animation: fade .2s; }
.intro { position: relative; width: 100%; max-width: 440px; max-height: calc(100dvh - 32px); overflow-y: auto; background: var(--bg); border-radius: 28px; padding: 30px 22px 20px; text-align: center; box-shadow: 0 30px 80px rgb(0 0 0 / .4); animation: up .3s ease; }
.intro-skip { position: absolute; top: 14px; inset-inline-start: 14px; min-height: 40px; padding: 0 12px; color: var(--muted); font-weight: 700; }
.intro-ico { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 24px; background: var(--hero); color: var(--on-hero); margin-bottom: 14px; }
.intro-ico svg { width: 40px; height: 40px; }
.intro h2 { font-size: 28px; margin-bottom: 10px; }
.intro-text { color: var(--text); font-size: 17px; line-height: 1.6; }
.intro-note { margin-top: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface-2); color: var(--muted); font-size: 15px; }
.intro-list { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 10px; text-align: start; }
.intro-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 17px; line-height: 1.5; }
.intro-list svg { flex: none; width: 22px; height: 22px; color: var(--ok); margin-top: 2px; }
.intro-dots { display: flex; justify-content: center; gap: 6px; margin: 18px 0 14px; }
.intro-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.intro-dots i.on { width: 24px; border-radius: 9px; background: var(--accent); }
.intro-actions { display: grid; gap: 10px; }
.intro-actions .btn { width: 100%; }
.intro-later { margin-top: 10px; min-height: 44px; color: var(--muted); font-weight: 700; }
.tour { position: fixed; inset: 0; z-index: 90; }
.tour-spot { position: fixed; border-radius: 20px; box-shadow: 0 0 0 9999px rgb(0 0 0 / .68); transition: all .3s ease; pointer-events: none; outline: 3px solid var(--accent); }
.tour-tip { position: fixed; left: 50%; transform: translateX(-50%); width: min(420px, calc(100% - 32px)); background: var(--surface); color: var(--text); border-radius: 22px; padding: 16px 18px; box-shadow: 0 20px 50px rgb(0 0 0 / .4); transition: top .3s ease; }
.tour-tip h3 { font-size: 20px; margin: 2px 0 6px; }
.tour-tip p { font-size: 16px; line-height: 1.55; }
.tour-count { font-size: 13px !important; font-weight: 800; color: var(--accent-2); }
[data-theme="night"] .tour-count { color: var(--accent); }
.tour-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; }
.tour-actions .btn { min-height: 46px; flex: 0 0 auto; padding: 0 18px; }
.tour-x { margin-inline-start: auto; min-height: 44px; color: var(--muted); font-weight: 700; font-size: 14px; }
.hint-card { margin: 4px 0 12px; padding: 14px 16px; border-radius: var(--radius); background: var(--surface); border: 1.5px dashed var(--accent-2); box-shadow: var(--shadow); }
[data-theme="night"] .hint-card { border-color: var(--accent); }
.hint-head { display: flex; align-items: center; gap: 8px; }
.hint-head svg { color: var(--accent-2); }
[data-theme="night"] .hint-head svg { color: var(--accent); }
.hint-head b { flex: 1; font-size: 17px; }
.hint-head button { display: grid; place-items: center; width: 40px; height: 40px; color: var(--muted); }
.hint-try { margin-top: 6px; font-weight: 800; font-size: 14px; color: var(--muted); }
.hint-card ol { margin: 4px 0 6px; padding-inline-start: 22px; display: grid; gap: 4px; font-size: 15.5px; }

/* ---------- רשימות, קבועים, קול ---------- */
.lists-bar { margin-bottom: 8px; }
.mic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--accent-2); }
[data-theme="night"] .mic { color: var(--accent); }
.mic.on { background: var(--danger); color: #fff; animation: pulse 1.2s infinite; }
.staples { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.chip:disabled { opacity: .45; }
.trial-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; margin: 0 0 14px; border-radius: var(--radius); background: var(--surface); border: 1.5px solid var(--ok); font-size: 15px; }
.trial-note svg { color: var(--ok); margin-top: 2px; }
.chore-banner .chip { background: #fff; color: #0E6E78; border: 0; }
.event.chore .date { background: none; width: auto; padding: 0; }
.event.chore .date .avatar { width: 48px; height: 48px; font-size: 20px; }
.howto { margin-top: 12px; }
.howto summary { cursor: pointer; font-weight: 800; color: var(--accent-2); min-height: 40px; display: flex; align-items: center; }
[data-theme="night"] .howto summary { color: var(--accent); }
.howto p { font-size: 15px; margin-top: 8px; line-height: 1.6; }
