/* Loop - הממשק. RTL מלא, logical properties בלבד */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; } /* חובה: כללי display של מחלקות גוברים על [hidden] של הדפדפן */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-md);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; line-height: 1.2; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
a { color: var(--blue-ink); text-underline-offset: 3px; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { display: block; max-width: 100%; }
/* אייקון בלי גודל מפורש = גודל טקסט. specificity אפס, כך שכל כלל ספציפי גובר */
:where(svg:not([width])) { width: 1.25em; height: 1.25em; flex: none; }
:focus-visible { outline: 2.5px solid var(--focus); outline-offset: 2px; border-radius: 8px; }
::selection { background: var(--pink-soft); }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.stack-sm { display: grid; gap: 6px; }
.stack-lg { display: grid; gap: 20px; }
.grow { flex: 1; min-width: 0; }
@media (max-width: 480px) { .hide-sm { display: none; } }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ------------------------------------------------------------ מעטפת */

.shell { min-height: 100dvh; display: grid; grid-template-columns: 1fr; }
.sidebar { display: none; }
.main { min-width: 0; padding-block-end: calc(var(--nav-h) + var(--safe-b) + 24px);
  background: linear-gradient(to bottom, color-mix(in srgb, var(--acc-soft) 75%, var(--bg)) 0, var(--bg) 340px) no-repeat; }

.topbar {
  position: sticky; inset-block-start: 0; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  padding: calc(10px + var(--safe-t)) 16px 10px;
  background: color-mix(in srgb, color-mix(in srgb, var(--acc-soft) 75%, var(--bg)) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-block-end: 1px solid transparent;
  transition: border-color var(--t-fast) ease;
}
.topbar.scrolled { border-block-end-color: var(--line); }
.topbar h1 { font-size: var(--fs-xl); flex: 1; min-width: 0; }
.sec-tile { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 12px; background: var(--acc); color: var(--on-accent); box-shadow: 0 6px 16px -8px color-mix(in srgb, var(--acc) 90%, transparent); }
.sec-tile svg { width: 22px; height: 22px; }

.page { padding: 8px 16px 0; max-width: 1080px; margin-inline: auto; }
.page-enter { animation: pageIn 200ms var(--ease-out) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }

/* ניווט תחתון בטלפון */
.tabbar {
  position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  padding: 6px 8px calc(6px + var(--safe-b));
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(16px);
  -webkit-backdrop-filter: saturate(1.4) blur(16px);
  border-block-start: 1px solid var(--line);
}
.tab {
  position: relative;
  display: grid; justify-items: center; gap: 2px;
  padding: 6px 2px; border: 0; background: none; border-radius: var(--r-md);
  color: var(--ink-3); font-size: 12px; font-weight: 500; text-decoration: none;
  transition: color var(--t-fast) ease, transform var(--t-press) var(--ease-out);
}
.tab svg { width: 24px; height: 24px; }
.tab:active { transform: scale(0.94); }
.tab[aria-current="page"] { color: var(--c-ink); font-weight: 600; }
.tab[aria-current="page"] .tab-ico { background: var(--c-soft); }
.tab-ico { display: grid; place-items: center; width: 52px; height: 30px; border-radius: var(--r-pill); transition: background-color var(--t-fast) ease; }
.tab .dot { position: absolute; inset-block-start: 4px; inset-inline-start: calc(50% + 8px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink-ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }

.fab {
  position: fixed; z-index: 41;
  inset-block-end: calc(var(--nav-h) + var(--safe-b) + 14px); inset-inline-end: 16px;
  display: inline-flex; align-items: center; gap: 8px;
  height: 54px; padding: 0 20px 0 22px; border: 0; border-radius: var(--r-pill);
  background: var(--ink); color: var(--bg); font-weight: 600; font-size: var(--fs-md);
  box-shadow: var(--shadow-3);
  transition: transform var(--t-press) var(--ease-out);
}
.fab svg { width: 22px; height: 22px; }
.fab:active { transform: scale(0.96); }

@media (min-width: 960px) {
  .shell { grid-template-columns: 264px 1fr; }
  .tabbar, .fab { display: none; }
  .main { padding-block-end: 48px; }
  .sidebar {
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; inset-block-start: 0; height: 100dvh;
    padding: 20px 14px; border-inline-end: 1px solid var(--line);
    background: var(--surface);
  }
  .topbar { padding-inline: 32px; padding-block: 18px 14px; }
  .topbar h1 { font-size: var(--fs-2xl); }
  .page { padding: 8px 32px 0; }
}
.side-logo { display: flex; align-items: center; gap: 10px; padding: 4px 10px 16px; }
.side-logo .logo-word { font-family: var(--font-display); font-weight: 700; font-size: 24px; letter-spacing: -0.02em; }
.side-create { margin: 6px 4px 14px; }
.side-link {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: var(--r-md);
  color: var(--ink-2); text-decoration: none; font-weight: 500;
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease;
}
.side-link svg { width: 22px; height: 22px; flex: none; }
.side-link .s-ico { display: grid; place-items: center; width: 34px; height: 34px; margin-block: -4px; border-radius: 10px; background: var(--c-soft); color: var(--c-ink); flex: none; transition: background-color var(--t-fast) ease, color var(--t-fast) ease; }
.side-link .s-ico svg { width: 19px; height: 19px; }
.side-link .count { margin-inline-start: auto; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: var(--r-pill); background: var(--pink-soft); color: var(--pink-ink); }
.side-link[aria-current="page"] { background: var(--c-soft); color: var(--ink); font-weight: 600; }
.side-link[aria-current="page"] .s-ico { background: var(--c); color: var(--on-accent); }
@media (hover: hover) and (pointer: fine) { .side-link:hover { background: var(--surface-2); color: var(--ink); } }
.side-sep { height: 1px; background: var(--line); margin: 10px 8px; }
.side-foot { margin-top: auto; }

/* צבע לכל פריט בתפריט (data-c), בלי קשר לאזור שבו נמצאים: התפריט הוא גם המקרא של הצבעים */
[data-c="blue"] { --c: var(--blue); --c-ink: var(--blue-ink); --c-soft: var(--blue-soft); }
[data-c="pink"] { --c: var(--pink); --c-ink: var(--pink-ink); --c-soft: var(--pink-soft); }
[data-c="sage"] { --c: var(--sage); --c-ink: var(--sage-ink); --c-soft: var(--sage-soft); }
[data-c="taupe"] { --c: var(--taupe); --c-ink: var(--taupe-ink); --c-soft: var(--taupe-soft); }

/* ------------------------------------------------------------ לוגו */
.logo-mark { width: 34px; height: 34px; flex: none; }
.loop-logo { display: block; height: 34px; width: auto; color: var(--ink); flex: none; overflow: visible; }
.side-logo .loop-logo { height: 46px; margin-block: -4px; }
.onb-top .loop-logo { height: 40px; }

/* ------------------------------------------------------------ כפתורים */

.btn {
  --btn-bg: var(--surface-2); --btn-fg: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 18px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font-weight: 600; font-size: var(--fs-md); text-decoration: none; white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-fast) ease, box-shadow var(--t-fast) ease, opacity var(--t-fast) ease;
  user-select: none; -webkit-user-select: none;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.45; pointer-events: none; }
.btn.primary { --btn-bg: var(--acc); --btn-fg: var(--on-accent); box-shadow: 0 6px 18px -8px color-mix(in srgb, var(--acc) 80%, transparent); }
.btn.blue { --btn-bg: var(--blue); --btn-fg: var(--on-accent); }
.btn.sage { --btn-bg: var(--sage); --btn-fg: var(--on-accent); }
.btn.dark { --btn-bg: var(--ink); --btn-fg: var(--bg); }
.btn.ghost { --btn-bg: transparent; border-color: var(--line-strong); }
.btn.link { --btn-bg: transparent; min-height: 36px; padding: 0 8px; color: var(--blue-ink); }
.btn.danger { --btn-bg: var(--danger-soft); --btn-fg: var(--danger); }
.btn.sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-sm); }
.btn.lg { min-height: 54px; padding: 0 26px; font-size: var(--fs-lg); }
.btn.block { width: 100%; }
.btn.icon { width: 44px; min-height: 44px; padding: 0; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { filter: brightness(0.97); }
  .btn.ghost:hover { background: var(--surface-2); }
}
.iconbtn {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-fast) ease;
}
.iconbtn svg { width: 22px; height: 22px; }
.iconbtn:active { transform: scale(0.94); }
@media (hover: hover) and (pointer: fine) { .iconbtn:hover { background: var(--surface-2); color: var(--ink); } }

