/* אפליקציית המעסיקים של ש.ל.מ. אותו עיצוב כמו אפליקציית הלקוחות (portal.css), עם תוספות בסוף.
   רקע כחול כמו בלוגו, משטחי זכוכית כהים, זהב כהדגשה, טקסט שמנת, Heebo. */
:root {
  --navy-deep: #0C2540;
  --navy: #133353;
  --bg: #133353;
  --bg-fx:
    radial-gradient(55% 45% at 85% 4%, #436786 0%, rgb(67 103 134 / 0) 100%),
    radial-gradient(70% 40% at 15% 2%, #2E4E6B 0%, rgb(46 78 107 / 0) 100%),
    radial-gradient(60% 50% at 0% 100%, #0B1522 0%, rgb(11 21 34 / 0) 100%),
    linear-gradient(105deg, #0C2540 0%, #133353 50%, #254767 100%);
  --surface: rgb(28 61 92 / .72);
  --surface-2: rgb(37 71 103 / .8);
  --text: #F7F3EA;
  --muted: #A9BACD;
  --line: rgb(67 103 134 / .55);
  --gold: #D4AF5A;
  --gold-soft: rgb(212 175 90 / .16);
  --on-gold: #0C2540;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgb(5 12 22 / .3), 0 10px 26px rgb(5 12 22 / .35);
  --nav-bg: #0A1D33;
  --nav-text: #8FA3BF;
  --c-red: #F06A6E; --c-orange: #F7894A; --c-yellow: #E9B634; --c-green: #3CC47C; --c-blue: #6E95F7; --c-purple: #B07FE0; --c-gray: #9AA3B2;
  --font: 'Heebo', system-ui, sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; font-family: var(--font); font-size: 16px; line-height: 1.5;
  color: var(--text); background: var(--bg-fx), var(--bg); background-attachment: fixed;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body::before { content: 'בס"ד'; display: block; padding: 8px 18px 0; text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); line-height: 1; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--gold); }
h1, h2, h3 { font-family: var(--font); font-weight: 800; line-height: 1.2; margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.i { width: 22px; height: 22px; flex: none; }
.muted { color: var(--muted); }
.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; display: inline-block; }

/* סכומים: ₪ קטן בזהב לפני המספר, כמו במערכת הסוכנות */
.amt { direction: ltr; unicode-bidi: isolate; display: inline-flex; align-items: baseline; gap: .08em; font-variant-numeric: tabular-nums; }
.amt i { font-style: normal; font-weight: 700; font-size: .7em; color: var(--gold); margin-inline-end: .06em; }

/* ---------- מבנה ---------- */
/* ---------- מסך פתיחה ---------- */
.splash { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 24px 20px calc(24px + env(safe-area-inset-bottom)); text-align: center; overflow: hidden;
  background: radial-gradient(120% 70% at 50% 18%, #24507F 0%, #10304F 45%, #071526 100%); transition: opacity .45s ease, transform .45s ease; }
.splash.is-out { opacity: 0; transform: scale(1.03); pointer-events: none; }
.splash__glow { position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(2px 2px at 12% 22%, rgb(255 236 180 / .9), transparent 60%), radial-gradient(1.5px 1.5px at 78% 14%, rgb(255 236 180 / .8), transparent 60%),
    radial-gradient(2px 2px at 88% 62%, rgb(255 236 180 / .7), transparent 60%), radial-gradient(1.5px 1.5px at 22% 78%, rgb(255 236 180 / .8), transparent 60%),
    radial-gradient(1.5px 1.5px at 52% 88%, rgb(255 236 180 / .6), transparent 60%), radial-gradient(40% 30% at 50% 30%, rgb(212 175 90 / .16), transparent 70%);
  animation: twinkleSplash 3.2s ease-in-out infinite; }
@keyframes twinkleSplash { 50% { opacity: .55; } }
.splash__logo { position: relative; width: 150px; height: 150px; margin-bottom: 18px; display: grid; place-items: center; animation: rise .8s cubic-bezier(.2,.8,.2,1) both; }
.splash__logo img { position: relative; width: 132px; height: 132px; border-radius: 50%; object-fit: cover; object-position: 50% 42%; box-shadow: 0 14px 40px rgb(0 0 0 / .5); }
.splash__ring { position: absolute; inset: 0; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 0deg, transparent 0 18%, #F3DE9A 32%, #D4AF5A 45%, transparent 62% 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  animation: spin 1.8s linear infinite; filter: drop-shadow(0 0 8px rgb(212 175 90 / .6)); }
[data-tier="silver"] .splash__ring { background: conic-gradient(from 0deg, transparent 0 18%, #FFFFFF 32%, #B9C2CC 45%, transparent 62% 100%); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.splash__title { font-size: 34px; font-weight: 800; letter-spacing: .3px; background: linear-gradient(135deg, #F3DE9A, #D4AF5A 45%, #B8923F 70%, #F0D58C); -webkit-background-clip: text; background-clip: text; color: transparent; animation: rise .8s .1s cubic-bezier(.2,.8,.2,1) both; }
.splash__brand { margin: 0; color: var(--muted); font-size: 14px; font-weight: 600; letter-spacing: 1.5px; animation: rise .8s .18s cubic-bezier(.2,.8,.2,1) both; }
.splash__hello { margin: 18px 0 0; font-size: 20px; font-weight: 700; color: var(--text); animation: rise .8s .26s cubic-bezier(.2,.8,.2,1) both; }
.splash__teaser { margin-top: 18px; width: 100%; max-width: 340px; min-height: 76px; padding: 12px 16px; border-radius: 18px; background: rgb(255 255 255 / .05); border: 1px solid rgb(212 175 90 / .22); animation: rise .8s .34s cubic-bezier(.2,.8,.2,1) both; }
.splash__teaser small { display: block; color: var(--gold); font-weight: 700; font-size: 12.5px; letter-spacing: .4px; margin-bottom: 4px; }
.splash__teaser p { margin: 0; font-size: 15.5px; font-weight: 600; color: var(--text); transition: opacity .28s ease, transform .28s ease; }
.splash__teaser p.is-out { opacity: 0; transform: translateY(4px); }
.splash__teaser.is-club { border: 1.5px solid transparent; background: linear-gradient(120deg, #0B1D34, #163A60) padding-box, var(--foil, linear-gradient(135deg, #F3DE9A, #D4AF5A, #A9833A)) border-box; box-shadow: 0 10px 30px rgb(0 0 0 / .35); }
.splash__bar { position: absolute; bottom: calc(34px + env(safe-area-inset-bottom)); width: 120px; height: 3px; border-radius: 99px; background: rgb(255 255 255 / .1); overflow: hidden; }
.splash__bar i { display: block; width: 40%; height: 100%; border-radius: 99px; background: linear-gradient(90deg, transparent, #D4AF5A, transparent); animation: slide 1.2s ease-in-out infinite; }
@keyframes slide { from { transform: translateX(160%); } to { transform: translateX(-260%); } }
@keyframes pulse { 50% { opacity: .55; } }
.app { max-width: 640px; margin: 0 auto; padding: 4px 16px calc(112px + env(safe-area-inset-bottom)); }
.top { display: flex; align-items: center; gap: 12px; padding: 8px 0 4px; }
.top__logo { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.top__brand { flex: 1; min-width: 0; }
.top__brand b { display: block; font-size: 15px; font-weight: 800; letter-spacing: .2px; }
.top__brand small { display: block; font-size: 13px; color: var(--muted); }
.icon-btn { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; flex: none; position: relative; }
.icon-btn .dot { position: absolute; top: 9px; inset-inline-end: 9px; width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 2px var(--navy-deep); }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-weight: 600; cursor: pointer; }
.page-title { margin: 12px 0 4px; font-size: 30px; }
.page-sub { margin: 0 0 18px; color: var(--muted); }

.demo-bar { margin: 8px 0 0; padding: 8px 14px; border-radius: 99px; font-size: 13px; font-weight: 600; text-align: center; color: var(--gold); background: var(--gold-soft); border: 1px dashed rgb(212 175 90 / .5); }

/* ברכה + חותמת */
.greet { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 18px 0 16px; }
.greet h1 { font-size: 30px; }
.greet p { margin: 4px 0 0; color: var(--muted); }
.trust-seal { width: 64px; height: 64px; flex: none; object-fit: contain; filter: drop-shadow(0 4px 10px rgb(0 0 0 / .35)); }

/* ---------- כרטיס זהב: החיסכון של המשפחה ---------- */
.hero { position: relative; overflow: hidden; padding: 22px 20px 18px; border-radius: 24px; background: linear-gradient(140deg, #E2C277 0%, #D4AF5A 45%, #B8923F 100%); color: var(--on-gold); box-shadow: 0 16px 40px rgb(5 12 22 / .45); }
.hero::after { content: ''; position: absolute; inset-inline-start: -60px; top: -70px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgb(255 255 255 / .35), transparent 70%); pointer-events: none; }
.hero__label { font-size: 15px; font-weight: 700; opacity: .85; }
.hero__num { display: block; margin: 4px 0 2px; font-size: 44px; font-weight: 800; line-height: 1.1; letter-spacing: -.5px; }
.hero__num .amt i { color: var(--on-gold); opacity: .7; }
.hero__note { font-size: 13px; font-weight: 600; opacity: .75; }
.hero__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.hero__mini { padding: 10px 12px; border-radius: 14px; background: rgb(12 37 64 / .1); }
.hero__mini small { display: block; font-size: 13px; font-weight: 600; opacity: .8; }
.hero__mini b { font-size: 21px; font-weight: 800; }
.hero__mini .amt i { color: var(--on-gold); opacity: .7; }

/* ---------- כרטיסים וקטעים ---------- */
.section { margin-top: 26px; }
.section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.section__head h2 { font-size: 21px; }
.section__head a, .link-btn { color: var(--gold); font-weight: 700; font-size: 15px; text-decoration: none; background: none; border: 0; cursor: pointer; padding: 8px 0; }
.card { padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.card + .card { margin-top: 10px; }
.stack { display: grid; gap: 10px; }

/* מחכה לך */
.todo { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); color: inherit; text-decoration: none; cursor: pointer; text-align: start; width: 100%; min-height: 64px; }
.todo__ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; flex: none; background: var(--gold-soft); color: var(--gold); border: 1.5px solid rgb(212 175 90 / .55); }
.todo__ic--red { background: rgb(240 106 110 / .14); color: var(--c-red); border-color: rgb(240 106 110 / .5); }
.todo__ic--blue { background: rgb(110 149 247 / .14); color: var(--c-blue); border-color: rgb(110 149 247 / .5); }
.todo__main { flex: 1; min-width: 0; }
.todo__main b { display: block; font-weight: 700; }
.todo__main small { display: block; color: var(--muted); font-size: 14px; }
.todo .chev { color: var(--muted); transform: scaleX(-1); }
.all-good { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--radius-lg); border: 1px solid rgb(60 196 124 / .35); background: rgb(60 196 124 / .08); }
.all-good .i { color: var(--c-green); }

/* בני המשפחה */
.people { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.people::-webkit-scrollbar { display: none; }
.person { flex: none; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 6px 14px 6px 8px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; font-weight: 600; white-space: nowrap; }
.person.on { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--gold); font-weight: 800; font-size: 14px; flex: none; }
.person.on .avatar { background: rgb(12 37 64 / .15); color: var(--on-gold); }
.person small { font-weight: 500; opacity: .8; font-size: 13px; }

/* איפה הכסף: פסים */
.bars { display: grid; gap: 14px; }
.bar__top { display: flex; justify-content: space-between; gap: 10px; font-weight: 600; margin-bottom: 6px; }
.bar__top span:last-child { font-weight: 800; }
.bar__track { height: 10px; border-radius: 99px; background: rgb(247 243 234 / .1); overflow: hidden; }
.bar__track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #B8923F, #E2C277); }

/* מפת ההגנה */
.shield { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.shield__item { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 12px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 15px; text-align: start; color: var(--text); }
.shield__item .ok { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgb(60 196 124 / .16); color: var(--c-green); flex: none; }
.shield__item .ok .i { width: 16px; height: 16px; }
.shield__item--gap { background: transparent; border-style: dashed; color: var(--muted); cursor: pointer; }
.shield__item--gap .ok { background: var(--gold-soft); color: var(--gold); }
@media (max-width: 959px) { .shield > :last-child:nth-child(odd) { grid-column: 1 / -1; } }
.shield__item small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }

/* ---------- מועדון Family Office ---------- */
:root { --foil: linear-gradient(135deg, #F3DE9A 0%, #D4AF5A 32%, #A9833A 55%, #E9CD80 78%, #C49B48 100%); }
/* הכתר: גווני המתכת לפי דרגה */
:root { --cr-1: #FFF4C4; --cr-2: #EBC96E; --cr-3: #B98A2F; --cr-4: #6E4C12; }
[data-tier="silver"] { --cr-1: #FFFFFF; --cr-2: #DCE1E7; --cr-3: #98A3AF; --cr-4: #4E5864; }
.crown { display: block; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 2px 3px rgb(0 0 0 / .45)); }
.crown__spark { transform-origin: 40px 10px; animation: spark 3.2s ease-in-out infinite; }
@keyframes spark { 0%, 70%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 80% { opacity: 1; transform: scale(1.15) rotate(45deg); } 90% { opacity: .6; transform: scale(.8) rotate(90deg); } }
/* עיגול כהה עם טבעת מתכת, כדי שהכתר יבלוט */
.club-badge, .club-teaser__crown, .club-hero__crown { background: radial-gradient(circle at 50% 30%, #24507F 0%, #0B1D34 70%) padding-box, var(--foil) border-box !important; border: 2px solid transparent; color: inherit !important; }

/* דרגות: כל רכיבי המועדון לוקחים את הגוון מ---foil */
[data-tier="silver"] { --foil: linear-gradient(135deg, #F7F9FB 0%, #CDD3DA 32%, #8F99A5 55%, #E8ECF0 78%, #AFB8C2 100%); }
.member-card__tier { font-weight: 800; }
.club-badge { position: relative; display: grid; place-items: center; width: 50px; height: 50px; padding: 0; border-radius: 50%; flex: none; background: var(--foil); color: #0C2540; box-shadow: 0 0 0 2px rgb(12 37 64 / .6), 0 0 0 3.5px rgb(212 175 90 / .55), 0 6px 18px rgb(212 175 90 / .35); }
.club-badge .crown { width: 32px; height: 32px; margin-top: -2px; }
.club-badge .dot { position: absolute; top: 2px; inset-inline-end: 2px; width: 12px; height: 12px; border-radius: 50%; background: #F06A6E; box-shadow: 0 0 0 2px var(--navy-deep); }
.club-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; padding: 5px 14px 5px 10px; border-radius: 99px; border: 1.5px solid transparent; background: linear-gradient(120deg, #0B1D34, #1A3A60) padding-box, var(--foil) border-box; color: var(--cr-1); font-size: 13px; font-weight: 800; text-decoration: none; letter-spacing: .3px; box-shadow: 0 4px 14px rgb(0 0 0 / .3); }
.club-chip .crown { width: 22px; height: 22px; }
.club-teaser { display: flex; align-items: center; gap: 14px; margin-top: 26px; padding: 16px; border-radius: var(--radius-lg); color: var(--text); text-decoration: none;
  background: linear-gradient(120deg, #0A1A2E 0%, #142F4F 60%, #0A1A2E 100%); border: 1.5px solid transparent; background-clip: padding-box; position: relative; box-shadow: var(--shadow); }
.club-teaser::before { content: ''; position: absolute; inset: -1.5px; border-radius: inherit; padding: 1.5px; background: var(--foil); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.club-teaser__crown { display: grid; place-items: center; width: 56px; height: 56px; padding: 9px; border-radius: 50%; flex: none; box-shadow: 0 6px 18px rgb(0 0 0 / .35); }
.club-teaser__main { flex: 1; min-width: 0; }
.club-teaser__main small { display: block; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .4px; }
.club-teaser__main b { display: block; font-size: 17px; }
.club-teaser__main em { display: inline-block; margin-top: 4px; padding: 1px 10px; border-radius: 99px; background: rgb(240 106 110 / .16); color: #FF9A9D; font-style: normal; font-size: 12px; font-weight: 800; }
.club-teaser .chev { color: var(--gold); transform: scaleX(-1); }
.club-hero { position: relative; overflow: hidden; margin-top: 4px; padding: 30px 20px 26px; border-radius: 26px; text-align: center; background: radial-gradient(90% 70% at 50% 0%, #1F4470 0%, #0A1A2E 75%); box-shadow: var(--shadow); }
.club-hero::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--foil); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none; }
.club-hero__crown { display: inline-grid; place-items: center; width: 104px; height: 104px; padding: 16px; border-radius: 50%; box-shadow: 0 0 0 6px rgb(212 175 90 / .08), 0 14px 40px rgb(0 0 0 / .45), 0 0 50px rgb(212 175 90 / .25); }
.club-hero__crown .crown { width: 100%; height: 100%; }
.club-hero small { display: block; margin-top: 14px; color: var(--gold); font-weight: 700; letter-spacing: .5px; }
.club-hero h1 { margin-top: 2px; font-size: 38px; font-weight: 800; letter-spacing: 1px; background: var(--foil); -webkit-background-clip: text; background-clip: text; color: transparent; direction: ltr; }
.club-hero p { margin: 6px 0 0; color: var(--muted); }
.member-card { position: relative; overflow: hidden; margin: 16px auto 0; max-width: 380px; aspect-ratio: 1.586; padding: 18px 20px; border-radius: 18px; background: var(--foil); color: #0C2540; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 18px 40px rgb(5 12 22 / .55); }
.member-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgb(255 255 255 / .45) 45%, transparent 60%); transform: translateX(-120%); animation: shine 4.5s ease-in-out 1s infinite; pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
.member-card__top { display: flex; align-items: center; justify-content: space-between; }
.member-card__top img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgb(12 37 64 / .25); }
.member-card__top span { direction: ltr; font-weight: 800; letter-spacing: 3px; font-size: 14px; }
.member-card__name { font-size: 24px; font-weight: 800; }
.member-card__foot { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; opacity: .8; }
.club-item { overflow: hidden; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid rgb(212 175 90 / .3); box-shadow: var(--shadow); }
.club-item__img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.club-item__body { padding: 16px; display: grid; gap: 8px; }
.club-item__kind { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: 13px; }
.club-item__kind .i { width: 18px; height: 18px; }
.club-item h3 { font-size: 19px; }
.club-item p { margin: 0; color: var(--text); opacity: .9; }
.club-item__meta { display: flex; flex-wrap: wrap; gap: 6px 16px; color: var(--muted); font-size: 14px; font-weight: 600; }
.club-item__meta span { display: inline-flex; align-items: center; gap: 6px; }
.club-item__meta .i { width: 16px; height: 16px; color: var(--gold); }
.club-item__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.club-sent { display: inline-flex; align-items: center; gap: 6px; color: var(--c-green); font-weight: 700; font-size: 14px; }

/* משפט מהסוכנות */
.pitch { position: relative; margin-top: 26px; padding: 18px 18px 16px; border-radius: var(--radius-lg); border: 1px solid rgb(212 175 90 / .45);
  background: linear-gradient(135deg, rgb(212 175 90 / .18), transparent 70%), var(--surface); box-shadow: var(--shadow); transition: opacity .22s ease; }
.pitch.is-out { opacity: 0; }
.pitch__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.pitch__top small { display: inline-flex; align-items: center; gap: 6px; color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .3px; }
.pitch__top small .i { width: 16px; height: 16px; }
.pitch__more { border: 0; background: none; padding: 8px 0; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.pitch p { margin: 0; font-size: 20px; font-weight: 700; line-height: 1.4; }
.pitch__cta { margin-top: 14px; background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.pitch__cta .i { width: 18px; height: 18px; }
.i.flip { transform: scaleX(-1); }
.pitch--special { border-width: 1.5px; background: radial-gradient(120% 120% at 100% 0%, rgb(212 175 90 / .28), transparent 60%), var(--surface); }
/* מד השקט */
.meter { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.meter svg { width: 48px; height: 48px; flex: none; transform: rotate(-90deg); }
.meter circle { fill: none; stroke-width: 5; }
.meter__bg { stroke: rgb(247 243 234 / .12); }
.meter__fg { stroke: var(--gold); stroke-linecap: round; }
.meter b { display: block; font-size: 15px; }
.meter small { display: block; color: var(--muted); font-size: 13px; }

/* הסוכן שלך */
.agent { display: flex; align-items: center; gap: 14px; }
.agent img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; flex: none; box-shadow: 0 0 0 1.5px var(--gold); }
.agent__main { flex: 1; min-width: 0; }
.agent__main b { display: block; font-size: 17px; }
.agent__main small { color: var(--muted); }
.agent__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }

/* ---------- כפתורים ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 700; cursor: pointer; text-decoration: none; font-size: 16px; }
.btn--gold { background: var(--gold); color: var(--on-gold); border-color: var(--gold); }
.btn--wa { background: #1FA855; border-color: #1FA855; color: #fff; }
.btn--ghost { background: transparent; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: default; }

/* ---------- מסננים ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 40px; padding: 0 16px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer; white-space: nowrap; font-size: 15px; }
.chip.on { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }

/* ---------- מוצר (פוליסה / חיסכון) ---------- */
.prod { padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.prod__head { display: flex; align-items: flex-start; gap: 12px; }
.prod__ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; flex: none; background: var(--gold-soft); color: var(--gold); }
.prod__title { flex: 1; min-width: 0; }
.prod__title b { display: block; font-size: 17px; font-weight: 800; }
.prod__title small { display: block; color: var(--muted); font-size: 14px; }
.prod__big { text-align: end; }
.prod__big b { display: block; font-size: 22px; font-weight: 800; }
.prod__big small { display: block; color: var(--muted); font-size: 12px; }
.prod__facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 14px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.prod__facts div small { display: block; color: var(--muted); font-size: 13px; }
.prod__facts div b { font-weight: 700; font-size: 15px; }
.prod__note { margin: 12px 0 0; padding: 10px 12px; border-radius: 12px; background: var(--gold-soft); font-size: 14px; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 99px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.tag::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag--green { color: var(--c-green); background: rgb(60 196 124 / .12); }
.tag--yellow { color: var(--c-yellow); background: rgb(233 182 52 / .13); }
.tag--orange { color: var(--c-orange); background: rgb(247 137 74 / .13); }
.tag--red { color: var(--c-red); background: rgb(240 106 110 / .13); }
.tag--blue { color: var(--c-blue); background: rgb(110 149 247 / .13); }
.tag--purple { color: var(--c-purple); background: rgb(176 127 224 / .13); }
.tag--gray { color: var(--c-gray); background: rgb(154 163 178 / .13); }
.who { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); font-weight: 600; }
.sum-strip { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.sum-strip .card { padding: 14px; }
.sum-strip small { display: block; color: var(--muted); font-size: 13px; font-weight: 600; }
.sum-strip b { font-size: 24px; font-weight: 800; }
.group-title { margin: 20px 0 10px; font-size: 15px; font-weight: 700; color: var(--muted); }

/* ---------- תביעות: שלבים ---------- */
.steps { display: flex; gap: 4px; margin: 14px 0 6px; }
.steps i { flex: 1; height: 6px; border-radius: 99px; background: rgb(247 243 234 / .12); }
.steps i.on { background: var(--gold); }
.steps i.bad { background: var(--c-gray); }
.steps-labels { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }

/* ---------- מסמכים ---------- */
.doc { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.doc + .doc { margin-top: 8px; }
.doc__ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--gold); flex: none; }
.doc__main { flex: 1; min-width: 0; }
.doc__main b { display: block; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.doc__main small { display: block; color: var(--muted); font-size: 13px; }
.sign-card { border: 1.5px solid var(--gold); background: linear-gradient(135deg, rgb(212 175 90 / .16), transparent 70%), var(--surface); }
.upload { display: grid; gap: 12px; }
.kinds { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.kind { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 8px 12px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font-weight: 600; font-size: 15px; cursor: pointer; text-align: start; }
.kind .i { color: var(--gold); width: 20px; height: 20px; }
.kind.on { border-color: var(--gold); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.drop { display: grid; place-items: center; gap: 6px; padding: 22px 16px; border-radius: var(--radius-lg); border: 1.5px dashed rgb(212 175 90 / .55); text-align: center; cursor: pointer; color: var(--muted); }
.drop b { color: var(--text); }
.drop .i { width: 30px; height: 30px; color: var(--gold); }

/* ---------- טפסים ---------- */
.f { display: grid; gap: 6px; }
.f label, .f > span { font-weight: 700; font-size: 15px; }
.f input, .f select, .f textarea { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: rgb(10 29 51 / .55); font-size: 16px; }
.f textarea { min-height: 110px; resize: vertical; }
.f input::placeholder, .f textarea::placeholder { color: var(--muted); }
.f small { color: var(--muted); font-size: 13px; }
.form { display: grid; gap: 16px; }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--gold); margin-top: 2px; flex: none; }
.note-err { color: var(--c-red); font-weight: 600; min-height: 1.5em; margin: 0; }
.up-list { display: grid; gap: 8px; }
.up-item { display: flex; align-items: center; gap: 12px; padding: 8px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.up-item img, .up-ic { width: 48px; height: 48px; border-radius: 8px; object-fit: cover; flex: none; }
.up-ic { display: grid; place-items: center; background: var(--gold-soft); color: var(--gold); }
.up-ic svg { width: 24px; height: 24px; }
.up-name { flex: 1; min-width: 0; display: grid; }
.up-name b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.up-x { width: 40px; height: 40px; border: 0; border-radius: 50%; background: transparent; font-size: 24px; line-height: 1; color: var(--muted); cursor: pointer; flex: none; }
.up-x:hover { background: var(--gold-soft); }

/* ---------- כניסה ---------- */
.login { min-height: calc(100vh - 21px); display: grid; place-items: center; padding: 16px; background: radial-gradient(120% 80% at 50% 0%, #24456F 0%, var(--navy-deep) 70%); }
.login__box { width: 100%; max-width: 420px; text-align: center; }
.login__logo { width: 132px; height: 132px; margin: 0 auto 14px; border-radius: 26px; object-fit: cover; object-position: 50% 42%; box-shadow: 0 10px 30px rgb(5 12 22 / .45); }
.login h1 { font-size: 28px; margin-bottom: 6px; }
.login .lead { color: var(--muted); margin: 0 0 20px; }
.login .card { text-align: start; border-top: 3px solid var(--gold); }
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 18px; border-radius: 99px; background: rgb(10 29 51 / .6); }
.tabs button { min-height: 44px; border: 0; border-radius: 99px; background: none; color: var(--muted); font-weight: 700; cursor: pointer; }
.tabs button.on { background: var(--gold); color: var(--on-gold); }
.login__foot { margin-top: 16px; font-size: 14px; color: var(--muted); }
.login__foot button { background: none; border: 0; color: var(--gold); font-weight: 700; cursor: pointer; padding: 8px; }

/* ---------- ניווט תחתון ---------- */
.nav { position: fixed; inset-inline: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); background: var(--nav-bg); border-top: 1px solid var(--line); }
.nav a { display: grid; justify-items: center; gap: 2px; min-height: 56px; padding: 6px 2px; color: var(--nav-text); text-decoration: none; font-size: 12px; font-weight: 600; position: relative; }
.nav a.on { color: var(--gold); }
.nav a.on::before { content: ''; position: absolute; top: 0; width: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold); }
.nav .badge { position: absolute; top: 4px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--gold); color: var(--on-gold); font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; }
.fab { position: fixed; z-index: 41; inset-inline-end: max(16px, calc(50% - 304px)); bottom: calc(84px + env(safe-area-inset-bottom)); display: inline-flex; align-items: center; gap: 8px; min-height: 56px; padding: 0 22px 0 18px; border-radius: 99px; border: 0; background: var(--gold); color: var(--on-gold); font-weight: 800; font-size: 16px; box-shadow: 0 10px 28px rgb(5 12 22 / .5); cursor: pointer; }

/* ---------- חלון מלמטה ---------- */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgb(5 12 22 / .6); animation: fade .18s ease; }
.sheet { width: 100%; max-width: 640px; max-height: 92vh; overflow-y: auto; padding: 10px 18px calc(22px + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: linear-gradient(180deg, #17395C, #0F2A47); border-top: 2px solid var(--gold); box-shadow: 0 -10px 40px rgb(0 0 0 / .4); animation: up .22s ease; }
.sheet__grip { width: 44px; height: 5px; border-radius: 99px; background: rgb(247 243 234 / .25); margin: 0 auto 12px; }
.sheet__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.sheet__head h2 { font-size: 22px; }
.sheet__x { width: 48px; height: 48px; border: 0; background: none; color: var(--muted); font-size: 30px; line-height: 1; cursor: pointer; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }

/* חתימה */
.pad { position: relative; border-radius: var(--radius-lg); background: #FBF8F1; touch-action: none; }
.pad canvas { display: block; width: 100%; height: 190px; border-radius: var(--radius-lg); cursor: crosshair; }
.pad__line { position: absolute; inset-inline: 22px; bottom: 44px; border-top: 1.5px dashed #B9AE96; pointer-events: none; }
.pad__hint { position: absolute; inset-inline: 0; bottom: 14px; text-align: center; color: #8A7F68; font-size: 13px; pointer-events: none; }
.pad__clear { position: absolute; top: 8px; inset-inline-start: 8px; min-height: 36px; padding: 0 12px; border-radius: 99px; border: 1px solid #D9CFB8; background: #fff; color: #0C2540; font-weight: 700; font-size: 13px; cursor: pointer; }

/* תפריט */
.menu-list { display: grid; gap: 8px; }
.menu-item { display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 14px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); font-weight: 600; text-decoration: none; cursor: pointer; width: 100%; text-align: start; }
.menu-item .i { color: var(--gold); }
.facts { display: grid; gap: 0; }
.facts div { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.facts div:last-child { border-bottom: 0; }
.facts span { color: var(--muted); }
.facts b { font-weight: 700; text-align: end; }

.empty { padding: 26px 18px; text-align: center; border-radius: var(--radius-lg); border: 1px dashed var(--line); color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 4px; }
.empty .btn { margin-top: 14px; }

.toast { position: fixed; z-index: 80; inset-inline: 0; bottom: calc(150px + env(safe-area-inset-bottom)); margin: 0 auto; width: max-content; max-width: calc(100vw - 32px); padding: 12px 18px; border-radius: 99px; background: #F7F3EA; color: #0C2540; font-weight: 700; box-shadow: 0 10px 30px rgb(0 0 0 / .35); opacity: 0; transform: translateY(12px); transition: .22s; pointer-events: none; text-align: center; }
.toast.show { opacity: 1; transform: none; }

/* ---------- מחשב: תפריט צד ---------- */
@media (min-width: 960px) {
  body::before { padding-right: 262px; }
  .nav { inset-inline-start: 0; inset-inline-end: auto; top: 0; bottom: 0; width: 240px; grid-template-columns: 1fr; align-content: start; gap: 4px; padding: 100px 14px 20px; border-top: 0; border-inline-end: 1px solid var(--line); }
  .nav::before { content: ''; position: absolute; top: 24px; inset-inline-start: 18px; width: 56px; height: 56px; border-radius: 50%; background: url(logo.jpeg) center/cover; }
  .nav a { grid-auto-flow: column; justify-content: start; gap: 12px; min-height: 52px; padding: 0 14px; font-size: 16px; border-radius: 14px; align-items: center; }
  .nav a.on { background: var(--gold-soft); }
  .nav a.on::before { display: none; }
  .nav .badge { position: static; }
  .app { margin-inline-start: max(256px, calc(50% - 320px + 120px)); padding-bottom: 60px; }
  .fab { bottom: 28px; inset-inline-end: 32px; }
  .shield { grid-template-columns: repeat(3, 1fr); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
/* שדות תאריך: אותו רוחב, גובה ויישור כמו שאר השדות (באייפון הם יוצאים רחבים וממורכזים) */
input[type="date"], input[type="datetime-local"], input[type="time"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; text-align: right; line-height: 1.2; }
.f input[type="date"] { height: 52px; min-height: 52px; }
input[type="date"]::-webkit-date-and-time-value { text-align: right; margin: 0; min-height: 1.3em; }
input[type="date"]::-webkit-calendar-picker-indicator { margin: 0; opacity: .7; filter: invert(1); }

/* ---------- סרטונים מהסוכנות (בסגנון אינסטגרם) ---------- */
.reels { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 10px; margin: 0 -16px; padding-inline: 16px; scrollbar-width: none; }
.reels::-webkit-scrollbar { display: none; }
.reel { position: relative; flex: none; width: 38vw; max-width: 170px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; scroll-snap-align: start; cursor: pointer; padding: 0; border: 0; background: #000;
  box-shadow: 0 0 0 2px var(--navy-deep), 0 0 0 4px var(--gold), 0 10px 24px rgb(0 0 0 / .35); margin: 4px; }
.reel video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; pointer-events: none; }
.reel__shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgb(0 0 0 / .75)); }
.reel__play { position: absolute; top: 10px; inset-inline-start: 10px; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: rgb(0 0 0 / .45); color: #fff; backdrop-filter: blur(4px); }
.reel__play svg { width: 14px; height: 14px; }
.reel__title { position: absolute; inset-inline: 10px; bottom: 10px; color: #fff; font-weight: 700; font-size: 14px; line-height: 1.3; text-align: start; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }

.rp { position: fixed; inset: 0; z-index: 200; background: #000; color: #fff; display: grid; }
.rp__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
@media (max-aspect-ratio: 3/4) { .rp__vid { object-fit: cover; } }
.rp__bars { position: absolute; top: calc(env(safe-area-inset-top) + 10px); inset-inline: 10px; display: flex; gap: 4px; z-index: 3; direction: rtl; }
.rp__bars span { flex: 1; height: 3px; border-radius: 3px; background: rgb(255 255 255 / .35); overflow: hidden; }
.rp__bars i { display: block; height: 100%; width: 0; background: #fff; }
.rp__head { position: absolute; top: calc(env(safe-area-inset-top) + 22px); inset-inline: 10px; display: flex; align-items: center; gap: 10px; z-index: 3; }
.rp__head img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px var(--gold); }
.rp__head b { flex: 1; font-size: 15px; text-shadow: 0 1px 3px rgb(0 0 0 / .6); }
.rp__btn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgb(0 0 0 / .35); color: #fff; cursor: pointer; }
.rp__btn svg { width: 22px; height: 22px; }
.rp__tap { position: absolute; top: 90px; bottom: 170px; width: 40%; z-index: 2; background: transparent; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.rp__tap--prev { right: 0; }
.rp__tap--next { left: 0; }
.rp__foot { position: absolute; inset-inline: 0; bottom: 0; z-index: 3; padding: 60px 16px calc(env(safe-area-inset-bottom) + 18px); background: linear-gradient(180deg, transparent, rgb(0 0 0 / .8)); display: grid; gap: 6px; }
.rp__foot b { font-size: 18px; }
.rp__foot p { margin: 0 0 8px; font-size: 15px; line-height: 1.5; color: rgb(255 255 255 / .9); max-height: 4.5em; overflow-y: auto; white-space: pre-line; }
.rp__foot p:empty { display: none; }

/* ---------- פרטיות ---------- */
.link-btn { background: none; border: 0; padding: 0; color: var(--gold); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.privacy-link { text-align: center; margin: 28px 0 80px; }
.privacy-link .link-btn { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-weight: 500; font-size: 14px; }
.privacy-link svg { width: 16px; height: 16px; }
.privacy { display: grid; gap: 4px; font-size: 16px; line-height: 1.65; }
.privacy h3 { font-size: 17px; margin: 14px 0 2px; color: var(--gold); }
.privacy p { margin: 0 0 6px; }
.privacy ul { margin: 0 0 6px; padding-inline-start: 20px; display: grid; gap: 6px; }
.privacy a { color: var(--gold); }
.privacy__lead { font-size: 16px; }
.privacy__date { color: var(--muted); font-size: 14px; margin-top: 10px !important; }
.consent .login__box { max-width: 560px; }
.consent__text { max-height: 46vh; overflow-y: auto; text-align: start; margin-bottom: 12px; }

/* ---------- חותמת הזהב של ש.ל.מ (מהמודעה) קופצת וחותמת את חותמת הסוכנות. ---------- */
.stamp { position: relative; display: inline-block; width: 64px; height: 64px; flex: none; padding: 0; border: 0; background: none; cursor: pointer; overflow: visible; -webkit-tap-highlight-color: transparent; }
.stamp .trust-seal { display: block; }
.stamp__horse { position: absolute; width: 80px; height: 80px; left: -8px; top: -68px; opacity: 0; pointer-events: none; transform-origin: 50% 85%; z-index: 2; filter: drop-shadow(0 8px 10px rgb(0 0 0 / .35)); }
.stamp__ring { position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--gold); opacity: 0; pointer-events: none; }
.stamp.is-play .stamp__seal { animation: sealIn 2.6s cubic-bezier(.2,.8,.2,1) both; }
.stamp.is-play .stamp__horse { animation: horseGallop 2.6s linear both; }
.stamp.is-play .stamp__ring { animation: sealRing 2.6s ease-out both; }
@keyframes horseGallop {
  /* מגיע מצד ימין (מהברכה) בקפיצות דהירה, פונה קדימה, הבסיס כלפי מטה */
  0%   { opacity: 0; transform: translate(170px, 32px) rotate(55deg) scaleX(-1); }
  6%   { opacity: 1; transform: translate(148px, 4px) rotate(35deg) scaleX(-1); }
  12%  { transform: translate(124px, 30px) rotate(55deg) scaleX(-1); }
  18%  { transform: translate(98px, 0px) rotate(33deg) scaleX(-1); }
  24%  { transform: translate(72px, 28px) rotate(55deg) scaleX(-1); }
  30%  { transform: translate(46px, -2px) rotate(32deg) scaleX(-1); }
  36%  { transform: translate(20px, 26px) rotate(55deg) scaleX(-1); }
  42%  { transform: translate(0, -4px) rotate(38deg) scaleX(-1); }
  /* עוצר מעל החותמת, מתרומם */
  50%  { transform: translate(0, -30px) rotate(45deg) scaleX(-1); }
  /* חותם! */
  56%  { transform: translate(0, 34px) rotate(45deg) scale(-1.02, .9); }
  62%  { transform: translate(0, 30px) rotate(45deg) scaleX(-1); }
  /* מתרומם ונעלם */
  78%  { opacity: 1; transform: translate(-6px, -30px) rotate(40deg) scaleX(-1); }
  100% { opacity: 0; transform: translate(-14px, -60px) rotate(36deg) scaleX(-1); }
}
@keyframes sealIn {
  0%, 55% { opacity: 0; transform: scale(.4) rotate(-12deg); }
  60%     { opacity: 1; transform: scale(1.22) rotate(4deg); }
  68%     { transform: scale(.94) rotate(-2deg); }
  76%, 100% { opacity: 1; transform: scale(1) rotate(0); }
}
@keyframes sealRing {
  0%, 57% { opacity: 0; transform: scale(.8); }
  60%     { opacity: .9; transform: scale(1); }
  85%, 100% { opacity: 0; transform: scale(1.9); }
}
/* מי שביקש פחות תנועה בטלפון: החותמת מופיעה מעל וחותמת, בלי דהירה לרוחב המסך */
@media (prefers-reduced-motion: reduce) {
  .stamp.is-play .stamp__horse { animation: horseStampSoft 2.6s ease-in-out both !important; }
  .stamp.is-play .stamp__seal { animation: sealIn 2.6s ease-out both !important; }
  .stamp.is-play .stamp__ring { animation: sealRing 2.6s ease-out both !important; }
}
@keyframes horseStampSoft {
  0%   { opacity: 0; transform: translate(0, -30px) rotate(45deg) scaleX(-1); }
  30%  { opacity: 1; transform: translate(0, -30px) rotate(45deg) scaleX(-1); }
  56%  { transform: translate(0, 34px) rotate(45deg) scale(-1.02, .9); }
  62%  { transform: translate(0, 30px) rotate(45deg) scaleX(-1); }
  80%  { opacity: 1; transform: translate(0, -20px) rotate(45deg) scaleX(-1); }
  100% { opacity: 0; transform: translate(0, -30px) rotate(45deg) scaleX(-1); }
}

/* ---------- אישור חתימה: הסוס חותם במסך מלא ---------- */
.signed-fx { position: fixed; inset: 0; z-index: 250; display: grid; place-items: center; padding: 16px; background: rgb(6 20 38 / .82); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); animation: fxIn .25s ease both; cursor: pointer; }
.signed-fx.is-out { animation: fxOut .35s ease both; }
.signed-fx__box { display: grid; justify-items: center; gap: 8px; text-align: center; color: #fff; max-width: 340px; }
.signed-fx__stage { width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 18px; }
.signed-fx__stage .stamp { transform: scale(2.2); }
.signed-fx b { font-size: 26px; font-weight: 800; color: var(--gold); opacity: 0; animation: fxText .5s ease 1.55s both; }
.signed-fx p { margin: 0; font-size: 16px; line-height: 1.5; color: rgb(255 255 255 / .9); opacity: 0; animation: fxText .5s ease 1.75s both; }
@keyframes fxIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fxOut { to { opacity: 0; } }
@keyframes fxText { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .signed-fx { animation: none !important; }
  .signed-fx b, .signed-fx p { animation: none !important; opacity: 1; }
}

/* דף פתיחה וטופס הצטרפות ללקוחות חדשים */
.welcome-opt { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; margin-top: 12px; padding: 14px 16px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-align: start; font: inherit; cursor: pointer; box-shadow: 0 8px 24px rgb(5 12 22 / .25); }
.welcome-opt > span:nth-child(2) { flex: 1; min-width: 0; }
.welcome-opt b { display: block; font-size: 18px; }
.welcome-opt small { display: block; margin-top: 2px; font-size: 15px; color: var(--muted); line-height: 1.35; }
.welcome-opt > svg { width: 20px; height: 20px; flex: none; opacity: .7; }
.welcome-opt__ic { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 14px; background: rgb(212 175 90 / .16); color: var(--gold); }
.welcome-opt__ic svg { width: 24px; height: 24px; }
.welcome-opt--gold { background: var(--gold); border-color: var(--gold); color: var(--on-gold); }
.welcome-opt--gold small { color: var(--on-gold); opacity: .8; }
.welcome-opt--gold .welcome-opt__ic { background: rgb(19 39 68 / .14); color: var(--on-gold); }
.login__logo--sm { width: 92px; height: 92px; border-radius: 20px; }
.join-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.join-chips .chip { white-space: normal; }
.form textarea { width: 100%; min-height: 88px; resize: vertical; }
.join-done__seal { width: 120px; height: 120px; margin: 0 auto 16px; animation: joinSeal .7s cubic-bezier(.2,.8,.2,1) both; }
.join-done__seal img { width: 100%; height: 100%; filter: drop-shadow(0 12px 24px rgb(0 0 0 / .4)); }
@keyframes joinSeal { from { opacity: 0; transform: scale(.6) rotate(-12deg); } to { opacity: 1; transform: none; } }

/* ---------- הרקע הכחול של הלוגו (מקבצי המעצב), כמו במערכת הניהול ---------- */
html { background: #133353; }
html::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; background: #133353 url('bg-wide.jpg') center / cover no-repeat; }
@media (max-aspect-ratio: 4/5) { html::before { background-image: url('bg-tall.jpg'); } }
body { background: transparent; }
.login { background: transparent; }
.splash { background: radial-gradient(120% 70% at 50% 18%, rgb(36 80 127 / .25) 0%, rgb(7 21 38 / .55) 100%), #133353 url('bg-tall.jpg') center / cover no-repeat; }

/* ---------- חותמת הזהב (stamp.png, עומדת): קופצת מהברכה, נעצרת מעל חותמת השעווה ולוחצת למטה ---------- */
.stamp.is-play .stamp__horse { animation: stampHop 2.6s linear both; }
@keyframes stampHop {
  0%   { opacity: 0; transform: translate(170px, 20px) rotate(14deg); }
  6%   { opacity: 1; transform: translate(146px, -8px) rotate(8deg); }
  12%  { transform: translate(122px, 18px) rotate(14deg); }
  18%  { transform: translate(96px, -10px) rotate(8deg); }
  24%  { transform: translate(70px, 16px) rotate(12deg); }
  30%  { transform: translate(46px, -10px) rotate(6deg); }
  36%  { transform: translate(22px, 14px) rotate(8deg); }
  42%  { transform: translate(0, -8px) rotate(3deg); }
  50%  { transform: translate(0, -26px) rotate(0); }
  56%  { transform: translate(0, 36px) scale(1.02, .9); }
  62%  { transform: translate(0, 32px) scale(1); }
  78%  { opacity: 1; transform: translate(0, -24px); }
  100% { opacity: 0; transform: translate(0, -54px); }
}
@media (prefers-reduced-motion: reduce) {
  .stamp.is-play .stamp__horse { animation: stampSoft 2.6s ease-in-out both !important; }
}
@keyframes stampSoft {
  0%   { opacity: 0; transform: translate(0, -26px); }
  30%  { opacity: 1; transform: translate(0, -26px); }
  56%  { transform: translate(0, 36px) scale(1.02, .9); }
  62%  { transform: translate(0, 32px); }
  80%  { opacity: 1; transform: translate(0, -20px); }
  100% { opacity: 0; transform: translate(0, -26px); }
}

/* ---------- דף המסמכים: הכספת המשפחתית ---------- */
.vault { position: relative; display: flex; align-items: center; gap: 12px; margin: 6px 0 22px; padding: 20px 18px; border-radius: 24px; overflow: hidden;
  background: radial-gradient(90% 120% at 15% 50%, rgb(212 175 90 / .22), transparent 60%), linear-gradient(135deg, rgb(19 51 83 / .85), rgb(10 29 51 / .9));
  border: 1px solid rgb(212 175 90 / .35); box-shadow: 0 14px 34px rgb(0 0 0 / .3); }
.vault__text { flex: 1; min-width: 0; display: grid; gap: 6px; }
.vault__kicker { color: var(--gold); font-weight: 800; font-size: 13px; letter-spacing: .3px; }
.vault h1 { margin: 0; font-size: 21px; line-height: 1.25; }
.vault p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }
.vault__count { display: inline-flex; align-items: center; gap: 6px; justify-self: start; margin-top: 4px; padding: 6px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: #F3DE9A; background: rgb(212 175 90 / .14); border: 1px solid rgb(212 175 90 / .3); }
.vault__count .i, .vault__count svg { width: 16px; height: 16px; }
.vault__img { width: 112px; height: auto; flex: none; filter: drop-shadow(0 12px 18px rgb(0 0 0 / .45)); animation: vaultIn .7s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vaultIn { from { opacity: 0; transform: translateY(10px) scale(.94); } to { opacity: 1; transform: none; } }
@media (min-width: 560px) { .vault__img { width: 140px; } .vault h1 { font-size: 28px; } }
@media (prefers-reduced-motion: reduce) { .vault__img { animation: none; } }

/* ---------- התראות ללקוח ---------- */
.push-card { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; border-color: rgb(212 175 90 / .4); }
.push-card__ic { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: rgb(212 175 90 / .16); color: var(--gold); }
.push-card__ic .i { width: 22px; height: 22px; }
.push-card__main { flex: 1; min-width: 0; display: grid; gap: 6px; }
.push-card__main b { font-size: 16px; }
.push-card__main small { color: var(--muted); font-size: 14px; line-height: 1.5; }
.push-card__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.push-steps { margin: 6px 0 8px; padding-inline-start: 22px; display: grid; gap: 6px; line-height: 1.5; }
.push-on { display: flex; gap: 10px; align-items: flex-start; margin: 0; line-height: 1.55; }
.push-on .i { flex: none; width: 22px; height: 22px; color: #3CC47C; margin-top: 2px; }

/* ---------- מיקום החתימה על שורת החתימה ---------- */
.sign-place { display: grid; gap: 10px; }
.sign-place__lead { margin: 0; line-height: 1.5; }
.sign-place__page { position: relative; max-width: 100%; margin: 0 auto; border-radius: 10px; overflow: hidden; box-shadow: 0 6px 20px rgb(0 0 0 / .35); cursor: crosshair; touch-action: manipulation; }
.sign-place__page > img:first-child { display: block; width: 100%; height: auto; background: #fff; }
.sign-place__sig { position: absolute; object-fit: contain; outline: 2px dashed #D4AF5A; outline-offset: 2px; background: rgb(212 175 90 / .12); pointer-events: none; }

/* ---------- שיחה עם הסוכנות על פנייה ---------- */
.doc--chat { cursor: pointer; }
.doc--chat .doc__ic { position: relative; }
.chat-dot { position: absolute; top: -6px; inset-inline-end: -6px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px; background: #E5484D; color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.chat-count { color: var(--muted); font-size: 12px; margin-inline-start: 6px; }
.chat { display: grid; gap: 10px; }
.chat__list { display: flex; flex-direction: column; gap: 8px; max-height: 52dvh; overflow-y: auto; padding: 2px; }
.chat__msg { max-width: 84%; padding: 9px 12px; border-radius: 16px; line-height: 1.45; }
.chat__msg p { margin: 0 0 3px; white-space: pre-wrap; word-break: break-word; }
.chat__msg small { font-size: 11.5px; opacity: .7; }
.chat__msg--me { align-self: flex-start; background: rgb(212 175 90 / .2); border: 1px solid rgb(212 175 90 / .45); border-end-start-radius: 4px; }
.chat__msg--them { align-self: flex-end; background: var(--surface); border: 1px solid var(--line); border-end-end-radius: 4px; }
.chat__hint { text-align: center; font-size: 14px; margin: 4px 0 0; }
.chat__send { display: flex; gap: 8px; align-items: flex-end; }
.chat__send textarea { flex: 1; min-height: 48px; resize: none; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; font: inherit; }

/* ---------- שורת אמון בתחתית העמוד ---------- */
.trust { display: grid; justify-items: center; gap: 6px; margin: 30px 8px 8px; padding: 18px 16px 6px; text-align: center; border-top: 1px solid rgb(212 175 90 / .25); }
.trust__seal { width: 46px; height: 46px; object-fit: contain; opacity: .9; }
.trust p { margin: 0; max-width: 420px; font-size: 16px; line-height: 1.6; color: #F3E7C6; font-weight: 500; }
.trust small { color: var(--gold); font-weight: 700; letter-spacing: .3px; }
.chat__file { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; border: 1px dashed rgb(212 175 90 / .5); font-size: 14px; }
.chat__file span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.chat__unfile { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 16px; }
.chat__attach { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--gold); cursor: pointer; }
.chat__attach .i { width: 20px; height: 20px; }
.chat__fileln { display: inline-flex; align-items: center; gap: 6px; margin: 2px 0 4px; padding: 6px 10px; border-radius: 10px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: 700; cursor: pointer; max-width: 100%; }
.chat__fileln .i { width: 16px; height: 16px; flex: none; }

/* ---------- ש.ל.מ לעסקים: תוספות ---------- */
.demo-note { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; background: var(--gold-soft, rgb(212 175 90 / .14)); color: var(--gold); font-size: 14px; font-weight: 600; }
.biz-nav { grid-template-columns: repeat(3, 1fr); }
.biz-top { display: flex; align-items: center; gap: 12px; margin: 4px 0 18px; }
.biz-top img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; }
.biz-top div { flex: 1; min-width: 0; }
.biz-top b { display: block; font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.biz-top small { display: block; color: var(--muted); font-size: 13px; }
.biz-month { display: grid; gap: 10px; padding: 20px; border: 1px solid rgb(212 175 90 / .35); }
.biz-month h2 { margin: 0; font-size: 22px; line-height: 1.3; }
.biz-month p { margin: 0; color: var(--muted); }
.biz-month__k { color: var(--gold); font-weight: 700; font-size: 14px; }
.biz-month.is-late { border-color: #E2876B; box-shadow: 0 0 0 3px rgb(226 135 107 / .15); }
.biz-month.is-late h2 { color: #F2B39F; }
.biz-month.is-done { border-color: rgb(110 196 150 / .55); }
.biz-month__ok { display: flex; align-items: center; gap: 12px; }
.biz-month__ok > .i { width: 40px; height: 40px; padding: 8px; border-radius: 50%; background: rgb(110 196 150 / .18); color: #8FD9B0; flex: none; }
.biz-month__ok b { display: block; font-size: 18px; }
.biz-month__ok span { color: var(--muted); font-size: 14px; }
.biz-quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.biz-q { display: grid; justify-items: center; gap: 6px; min-height: 84px; padding: 14px 8px; border: 1px solid var(--line); border-radius: 16px; background: rgb(255 255 255 / .04); color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.biz-q .i { width: 26px; height: 26px; color: var(--gold); }
.biz-q:active { transform: scale(.98); }
.biz-prods { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.biz-chip { padding: 3px 10px; border-radius: 99px; background: rgb(212 175 90 / .14); color: var(--gold); font-size: 13px; font-weight: 600; }
.biz-chip--warn { background: rgb(226 135 107 / .16); color: #F2B39F; }
.biz-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-kind { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 99px; cursor: pointer; font-weight: 600; }
.biz-kind input { position: absolute; opacity: 0; pointer-events: none; }
.biz-kind.on { border-color: var(--gold); background: rgb(212 175 90 / .16); color: var(--gold); }
@media (min-width: 900px) { .biz-quick { grid-template-columns: repeat(4, 1fr); } }
.biz-nav { grid-template-columns: repeat(4, 1fr); }
.biz-soon { display: flex; align-items: center; gap: 12px; margin-top: 10px; color: var(--text); text-decoration: none; border-color: rgb(212 175 90 / .45); }
.biz-soon > .i { width: 34px; height: 34px; padding: 7px; border-radius: 50%; background: rgb(212 175 90 / .16); color: var(--gold); flex: none; }
.biz-soon b { display: block; }
.biz-soon small { color: var(--muted); }
