:root {
  --bg: #0a0a0b;
  --surface: #151517;
  --surface-2: #202023;
  --line: #2f2f33;
  --text: #ffffff;
  --muted: #a6a6ab;
  --gold: #e3262b;
  --gold-2: #ff4a4f;
  --green: #25d366;
  --danger: #ff6b6b;
  --radius: 16px;
  --tabbar-h: 64px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Heebo", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 16px);
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.25; }
h1 { font-size: clamp(1.6rem, 6vw, 2.3rem); font-weight: 800; }
h2 { font-size: 1.35rem; font-weight: 800; }
h3 { font-size: 1.08rem; font-weight: 700; }
h4 { font-size: .95rem; margin-top: 1em; color: var(--gold-2); }
p { margin: 0 0 .8em; }
.muted { color: var(--muted); }
.gold { color: var(--gold-2); }
.lead { color: #d8d3ca; font-size: 1.05rem; }
.eyebrow { color: var(--gold); font-weight: 700; letter-spacing: .02em; margin-bottom: .3em; }

.container { max-width: 720px; margin: 0 auto; padding: 16px; }

/* top + tab bars */
.topbar {
  position: sticky; top: 0; z-index: 10;
  display: flex; justify-content: space-between; align-items: center;
  padding-block: 12px;
  background: rgba(10,10,11,.94); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.logo { display: flex; gap: 10px; align-items: center; font-weight: 800; font-size: 1.1rem; }
.topbar-link { color: var(--muted); font-size: .95rem; }
.tabbar {
  position: fixed; bottom: 0; inset-inline: 0; z-index: 10;
  display: grid; grid-template-columns: repeat(4, 1fr);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(20,20,22,.96); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: .72rem; color: var(--muted); }
.tabbar a span { font-size: 1.25rem; line-height: 1; filter: grayscale(1); opacity: .8; }
.tabbar a.on { color: var(--gold-2); }
.tabbar a.on span { filter: none; opacity: 1; }

/* cards */
.card, .hero {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; margin-bottom: 16px;
}
.hero { background: radial-gradient(120% 120% at 100% 0%, #2a0b0c 0%, var(--surface) 55%); padding: 24px 18px; }
.section-title { margin: 20px 4px 10px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface-2); color: var(--text); font: inherit; font-weight: 700; cursor: pointer;
  text-align: center; transition: transform .08s ease, background .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.primary { background: linear-gradient(180deg, var(--gold-2), var(--gold)); color: #ffffff; border-color: transparent; }
.btn.ghost { background: transparent; }
.btn.wa { background: var(--green); color: #052e14; border-color: transparent; }
.btn.big { min-height: 54px; font-size: 1.05rem; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: .9rem; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.actions.col { flex-direction: column; }
.actions.col .btn { width: 100%; }
.back { background: var(--surface-2); border: 1px solid var(--line); color: var(--text); width: 40px; height: 40px; border-radius: 12px; font-size: 1.2rem; cursor: pointer; }
.view-head { display: flex; align-items: center; gap: 12px; margin: 4px 0 14px; }
.view-head h2 { margin: 0; }

/* lists */
.list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.row-btn {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px;
  color: var(--text); font: inherit; cursor: pointer;
}
.row-btn:hover { border-color: var(--gold); }
.row-btn small, .appt small { display: block; color: var(--muted); font-size: .85rem; }
.row-btn > div:first-child:not(.avatar) { flex: 1; }
.grow { flex: 1; min-width: 0; }
.price { font-weight: 800; color: var(--gold-2); }
.chev { color: var(--muted); font-size: 1.4rem; }
.tag { background: var(--gold); color: #ffffff; font-size: .7rem; padding: 1px 6px; border-radius: 6px; font-weight: 800; }
.avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-weight: 800; color: #111;
  background: var(--c, var(--gold));
}
.avatar.lg { width: 64px; height: 64px; font-size: 1.5rem; }
.appt { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.appt:last-of-type { border-bottom: 0; }
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.sum-row:last-child { border-bottom: 0; }
.sum-row span { color: var(--muted); }
.sum-note { margin-top: 12px; background: #221c10; border: 1px solid #5a1517; border-radius: 12px; padding: 12px; }
.sum-note pre { white-space: pre-wrap; font: inherit; font-size: .9rem; margin: 6px 0 0; color: #e7dcc3; }
.ai-banner { background: #221c10; border: 1px solid #5a1517; color: #f0e2bf; padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: .95rem; }

/* dates + slots */
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; scrollbar-width: none; }
.day {
  flex: none; width: 58px; padding: 8px 0; border-radius: 12px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; line-height: 1.2;
}
.day b { font-size: 1.2rem; }
.day small { color: var(--muted); font-size: .72rem; }
.day.on { background: var(--gold); color: #ffffff; border-color: var(--gold); }
.day.on small { color: #3b2e10; }
.day.off { opacity: .4; }
.slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.slot { padding: 12px 0; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; font-weight: 700; cursor: pointer; }
.slot:hover { border-color: var(--gold); color: var(--gold-2); }
.empty { text-align: center; padding: 20px; background: var(--surface); border-radius: 14px; border: 1px dashed var(--line); }

/* done */
.done { text-align: center; }
.big-check { width: 72px; height: 72px; margin: 6px auto 12px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: var(--gold); color: #ffffff; font-weight: 800; }

/* gallery + team */
.gallery { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.gallery figure { flex: none; width: 112px; margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 6px; text-align: center; }
.gallery figcaption { font-size: .78rem; color: var(--muted); line-height: 1.3; margin-top: 4px; }
.team { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; margin-bottom: 16px; }
.member { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 8px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.member small { color: var(--muted); font-size: .78rem; }
.barber-head { display: flex; gap: 14px; align-items: center; margin-bottom: 10px; }
.barber-head h3 { margin: 0; }
.stars { color: var(--gold-2); letter-spacing: 1px; }
blockquote { margin: 10px 0; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; font-size: .92rem; }
blockquote cite { display: block; color: var(--muted); font-size: .8rem; font-style: normal; margin-top: 4px; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .95rem; cursor: pointer; }
.chip.on { background: var(--gold); color: #ffffff; border-color: var(--gold); font-weight: 700; }
.chips.static .chip { cursor: default; font-size: .82rem; padding: 4px 10px; }
fieldset.q { border: 0; padding: 0; margin: 0 0 18px; }
fieldset.q legend { font-weight: 700; margin-bottom: 8px; padding: 0; }
textarea, input[type=text], input[type=tel], input:not([type]) {
  width: 100%; background: var(--surface-2); color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px; font: inherit;
}
textarea:focus, input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }

/* scan */
.hero-scan h1 { font-size: clamp(1.4rem, 5.5vw, 2rem); }
.checklist, .tips { padding-inline-start: 1.1em; margin: 0 0 12px; }
.checklist li { margin-bottom: 4px; }
.tips { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 0; list-style: none; color: var(--muted); }
.tips li::before { content: "✓ "; color: var(--gold); }
.tips-title { margin-top: 14px; font-size: .95rem; }
.privacy { background: #13221a; border: 1px solid #1f4630; color: #bfe8cf; padding: 10px 14px; border-radius: 12px; font-size: .92rem; }
.status { color: var(--gold-2); min-height: 1.4em; margin-top: 10px; }
.step-back { display: inline-flex; align-items: center; gap: 4px; margin: 0 0 8px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text, #fff); font: inherit; font-size: .85rem; cursor: pointer; }
.step-back:hover { border-color: var(--gold); }
.stepper { display: flex; list-style: none; padding: 0; margin: 0 0 14px; gap: 6px; }
.stepper li { flex: 1; text-align: center; font-size: .75rem; color: var(--muted); padding-top: 8px; border-top: 3px solid var(--line); }
.stepper li.done { border-color: #6f5a28; color: #b9a173; }
.stepper li.on { border-color: var(--gold); color: var(--gold-2); font-weight: 700; }
.cam-wrap { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; }
.cam-wrap video, .cam-wrap canvas { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scaleX(-1); }
.cam-guide { position: absolute; inset: 12% 20% 14%; border: 2px dashed rgba(227,38,43,.6); border-radius: 50%; pointer-events: none; }
.cam-msg { text-align: center; font-weight: 700; margin: 12px 0 8px; min-height: 1.6em; }
.progress { height: 6px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--gold); transition: width .15s; }
.turns { display: flex; justify-content: space-between; margin-top: 10px; color: var(--muted); font-size: .9rem; }
.turns .ok { color: #7bc67e; font-weight: 700; }
.turns .ok::after { content: " ✓"; }
.analyze-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .analyze-grid { grid-template-columns: 240px 1fr; } }
.annot { width: 100%; height: auto; border-radius: 14px; background: #000; }
.legend { list-style: none; padding: 0; margin: 0 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: .85rem; color: var(--muted); }
.legend i { display: inline-block; width: 12px; height: 4px; border-radius: 2px; margin-inline-end: 6px; vertical-align: middle; }
.log { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.log li { background: var(--surface-2); border-radius: 10px; padding: 9px 12px; font-size: .93rem; animation: pop .35s ease; border-inline-start: 3px solid var(--gold); }
.log.big li { font-size: 1rem; }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.bars { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.barrow { display: grid; grid-template-columns: 70px 1fr 44px; align-items: center; gap: 10px; font-size: .9rem; }
.barbg { height: 10px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.barfill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-2)); border-radius: 10px; }
.shape-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 14px 0; }
.shape { text-align: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; color: var(--text); font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.shape small { color: var(--muted); font-size: .8rem; line-height: 1.35; }
.shape em { color: var(--gold-2); font-style: normal; font-size: .8rem; font-weight: 700; }
.shape.on { border-color: var(--gold); background: #221c10; }
.principle { background: #221c10; border: 1px solid #5a1517; border-radius: 12px; padding: 12px 14px; color: #f0e2bf; font-size: .95rem; }
.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid var(--line); border-top-color: var(--gold); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }
.recs { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.rec { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.rec.chosen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.rec-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.rec-img { background: #2b2b2f; border-radius: 14px; padding: 4px; }
.rec-title h3 { margin: 2px 0 0; }
.rec-title p { font-size: .9rem; color: #d2cdc4; margin: 4px 0 0; }
.rank { font-size: .75rem; color: var(--gold); font-weight: 800; }
.ring {
  width: 70px; height: 70px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), #33333a 0);
  position: relative;
}
.ring::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--surface-2); }
.ring b, .ring small { position: relative; line-height: 1.1; }
.ring small { font-size: .65rem; color: var(--muted); }
.why { padding-inline-start: 1.2em; margin: 0; }
.why li { margin-bottom: 4px; font-size: .93rem; }
.why li::marker { content: "✓  "; color: #7bc67e; }
.why.neg li::marker { content: "!  "; color: #ffb35c; }
details { margin-top: 12px; background: #1d1d20; border-radius: 12px; padding: 10px 12px; }
summary { cursor: pointer; font-weight: 700; }
.notes { padding-inline-start: 1.2em; margin: 8px 0; font-size: .92rem; }
.notes li { margin-bottom: 4px; }
.choose { width: 100%; margin-top: 12px; }
.avoid { padding-inline-start: 1.2em; color: #d2cdc4; font-size: .93rem; }
.cta { background: radial-gradient(120% 120% at 0% 0%, #2a0b0c 0%, var(--surface) 60%); }

/* modal */
dialog.modal { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 18px; padding: 20px; width: min(92vw, 420px); }
dialog.modal::backdrop { background: rgba(0,0,0,.65); }
dialog label { display: block; margin-bottom: 12px; font-weight: 600; }
dialog label input, dialog label textarea { margin-top: 6px; }
.err { color: var(--danger); min-height: 1em; }
.rate { display: flex; flex-direction: row-reverse; justify-content: center; gap: 4px; margin-bottom: 12px; }
.rate input { display: none; }
.rate label { font-size: 2rem; color: #444; cursor: pointer; margin: 0; }
.rate input:checked ~ label, .rate label:hover, .rate label:hover ~ label { color: var(--gold-2); }

@media (max-width: 380px) {
  .rec-head { grid-template-columns: auto 1fr; }
  .ring { grid-column: 1 / -1; justify-self: start; width: 60px; height: 60px; }
}
.btn.danger { background: var(--danger); color: #2a0707; border-color: transparent; }
.container { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.topbar { top: env(safe-area-inset-top, 0px); padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.tabbar { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 11; background: var(--bg); }

/* ---- סריקה v2 ---- */
.small { font-size: .85rem; }
.flow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; }
.flow div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; }
.flow b { display: block; color: var(--gold-2); }
.flow small { color: var(--muted); font-size: .78rem; line-height: 1.35; display: block; }
.shots { display: flex; flex-direction: column; gap: 10px; margin: 12px 0; }
.shot { display: grid; grid-template-columns: 84px 1fr; gap: 12px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 10px; }
.shot.next { border-color: var(--gold); }
.shot.has { border-color: #2f5a3a; }
.shot-img { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: #2b2b2f; display: grid; place-items: center; }
.shot-img img { width: 100%; height: 100%; object-fit: cover; }
.shot-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.shot-body small { color: var(--muted); font-size: .82rem; line-height: 1.35; }
.shot-body small.okc { color: #7bc67e; }
.shot-body small.warn { color: #ffb35c; }
.shot-actions { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.opt { font-size: .7rem; color: var(--gold); border: 1px solid #5a1517; border-radius: 6px; padding: 0 5px; font-weight: 700; }
.pose { width: 64px; height: 64px; }
.pose .p-skin { fill: #c99a74; }
.pose .p-hair { fill: #3b2a1e; }
.pose .p-ear { fill: #b88763; }
.pose .p-eye { fill: #1c130c; }
.pose .p-line, .pose .p-arrow { stroke: #1c130c; stroke-width: 2; fill: none; stroke-linecap: round; }
.pose .p-arrow { stroke: var(--gold); }
.pose .p-mark { fill: var(--gold); }
.strip { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.strip figure { flex: none; margin: 0; width: 70px; text-align: center; }
.strip img { width: 70px; height: 70px; object-fit: cover; border-radius: 10px; }
.strip figcaption { font-size: .7rem; color: var(--muted); }
.think-title { margin-top: 18px; display: flex; align-items: center; gap: 8px; }
.findings { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.findings div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; min-width: 0; }
.findings small { display: block; color: var(--muted); font-size: .78rem; }
.findings b { font-size: .95rem; }
.fix label { display: block; margin: 8px 0; font-weight: 600; }
.fix select { width: 100%; margin-top: 4px; background: var(--surface-2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font: inherit; }
.me { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; }
.me-photo { width: 96px; height: 96px; object-fit: cover; border-radius: 50%; border: 3px solid var(--gold); }
.me h2 { margin: 0; }
.rec-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.rec-photos { display: flex; gap: 6px; min-width: 0; }
.rec-photos img { width: 62px; height: 62px; object-fit: cover; border-radius: 10px; }
.rec h3 { margin: 2px 0 0; }
.headline { margin: 8px 0 0; color: #f0e2bf; font-weight: 500; }
.phone-line { text-align: center; margin: 4px 0; color: var(--muted); user-select: all; }
@media (max-width: 380px) { .flow { grid-template-columns: 1fr; } .rec-photos img { width: 50px; height: 50px; } }

/* ---- איכות וביטחון ---- */
:root { --ok: #6fcf7f; --warn: #f2b84b; }
.quality-total { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin: 10px 0 4px; font-weight: 700; }
.qbar { height: 10px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.qbar.sm { height: 6px; }
.qbar i { display: block; height: 100%; border-radius: 10px; transition: width .3s; }
.qline { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 4px; font-size: .9rem; }
.qtips { margin: 4px 0 0; padding-inline-start: 1.1em; font-size: .84rem; color: #f3d9a4; }
.qtips li { margin-bottom: 3px; }
.howto { margin: 10px 0; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.howto ul { margin: 8px 0 0; padding-inline-start: 1.1em; font-size: .92rem; }
.howto li { margin-bottom: 4px; }
.conf-parts { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 4px; }
.conf-parts li { display: flex; justify-content: space-between; gap: 10px; font-size: .92rem; border-bottom: 1px dashed var(--line); padding: 4px 0; }
.conf-parts span { color: var(--muted); }
.okc { color: var(--ok); }
.wild { border-color: #5a1517; background: radial-gradient(120% 120% at 100% 0%, #2a0b0c 0%, var(--surface) 60%); }
.chip { text-align: start; }

/* ---------- הדמיית "אחרי" ---------- */
.tryon { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 4px -4px 12px; padding: 0 4px 4px; }
.tryon .ta { flex: 0 0 72%; max-width: 260px; margin: 0; position: relative; scroll-snap-align: start; cursor: pointer; }
.tryon .ta img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 14px; display: block; border: 2px solid var(--gold); }
.tryon .ta figcaption { position: absolute; bottom: 8px; inset-inline-start: 8px; background: rgba(0,0,0,.72); color: #fff; font-size: .8rem; padding: 3px 9px; border-radius: 999px; }
.tryon .ta.wait img, .tryon .ta.before img { border-color: var(--line); filter: grayscale(.5) brightness(.6); }
.tryon .ta.wait::after { content: ""; position: absolute; inset: 0; border-radius: 14px; background: linear-gradient(100deg, transparent 30%, rgba(227,38,43,.28) 50%, transparent 70%); background-size: 250% 100%; animation: tryshine 1.6s linear infinite; }
@keyframes tryshine { from { background-position: 120% 0; } to { background-position: -120% 0; } }
.tryon-status p { margin: 0 0 8px; }
.tryon-status .qbar { margin: 6px 0 4px; }

/* ---------- אישור סוג שיער ---------- */
.hair-types { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.htype { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 8px; border-radius: 14px; border: 2px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; cursor: pointer; }
.htype svg { color: var(--muted); }
.htype small { color: var(--muted); font-size: .78rem; line-height: 1.35; }
.htype.on { border-color: var(--gold); background: color-mix(in srgb, var(--gold) 14%, var(--surface-2)); }
.htype.on svg { color: var(--gold); }

/* ---------- ייעוץ וכרטיס לספר ---------- */
#extra { width: 100%; margin-top: 10px; }
.barber-card { border: 1px solid var(--gold); }
.barber-card h4 { margin: 12px 0 4px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool { font-size: .82rem; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.tool.ok { color: var(--ok); border-color: var(--ok); }
.tool.no { color: var(--danger); border-color: var(--danger); }
.confirm { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }

/* ---------- מיתוג TZACH HAIR STYLE: שחור, אדום, לבן ---------- */
.topbar { border-bottom: 0; }
.topbar::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 3px;
  background: repeating-linear-gradient(-45deg, var(--gold) 0 10px, #fff 10px 20px, #1d3c8f 20px 30px, #fff 30px 40px); opacity: .85; }
.logo img { border-radius: 50%; }
.wordmark { display: flex; flex-direction: column; line-height: 1; }
.wordmark b { font-family: "Playfair Display", Georgia, "Times New Roman", serif; font-weight: 900; color: var(--gold); font-size: 1.35rem; letter-spacing: .04em; }
.wordmark small { color: #fff; font-family: "Playfair Display", Georgia, serif; font-size: .6rem; letter-spacing: .45em; font-weight: 900; margin-top: 2px; }
h1, h2 { font-weight: 900; }
.hero { position: relative; overflow: hidden; border-color: #2c1213; }
.hero h1 { display: inline; color: #fff; line-height: 1.5; padding: .05em .35em; -webkit-box-decoration-break: clone; box-decoration-break: clone;
  background: linear-gradient(176deg, transparent 6%, var(--gold) 6% 92%, transparent 92%); }
.hero .eyebrow { color: #fff; }
.hero .lead { margin-top: 14px; }
.btn.primary { background: var(--gold); border-color: var(--gold); color: #fff; box-shadow: 0 6px 20px rgba(227,38,43,.28); }
.chip.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.eyebrow { color: var(--gold-2); }
.tabbar a.on { color: #fff; }
.tabbar a.on::before { content: ""; position: absolute; top: 0; width: 32px; height: 3px; border-radius: 3px; background: var(--gold); }
.tabbar a { position: relative; }

.hero-logo { display: block; width: 170px; max-width: 50%; margin: 0 auto 14px; }
.prices details { border-top: 1px solid var(--line); padding: 8px 0; }
.prices summary { cursor: pointer; font-weight: 800; color: var(--gold-2); padding: 4px 0; }

/* ---------- אייקונים וטיפוגרפיה בסגנון Apple ---------- */
.ic { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }
.btn .ic { width: 1.25em; height: 1.25em; }
.ih { display: flex; align-items: center; gap: 8px; }
.ih .ic { color: var(--gold); }
.eyebrow .ic, .evidence .ic { color: var(--gold); margin-inline-end: 4px; }
.tabbar a span { filter: none; opacity: 1; font-size: 0; }
.tabbar a span .ic { width: 24px; height: 24px; }
.tabbar a.on span .ic { color: var(--gold); }
.big-check .ic { width: 40px; height: 40px; stroke-width: 2.4; }
.brand { color: var(--gold); }
.btn.wa { background: var(--surface-2); color: var(--text); border: 1px solid var(--line); }
.btn.wa .brand { color: var(--gold); }

/* טלפון = קישור לוואטסאפ */
.wa-line { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.wa-line .wa-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: rgba(227,38,43,.12); }
.wa-line .wa-ic .ic { width: 26px; height: 26px; }
.wa-line b { font-size: 1.15rem; letter-spacing: .01em; display: block; text-align: right; }
.wa-line small { color: var(--muted); }
.wa-line .chev { color: var(--muted); font-size: 1.4rem; }
.phone-line { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--text); font-weight: 700; user-select: auto; padding: 8px; }
.phone-line .ic { color: var(--gold); }

.social { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.social-btn { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.social-btn .ic { width: 28px; height: 28px; color: var(--gold); }

/* טיפוגרפיה: ריווח אותיות לפי גודל, שורות צפופות בכותרות, רווחות בטקסט */
h1 { line-height: 1.12; letter-spacing: -.02em; }
h2 { line-height: 1.2; letter-spacing: -.012em; }
h3 { line-height: 1.3; letter-spacing: -.005em; }
p, li { line-height: 1.6; }
small, .small { letter-spacing: .01em; }
.lead { line-height: 1.55; }

/* תגובה מיידית ללחיצה, לא רק אחרי שחרור */
.btn, .chip, .row-btn, .slot, .day, .social-btn, .wa-line, .htype, .tabbar a {
  transition: transform 100ms ease-out, background-color 150ms ease, border-color 150ms ease;
  -webkit-tap-highlight-color: transparent; touch-action: manipulation;
}
.btn:active, .chip:active, .row-btn:active, .slot:active, .day:active, .social-btn:active, .wa-line:active, .htype:active { transform: scale(.97); }
.tabbar a:active { transform: scale(.92); }
.social-btn:active, .wa-line:active { background: #29292d; }

@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .btn:active, .chip:active, .row-btn:active, .slot:active, .social-btn:active, .wa-line:active, .tabbar a:active { transform: none; }
}
@media (prefers-reduced-transparency: reduce) {
  .topbar, .tabbar { background: var(--bg); backdrop-filter: none; }
}

/* ---------- פריסה צפופה ונקייה: בלי חלל מת ---------- */
.card.tight { padding: 14px; margin-bottom: 12px; }
.card.tight h3 { margin-bottom: 10px; }
.hero { padding: 18px 16px; margin-bottom: 12px; text-align: center; }
.hero-logo { width: 120px; margin: 0 auto 8px; }
.hero h1 { font-size: clamp(1.35rem, 5.6vw, 1.9rem); }
.hero .lead { margin: 12px auto 14px; font-size: .98rem; max-width: 34ch; }
.hero-actions { display: grid; grid-template-columns: 1fr; gap: 8px; }
.ai-banner { background: rgba(227,38,43,.1); border-color: rgba(227,38,43,.35); color: var(--text); display: flex; gap: 8px; align-items: center; }
.ai-banner .ic { color: var(--gold); }

/* צוות: 5 עמודות שוות לכל הרוחב */
.team-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.team-grid .member { padding: 10px 2px; gap: 4px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; color: var(--text); font: inherit; cursor: pointer; min-width: 0; }
.team-grid .member .avatar { width: 44px; height: 44px; font-size: 1.15rem; margin: 0; }
.team-grid .member b { font-size: .9rem; }
.team-grid .member small { font-size: .7rem; }
.team-grid .member.on { border-color: var(--gold); background: rgba(227,38,43,.12); }

/* תורים פנויים: אריחים בשורה */
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.quick { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; }
.quick b { font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.quick small { color: var(--muted); font-size: .75rem; }

/* אייקוני קשר: 5 עמודות סימטריות */
.contact-icons { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ci { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.ci-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.ci-ic .ic { width: 26px; height: 26px; color: var(--gold); }
.ci small { font-size: .74rem; color: var(--muted); }
.ci:active .ci-ic { transform: scale(.94); background: #29292d; }
.ci-ic { transition: transform 100ms ease-out, background-color 150ms ease; }
.addr { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 12px 0 0; font-size: .82rem; color: var(--muted); text-align: center; flex-wrap: wrap; }
.addr .ic { color: var(--gold); }
.last-scan { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.last-scan small { color: var(--muted); }

/* קביעת תור במסך אחד */
.step { margin-bottom: 16px; scroll-margin-top: 80px; }
.step-title { display: flex; align-items: center; gap: 8px; font-size: 1rem; margin-bottom: 10px; }
.step-title .num { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--gold); color: #fff; font-size: .8rem; font-weight: 800; }
.price-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.price-row { display: flex; justify-content: space-between; align-items: center; gap: 6px; text-align: start; padding: 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); font: inherit; cursor: pointer; min-height: 62px; }
.price-row b { display: block; font-size: .9rem; line-height: 1.3; }
.price-row small { display: block; color: var(--muted); font-size: .72rem; }
.price-row .price { font-weight: 800; color: var(--gold-2); white-space: nowrap; }
.price-row.on { border-color: var(--gold); background: rgba(227,38,43,.12); }
.slot.on { background: var(--gold); border-color: var(--gold); color: #fff; }
.day.on small { color: #ffd9da; }
.confirm-bar { position: sticky; bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom) + 8px); display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 16px;
  background: rgba(21,21,23,.88); backdrop-filter: blur(20px) saturate(160%); border: 1px solid rgba(255,255,255,.08); box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.confirm-bar b { display: block; font-size: .95rem; }
.confirm-bar small { color: var(--muted); font-size: .8rem; }
.confirm-bar .btn { min-height: 44px; padding: 8px 18px; white-space: nowrap; }

/* התורים שלי */
.nudge h3 { margin-bottom: 4px; }
.nudge p { margin-bottom: 12px; }
.scan-cta { display: flex; align-items: center; gap: 12px; }
.scan-cta b { display: block; }
.scan-cta small { color: var(--muted); }
.scan-cta .chev { color: var(--muted); font-size: 1.4rem; }
.hours { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 12px; text-align: center; }
.hours div { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border-radius: 10px; background: var(--surface-2); }
.hours small { color: var(--muted); font-size: .72rem; }
.hours b { font-size: .78rem; line-height: 1.3; font-variant-numeric: tabular-nums; }
.hours .closed b { color: var(--muted); }
.hero { padding: 14px 14px 16px; }
.hero-logo { width: 92px; margin-bottom: 6px; }
.hero .lead { margin: 10px auto 12px; font-size: .93rem; }
.hero-actions { grid-template-columns: 1fr 1fr; }
.hero-actions .btn.big { min-height: 50px; padding: 10px 8px; font-size: .98rem; }
.hero-scan { text-align: center; }
.hero-scan .lead { max-width: 32ch; margin: 8px auto 16px; }
.hero-scan .flow { grid-template-columns: repeat(3, 1fr) !important; }
.hero-scan .flow b { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 4px; border-radius: 50%; background: var(--gold); color: #fff; }
.hero-scan .privacy { margin: 10px 0 0; font-size: .78rem; color: var(--muted); background: none; border: 0; padding: 0; }

/* שאלון צפוף: התשובות ממלאות את הרוחב בעמודות שוות */
.q { margin: 0 0 14px; padding: 0; border: 0; }
.q legend { font-weight: 700; font-size: .95rem; margin-bottom: 8px; padding: 0; }
.q .chips, #pains, #scarAreas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
#pains { grid-template-columns: repeat(2, 1fr); }
.q .chip, #pains .chip, #scarAreas .chip { width: 100%; min-height: 44px; padding: 8px 6px; font-size: .84rem; line-height: 1.25; text-align: center; border-radius: 12px; }
#extra { min-height: 44px; height: 44px; margin-top: 8px; resize: none; }
.card h2 { margin-bottom: 4px; }
.step-title > .ic { color: var(--gold); }
.q .chips { grid-template-columns: repeat(var(--cols, 3), 1fr); }
#likes { width: 100%; min-height: 44px; height: 44px; margin-top: 6px; resize: none; }
/* שאלת המשך: נפתחת ישר מתחת לתשובה "יש", מחוברת אליה */
.followup { margin: -6px 0 14px; padding: 10px; border-radius: 12px; background: rgba(227,38,43,.08); border: 1px solid rgba(227,38,43,.3); border-top-right-radius: 0; animation: followIn 180ms ease-out; }
.followup-q { margin: 0 0 8px; font-size: .88rem; font-weight: 700; }
@keyframes followIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* "מה מפריע לך": 8 אריחים שווים, כותרת + שורת הסבר */
#pains.pain-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#pains .pain { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; min-height: 72px; padding: 12px; text-align: start; border-radius: 14px; }
#pains .pain b { font-size: .95rem; font-weight: 800; letter-spacing: -.005em; }
#pains .pain small { font-size: .74rem; line-height: 1.35; color: var(--muted); font-weight: 400; }
#pains .pain.on small { color: rgba(255,255,255,.85); }
#pains.pain-grid { grid-auto-rows: 1fr; }
#pains .pain.on { background: var(--gold); border-color: var(--gold); color: #fff; }

/* ---------- מסך הניתוח: אחוזים עד 100% ---------- */
.pg { text-align: center; padding: 18px 14px 14px; }
.pg-ring { --p: 0; width: 168px; height: 168px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), #26262a 0); position: relative; transition: transform 300ms ease; }
.pg-ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.pg-ring b { position: relative; font-size: 3.1rem; font-weight: 900; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.pg-ring small { font-size: 1.2rem; font-weight: 800; color: var(--muted); margin-inline-start: 2px; }
.pg-now { font-weight: 700; margin: 0 0 12px; min-height: 1.4em; }
.pg-stages { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; text-align: start; }
.pg-stages li { display: flex; align-items: center; gap: 10px; font-size: .9rem; color: var(--muted); padding: 6px 10px; border-radius: 10px; }
.pg-stages li .dot { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #3a3a40; display: grid; place-items: center; }
.pg-stages li .dot .ic { width: 12px; height: 12px; stroke-width: 3; color: #fff; }
.pg-stages li.now { color: var(--text); background: rgba(227,38,43,.1); font-weight: 700; }
.pg-stages li.now .dot { border-color: var(--gold); border-top-color: transparent; animation: spin .8s linear infinite; }
.pg-stages li.ok { color: var(--text); }
.pg-stages li.ok .dot { background: var(--gold); border-color: var(--gold); }
.pg.complete .pg-ring { transform: scale(1.06); }
.pg.complete .pg-ring b { color: var(--gold-2); }
.live .log.big li { animation: followIn 220ms ease-out; }

/* חשיפת התוצאות */
.recs .rec { animation: reveal 520ms cubic-bezier(.2,.8,.2,1) both; }
.recs .rec:nth-child(2) { animation-delay: 90ms; }
.recs .rec:nth-child(3) { animation-delay: 180ms; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) { .recs .rec, .live .log.big li { animation: none; } .pg-stages li.now .dot { animation: none; } }

/* בחירת תספורת: הכרטיס לספר מהבהב כשמגיעים אליו */
.barber-card.flash { animation: flash 1.4s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 3px var(--gold); } 100% { box-shadow: 0 0 0 0 transparent; } }
.pg-eta { color: var(--muted); font-size: .85rem; margin: -6px 0 10px; font-variant-numeric: tabular-nums; }
.plan .plan-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 8px; }
.plan .plan-grid div { background: var(--surface-2); border-radius: 12px; padding: 10px; }
.plan .plan-grid small { display: block; color: var(--muted); font-size: .75rem; }
.plan .plan-goal { font-weight: 700; }

/* כפתור אחד בעמוד הבית, לכל הרוחב */
.hero-start { display: flex; width: 100%; min-height: 54px; justify-content: center; font-size: 1.15rem; font-weight: 800; }

/* ===== חיים בממשק: מעברים, ברק, לחיצה אדומה, רקע מספרה ===== */
/* לוגו בכותרת: רק הפנים, בלי עיגול ובלי רקע */
.logo img.logo-head { border-radius: 0; background: none; object-fit: contain; filter: drop-shadow(0 2px 6px rgba(0,0,0,.6)); }

/* רקע: כלי מספרה בקו דק, עם הילה אדומה עמומה למעלה */
body {
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(227,38,43,.10), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(227,38,43,.06), transparent 60%),
    url("bg.svg") 0 0 / 260px 260px repeat,
    var(--bg);
}
.card { background-color: rgba(21,21,23,.9); }

/* מעבר בין מסכים: מהיר ועמום, בלי קפיצה */
.topbar { view-transition-name: topbar; }
.tabbar { view-transition-name: tabbar; }
::view-transition-old(root) { animation: vt-out .16s ease-in both; }
::view-transition-new(root) { animation: vt-in .32s cubic-bezier(.2,.8,.2,1) both; }
@keyframes vt-out { to { opacity: 0; filter: brightness(.5) blur(2px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); filter: brightness(.5) blur(2px); } }
#view.enter > * { animation: vt-in .32s cubic-bezier(.2,.8,.2,1) both; }
#view.enter > *:nth-child(2) { animation-delay: .04s; }
#view.enter > *:nth-child(3) { animation-delay: .08s; }
#view.enter > *:nth-child(n+4) { animation-delay: .12s; }

/* ברק שעובר לאורך הכפתור האדום, הולך וחוזר */
.btn.primary { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary::after {
  content: ""; position: absolute; inset: -2px; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.38) 50%, transparent 65%);
  background-size: 260% 100%; animation: btn-shine 3.4s ease-in-out infinite alternate;
}
@keyframes btn-shine { 0%, 12% { background-position: 120% 0; } 88%, 100% { background-position: -20% 0; } }

/* כל לחיצה: הבהוב אדום וגל שמתפשט מהאצבע */
.rip { position: relative; overflow: hidden; }
.ripple { position: absolute; border-radius: 50%; pointer-events: none; transform: translate(-50%,-50%) scale(0);
  background: radial-gradient(circle, rgba(255,74,79,.55), rgba(227,38,43,.25) 45%, transparent 70%); animation: ripple .55s ease-out forwards; }
@keyframes ripple { to { transform: translate(-50%,-50%) scale(1); opacity: 0; } }
.pressed { animation: press-red .5s ease-out; }
@keyframes press-red { 0% { box-shadow: 0 0 0 0 rgba(227,38,43,.65); border-color: var(--gold); } 100% { box-shadow: 0 0 0 10px rgba(227,38,43,0); } }
.btn.ghost:active, .chip:active, .slot:active, .day:active, .row-btn:active, .htype:active, .pain:active, .ci:active .ci-ic, .social-btn:active, .wa-line:active {
  background: rgba(227,38,43,.22); border-color: var(--gold); color: #fff; transition: background .08s, border-color .08s;
}
.tabbar a:active { color: var(--gold-2); }
@media (hover: hover) {
  .btn.ghost:hover, .chip:hover, .slot:hover, .day:hover { border-color: rgba(227,38,43,.7); }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .btn.primary::after, .ripple { display: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ===== גרסה 2 של התנועה (לפי מה שביקשת) ===== */
/* ברק: פס אור אלכסוני שעובר לכל אורך כל כפתור אדום, הולך וחוזר */
.btn.primary::after {
  content: ""; position: absolute; top: -20%; bottom: -20%; left: 0; width: 38%; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55) 50%, transparent);
  transform: translateX(-140%) skewX(-20deg); animation: btn-sweep 2.8s cubic-bezier(.45,0,.55,1) infinite alternate;
  background-size: auto; inset-inline: auto;
}
@keyframes btn-sweep { 0%, 8% { transform: translateX(-140%) skewX(-20deg); } 92%, 100% { transform: translateX(300%) skewX(-20deg); } }

/* מעבר בין מסכים: החלקה כמו באייפון. קדימה: החדש נכנס משמאל (עברית), הישן זז מעט ומתעמעם */
::view-transition-group(root) { animation-duration: .38s; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .38s; animation-timing-function: cubic-bezier(.32,.72,0,1); animation-fill-mode: both; mix-blend-mode: normal; }
::view-transition-old(root) { animation-name: push-old; }
::view-transition-new(root) { animation-name: push-new; }
html.nav-back::view-transition-old(root) { animation-name: pop-old; }
html.nav-back::view-transition-new(root) { animation-name: pop-new; }
html.nav-none::view-transition-old(root) { animation: fade-out .18s ease both; }
html.nav-none::view-transition-new(root) { animation: fade-in .22s ease both; }
@keyframes push-new { from { transform: translateX(-100%); box-shadow: 12px 0 30px rgba(0,0,0,.6); } to { transform: none; box-shadow: 12px 0 30px rgba(0,0,0,0); } }
@keyframes push-old { to { transform: translateX(30%); filter: brightness(.45); } }
@keyframes pop-new { from { transform: translateX(30%); filter: brightness(.45); } }
@keyframes pop-old { to { transform: translateX(-100%); } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
/* בדפדפן בלי View Transitions: כל המסך נכנס יחד, בלי קפיצה של כל כרטיס לחוד */
#view.enter > * { animation: none; }
#view.enter { animation: push-new .38s cubic-bezier(.32,.72,0,1) both; }
#view.enter.nav-pop { animation-name: pop-new; }

/* לחיצה: הכפתור נלחץ פנימה וקופץ בחזרה עם קפיץ קטן */
.down { transform: scale(.93) !important; transition: transform .09s ease-out !important; }
.spring { animation: spring .45s cubic-bezier(.2,.9,.3,1) both; }
@keyframes spring { 0% { transform: scale(.93); } 45% { transform: scale(1.05); } 70% { transform: scale(.985); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) { .down, .spring { transform: none !important; animation: none !important; } }

/* הגל של הלחיצה תמיד צף מעל הכפתור ולא משנה את הגודל שלו */
.ripple { position: absolute !important; z-index: 0; }

/* ===== מבנה של אפליקציה לאייפון =====
   הדף עצמו לא זז: הכותרת למעלה והלשוניות למטה קבועות, ורק התוכן באמצע נגלל.
   כך הגלילה מרגישה כמו אפליקציה, הרקע של המספרה נשאר במקום, ושום דבר לא נחתך מתחת לפס של האייפון. */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
body { padding-bottom: 0; height: 100dvh; display: flex; flex-direction: column; }
.shell { flex: 1 1 auto; min-height: 0; }
body::before { display: none; }
.shell { height: 100%; display: flex; flex-direction: column; }
.topbar { position: relative; top: 0; flex: none; padding-top: calc(12px + env(safe-area-inset-top, 0px)); }
#view {
  flex: 1 1 auto; min-height: 0; max-width: none; width: 100%; margin: 0;
  overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch; overscroll-behavior-y: contain;
  padding-inline: max(16px, env(safe-area-inset-left, 0px), calc((100% - 720px) / 2));
  padding-bottom: 24px; box-sizing: border-box;
}
.tabbar { position: relative; flex: none; bottom: auto; }
.confirm-bar { bottom: 8px; }

/* לפני/אחרי: עמעום בהחלפה, ו"לפני" מסומן באפור כדי שיהיה ברור מה רואים */
.tryon .ta img { transition: opacity .14s ease; }
.tryon .ta.is-before { border-color: var(--line); }
.tryon .ta.is-before figcaption b { color: var(--muted); }

/* תמונות "אחרי": סימן מים של המספרה, בלי תפריט שמירה בלחיצה ארוכה */
.tryon .ta img { pointer-events: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; }
.tryon .ta[data-wm]::before { content: attr(data-wm); position: absolute; top: 46%; inset-inline: 0; text-align: center; font-weight: 800; font-size: 1.15rem; letter-spacing: .08em; color: rgba(255,255,255,.14); transform: rotate(-24deg); pointer-events: none; }
.tryon .ta[data-wm]::after { content: attr(data-wm); position: absolute; bottom: 42px; inset-inline: 0; text-align: center; font-weight: 800; font-size: .82rem; letter-spacing: .06em; color: rgba(255,255,255,.72); text-shadow: 0 1px 3px rgba(0,0,0,.7); pointer-events: none; }
.tryon .ta.is-before::before, .tryon .ta.is-before::after { display: none; }
/* המלצה ראשית אחת, והשאר מתחת */
.rec-picked { margin: 8px 0; font-weight: 700; color: var(--gold-2); text-align: center; }
.pick { margin-bottom: 8px; }
.card-who { margin: 6px 0 0; }
.rec-meta { margin: 4px 0 8px; font-weight: 700; color: var(--gold-2); }
.rec-barber { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.rec-barber > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.rec-barber small { opacity: .75; }
.more-recs > summary { cursor: pointer; font-weight: 700; padding: 14px; text-align: center; }
/* כניסה לצוות */
.shop-card { display: flex; gap: 12px; align-items: flex-start; }
.shop-card img { width: 96px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; flex: none; }
.card-text { white-space: pre-line; margin: 8px 0 0; }
.reception-toggle { display: flex; gap: 8px; align-items: center; font-weight: 700; }
/* אייפד: שלוש הזוויות זו ליד זו */
@media (min-width: 700px) { .tryon { overflow: visible; } .tryon .ta { flex: 1 1 0; max-width: none; } }

/* שכבת רקע קבועה משלה: הרקע לא תלוי יותר ברקע של הדף, ולא בטעינה של קובץ חיצוני */
html, body { background-color: #0a0a0b !important; }
.bg-layer {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(120% 60% at 100% 0%, rgba(227,38,43,.10), transparent 60%),
    radial-gradient(90% 50% at 0% 100%, rgba(227,38,43,.06), transparent 60%),
    url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 260 260%22 width=%22260%22 height=%22260%22%3E%3Cg fill=%22none%22 stroke=%22%23fff%22 stroke-opacity=%22.1%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cg transform=%22translate(34 30) rotate(-30)%22%3E%3Ccircle cx=%220%22 cy=%2234%22 r=%228%22/%3E%3Ccircle cx=%2220%22 cy=%2234%22 r=%228%22/%3E%3Cpath d=%22M5 27 L22 -14 M15 27 L-2 -14%22/%3E%3Ccircle cx=%2210%22 cy=%2210%22 r=%221.6%22/%3E%3C/g%3E%3Cg transform=%22translate(176 22) rotate(18)%22%3E%3Crect x=%220%22 y=%2212%22 width=%2226%22 height=%2246%22 rx=%229%22/%3E%3Cpath d=%22M2 12 V4 H24 V12 M5 4 V-1 M10 4 V-1 M15 4 V-1 M20 4 V-1%22/%3E%3Cpath d=%22M8 26 H18 M8 32 H18%22/%3E%3Cpath d=%22M13 58 V68%22/%3E%3C/g%3E%3Cg transform=%22translate(96 120) rotate(-12)%22%3E%3Crect x=%220%22 y=%220%22 width=%2262%22 height=%2210%22 rx=%223%22/%3E%3Cpath d=%22M5 10 V22 M11 10 V22 M17 10 V22 M23 10 V22 M29 10 V22 M35 10 V18 M41 10 V18 M47 10 V18 M53 10 V18 M58 10 V18%22/%3E%3C/g%3E%3Cg transform=%22translate(20 168) rotate(24)%22%3E%3Cpath d=%22M0 0 H44 Q52 0 52 8 H8 Q0 8 0 0 Z%22/%3E%3Cpath d=%22M52 6 Q66 10 78 22%22 stroke-width=%225%22 stroke-opacity=%22.05%22/%3E%3Ccircle cx=%2250%22 cy=%225%22 r=%221.6%22/%3E%3C/g%3E%3Cg transform=%22translate(200 150) rotate(-10)%22%3E%3Cpath d=%22M6 24 H26 V62 Q26 68 20 68 H12 Q6 68 6 62 Z%22/%3E%3Cpath d=%22M10 24 V14 H22 V24 M22 16 H32 L34 20 M8 12 L14 6%22/%3E%3C/g%3E%3Cg transform=%22translate(120 206) rotate(14)%22%3E%3Cpath d=%22M4 0 Q14 -16 24 0 Z%22/%3E%3Crect x=%226%22 y=%220%22 width=%2216%22 height=%227%22 rx=%222%22/%3E%3Cpath d=%22M9 7 Q8 26 14 30 Q20 26 19 7%22/%3E%3C/g%3E%3C/g%3E%3Cg transform=%22translate(108 18) rotate(8)%22 fill=%22none%22 stroke=%22%23e3262b%22 stroke-opacity=%22.2%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Crect x=%220%22 y=%226%22 width=%2214%22 height=%2254%22 rx=%227%22/%3E%3Cpath d=%22M2 18 L12 10 M2 30 L12 22 M2 42 L12 34 M2 54 L12 46%22/%3E%3Cpath d=%22M-2 6 H16 M-2 60 H16%22/%3E%3C/g%3E%3Cg transform=%22translate(232 98) rotate(-40)%22 fill=%22none%22 stroke=%22%23e3262b%22 stroke-opacity=%22.18%22 stroke-width=%222%22 stroke-linecap=%22round%22%3E%3Ccircle cx=%220%22 cy=%2222%22 r=%226%22/%3E%3Ccircle cx=%2214%22 cy=%2222%22 r=%226%22/%3E%3Cpath d=%22M4 17 L16 -10 M10 17 L-2 -10%22/%3E%3C/g%3E%3C/svg%3E") 0 0 / 260px 260px repeat,
    #0a0a0b;
}
.shell { position: relative; z-index: 1; }

/* ===== פתיחה: הסריקה היא הדבר הראשון שרואים ===== */
.bg-layer { opacity: .55; }
.hero-tag { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; padding: 4px 12px; border-radius: 999px; background: rgba(227,38,43,.16); border: 1px solid rgba(227,38,43,.5); color: #fff; font-size: .85rem; font-weight: 700; }
.hero-tag .ic { width: 16px; height: 16px; color: var(--gold-2); }
.hero-main { padding: 18px 14px 16px; }
.hero-main h1 { display: block; background: none; padding: 0; margin: 0 0 12px; font-size: clamp(1.55rem, 6.4vw, 2.2rem); font-weight: 900; line-height: 1.2; text-wrap: balance; }
.hero-main .lead { margin: 12px auto 12px; max-width: 40ch; font-size: .98rem; }
.hero-start .ic { width: 22px; height: 22px; }

/* גרירה בין לפני לאחרי */
.ba { --p: 50%; position: relative; margin: 0; aspect-ratio: 16 / 13; max-height: 46vh; width: 100%; overflow: hidden; border-radius: 14px; border: 1px solid var(--line); background: #121214; cursor: ew-resize; touch-action: pan-y; user-select: none; -webkit-user-select: none; }
.ba:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 2px; }
.ba-layer { position: absolute; inset: 0; }
.ba-layer svg, .ba-layer img { display: block; width: 100%; height: 100%; object-fit: cover; pointer-events: none; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 0 0 var(--p)); }
.ba-tag { position: absolute; top: 10px; z-index: 2; transition: opacity .2s; padding: 3px 10px; border-radius: 999px; background: rgba(0,0,0,.72); color: #fff; font-size: .8rem; font-weight: 700; pointer-events: none; }
.ba-tag-before { right: 10px; }
.ba-tag-after { left: 10px; background: var(--gold); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 2px; margin-left: -1px; background: #fff; box-shadow: 0 0 8px rgba(0,0,0,.6); pointer-events: none; }
.ba-handle b { position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #111; font-size: 1rem; font-weight: 900; box-shadow: 0 2px 10px rgba(0,0,0,.5); }
.ba-scan { position: absolute; inset-inline: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--gold-2), transparent); box-shadow: 0 0 14px 3px rgba(255,74,79,.6); opacity: 0; animation: baScan 5s ease-in-out infinite; pointer-events: none; }
@keyframes baScan { 0%, 55%, 100% { top: 0; opacity: 0; } 60% { opacity: 1; } 92% { top: 100%; opacity: 1; } 96% { top: 100%; opacity: 0; } }
.ba-note { margin: 6px 0 0; color: var(--muted); font-size: .76rem; }

/* למה סריקה: שורות קצרות בלי מסגרת, כדי שלא הכל ייראה אותו דבר */
.why-scan { display: flex; flex-direction: column; gap: 12px; margin: 4px 4px 18px; }
.why-scan > div { display: flex; align-items: center; gap: 12px; }
.why-scan .ic { flex: none; width: 24px; height: 24px; color: var(--gold-2); }
.why-scan span { display: flex; flex-direction: column; min-width: 0; }
.why-scan small { color: var(--muted); font-size: .85rem; }

/* פתיחה: בטלפון התמונה בין הכותרת לכפתור, במחשב ובאייפד שני טורים, כדי שהכל ייכנס בלי לגלול */
.hero-main { display: flex; flex-direction: column; }
.hero-copy { display: contents; }
.hero-main .hero-tag { order: 1; align-self: center; }
.hero-main h1 { order: 2; }
.hero-art { order: 3; }
.hero-main .lead { order: 4; }
.hero-main .hero-start { order: 5; }
@media (min-width: 700px) {
  .hero-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: center; padding: 26px; text-align: start; }
  .hero-copy { display: flex; flex-direction: column; align-items: flex-start; }
  .hero-main .hero-tag { align-self: flex-start; }
  .hero-main h1 { font-size: clamp(1.7rem, 3.1vw, 2.5rem); margin-bottom: 14px; text-align: start; }
  .hero-main .lead { margin: 0 0 18px; max-width: none; font-size: 1.05rem; text-align: start; }
  .ba { aspect-ratio: 1 / 1; max-height: min(58vh, 430px); }
  .ba-note { text-align: center; }
  .why-scan { flex-direction: row; gap: 18px; margin: 6px 4px 18px; }
  .why-scan > div { flex: 1 1 0; align-items: flex-start; }
}
/* במחשב התוכן רחב יותר, והפס של הגלילה לא מושך תשומת לב */
@media (min-width: 1000px) { #view { padding-inline: calc((100% - 880px) / 2); } }
#view { scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.16) transparent; }

/* האפיון במסך התוצאה */
.me { display: block; }
.me-head { display: grid; grid-template-columns: 84px 1fr; gap: 14px; align-items: center; }
.me-head .me-photo { width: 84px; height: 84px; }
.me-head h2 { font-size: 1.25rem; line-height: 1.25; }
.me-head h2 small { display: block; font-size: .85rem; font-weight: 500; }
.me-head .muted { margin: 4px 0 0; font-size: .85rem; }
.me-title { margin: 16px 0 10px; font-size: 1.02rem; }
.me .findings { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.me .findings div { padding: 7px 10px; border-radius: 10px; }
.me .findings small { font-size: .72rem; }
.me .findings b { display: block; font-size: .88rem; line-height: 1.25; overflow-wrap: anywhere; }
@media (min-width: 560px) { .me .findings { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.me .evidence { margin: 4px 0 8px; line-height: 1.45; }
.me details.fix { margin-top: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.me details.fix summary { cursor: pointer; font-weight: 700; font-size: .92rem; color: var(--gold-2); }
.me details.fix .log { margin-top: 10px; }
.me details.fix .hair-types { margin: 10px 0; }
.demo-flag { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 4px 0 12px; padding: 8px 12px; border-radius: 12px; background: rgba(227,38,43,.14); border: 1px solid rgba(227,38,43,.45); font-weight: 700; font-size: .9rem; }
.demo-flag .ic { width: 16px; height: 16px; color: var(--gold-2); }

/* השאלון: קצר. סוגי השיער בשורות צפופות, והפירוט מקופל */
.q[data-q="naturalHair"] .hair-types { grid-template-columns: 1fr 1fr; gap: 6px; }
.q[data-q="naturalHair"] .htype { flex-direction: row; align-items: center; gap: 8px; padding: 8px; text-align: start; border-width: 1px; border-radius: 12px; }
.q[data-q="naturalHair"] .htype svg { flex: none; width: 32px; height: 32px; }
.q[data-q="naturalHair"] .htype b { display: block; font-size: .88rem; line-height: 1.2; }
.q[data-q="naturalHair"] .htype small { display: block; font-size: .7rem; line-height: 1.25; }
.q[data-q="naturalHair"] .htype > span { min-width: 0; }
.more-prefs { padding: 14px 16px; }
.more-prefs > summary { cursor: pointer; list-style: none; display: flex; flex-direction: column; gap: 2px; }
.more-prefs > summary::-webkit-details-marker { display: none; }
.more-prefs > summary b { color: var(--gold-2); }
.more-prefs > summary b::before { content: "+ "; }
.more-prefs[open] > summary b::before { content: "− "; }
.more-prefs > summary small { color: var(--muted); font-size: .82rem; }
.more-prefs[open] > summary { margin-bottom: 12px; }
.more-prefs h3 { margin: 16px 0 8px; font-size: 1rem; }
.more-prefs textarea { margin-bottom: 8px; }
.prefs-go { margin: 4px 0 12px; }
.prefs-go .btn:disabled { font-size: .95rem; font-weight: 700; }
.more-shots > summary { cursor: pointer; font-size: .92rem; }
.more-shots > summary b { color: var(--gold-2); }
.more-shots .shots { margin-bottom: 0; }

/* כרטיס הספר */
.shop-card > div { min-width: 0; flex: 1 1 auto; }
.card-lines { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 4px; font-size: .9rem; line-height: 1.4; }
.card-lines li { padding: 6px 9px; border-radius: 9px; background: var(--surface-2); overflow-wrap: anywhere; }
.card-lines li.hot { background: rgba(227,38,43,.12); border-inline-start: 3px solid var(--gold); }
@media (max-width: 520px) { .shop-card { flex-direction: column; } .shop-card img { width: 120px; } }

/* סריקות שמורות */
.saved-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 14px; margin: 4px 0 12px; padding: 9px 12px; border-radius: 12px; background: rgba(227,38,43,.12); border: 1px solid rgba(227,38,43,.42); font-size: .9rem; font-weight: 700; }
.saved-bar .ic { width: 16px; height: 16px; color: var(--gold-2); vertical-align: -3px; margin-inline-end: 4px; }
.saved-links { display: flex; gap: 14px; }
.saved-links a, .scans-head > a:not(.btn) { color: var(--gold-2); text-decoration: underline; text-underline-offset: 3px; font-weight: 700; font-size: .9rem; }
.scans-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 0 10px; }
.scans-head h2, .scans-head h3 { margin: 0; }
.scan-list { display: grid; gap: 8px; margin-top: 10px; }
.scan-row { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; font: inherit; text-align: start; cursor: pointer; }
.scan-row:hover, .scan-row:focus-visible { border-color: rgba(227,38,43,.7); }
.scan-thumbs { display: flex; gap: 4px; flex: none; }
.scan-thumbs img { width: 56px; height: 74px; object-fit: cover; border-radius: 9px; background: var(--surface-2); }
.scan-row .grow { display: flex; flex-direction: column; flex: 1 1 auto; gap: 2px; min-width: 0; }
.scan-row small { color: var(--muted); font-size: .84rem; line-height: 1.35; }
.scan-row small.scan-state { color: var(--gold-2); font-weight: 700; font-size: .78rem; }
.scan-row small.scan-state.off { color: var(--muted); font-weight: 400; }
.scan-row .chev { flex: none; color: var(--muted); font-size: 1.3rem; }
.last-job { margin: 0 0 16px; }

/* פתיחת הסריקה: מה בודקים */
.checks { margin: 4px 4px 18px; }
.checks h3 { margin: 0 0 10px; font-size: 1.02rem; }
.checks .muted { margin: 12px 0 0; font-size: .9rem; line-height: 1.45; }

/* סריקת AI בולטת בתפריט */
.tabbar a[href="#scan"] { color: #fff; font-weight: 700; }
.tabbar a[href="#scan"] span { display: grid; place-items: center; width: 44px; height: 44px; margin-top: -18px; border-radius: 50%; background: linear-gradient(180deg, var(--gold-2), var(--gold)); box-shadow: 0 4px 14px rgba(227,38,43,.55), 0 0 0 4px #141416; }
.tabbar a[href="#scan"] span .ic, .tabbar a[href="#scan"].on span .ic { color: #fff; }
.tabbar a[href="#scan"].on::before { display: none; }

/* ספרים */
.barber-head .btn.sm { flex: none; }
.barber-head small { display: block; }
.barber-label { margin: 10px 0 6px; color: var(--muted); font-size: .85rem; }
.barber .actions { margin-top: 12px; }

/* אין תור ואין סריקה: הזמנה ברורה לסריקה */
.scan-hero { display: block; text-align: center; background: radial-gradient(120% 120% at 100% 0%, #2a0b0c 0%, var(--surface) 55%); border-color: #5a1517; }
.scan-hero h3 { margin-bottom: 4px; font-size: 1.2rem; }
.scan-hero .btn { width: 100%; }

/* מסך השיער הטבעי */
.q[data-q="naturalHair"] { border: 0; padding: 0; margin: 0 0 14px; }
.head-note { border-color: rgba(227,38,43,.45); }
.head-note h3 { margin-bottom: 4px; }

@media (prefers-reduced-motion: reduce) { .ba-scan { animation: none; display: none; } }

/* אזור התוכן לעולם לא מקבל עיצוב של כפתור "חזרה", גם אם נטענה גרסה ישנה של הקוד */
#view, #view.back { background: none; border: 0; width: 100%; height: auto; border-radius: 0; font-size: inherit; cursor: auto; }