/* ------------------------------------------------------------ כרטיסים */

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; box-shadow: var(--shadow-1);
}
.card.flat { box-shadow: none; }
.card.tint-pink { background: var(--pink-soft); border-color: transparent; }
.card.tint-blue { background: var(--blue-soft); border-color: transparent; }
.card.tint-sage { background: var(--sage-soft); border-color: transparent; }
.card.tint-taupe { background: var(--taupe-soft); border-color: transparent; }
.card-title { display: flex; align-items: center; gap: 10px; margin-block-end: 12px; }
.card-title h2, .card-title h3 { font-size: var(--fs-lg); flex: 1; }
/* כרטיס ששייך לאזור: פס צבע ליד הכותרת, באותו צבע של האזור בתפריט */
.card[data-c] .card-title::before { content: ''; width: 6px; height: 24px; border-radius: 3px; background: var(--c); flex: none; }
.card.stat-c { background: var(--c-soft); border-color: transparent; box-shadow: none; }
.card.stat-c .num { color: var(--c-ink); }
.card.press { cursor: pointer; transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-fast) ease; }
.card.press:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .card.press:hover { box-shadow: var(--shadow-2); } }

.section-title { display: flex; align-items: baseline; gap: 10px; margin: 26px 2px 12px; }
.section-title h2 { font-size: var(--fs-lg); flex: 1; }

.grid-2 { display: grid; gap: 14px; }
.grid-3 { display: grid; gap: 14px; }
@media (min-width: 720px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* רשימות */
.list { display: grid; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 4px; border-block-end: 1px solid var(--line);
  background: none; border-inline: 0; border-block-start: 0; width: 100%; text-align: start;
  transition: background-color var(--t-fast) ease;
}
.list-item:last-child { border-block-end: 0; }
button.list-item:active { background: var(--surface-2); }
.list-item .title { font-weight: 600; }
.list-item .sub { font-size: var(--fs-sm); color: var(--ink-2); }

/* תגיות קטנות */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: var(--r-pill);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--surface-2); color: var(--ink-2);
}
.badge svg { width: 14px; height: 14px; }
.badge.pink { background: var(--pink-soft); color: var(--pink-ink); }
.badge.blue { background: var(--blue-soft); color: var(--blue-ink); }
.badge.sage { background: var(--sage-soft); color: var(--sage-ink); }
.badge.taupe { background: var(--taupe-soft); color: var(--taupe-ink); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.dotlive { width: 8px; height: 8px; border-radius: 50%; background: var(--sage-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sage) 45%, transparent); }

/* צ'יפים לבחירה */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 7px;
  min-height: 40px; padding: 0 14px; border-radius: var(--r-pill);
  border: 1.5px solid var(--line-strong); background: var(--surface);
  font-weight: 500; font-size: var(--fs-sm);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-fast) ease, border-color var(--t-fast) ease;
}
.chip svg { width: 18px; height: 18px; }
.chip:active { transform: scale(0.96); }
.chip[aria-pressed="true"] { background: var(--acc-ink); color: var(--surface); border-color: var(--acc-ink); }
.chip.pink[aria-pressed="true"] { background: var(--pink); color: var(--on-accent); border-color: var(--pink); }
.chip.blue[aria-pressed="true"] { background: var(--blue); color: var(--on-accent); border-color: var(--blue); }

/* בורר מקטעים */
.seg { display: inline-flex; padding: 4px; gap: 2px; border-radius: var(--r-pill); background: var(--surface-2); }
.seg button {
  min-height: 36px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: none;
  color: var(--ink-2); font-weight: 500; font-size: var(--fs-sm);
  transition: background-color var(--t-fast) ease, color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: var(--shadow-1); }

/* ------------------------------------------------------------ טפסים */

