/* ============================================================
   ערכת נושא V2 — "עם אופי": פוסטר ישראלי, נייר חם, קווים שחורים,
   כתב יד, אפס גרדיאנטים. עובדת על אותם מסכים בדיוק (אותם class names
   ואותם CSS variables) — לכן אין צורך לגעת באף תבנית.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Karantina:wght@300;400;700&family=Amatic+SC:wght@700&display=swap');

:root {
  --bg: #FAF8F3;
  --card: #FFFFFF;
  --ink: #14181D;
  --sub: #59616C;
  --faint: #98A0AB;
  --line: #E5E1D8;
  --line-strong: #14181D;
  --accent: #1849C6;
  --accent-2: #1849C6;
  --accent-deep: #0F2F80;
  --accent-wash: #E9EEFB;
  --accent-ring: rgba(24, 73, 198, .3);
  --ok: #0E8A4C;
  --ok-deep: #0A5C34;
  --ok-wash: #E5F4EB;
  --warn: #8A6200;
  --warn-wash: #FFF3D6;
  --bad: #CE2B1E;
  --bad-wash: #FBEAE7;
  --plate: #FFD60A;
  --plate-band: #003EA8;
  --r-lg: 14px;
  --r-md: 10px;
  --r-sm: 8px;
  --sh-sm: 2px 2px 0 rgba(20,24,29,.1);
  --sh-md: 4px 4px 0 rgba(20,24,29,.12);
  --sh-lg: 6px 6px 0 rgba(20,24,29,.16);
  --sh-accent: 3px 3px 0 var(--accent-deep);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: "Assistant", "Segoe UI", sans-serif; line-height: 1.6; position: relative; }
body::before { display: none; }
main, header, footer { position: relative; }
a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
.ic { flex-shrink: 0; vertical-align: -3px; }

/* ---------- ניווט ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 18px; background: var(--bg); border-bottom: 2px solid var(--ink); position: sticky; top: 0; z-index: 30; backdrop-filter: none; }
.nav-brand { display: flex; align-items: center; gap: 8px; font-family: "Karantina", "Assistant", sans-serif; font-weight: 700; font-size: 1.75rem; color: var(--ink); letter-spacing: .01em; text-decoration: none; }
.nav-brand svg { stroke: var(--ink); }
.nav-links { display: flex; align-items: center; gap: 14px; font-size: .9rem; font-weight: 700; }
.nav-links a { padding: 4px 2px; border-radius: 0; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.nav-links a:hover { background: none; border-bottom-color: var(--plate); color: var(--ink); }

.wrap { max-width: 44rem; margin: 0 auto; padding: 1.4rem 1.15rem 4rem; }

/* ---------- טיפוגרפיה: פוסטר ---------- */
h1 { font-family: "Karantina", "Assistant", sans-serif; font-weight: 700; font-size: clamp(2.5rem, 7vw, 3.4rem); letter-spacing: .01em; line-height: .95; margin: .8rem 0 .5rem; text-wrap: balance; }
h2 { font-family: "Karantina", "Assistant", sans-serif; font-weight: 700; font-size: 2rem; letter-spacing: .01em; line-height: 1; margin: 1.8rem 0 .7rem; }
.lede { color: var(--sub); font-weight: 300; font-size: 1.05rem; line-height: 1.55; margin: 0 0 1.3rem; }
.num, .price, .stat .n { font-family: "Heebo", sans-serif; font-variant-numeric: tabular-nums; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes popIn { 0% { opacity: 0; transform: scale(.92); } 100% { opacity: 1; transform: scale(1); } }
.card, .how-step, .offer-card, .stat, .hero { animation: rise .4s var(--ease) both; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ---------- משטחים ---------- */
.card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.2rem 1.25rem; box-shadow: var(--sh-md); }
.stack { display: flex; flex-direction: column; gap: 1rem; }

/* ---------- כפתורים: שטוחים עם צל קשיח ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 10px; min-height: 54px; padding: 0 1.6rem; font-family: inherit; font-weight: 800; font-size: 1.02rem; cursor: pointer; border: 2px solid var(--ink); background: var(--card); color: var(--ink); text-decoration: none; box-shadow: 3px 3px 0 var(--ink); transition: transform .08s ease, box-shadow .08s ease; }
.btn:hover { transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ink); filter: none; }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn:focus-visible { outline: 3px solid var(--accent-ring); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent-deep); box-shadow: 3px 3px 0 var(--accent-deep); }
.btn-primary:hover { box-shadow: 4px 4px 0 var(--accent-deep); filter: none; }
.btn-primary:active { box-shadow: 0 0 0 var(--accent-deep); }
.btn-secondary { background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn-ghost { background: var(--plate); color: var(--ink); border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.btn-ghost:hover { background: var(--plate); }
.btn-full { width: 100%; }
.btn-sm { min-height: 44px; font-size: .9rem; padding: 0 1.1rem; box-shadow: 2px 2px 0 var(--ink); }
.btn-sm.btn-primary { box-shadow: 2px 2px 0 var(--accent-deep); }
.btn-link { background: none; border: none; box-shadow: none; color: var(--sub); font-family: inherit; font-size: .88rem; cursor: pointer; margin-top: .5rem; width: 100%; }
.btn-link:hover, .btn-link:active { transform: none; box-shadow: none; }
.btn[disabled] { opacity: .5; pointer-events: none; }

/* ---------- קלטים ---------- */
.input { width: 100%; border: 2px solid var(--ink); border-radius: 8px; background: var(--card); min-height: 52px; padding: 0 1rem; font-family: inherit; font-size: 1.02rem; color: var(--ink); margin-bottom: .75rem; box-shadow: none; transition: none; }
.input::placeholder { color: var(--faint); font-weight: 300; }
.input:focus { outline: 3px solid var(--accent-ring); border-color: var(--ink); box-shadow: none; }
textarea.input { padding: .85rem 1rem; min-height: 84px; resize: vertical; }
.input-code { font-family: "Heebo", sans-serif; font-size: 1.7rem; letter-spacing: .55em; text-align: center; font-weight: 800; }
.input-plate { text-align: center; font-family: "Heebo", sans-serif; font-weight: 800; font-size: 1.35rem; letter-spacing: 3px; background: var(--plate); border: 2px solid var(--ink); color: #101820; margin-bottom: 0; box-shadow: none; }
.input-plate::placeholder { color: rgba(16,24,32,.45); font-weight: 700; }
.input-plate:focus { border-color: var(--ink); outline: 3px solid rgba(255,214,10,.5); box-shadow: none; }
.label { font-size: .85rem; font-weight: 800; color: var(--ink); margin: 0 0 .35rem; display: block; }
.hint { font-size: .8rem; color: var(--faint); margin: -.2rem 0 .7rem; }
.req-badge { background: var(--ink); color: var(--plate); border-radius: 4px; padding: 1px 8px; font-size: .67rem; font-weight: 800; margin-inline-start: 6px; vertical-align: 1px; }

/* ---------- צ'יפים ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: .8rem; }
.chip { border: 1.5px solid var(--ink); border-radius: 6px; padding: 7px 14px; font-size: .88rem; font-weight: 600; cursor: pointer; background: var(--card); color: var(--ink); font-family: inherit; box-shadow: none; transition: background .1s ease; }
.chip:hover { border-color: var(--ink); color: var(--ink); background: var(--bg); }
.chip.on { background: var(--ink); border-color: var(--ink); color: var(--plate); font-weight: 700; }
span.chip { cursor: default; }

/* ---------- באדג'ים ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; border-radius: 6px; padding: 3px 10px; font-size: .74rem; font-weight: 800; box-shadow: none; border: 1.5px solid; }
.badge-ok { background: var(--ok-wash); color: var(--ok); border-color: var(--ok); }
.badge-blue { background: var(--accent-wash); color: var(--accent-deep); border-color: var(--accent); }
.badge-warn { background: var(--warn-wash); color: var(--warn); border-color: #C89B18; }
.badge-bad { background: var(--bad-wash); color: var(--bad); border-color: var(--bad); }

/* ---------- לוחית ---------- */
.plate { direction: ltr; display: inline-flex; border: 2px solid var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 3px 3px 0 rgba(20,24,29,.2); vertical-align: middle; }
.plate .il { background: var(--plate-band); color: #fff; font-family: "Heebo", sans-serif; font-weight: 700; font-size: .6rem; display: flex; align-items: center; padding: 0 6px; }
.plate .num { background: var(--plate); color: #101820; font-family: "Heebo", sans-serif; font-weight: 800; font-size: 1.15rem; letter-spacing: 2px; padding: 5px 13px; box-shadow: none; }
.plate.plate-lg .num { font-size: 1.65rem; padding: 9px 20px; letter-spacing: 3px; }

/* ---------- כרטיס אימות ---------- */
.verify-card { border: 2px solid var(--ok); border-radius: 10px; background: var(--ok-wash); padding: 1rem 1.05rem; box-shadow: none; animation: popIn .3s var(--ease) both; }
.verify-title { display: flex; align-items: center; gap: 7px; color: var(--ok); font-size: .84rem; font-weight: 800; margin-bottom: .4rem; }
.kv { display: flex; justify-content: space-between; font-size: .93rem; padding: 2px 0; }
.kv .k { color: var(--sub); font-weight: 300; }
.kv .v { font-weight: 700; }

/* ---------- שרשרת ---------- */
.chain { display: flex; align-items: flex-start; flex-wrap: wrap; gap: 4px; row-gap: 12px; }
.chain-node { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.chain-ava { width: 46px; height: 46px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: .82rem; background: var(--card); color: var(--ink); border: 2px solid var(--ink); box-shadow: none; }
.chain-ava.buyer { background: var(--accent); color: #fff; border-color: var(--accent-deep); box-shadow: none; }
.chain-ava.seller { background: var(--plate); color: var(--ink); border: 2px dashed var(--ink); box-shadow: none; }
.chain-name { font-size: .68rem; color: var(--ink); font-weight: 700; max-width: 66px; text-align: center; line-height: 1.25; }
.chain-sep { color: var(--faint); margin: 14px 2px 0; font-weight: 800; }
.chain-box { background: var(--bg); border: 1.5px dashed var(--ink); border-radius: 10px; padding: .85rem .95rem; margin: .9rem 0; }
.chain-box .cb-title { font-size: .7rem; font-weight: 800; color: var(--ink); letter-spacing: .08em; margin-bottom: .55rem; }
.chain-note { font-size: .76rem; color: var(--faint); margin-top: .5rem; }

/* ---------- סטטיסטיקות ---------- */
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; margin: 1rem 0; }
.stat { background: var(--card); border: 2px solid var(--ink); border-radius: 10px; padding: .85rem .95rem; text-align: center; box-shadow: var(--sh-sm); }
.stat .n { font-weight: 800; font-size: 1.4rem; color: var(--accent); }
.stat .t { font-size: .74rem; color: var(--sub); line-height: 1.35; margin-top: .15rem; }

/* ---------- כרטיסי הצעות ---------- */
.offer-card { background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 1.15rem 1.2rem; box-shadow: var(--sh-md); transition: transform .1s ease, box-shadow .1s ease; }
.offer-card:hover { transform: translate(-1px, -1px); box-shadow: var(--sh-lg); }
.offer-card.blocked { background: var(--bad-wash); border-color: var(--bad); box-shadow: none; }
.offer-card.blocked:hover { transform: none; }
.offer-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.offer-title { font-family: "Karantina", "Assistant", sans-serif; font-weight: 700; font-size: 1.65rem; line-height: 1; letter-spacing: .01em; }
.offer-sub { font-size: .84rem; color: var(--sub); }
.price { font-weight: 800; font-size: 1.25rem; }

/* ---------- הודעות ---------- */
.err { color: var(--bad); font-size: .88rem; min-height: 1.2em; margin-top: .4rem; }
.notice { border: 1.5px solid; border-radius: 10px; padding: .9rem 1.05rem; font-size: .9rem; margin: .8rem 0; display: flex; gap: 10px; align-items: flex-start; box-shadow: none; }
.notice .ic { margin-top: 2px; }
.notice-warn { background: var(--warn-wash); color: var(--warn); border-color: #C89B18; }
.notice-ok { background: var(--ok-wash); color: var(--ok-deep); border-color: var(--ok); }
.notice-blue { background: var(--accent-wash); color: var(--accent-deep); border-color: var(--accent); }

.footer { max-width: 44rem; margin: 0 auto; padding: 1.5rem 1.15rem 2.5rem; border-top: 2px solid var(--ink); color: var(--sub); font-size: .85rem; text-align: center; }
.footer-links { margin-top: .4rem; }
.footer-note { margin-top: .6rem; font-size: .74rem; color: var(--faint); }

/* ---------- מודאל ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(20,24,29,.55); display: flex; align-items: flex-end; justify-content: center; z-index: 50; backdrop-filter: none; }
.modal-bg[hidden] { display: none; }
[hidden] { display: none !important; }
@media (min-width: 600px) { .modal-bg { align-items: center; } }
.modal { background: var(--bg); border: 2px solid var(--ink); border-bottom: none; border-radius: 18px 18px 0 0; padding: 1.6rem 1.4rem 2rem; width: 100%; max-width: 420px; position: relative; box-shadow: none; animation: rise .25s var(--ease) both; }
@media (min-width: 600px) { .modal { border-radius: 18px; border-bottom: 2px solid var(--ink); } }
.modal-title { font-family: "Karantina", "Assistant", sans-serif; font-weight: 700; font-size: 1.9rem; letter-spacing: .01em; margin-bottom: .15rem; }
.modal-sub { color: var(--sub); font-size: .88rem; font-weight: 300; margin-bottom: 1rem; }
.modal-close { position: absolute; top: 12px; left: 12px; background: var(--card); border: 2px solid var(--ink); width: 32px; height: 32px; border-radius: 8px; font-size: .85rem; font-weight: 800; color: var(--ink); cursor: pointer; }
.dev-code { background: var(--warn-wash); border: 1.5px dashed #C89B18; color: var(--warn); border-radius: 8px; padding: .5rem .8rem; font-size: .85rem; text-align: center; margin-bottom: .6rem; font-weight: 700; }

/* ---------- Hero ---------- */
.hero { text-align: right; padding: 1.4rem 0 .8rem; }
.hero .trust-line { display: inline-flex; align-items: center; gap: 7px; background: var(--ink); color: var(--plate); border-radius: 4px; padding: 5px 14px; font-size: .8rem; font-weight: 800; margin-bottom: 1rem; box-shadow: none; transform: rotate(-1.2deg); }
.hero h1 { font-size: clamp(2.9rem, 9vw, 3.6rem); }
.hero h1 .accent-word { color: var(--accent); box-shadow: inset 0 -10px 0 rgba(255,214,10,.55); }
.hero .lede { max-width: 21rem; margin-inline: 0; }
.hero-plate { margin: 1.2rem 0 .2rem; display: flex; justify-content: flex-start; }
.hero-plate .plate { transform: rotate(-2.5deg); }
.hero + * { clear: both; }
.hero .hint { text-align: right !important; font-family: "Amatic SC", "Assistant", cursive; font-weight: 700; font-size: 1.25rem; color: var(--accent); }
.hero-actions { display: flex; flex-direction: column; gap: .7rem; max-width: 22.5rem; margin: 1.4rem 0 0; }

/* ---------- How: רשימה מקווקוות ---------- */
.how { display: grid; gap: 0; margin-top: .6rem; }
.how-step { display: flex; gap: 13px; align-items: baseline; background: none; border: none; border-bottom: 1.5px dashed var(--line); border-radius: 0; padding: .7rem .1rem; box-shadow: none; }
.how-step:last-child { border-bottom: none; }
.how-num { flex-shrink: 0; width: auto; height: auto; border-radius: 0; background: none; color: var(--accent); display: block; font-family: "Karantina", sans-serif; font-weight: 700; font-size: 1.7rem; box-shadow: none; }
.how-step b { display: block; letter-spacing: 0; }
.how-step span { font-size: .9rem; color: var(--sub); font-weight: 300; }

.list-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: .8rem 0; border-bottom: 1.5px dashed var(--line); flex-wrap: wrap; }
.list-row:last-child { border-bottom: none; }

table.tbl { width: 100%; border-collapse: collapse; font-size: .85rem; }
.tbl th { text-align: right; color: var(--faint); font-size: .7rem; letter-spacing: .04em; border-bottom: 2px solid var(--ink); padding: .45rem .5rem; }
.tbl td { border-bottom: 1px solid var(--line); padding: .55rem .5rem; vertical-align: top; }
.tbl-scroll { overflow-x: auto; }

.avatar-lg { width: 70px; height: 70px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 1.45rem; border: 2px solid var(--accent-deep); box-shadow: none; margin: 0 auto .6rem; }

/* ============================================================
   V2 — כיסוי המסכים שנוספו אחרי carapp-v1: דף הרכב, הסיור, שרשרת
   האמון, המוסך והניהול. אותה שפה: מסגרת שחורה, צל קשיח, אפס גרדיאנט.
   ============================================================ */

/* ---------- ניווט: פעולות + מובייל ---------- */
.nav-actions { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.nav-links { min-width: 0; }
.nav-links a, .nav-actions a, .nav-tour { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.nav-actions a { padding: 0 10px; border-radius: 6px; color: var(--ink); text-decoration: none; border: 2px solid transparent; }
.nav-actions a:hover { border-color: var(--ink); }
.nav-admin { font-weight: 800; }
.nav-tour {
  font-family: inherit; font-size: .88rem; font-weight: 800; cursor: pointer;
  padding: 0 12px; border-radius: 6px; border: 2px solid var(--ink);
  background: var(--plate); color: var(--ink); box-shadow: 2px 2px 0 var(--ink);
  transition: transform .08s ease, box-shadow .08s ease;
}
.nav-tour:hover { transform: translate(-1px, -1px); box-shadow: 3px 3px 0 var(--ink); }
.nav-tour:active { transform: translate(1px, 1px); box-shadow: 0 0 0 var(--ink); }
@media (max-width: 560px) {
  .nav { padding: 8px 12px; gap: 6px; }
  .nav-links { gap: 10px; font-size: .84rem; overflow-x: auto; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links > * { flex-shrink: 0; white-space: nowrap; }
  .nav-tour span, .nav-admin span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .nav-tour { padding: 0 10px; }
}

/* ---------- מצב ריק ---------- */
.empty { text-align: center; color: var(--sub); display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 2rem 1.4rem; }
.empty .ic { color: var(--ink); }
.empty-title { font-family: "Karantina", "Assistant", sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1; color: var(--ink); }
.empty-sub { font-size: .88rem; max-width: 34ch; }
.empty .btn { margin-top: .6rem; }

/* ---------- דף הרכב: כותרת ---------- */
.car-hero { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; position: relative; overflow: hidden; }
.car-hero h1 { margin: 0; font-size: clamp(2rem, 7vw, 2.6rem); }
.car-hero .hint { margin: 0; font-family: "Amatic SC", "Assistant", cursive; font-size: 1.15rem; color: var(--sub); }
.car-hero .plate { transform: rotate(-1.5deg); }
.car-body-art { position: absolute; inset-inline-end: -18px; top: 50%; transform: translateY(-50%); color: var(--ink); opacity: .06; pointer-events: none; }
.car-hero.is-ev { background: #F3FBF5; border-color: var(--ok); box-shadow: 4px 4px 0 rgba(14,138,76,.25); }
.car-hero.is-ev .car-body-art { color: var(--ok-deep); opacity: .1; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.badge-ev { background: var(--ok); color: #fff; border-color: var(--ok-deep); }
.val-ok { color: var(--ok); }
.val-bad { color: var(--bad); }
.ok-text { color: var(--ok); }
.hint-lock { display: flex; align-items: center; gap: 6px; margin: .9rem 0 0; padding-top: .8rem; border-top: 1.5px dashed var(--line); }

/* ---------- רצועת המחוונים: גיליון מפרט ---------- */
.spec-strip {
  display: grid; grid-template-columns: repeat(3, 1fr);
  background: var(--card); border: 2px solid var(--ink); border-radius: var(--r-lg);
  overflow: hidden; margin-top: 1rem; box-shadow: var(--sh-md);
}
.spec-tile {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: .9rem .5rem; text-align: center; min-width: 0;
  border-inline-start: 1.5px dashed var(--line); border-bottom: 1.5px dashed var(--line);
}
.spec-tile:nth-child(3n+1) { border-inline-start: none; }
.spec-tile:nth-last-child(-n+3) { border-bottom: none; }
.spec-ic { color: var(--ink); display: flex; }
.spec-label { font-size: .72rem; color: var(--sub); font-weight: 700; }
.spec-value { font-family: "Heebo", sans-serif; font-weight: 800; font-size: 1.02rem; word-break: break-word; }
@media (max-width: 380px) {
  .spec-strip { grid-template-columns: repeat(2, 1fr); }
  .spec-tile:nth-child(3n+1) { border-inline-start: 1.5px dashed var(--line); }
  .spec-tile:nth-child(2n+1) { border-inline-start: none; }
  .spec-tile:nth-last-child(-n+3) { border-bottom: 1.5px dashed var(--line); }
  .spec-tile:nth-last-child(-n+2) { border-bottom: none; }
}

/* ---------- קטגוריות מפרט ---------- */
.group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: .7rem; }
.group-title { display: flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 800; color: var(--ink); letter-spacing: .06em; margin-bottom: 0; }
.group-eye {
  display: inline-flex; align-items: center; gap: 5px; min-height: 44px; padding: 0 10px;
  border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer;
  font-family: inherit; font-size: .78rem; font-weight: 800; color: var(--sub);
}
.group-eye:hover { border-color: var(--ink); color: var(--ink); }
.group-card.group-off { background: var(--bg); border-style: dashed; box-shadow: none; }
.group-card.group-off .list-row, .group-card.group-off .equip { opacity: .45; }
.group-card.group-off .group-eye { color: var(--ink); background: var(--plate); border-color: var(--ink); }
.row-end { display: flex; align-items: center; gap: 6px; }
.row-hidden { opacity: .45; }
.eye {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: none; border-radius: 6px; background: none;
  color: var(--sub); cursor: pointer;
}
.eye:hover { background: var(--plate); color: var(--ink); }
.eye.off { color: var(--faint); position: relative; }
.eye.off::after { content: ""; position: absolute; inset-inline-start: 10px; top: 21px; width: 24px; height: 2px; background: currentColor; transform: rotate(-45deg); }

/* ---------- אבזור, זיהום, שינויים, בעלויות ---------- */
.equip { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: .9rem; padding-top: .9rem; border-top: 1.5px dashed var(--line); }
.equip-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 700; color: var(--ok); background: var(--ok-wash); border: 1.5px solid var(--ok); border-radius: 6px; padding: 4px 9px; }
.equip-chip .ic { color: var(--ok); }
.meter { display: inline-flex; gap: 2px; align-items: center; border: 1.5px solid var(--ink); border-radius: 4px; padding: 2px; }
.meter i { width: 6px; height: 15px; border-radius: 1px; background: var(--line); }
.meter i.on { background: var(--ok); }
.meter i:nth-child(n+6).on { background: #7CB342; }
.meter i:nth-child(n+9).on { background: #E0A200; }
.meter i:nth-child(n+12).on { background: var(--warn); }
.meter i:nth-child(n+14).on { background: var(--bad); }
.meter-legend { display: flex; justify-content: space-between; font-size: .72rem; color: var(--faint); margin-top: 2px; }
.changes { display: flex; flex-wrap: wrap; gap: 6px; margin-top: .9rem; padding-top: .9rem; border-top: 1.5px dashed var(--line); }
.change-chip { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; font-weight: 800; color: var(--warn); background: var(--warn-wash); border: 1.5px solid #C89B18; border-radius: 6px; padding: 4px 9px; }
.recall-flag { align-items: flex-start; }
.owners { display: flex; flex-direction: column; gap: 12px; }
.owner-step { display: flex; align-items: center; gap: 10px; }
.owner-num { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 28px; height: 28px; border-radius: 6px; font-size: .8rem; font-weight: 800; background: var(--plate); color: var(--ink); border: 2px solid var(--ink); }

/* ---------- ספר הרכב ---------- */
.file-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.file-drop {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 104px; padding: 1rem; margin-bottom: .75rem; cursor: pointer;
  border: 2px dashed var(--ink); border-radius: var(--r-md); background: var(--bg);
  color: var(--sub); text-align: center;
}
.file-drop:hover { background: var(--plate); }
.file-input:focus-visible + .file-drop { outline: 3px solid var(--accent-ring); }
.file-drop .ic { color: var(--ink); }
.file-drop-main { font-weight: 800; color: var(--ink); font-size: .95rem; word-break: break-all; }
.file-drop-sub { font-size: .75rem; }
.file-preview { width: 100%; border: 2px solid var(--ink); border-radius: var(--r-md); margin-bottom: .75rem; }
.story-photo { width: 100%; border: 2px solid var(--ink); border-radius: var(--r-md); display: block; }
.story-text { margin: .8rem 0 0; font-size: 1rem; line-height: 1.6; }
.story-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: .6rem; }
.story-actions { display: flex; gap: 4px; }
.story-actions .btn-link, .story-foot .btn-link { width: auto; margin: 0; min-height: 44px; font-size: .82rem; font-weight: 800; }
.btn-link.danger { color: var(--bad); }

/* ---------- המוסך ---------- */
.car-card { margin-top: 1rem; cursor: pointer; transition: transform .1s ease, box-shadow .1s ease; }
.car-card:hover { transform: translate(-1px, -1px); box-shadow: var(--sh-lg); }
.car-card:focus-visible { outline: 3px solid var(--accent-ring); }
.car-card.is-ev { border-color: var(--ok); background: #F6FCF8; }
.car-card-go { color: var(--ink); display: flex; align-items: center; }
.demand { display: flex; align-items: center; gap: 9px; margin-top: .9rem; font-size: .95rem; }
.demand-quiet { color: var(--faint); font-size: .88rem; font-family: "Amatic SC", "Assistant", cursive; font-size: 1.1rem; }
.demand-on { color: var(--ink); font-weight: 700; }
.demand-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ok); border: 2px solid var(--ink); flex-shrink: 0; }
.car-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 1rem; }
.car-actions-end { justify-content: flex-end; }
.car-open { font-size: .88rem; font-weight: 800; color: var(--ink); }
.car-remove { display: flex; align-items: center; gap: 8px; }
.car-remove .btn-link { width: auto; margin: 0; min-height: 44px; }
.car-remove-ask { color: var(--sub); }
.car-remove-confirm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.car-remove-q { font-size: .82rem; color: var(--sub); }
.car-remove-yes { color: var(--bad) !important; font-weight: 800; }

/* ---------- שרשרת אמון: שלוש רמות ---------- */
.chain-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: .6rem; }
.chain-head .cb-title { margin-bottom: 0; }
.chain-ava.reported { background: var(--warn-wash); color: var(--warn); border: 2px dashed #C89B18; }
.chain-ava.gap { background: var(--bg); color: var(--faint); border: 2px dashed var(--line); letter-spacing: 1px; }
.chain-tag { font-size: .72rem; font-weight: 800; color: var(--warn); text-align: center; max-width: 72px; line-height: 1.2; }
.chain-tag.ok { color: var(--ok); }
.chain-title { font-size: .75rem; font-weight: 800; color: var(--accent); text-align: center; max-width: 72px; line-height: 1.2; }
.chain-broad { display: flex; align-items: flex-start; gap: 9px; font-size: .88rem; color: var(--sub); padding: .3rem 0; }
.chain-broad .ic { color: var(--warn); flex-shrink: 0; margin-top: 2px; }

/* ---------- ניהול ---------- */
.admin-actions { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; }
.admin-actions .btn-link { width: auto; margin: 0; font-size: .82rem; font-weight: 800; min-height: 44px; }

/* ============================================================
   הסיור — פוסטר במסך מלא
   ============================================================ */
.tour {
  background: var(--bg); border: 2px solid var(--ink); border-bottom: none;
  border-radius: 18px 18px 0 0; width: 100%; max-width: 560px;
  max-height: 92dvh; display: flex; flex-direction: column; position: relative;
  box-shadow: none; animation: rise .25s var(--ease) both; overflow: hidden;
}
@media (min-width: 600px) { .tour { border-radius: 18px; border-bottom: 2px solid var(--ink); max-height: 88dvh; } }
.tour-top { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; }
.tour-badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 800;
  color: var(--plate); background: var(--ink); border-radius: 4px; padding: 5px 12px;
  transform: rotate(-1deg);
}
.tour .modal-close { position: static; flex: 0 0 auto; width: 44px; height: 44px; }
.tour-track { height: 4px; background: var(--line); margin: 0 16px; border: 1.5px solid var(--ink); border-radius: 2px; overflow: hidden; }
.tour-track-fill { height: 100%; background: var(--accent); transform-origin: right center; transform: scaleX(.125); transition: transform .3s var(--ease); }
.tour-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 1.1rem 1.25rem .5rem; -webkit-overflow-scrolling: touch; }
.tour-step { animation: rise .25s var(--ease) both; }
.tour-h { font-family: "Karantina", "Assistant", sans-serif; font-weight: 700; font-size: 2.1rem; line-height: 1; margin: 0 0 .5rem; }
.tour-p { font-size: .95rem; color: var(--sub); margin: 0 0 1rem; }
.tour-p-sm { font-size: .82rem; margin-top: .8rem; margin-bottom: 0; }
.tour-demo { display: flex; flex-direction: column; gap: 12px; text-align: center; }
.tour-demo > * { text-align: start; }
.tour-demo .card, .tour-demo .offer-card { margin: 0; }
.tour-demo .plate { align-self: center; transform: rotate(-2deg); }
.tour-quote { font-size: .88rem; color: var(--ink); font-weight: 700; margin-top: .6rem; line-height: 1.5; box-shadow: inset 0 -8px 0 rgba(255,214,10,.45); display: inline; }
.tour-quote b { color: var(--accent); font-weight: 800; }
.tour-req-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.tour-req-title { font-family: "Karantina", "Assistant", sans-serif; font-weight: 700; font-size: 1.6rem; line-height: 1; }
.tour-req-sub { font-size: .84rem; color: var(--sub); }
.tour-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: .8rem; }
.tour-gov-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: .9rem; }
.tour-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 0; }
.tour-facts > div { min-width: 0; }
.tour-facts dt { font-size: .75rem; color: var(--faint); font-weight: 700; }
.tour-facts dd { margin: 0; font-size: .9rem; font-weight: 800; }
.tour-block-head { display: flex; align-items: center; gap: 8px; color: var(--bad); font-weight: 800; font-size: .9rem; }
.tour-block-body { font-size: .88rem; color: #7A3A32; margin-top: .3rem; }
.tour-offer-side { display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.tour-offer-extra { margin-top: .3rem; }
.tour-plate-num { font-family: "Heebo", sans-serif; font-weight: 800; direction: ltr; display: inline-block; }
.tour-plate-num.revealed { color: var(--ok); }
.tour-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tour-actions .btn { flex: 1; pointer-events: none; }
.tour-msg { font-size: .88rem; border: 2px solid var(--ink); border-radius: var(--r-md); padding: .7rem .9rem; margin-bottom: 8px; max-width: 88%; }
.tour-msg-out { background: var(--accent); color: #fff; border-color: var(--accent-deep); margin-inline-start: auto; }
.tour-msg-in { background: var(--card); color: var(--ink); }
.tour-msg-by { font-size: .75rem; color: var(--faint); font-weight: 700; }
.tour-reveal { background: var(--card); border: 1.5px dashed var(--ink); border-radius: var(--r-md); padding: .8rem .95rem; display: flex; flex-direction: column; gap: 8px; }
.tour-reveal-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tour-reveal-label { font-size: .75rem; color: var(--faint); font-weight: 800; }
.tour-cta { display: flex; flex-direction: column; gap: 10px; margin-top: 1.1rem; }
.tour-nav {
  flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 2px solid var(--ink); background: var(--bg);
}
/* בלי min-width קשיח: מספר הנקודות גדל עם מספר השלבים, וכפתור נעול-רוחב
   דוחף את עצמו אל מחוץ למסך. הנקודות סופגות את מה שנשאר ונחתכות הן. */
.tour-nav .btn { flex: 0 0 auto; min-width: 0; justify-content: center; }
.tour-dots { display: flex; align-items: center; justify-content: center; gap: 7px;
  flex: 1 1 auto; min-width: 0; overflow: hidden; }
.tour-dot { width: 8px; height: 8px; border-radius: 2px; background: var(--card); border: 1.5px solid var(--ink); transition: background .2s var(--ease), transform .2s var(--ease); }
.tour-dot.on { background: var(--plate); transform: scale(1.35); }
.ic.flip { transform: scaleX(-1); }

@media (prefers-reduced-motion: reduce) { .tour, .tour-step { animation: none; } .tour-track-fill { transition: none; } }

/* כפתור מושבת: בערכה הזאת opacity לבד לא מספיק — הצהוב עדיין צועק. */
.btn[disabled] { opacity: 1; background: var(--bg); color: var(--faint); border-color: var(--line); box-shadow: none; transform: none; }
.btn[disabled] .ic { color: var(--faint); }
/* השורה האחרונה לפני רצועת האבזור/הסולם — אחרת נוצר קו מקווקו כפול */
.list-row:has(+ .equip), .list-row:has(+ .meter-legend), .list-row:has(+ .changes) { border-bottom: none; }
/* כותרת ארוכה בקרנטינה דחפה את החץ לשורה משלו */
.car-card .offer-head { flex-wrap: nowrap; }
.car-card .offer-head > div:first-child { min-width: 0; }
.car-card-go { flex-shrink: 0; }
@media (max-width: 400px) { .tour-nav { gap: 8px; padding-inline: 12px; } .tour-dots { gap: 5px; } }

/* ---------- לינקים בפוטר: פריטים נפרדים, לא מחרוזת אחת ---------- */
.footer-links {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0 14px; margin-top: .5rem;
}
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; }
.footer-out { color: var(--sub) !important; }
/* ---------- כרטיס הזהות באזור האישי ---------- */
.me-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.me-id { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.me-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.me-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.me-actions .btn-link { width: auto; margin: 0; min-height: 44px; }