.field { display: grid; gap: 6px; }
.field > label, .label { font-weight: 600; font-size: var(--fs-sm); }
.hint { font-size: var(--fs-sm); color: var(--ink-2); }
.input, .textarea, .select {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 1.5px solid var(--line-strong); border-radius: var(--r-md);
  background: var(--surface); font-size: var(--fs-md);
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.textarea { min-height: 120px; resize: vertical; line-height: 1.6; }
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.input::placeholder, .textarea::placeholder { color: var(--ink-3); }
.counter { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: 12.5px; color: var(--ink-3); }
.counter .over { color: var(--danger); font-weight: 700; }
.counter .ok { color: var(--sage-ink); }

/* מתג */
.switch { position: relative; display: inline-flex; flex: none; width: 52px; height: 32px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch .track { width: 100%; height: 100%; border-radius: var(--r-pill); background: var(--surface-3); transition: background-color var(--t-fast) ease; }
.switch .knob { position: absolute; inset-block-start: 3px; inset-inline-start: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-1); transition: transform var(--t-med) var(--ease-out); }
.switch input:checked ~ .track { background: var(--sage-ink); }
.switch input:checked ~ .knob { transform: translateX(-20px); }
[dir="ltr"] .switch input:checked ~ .knob { transform: translateX(20px); }
.switch input:focus-visible ~ .track { outline: 2.5px solid var(--focus); outline-offset: 2px; }

.option {
  display: flex; align-items: center; gap: 14px; width: 100%;
  padding: 14px 16px; border-radius: var(--r-md); text-align: start;
  border: 1.5px solid var(--line-strong); background: var(--surface);
  transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease, transform var(--t-press) var(--ease-out);
}
.option:active { transform: scale(0.985); }
.option[aria-pressed="true"] { border-color: var(--acc-ink); background: var(--acc-soft); }
.option .o-ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); flex: none; font-size: 22px; }
.option .o-title { font-weight: 600; }
.option .o-sub { font-size: var(--fs-sm); color: var(--ink-2); }
.option .o-check { margin-inline-start: auto; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.option[aria-pressed="true"] .o-check { background: var(--acc-ink); border-color: var(--acc-ink); color: var(--surface); }
.option[aria-pressed="true"] .o-ico { background: var(--surface); }
.option .o-check svg { width: 14px; height: 14px; opacity: 0; transition: opacity var(--t-fast) ease; }
.option[aria-pressed="true"] .o-check svg { opacity: 1; }

/* ------------------------------------------------------------ ערוצים */

.ch { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; flex: none; color: #fff; }
.ch svg { width: 20px; height: 20px; }
.ch.sm { width: 26px; height: 26px; border-radius: 8px; }
.ch.sm svg { width: 15px; height: 15px; }
.ch.xs { width: 20px; height: 20px; border-radius: 6px; }
.ch.xs svg { width: 12px; height: 12px; }
.ch.instagram { background: linear-gradient(135deg, #c49a6c 0%, #c97d8d 45%, #8a78a8 100%); }
.ch.facebook { background: #5f7fae; }
.ch.tiktok { background: #2b2a26; }
.ch.youtube { background: #b9605f; }
[data-theme="dark"] .ch.tiktok { background: #4a463e; }
.ch-stack { display: inline-flex; }
.ch-stack .ch { border: 2px solid var(--surface); margin-inline-start: -8px; }
.ch-stack .ch:first-child { margin-inline-start: 0; }

.avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; font-weight: 700; font-size: 15px; background: var(--taupe-soft); color: var(--taupe-ink); }
.avatar.sm { width: 32px; height: 32px; font-size: 13px; }
.avatar.lg { width: 56px; height: 56px; font-size: 20px; }

/* ------------------------------------------------------------ גיליון (sheet) */

.scrim {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(35, 30, 22, 0.42);
  opacity: 0; transition: opacity var(--t-med) ease;
}
.scrim.open { opacity: 1; }
.sheet {
  position: fixed; z-index: 91; inset-inline: 0; inset-block-end: 0;
  max-height: calc(100dvh - 40px - var(--safe-t)); display: flex; flex-direction: column;
  background: var(--surface); border-radius: var(--r-xl) var(--r-xl) 0 0;
  box-shadow: var(--shadow-3);
  transform: translateY(100%);
  transition: transform 300ms var(--ease-drawer);
  touch-action: pan-y;
}
.sheet.open { transform: translateY(0); }
.sheet.dragging { transition: none; }
.sheet-grip { display: grid; place-items: center; padding: 10px 0 2px; cursor: grab; }
.sheet-grip span { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); }
.sheet-head { display: flex; align-items: center; gap: 10px; padding: 6px 16px 10px 10px; }
.sheet-head h2 { flex: 1; font-size: var(--fs-xl); }
.sheet-body { overflow-y: auto; overscroll-behavior: contain; padding: 4px 18px 18px; flex: 1; }
.sheet-foot { padding: 12px 18px calc(12px + var(--safe-b)); border-block-start: 1px solid var(--line); display: flex; gap: 10px; background: var(--surface); }
.sheet-foot .btn { flex: 1; }
@media (min-width: 760px) {
  .sheet {
    inset-inline: auto; inset-block: 50% auto; inset-inline-start: 50%;
    width: min(620px, calc(100vw - 48px)); max-height: min(86dvh, 860px);
    border-radius: var(--r-xl);
    transform: translate(50%, -50%) scale(0.96); opacity: 0;
    transition: transform var(--t-med) var(--ease-out), opacity var(--t-fast) ease;
  }
  [dir="ltr"] .sheet { transform: translate(-50%, -50%) scale(0.96); }
  .sheet.open { transform: translate(50%, -50%) scale(1); opacity: 1; }
  [dir="ltr"] .sheet.open { transform: translate(-50%, -50%) scale(1); }
  .sheet.wide { width: min(1040px, calc(100vw - 48px)); }
  .sheet-grip { display: none; }
  .sheet-head { padding: 18px 18px 10px 14px; }
  .sheet-foot { border-radius: 0 0 var(--r-xl) var(--r-xl); padding-block-end: 14px; }
}

/* ------------------------------------------------------------ טוסט */

.toasts { position: fixed; z-index: 120; inset-inline: 0; inset-block-end: calc(var(--nav-h) + var(--safe-b) + 16px); display: grid; justify-items: center; gap: 8px; pointer-events: none; padding: 0 16px; }
@media (min-width: 960px) { .toasts { inset-block-end: 28px; } }
.toast {
  display: flex; align-items: center; gap: 12px; pointer-events: auto;
  min-height: 50px; padding: 8px 10px 8px 18px; max-width: 520px;
  background: var(--ink); color: var(--bg); border-radius: var(--r-md); box-shadow: var(--shadow-3);
  font-weight: 500;
  transition: transform 320ms var(--ease-out), opacity 220ms ease;
}
.toast svg { width: 20px; height: 20px; flex: none; }
.toast .btn { --btn-bg: transparent; --btn-fg: var(--pink); min-height: 36px; padding: 0 10px; }
.toast.enter { transform: translateY(16px) scale(0.97); opacity: 0; }
.toast.leave { transform: translateY(8px); opacity: 0; transition-duration: 160ms; }

/* ------------------------------------------------------------ פופאובר / תפריט */

.menu {
  position: fixed; z-index: 100; min-width: 220px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-3);
  transform-origin: var(--origin, top right);
  transition: transform var(--t-fast) var(--ease-out), opacity 140ms ease;
}
.menu.enter { opacity: 0; transform: scale(0.96); }
.menu button, .menu a {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 11px 12px; border: 0; border-radius: 10px; background: none; text-align: start; text-decoration: none; color: var(--ink);
}
.menu button svg, .menu a svg { width: 20px; height: 20px; color: var(--ink-2); }
.menu button:active { background: var(--surface-2); }
@media (hover: hover) and (pointer: fine) { .menu button:hover, .menu a:hover { background: var(--surface-2); } }

/* ------------------------------------------------------------ מצבים ריקים / עזרה */

.empty { text-align: center; padding: 36px 20px; display: grid; justify-items: center; gap: 10px; }
.empty .e-ico { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 34px; background: var(--surface-2); margin-block-end: 6px; }
.empty h3 { font-size: var(--fs-lg); }
.empty p { color: var(--ink-2); max-width: 380px; }

.howto {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--ink);
}
.howto .h-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--surface); flex: none; color: var(--blue-ink); }
.howto .h-ico svg { width: 18px; height: 18px; }
.howto strong { display: block; margin-block-end: 2px; }
.howto p { font-size: var(--fs-sm); color: var(--ink-2); }
.howto.pink { background: var(--pink-soft); }
.howto.pink .h-ico { color: var(--pink-ink); }
.howto.sage { background: var(--sage-soft); }
.howto.sage .h-ico { color: var(--sage-ink); }
.howto.warn { background: var(--danger-soft); }
.howto.warn .h-ico { color: var(--danger); }

.steps-ol { margin: 8px 0 0; padding-inline-start: 22px; display: grid; gap: 6px; font-size: var(--fs-sm); color: var(--ink-2); }

/* ------------------------------------------------------------ מסך "היום" */

.hello { padding: 6px 2px 4px; }
.hello h2 { font-size: var(--fs-2xl); }
@media (min-width: 960px) { .hello h2 { font-size: var(--fs-3xl); } }

.stat { display: grid; gap: 2px; }
.stat .num { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: var(--fs-sm); color: var(--ink-2); }
.stats-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stats-row .card { padding: 14px; }
@media (max-width: 380px) { .stat .num { font-size: 26px; } }

.checklist { display: grid; gap: 4px; }
.check-item { display: flex; align-items: center; gap: 12px; padding: 10px 6px; border-radius: var(--r-md); background: none; border: 0; text-align: start; width: 100%; }
.check-item .ci { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; }
.check-item .ci svg { width: 15px; height: 15px; }
.check-item.done .ci { background: var(--sage-ink); border-color: var(--sage-ink); color: #fff; }
.check-item.done .ct { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.check-item .go { margin-inline-start: auto; color: var(--ink-3); }
.check-item .go svg { width: 18px; height: 18px; }
.progress { height: 8px; border-radius: 4px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 4px; background: var(--sage-ink); transition: transform 600ms var(--ease-out); transform-origin: right; }
[dir="ltr"] .progress > span { transform-origin: left; }

.post-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-block-end: 1px solid var(--line); width: 100%; background: none; border-inline: 0; border-block-start: 0; text-align: start; }
.post-row:last-child { border-block-end: 0; }
.thumb { width: 56px; height: 56px; border-radius: 12px; flex: none; overflow: hidden; background: var(--surface-2); display: grid; place-items: center; font-size: 22px; position: relative; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.tall { width: 48px; height: 64px; }
.time-pill { font-variant-numeric: tabular-nums; font-weight: 700; font-size: var(--fs-sm); padding: 4px 10px; border-radius: var(--r-pill); background: var(--blue-soft); color: var(--blue-ink); flex: none; }

/* ------------------------------------------------------------ לוח */

.cal-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-end: 14px; }
.cal-toolbar .range { font-family: var(--font-display); font-weight: 600; font-size: var(--fs-lg); flex: 1; min-width: 140px; }

.week { display: grid; gap: 10px; }
.day-col { min-width: 0; background: var(--surface); border: 1px solid var(--line-strong); box-shadow: var(--shadow-1); border-radius: var(--r-lg); padding: 12px; min-height: 92px; transition: border-color var(--t-fast) ease, background-color var(--t-fast) ease; }
.day-col.today { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft), var(--shadow-2); }
.day-col.today .day-head .dname { color: var(--blue-ink); }
.day-col.drop { background: var(--blue-soft); border-style: dashed; border-color: var(--blue); }
.day-head { display: flex; align-items: center; gap: 8px; margin-block-end: 8px; }
.day-head .dname { font-weight: 600; }
.day-head .dnum { font-size: var(--fs-sm); color: var(--ink-3); }
.day-head .add { margin-inline-start: auto; }
.hol { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-pill); background: var(--taupe-soft); color: var(--taupe-ink); }
@media (min-width: 960px) {
  .week { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
  .day-col { min-height: 420px; padding: 8px; }
  .day-head { flex-wrap: wrap; gap: 2px 6px; }
  .day-head .add { width: 28px !important; height: 28px !important; }
}

.pcard {
  display: grid; gap: 6px; min-width: 0; overflow: hidden;
  width: 100%; padding: 8px; margin-block-end: 8px;
  border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg);
  text-align: start; cursor: grab; touch-action: manipulation;
  transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-fast) ease, opacity var(--t-fast) ease;
}
.pcard:active { transform: scale(0.98); }
.pcard.dragging { opacity: 0.4; }
/* כרטיס פוסט צר: שורה עליונה (תמונה, שעה, רשתות) וטקסט ברוחב מלא מתחת. כלום לא יוצא מהמסגרת גם בעמודה צרה */
.pcard .p-top { display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.pcard .thumb { width: 30px; height: 30px; border-radius: 8px; font-size: 14px; flex: none; }
.pcard .p-time { font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--blue-ink); }
.pcard .p-icons { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; color: var(--ink-3); }
.pcard .p-icons svg { width: 14px; height: 14px; }
.pcard .p-icons .ch-stack .ch { border-color: var(--bg); }
.pcard .p-text { font-size: 13px; color: var(--ink-2); overflow: hidden; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; line-height: 1.4; }
.pcard.published { opacity: 0.62; }
.pcard.notify { border-color: color-mix(in srgb, var(--pink) 60%, transparent); }
.pcard.draft { border-style: dashed; }
@media (hover: hover) and (pointer: fine) { .pcard:hover { box-shadow: var(--shadow-2); border-color: var(--line-strong); } }

.month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.month .mh { font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; padding: 4px 0; }
.mcell { min-height: 64px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); text-align: start; display: grid; align-content: start; gap: 3px; transition: transform var(--t-press) var(--ease-out); }
.mcell:active { transform: scale(0.97); }
.mcell.other { opacity: 0.4; }
.mcell.today { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.mcell .mn { font-size: 13px; font-weight: 600; }
.mcell .mdots { display: flex; flex-wrap: wrap; gap: 3px; }
.mcell .mdots span { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); }
.mcell .mdots span.n { background: var(--pink); }
.mcell .mhol { font-size: 10.5px; line-height: 1.2; color: var(--taupe-ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (min-width: 960px) { .mcell { min-height: 108px; padding: 8px; } }

/* ------------------------------------------------------------ כתיבת פוסט */

.composer { display: grid; gap: 18px; }
@media (min-width: 960px) { .composer { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); align-items: start; } }
.media-strip { display: flex; gap: 8px; overflow-x: auto; padding-block-end: 4px; }
.media-tile { position: relative; width: 84px; height: 104px; border-radius: 14px; overflow: hidden; flex: none; background: var(--surface-2); }
.media-tile img, .media-tile video { width: 100%; height: 100%; object-fit: cover; }
.media-tile .x { position: absolute; inset-block-start: 4px; inset-inline-start: 4px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; display: grid; place-items: center; }
.media-tile .x svg { width: 14px; height: 14px; }
.media-add { width: 84px; height: 104px; border-radius: 14px; border: 2px dashed var(--line-strong); background: none; color: var(--ink-2); display: grid; place-items: center; align-content: center; gap: 4px; font-size: 12px; font-weight: 600; flex: none; }
.media-add svg { width: 26px; height: 26px; }

.publish-mode { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r-md); }
.publish-mode.auto { background: var(--sage-soft); }
.publish-mode.notify { background: var(--pink-soft); }
.publish-mode .pm-ico { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); }
.publish-mode .pm-ico svg { width: 17px; height: 17px; }

/* תצוגה מקדימה של אינסטגרם */
.phone { border-radius: 30px; border: 8px solid var(--ink); background: #fff; color: #111; overflow: hidden; max-width: 340px; margin-inline: auto; box-shadow: var(--shadow-2); }
[data-theme="dark"] .phone { border-color: #3a3631; }
.ig-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13px; font-weight: 600; }
.ig-head .avatar { width: 30px; height: 30px; font-size: 11px; background: #f1dee2; color: #8e4d5c; }
.ig-media { aspect-ratio: 4 / 5; background: #eee6d8; display: grid; place-items: center; font-size: 44px; overflow: hidden; }
.ig-media img { width: 100%; height: 100%; object-fit: cover; }
.ig-actions { display: flex; gap: 14px; padding: 10px 12px 4px; }
.ig-actions svg { width: 23px; height: 23px; }
.ig-cap { padding: 2px 12px 14px; font-size: 13px; line-height: 1.45; white-space: pre-wrap; word-break: break-word; unicode-bidi: plaintext; text-align: start; }
.ig-cap b { font-weight: 600; }
.ig-more { color: #8e8e8e; }

/* ------------------------------------------------------------ לופים */

.loop-card { display: grid; gap: 12px; }
.loop-card .lc-top { display: flex; gap: 12px; align-items: flex-start; }
.loop-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex: none; background: var(--pink-soft); }
.loop-card .lc-stats { display: flex; gap: 18px; font-size: var(--fs-sm); color: var(--ink-2); flex-wrap: wrap; }
.loop-card .lc-stats b { color: var(--ink); font-variant-numeric: tabular-nums; }
.loop-card.paused { opacity: 0.72; }

.recipes { display: grid; gap: 12px; }
@media (min-width: 640px) { .recipes { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .recipes { grid-template-columns: repeat(3, 1fr); } }
.recipe { display: grid; gap: 8px; text-align: start; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-fast) ease; position: relative; }
.recipe:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) { .recipe:hover { box-shadow: var(--shadow-2); } }
.recipe .r-top { display: flex; align-items: center; gap: 10px; }
.recipe .r-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 21px; background: var(--pink-soft); flex: none; }
.recipe h3 { font-size: var(--fs-md); }
.recipe p { font-size: var(--fs-sm); color: var(--ink-2); }
.recipe .r-pop { position: absolute; inset-block-start: 14px; inset-inline-end: 14px; }

/* אשף */
.wizard { display: grid; gap: 22px; }
@media (min-width: 960px) { .wizard { grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr); align-items: start; } .wizard .w-preview { position: sticky; inset-block-start: 90px; } }
.w-steps { display: flex; gap: 6px; margin-block-end: 6px; }
.w-steps span { height: 5px; flex: 1; border-radius: 3px; background: var(--surface-3); transition: background-color var(--t-med) ease; }
.w-steps span.on { background: var(--pink); }
.w-q { display: grid; gap: 14px; }
.w-q h2 { font-size: var(--fs-xl); }
.w-num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--pink-soft); color: var(--pink-ink); font-weight: 700; font-size: 14px; flex: none; }

.btn-edit { display: grid; gap: 8px; }
.btn-edit .be-row { display: flex; gap: 8px; align-items: center; }

/* תצוגת צ'אט */
.chat { border-radius: 26px; border: 7px solid var(--ink); background: #fff; color: #111; overflow: hidden; max-width: 340px; margin-inline: auto; box-shadow: var(--shadow-2); }
[data-theme="dark"] .chat { border-color: #3a3631; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px; border-block-end: 1px solid #eee; font-size: 14px; font-weight: 600; }
.chat-head .avatar { width: 30px; height: 30px; font-size: 11px; background: #f1dee2; color: #8e4d5c; }
.chat-body { padding: 14px 12px; display: grid; gap: 8px; min-height: 330px; align-content: start; background: #fff; }
.bub { max-width: 82%; padding: 9px 13px; border-radius: 20px; font-size: 14px; line-height: 1.4; white-space: pre-wrap; word-break: break-word; unicode-bidi: plaintext; }
.bub.them { justify-self: start; background: #efefef; border-end-start-radius: 6px; }
.bub.me { justify-self: end; background: #8a78a8; color: #fff; border-end-end-radius: 6px; }
.bub.cmt { justify-self: start; background: #fff; border: 1px solid #e3e3e3; font-size: 13px; }
.bub.cmt small { display: block; color: #8e8e8e; font-size: 11px; margin-block-end: 2px; }
.bub-btns { justify-self: end; display: grid; gap: 4px; width: 70%; }
.bub-btns span { display: block; text-align: center; padding: 8px; border-radius: 14px; border: 1px solid #ddd; font-size: 13px; font-weight: 600; color: #3a5a8c; }
.chat-sys { justify-self: center; font-size: 11px; color: #8e8e8e; padding: 2px 8px; }
.chat-anim > * { animation: bubIn 260ms var(--ease-out) both; }
.chat-anim > *:nth-child(2) { animation-delay: 60ms; }
.chat-anim > *:nth-child(3) { animation-delay: 120ms; }
.chat-anim > *:nth-child(4) { animation-delay: 180ms; }
.chat-anim > *:nth-child(5) { animation-delay: 240ms; }
.chat-anim > *:nth-child(6) { animation-delay: 300ms; }
@keyframes bubIn { from { opacity: 0; transform: translateY(6px) scale(0.98); } }

/* ------------------------------------------------------------ תיבה */

.inbox { display: grid; gap: 14px; }
@media (min-width: 960px) { .inbox { grid-template-columns: 360px 1fr; align-items: start; } }
.conv { display: flex; gap: 12px; align-items: flex-start; width: 100%; padding: 12px; border-radius: var(--r-md); background: none; border: 0; text-align: start; transition: background-color var(--t-fast) ease; }
.conv[aria-current="true"] { background: var(--surface-2); }
.conv:active { background: var(--surface-2); }
.conv .cv-avatar { position: relative; }
.conv .cv-avatar .ch { position: absolute; inset-block-end: -3px; inset-inline-end: -3px; border: 2px solid var(--surface); }
.conv .cv-name { font-weight: 600; }
.conv .cv-text { font-size: var(--fs-sm); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conv.unread .cv-name::after { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--pink-ink); margin-inline-start: 6px; vertical-align: middle; }
.thread { display: grid; gap: 8px; padding: 14px; min-height: 280px; align-content: start; }
.msg { max-width: 78%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; unicode-bidi: plaintext; white-space: pre-wrap; }
.msg.them { justify-self: start; background: var(--surface-2); border-end-start-radius: 6px; }
.msg.me { justify-self: end; background: var(--blue-soft); border-end-end-radius: 6px; }
.msg.bot { justify-self: end; background: var(--pink-soft); border-end-end-radius: 6px; }
.msg .m-meta { display: block; font-size: 11.5px; color: var(--ink-3); margin-block-start: 4px; }
.reply-box { display: flex; gap: 8px; align-items: flex-end; padding: 10px; border-block-start: 1px solid var(--line); }
.reply-box .textarea { min-height: 48px; max-height: 160px; }

/* ------------------------------------------------------------ טבלה / אנשים */

.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th { text-align: start; font-weight: 600; color: var(--ink-3); font-size: 12.5px; padding: 8px 10px; border-block-end: 1px solid var(--line); }
.table td { padding: 12px 10px; border-block-end: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-block-end: 0; }
.table-wrap { overflow-x: auto; }

/* ------------------------------------------------------------ נתונים */

.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-block-start: 10px; }
.bars .bar { flex: 1; display: grid; justify-items: center; gap: 6px; height: 100%; align-content: end; }
.bars .bar span { display: block; width: 100%; max-width: 40px; border-radius: 8px 8px 4px 4px; background: var(--blue); transform-origin: bottom; animation: barUp 520ms var(--ease-out) both; }
.bars .bar.hi span { background: var(--pink); }
.bars .bar small { font-size: 12px; color: var(--ink-3); }
@keyframes barUp { from { transform: scaleY(0.05); } }
.bars .bar:nth-child(2) span { animation-delay: 30ms; } .bars .bar:nth-child(3) span { animation-delay: 60ms; }
.bars .bar:nth-child(4) span { animation-delay: 90ms; } .bars .bar:nth-child(5) span { animation-delay: 120ms; }
.bars .bar:nth-child(6) span { animation-delay: 150ms; } .bars .bar:nth-child(7) span { animation-delay: 180ms; }
.insight { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-block-end: 1px solid var(--line); }
.insight:last-child { border-block-end: 0; }
.insight .i-ico { width: 34px; height: 34px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--sage-soft); font-size: 17px; }
.meter { display: grid; gap: 6px; }
.meter .progress > span { background: var(--pink-ink); }

/* ------------------------------------------------------------ מסלולים */

.plans { display: grid; gap: 14px; }
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1180px) { .plans { grid-template-columns: repeat(4, 1fr); } }
.plan { display: grid; gap: 14px; align-content: start; position: relative; }
.plan.pop { border: 2px solid var(--pink); box-shadow: var(--shadow-2); }
.plan .price { font-family: var(--font-display); font-size: 40px; font-weight: 700; line-height: 1; }
.plan .price small { font-size: var(--fs-md); font-weight: 500; color: var(--ink-2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: var(--fs-sm); }
.plan li { display: flex; gap: 8px; align-items: flex-start; }
.plan li svg { width: 18px; height: 18px; flex: none; color: var(--sage-ink); margin-block-start: 2px; }
.plan li.no { color: var(--ink-3); }
.plan li.no svg { color: var(--ink-3); }
.plan .pop-tag { position: absolute; inset-block-start: -12px; inset-inline-start: 18px; }

/* ------------------------------------------------------------ אונבורדינג */

.onb { min-height: 100dvh; display: grid; place-items: center; padding: 24px 18px calc(24px + var(--safe-b)); background:
  radial-gradient(1200px 500px at 110% -10%, color-mix(in srgb, var(--pink) 30%, transparent), transparent 60%),
  radial-gradient(900px 500px at -20% 110%, color-mix(in srgb, var(--blue) 26%, transparent), transparent 60%),
  var(--bg); }
.onb-card { width: min(520px, 100%); display: grid; gap: 20px; }
.onb-card .card { padding: 24px; border-radius: var(--r-xl); }
.onb-top { display: flex; align-items: center; gap: 10px; }
.onb-top .logo-word { font-family: var(--font-display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.onb-dots { display: flex; gap: 6px; margin-inline-start: auto; }
.onb-dots span { width: 8px; height: 8px; border-radius: 4px; background: var(--line-strong); transition: width var(--t-med) var(--ease-out), background-color var(--t-med) ease; }
.onb-dots span.on { width: 24px; background: var(--ink); }
.onb h1 { font-size: 30px; }
.otp { display: flex; gap: 8px; justify-content: center; direction: ltr; }
.otp input { width: 52px; height: 60px; text-align: center; font-size: 26px; font-weight: 700; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); }
.otp input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.google-btn { --btn-bg: var(--surface); border-color: var(--line-strong); }
.or { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: var(--fs-sm); }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* כניסה מדורגת (stagger) */
.stagger > * { animation: rise 320ms var(--ease-out) both; }
.stagger > *:nth-child(2) { animation-delay: 40ms; } .stagger > *:nth-child(3) { animation-delay: 80ms; }
.stagger > *:nth-child(4) { animation-delay: 120ms; } .stagger > *:nth-child(5) { animation-delay: 160ms; }
.stagger > *:nth-child(6) { animation-delay: 200ms; } .stagger > *:nth-child(7) { animation-delay: 240ms; }
.stagger > *:nth-child(n+8) { animation-delay: 270ms; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.celebrate { font-size: 56px; animation: pop 520ms var(--ease-out) both; display: inline-block; }
@keyframes pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }

/* ------------------------------------------------------------ עוד (תפריט בטלפון) */
.more-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.more-tile { display: grid; gap: 10px; padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: start; text-decoration: none; color: var(--ink); transition: transform var(--t-press) var(--ease-out); }
.more-tile:active { transform: scale(0.97); }
.more-tile .mt-ico { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; }
.more-tile .mt-ico svg { width: 22px; height: 22px; }
.more-tile b { font-size: var(--fs-md); }
.more-tile span { font-size: var(--fs-sm); color: var(--ink-2); }

/* ------------------------------------------------------------ demo banner */
.demo-bar { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; background: var(--taupe-soft); color: var(--taupe-ink); text-align: center; }
.demo-bar button { border: 0; background: none; color: var(--blue-ink); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; padding: 0; font-size: inherit; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  .scrim, .toast, .menu { transition: opacity 150ms ease !important; }
}

/* ------------------------------------------------------------ מאגר תשובות פומביות (אשף הלופים) */
.reply-count { font-size: var(--fs-sm); color: var(--ink-2); }
.reply-count b { color: var(--acc-ink); font-size: var(--fs-md); }
.reply-bank { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.reply-opt {
  display: flex; align-items: center; gap: 10px; text-align: start;
  min-height: 52px; padding: 10px 12px; border-radius: var(--r-md);
  border: 1.5px solid var(--line); background: var(--surface); font-size: var(--fs-sm);
  transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease, transform var(--t-press) var(--ease-out);
}
.reply-opt:active { transform: scale(0.98); }
.reply-opt .o-check { width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--line-strong); display: grid; place-items: center; flex: none; transition: background-color var(--t-fast) ease, border-color var(--t-fast) ease; }
.reply-opt .o-check svg { width: 13px; height: 13px; opacity: 0; transition: opacity var(--t-fast) ease; }
.reply-opt[aria-pressed="true"] { border-color: var(--acc); background: var(--acc-soft); }
.reply-opt[aria-pressed="true"] .o-check { background: var(--acc-ink); border-color: var(--acc-ink); color: var(--surface); }
.reply-opt[aria-pressed="true"] .o-check svg { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .reply-opt:hover { border-color: var(--acc); } }

/* ------------------------------------------------------------ בחירת צבעים (הגדרות) */
.color-pick { padding: 14px; border-radius: var(--r-md); background: var(--surface-2); }
.cp-row { display: grid; gap: 8px; }
.cp-name { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: var(--fs-sm); }
.cp-dot { width: 14px; height: 14px; border-radius: 50%; flex: none; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 36px; height: 36px; border-radius: 50%; padding: 0; flex: none;
  border: 2px solid var(--surface); background: var(--sw); box-shadow: 0 0 0 1px var(--line-strong);
  transition: transform var(--t-press) var(--ease-out), box-shadow var(--t-fast) ease;
}
.swatch:active { transform: scale(0.92); }
.swatch[aria-checked="true"] { box-shadow: 0 0 0 2.5px var(--ink); }
.swatch.bgsw { width: auto; height: 38px; padding: 0 14px; border-radius: var(--r-pill); background: linear-gradient(90deg, var(--sw) 50%, var(--sw2) 50%); font-size: var(--fs-xs); font-weight: 600; color: #2B2A26; }
.swatch.bgsw span { background: color-mix(in srgb, #fff 70%, transparent); padding: 2px 8px; border-radius: var(--r-pill); }
@media (hover: hover) and (pointer: fine) { .swatch:hover { transform: scale(1.08); } }

/* ------------------------------------------------------------ תיוג שותפים (Collab) */
.mention { position: relative; }
.mention-box {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  min-height: 50px; padding: 6px 10px; border-radius: var(--r-md);
  border: 1.5px solid var(--line-strong); background: var(--surface); cursor: text;
  transition: border-color var(--t-fast) ease, box-shadow var(--t-fast) ease;
}
.mention-box:focus-within { border-color: var(--acc-ink); box-shadow: 0 0 0 3px var(--acc-soft); }
.mention-chips { display: contents; }
.mention-input { flex: 1; min-width: 140px; border: 0; outline: 0; background: transparent; min-height: 36px; font-size: var(--fs-md); text-align: start; }
.m-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: var(--r-pill); background: var(--acc-soft); color: var(--acc-ink); font-weight: 600; font-size: var(--fs-sm); animation: chipIn 180ms var(--ease-out) both; }
.m-chip .m-av { width: 24px; height: 24px; font-size: 11px; }
.m-chip button { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 50%; background: transparent; color: inherit; padding: 0; }
.m-chip button svg { width: 14px; height: 14px; }
@media (hover: hover) and (pointer: fine) { .m-chip button:hover { background: color-mix(in srgb, var(--acc) 35%, transparent); } }
@keyframes chipIn { from { opacity: 0; transform: scale(0.9); } }
.m-av { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; flex: none; object-fit: cover; background: linear-gradient(135deg, #c49a6c, #c97d8d 50%, #8a78a8); color: #fff; font-weight: 700; font-size: 15px; }
.mention-pop {
  position: absolute; inset-inline: 0; inset-block-start: calc(100% + 6px); z-index: 60;
  display: grid; padding: 6px; max-height: 340px; overflow-y: auto;
  border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-3);
  transform-origin: top center; animation: popIn 160ms var(--ease-out) both;
}
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } }
.m-opt { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: var(--r-md); background: transparent; text-align: start; }
.m-opt[aria-selected="true"] { background: var(--acc-soft); }
@media (hover: hover) and (pointer: fine) { .m-opt:hover { background: var(--surface-2); } .m-opt[aria-selected="true"]:hover { background: var(--acc-soft); } }
.m-name { display: block; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-sub { display: block; font-size: var(--fs-xs); color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-ver { display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #4a90d9; color: #fff; font-size: 10px; vertical-align: 1px; }
.m-src { font-size: 11px; font-weight: 600; color: var(--ink-3); padding: 2px 8px; border-radius: var(--r-pill); background: var(--surface-2); flex: none; }
.m-hint { padding: 8px 10px; font-size: var(--fs-xs); color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .mention-pop, .m-chip { animation: none; } }

/* ------------------------------------------------------------ חלונית שדרוג */
.upsell { display: grid; gap: 18px; text-align: center; }
.up-hero { display: grid; justify-items: center; gap: 8px; }
.up-ico { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; background: linear-gradient(135deg, var(--pink-soft), var(--blue-soft)); color: var(--pink-ink); box-shadow: inset 0 0 0 1px var(--line); }
.up-ico svg { width: 30px; height: 30px; }
.up-hero h2 { font-size: var(--fs-xl); }
.up-hero p { max-width: 42ch; }
.up-compare { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.up-col { display: grid; gap: 2px; padding: 14px 10px; border-radius: var(--r-lg); background: var(--surface-2); }
.up-col.on { background: var(--pink-soft); box-shadow: 0 0 0 2px var(--pink); }
.up-plan { font-size: var(--fs-sm); font-weight: 600; color: var(--ink-2); }
.up-col.on .up-plan { color: var(--pink-ink); }
.up-num { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.15; }
.up-unit { font-size: var(--fs-xs); color: var(--ink-3); }
.up-arrow { color: var(--ink-3); }
.up-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; text-align: start; }
.up-perks li { display: flex; align-items: center; gap: 10px; }
.up-perks svg { width: 18px; height: 18px; color: var(--sage-ink); flex: none; }
.up-note { font-size: var(--fs-xs); color: var(--ink-3); }
.btn.primary.up-cta { --btn-bg: var(--pink); box-shadow: 0 8px 22px -8px color-mix(in srgb, var(--pink) 90%, transparent); }

/* ------------------------------------------------------------ סוגי התראות (הגדרות) */
.notif-list { display: grid; gap: 2px; border-radius: var(--r-md); overflow: hidden; background: var(--line); }
.notif-row { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--surface); cursor: pointer; }
.notif-row .hint { display: block; }
.n-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--c-soft); font-size: 18px; flex: none; }

/* ------------------------------------------------------------ נתונים */
.src { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); font-weight: 600; color: var(--ink-3); padding: 4px 10px; border-radius: var(--r-pill); background: var(--surface-2); }
.src.live { color: var(--sage-ink); background: var(--sage-soft); }
.metric-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .metric-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.metric { display: grid; align-content: start; gap: 4px; padding: 14px; border-radius: var(--r-lg); background: var(--c-soft); min-width: 0; }
.m-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.m-ic { font-size: 16px; }
.m-name { font-weight: 600; font-size: var(--fs-sm); color: var(--c-ink); }
.m-num { font-family: var(--font-display); font-size: 30px; font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.m-what { font-size: 12.5px; line-height: 1.45; color: var(--ink-2); }
.delta { margin-inline-start: auto; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: var(--r-pill); background: var(--surface); }
.delta.up { color: var(--sage-ink); } .delta.down { color: var(--danger); } .delta.flat { color: var(--ink-3); }
.best-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.best-day { display: grid; justify-items: center; gap: 2px; padding: 10px 2px; border-radius: var(--r-md); background: var(--blue-soft); color: var(--ink); text-decoration: none; transition: transform var(--t-press) var(--ease-out), background-color var(--t-fast) ease; }
.best-day:active { transform: scale(0.96); }
.best-day.today { background: var(--blue); color: var(--on-accent); box-shadow: 0 6px 16px -8px var(--blue); }
.bd-name { font-size: var(--fs-xs); font-weight: 600; }
.bd-time { font-family: var(--font-display); font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
@media (hover: hover) and (pointer: fine) { .best-day:hover { background: color-mix(in srgb, var(--blue) 35%, var(--blue-soft)); } .best-day.today:hover { background: var(--blue); } }
.glossary summary { display: grid; gap: 2px; cursor: pointer; list-style: none; }
.glossary summary::-webkit-details-marker { display: none; }
.glossary dl { display: grid; gap: 0; margin: 14px 0 0; grid-template-columns: 1fr; }
@media (min-width: 720px) { .glossary dl { grid-template-columns: 1fr 1fr; column-gap: 24px; } }
.glossary dl div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-block-end: 1px solid var(--line); }
.glossary dt { font-weight: 600; color: var(--ink-2); }
.glossary dd { margin: 0; text-align: end; }
.boot { min-height: 100dvh; display: grid; place-items: center; } .boot .loop-logo { height: 64px; animation: bootPulse 1.4s ease-in-out infinite; } @keyframes bootPulse { 50% { opacity: .55; } }
/* קובץ שעולה לשרת: עיגול התקדמות מעל התמונה */
.media-tile .up-ring { position: absolute; inset: 0; display: grid; place-items: center; background: color-mix(in srgb, var(--ink) 35%, transparent); }
.media-tile .up-ring::before { content: ''; width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--surface) calc(var(--p) * 1turn), color-mix(in srgb, var(--surface) 30%, transparent) 0); -webkit-mask: radial-gradient(circle, transparent 11px, #000 12px); mask: radial-gradient(circle, transparent 11px, #000 12px); }
