/* ============================================================
   בדיקת רכב · Epic UI
   ============================================================ */
:root {
    --bg-0: #05070f;
    --bg-1: #090d1c;
    --bg-2: #0e162b;
    --ink: #eef2fb;
    --ink-soft: #aeb7d0;
    --ink-mut: #6d768f;
    --gold: #ffcf5c;
    --gold-2: #f5b942;
    --gold-deep: #b98a1f;
    --ok: #34d399;
    --bad: #f87171;
    --line: rgba(255, 255, 255, .08);
    --card: rgba(255, 255, 255, .038);
    --card-hi: rgba(255, 255, 255, .06);
    --glass-brd: rgba(255, 255, 255, .1);
    --shadow: 0 24px 60px -22px rgba(0, 0, 0, .8);
    --r-lg: 22px;
    --r-md: 16px;
    --r-sm: 12px;
    --ff: 'Heebo', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden;
    font-size: calc(16px * var(--a11y-font-scale, 1)); }

body {
    font-family: var(--ff);
    color: var(--ink);
    background: var(--bg-0);
    line-height: 1.6;
    min-height: 100dvh;
    overflow-x: hidden;
    position: relative;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---------------- Aurora background ---------------- */
.aurora {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    background:
        radial-gradient(1200px 700px at 80% -10%, #142046 0%, transparent 60%),
        radial-gradient(1000px 600px at 10% 0%, #10192f 0%, transparent 55%),
        linear-gradient(180deg, #070b16 0%, #05070f 60%, #04060d 100%);
}
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(70px);
    opacity: .5;
    mix-blend-mode: screen;
    animation: float 22s ease-in-out infinite;
}
.b1 { width: 46vw; height: 46vw; top: -12%; right: -8%;
    background: radial-gradient(circle, rgba(255,196,72,.55), transparent 70%); }
.b2 { width: 40vw; height: 40vw; bottom: -14%; left: -10%;
    background: radial-gradient(circle, rgba(56,120,255,.5), transparent 70%);
    animation-delay: -7s; }
.b3 { width: 34vw; height: 34vw; top: 40%; left: 55%;
    background: radial-gradient(circle, rgba(52,211,153,.32), transparent 70%);
    animation-delay: -13s; }
@keyframes float {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(4%, 6%) scale(1.08); }
    66% { transform: translate(-5%, -4%) scale(.94); }
}
.grid-overlay {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(120% 90% at 50% 0%, #000 30%, transparent 78%);
}

/* ---------------- Top bar ---------------- */
.topbar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 20px clamp(16px, 4vw, 34px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}
.brand { display: flex; align-items: center; gap: 11px; font-size: 1.15rem; letter-spacing: .2px; }
.brand-text b { color: var(--gold); font-weight: 800; }
.brand-mark {
    display: grid; place-items: center;
    width: 40px; height: 40px; border-radius: 12px;
    color: #10131c;
    background: linear-gradient(145deg, var(--gold), var(--gold-2));
    box-shadow: 0 8px 20px -6px rgba(255,196,72,.55), inset 0 1px 0 rgba(255,255,255,.6);
}
.live-pill {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: .78rem; color: var(--ink-soft);
    padding: 7px 13px; border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    backdrop-filter: blur(8px);
}
.live-pill i {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--ok);
    box-shadow: 0 0 0 0 rgba(52,211,153,.6);
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(52,211,153,.55); }
    70% { box-shadow: 0 0 0 8px rgba(52,211,153,0); }
    100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); }
}

main { max-width: var(--max); margin: 0 auto; padding: 0 clamp(16px, 4vw, 34px) 60px; }

/* ---------------- Hero ---------------- */
.hero { text-align: center; padding: clamp(28px, 7vw, 78px) 0 34px; }
.eyebrow {
    font-size: .82rem; letter-spacing: .8px; color: var(--gold);
    text-transform: none; margin-bottom: 18px; font-weight: 600;
    opacity: .9;
}
.hero h1 {
    font-size: clamp(2rem, 5.6vw, 3.7rem);
    font-weight: 800; line-height: 1.12; letter-spacing: -.5px;
}
.grad {
    background: linear-gradient(100deg, var(--gold) 0%, #ffe6a3 40%, var(--gold-2) 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
    max-width: 640px; margin: 20px auto 0;
    color: var(--ink-soft); font-size: clamp(1rem, 2.2vw, 1.15rem);
}

/* ---------------- Search / plate ---------------- */
.search {
    display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
    margin: 34px auto 0; max-width: 560px;
}
.plate {
    flex: 1 1 320px;
    display: flex; align-items: stretch;
    background: #f4d000;
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 14px 34px -10px rgba(244,208,0,.4), inset 0 0 0 3px rgba(0,0,0,.85);
    position: relative;
    transition: transform .18s ease, box-shadow .18s ease;
}
.plate:focus-within {
    transform: translateY(-1px);
    box-shadow: 0 18px 42px -10px rgba(244,208,0,.55), inset 0 0 0 3px #000, 0 0 0 4px rgba(255,207,92,.35);
}
.plate-il {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: #0033a0; color: #fff; padding: 0 12px; gap: 2px;
    min-width: 46px;
}
.plate-il .stars { font-size: .6rem; color: #f4d000; letter-spacing: -1px; line-height: 1; }
.plate-il .il { font-size: .8rem; font-weight: 800; letter-spacing: 1px; }
.plate input {
    flex: 1 1 auto; min-width: 0; border: 0; background: transparent; outline: none;
    color: #0a0a0a; text-align: center;
    font-family: var(--ff);
    font-weight: 800; font-size: clamp(1.5rem, 5vw, 2rem);
    letter-spacing: 4px;
    padding: 14px 10px;
}
.plate input::placeholder { color: rgba(0,0,0,.32); font-weight: 700; letter-spacing: 3px; }

.go {
    position: relative;
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    padding: 0 26px; min-height: 62px; flex: 0 0 auto;
    border: 0; border-radius: 14px; cursor: pointer;
    font-family: var(--ff); font-weight: 800; font-size: 1.08rem;
    color: #17130a;
    background: linear-gradient(145deg, #ffd968, var(--gold-2));
    box-shadow: 0 14px 30px -10px rgba(255,196,72,.6), inset 0 1px 0 rgba(255,255,255,.55);
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.go:hover { transform: translateY(-2px); filter: brightness(1.05); }
.go:active { transform: translateY(0); }
.go[disabled] { cursor: progress; }
.go[disabled] .go-label, .go[disabled] .go-ic { opacity: 0; }
.go-spinner {
    position: absolute; width: 22px; height: 22px; border-radius: 50%;
    border: 2.5px solid rgba(0,0,0,.25); border-top-color: #1a1206;
    opacity: 0; animation: spin .7s linear infinite;
}
.go[disabled] .go-spinner { opacity: 1; }
@keyframes spin { to { transform: rotate(360deg); } }

.hint { margin-top: 16px; color: var(--ink-mut); font-size: .85rem; }
.hint.err { color: var(--bad); }

/* ---------------- היסטוריית חיפושים ---------------- */
.recents { max-width: 560px; margin: 20px auto 0; text-align: start; }
.recents[hidden] { display: none; }
.recents-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.recents-title { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-size: .84rem; font-weight: 600; }
.recents-title svg { color: var(--gold); opacity: .9; }
.recents-clear {
    border: 0; cursor: pointer; font-family: var(--ff);
    color: var(--ink-mut); font-size: .8rem; font-weight: 600;
    background: transparent; padding: 4px 8px; border-radius: 8px;
    transition: color .15s ease, background .15s ease;
}
.recents-clear:hover { color: var(--bad); background: rgba(248,113,113,.1); }
.recents-list { display: flex; flex-wrap: wrap; gap: 9px; }
.recent-chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 8px 13px; border-radius: 12px; cursor: pointer;
    font-family: var(--ff);
    background: rgba(255,255,255,.045); border: 1px solid var(--line);
    color: var(--ink); transition: transform .15s ease, border-color .15s ease, background .15s ease;
    max-width: 100%;
}
.recent-chip:hover { transform: translateY(-2px); border-color: rgba(255,196,72,.4); background: rgba(255,196,72,.08); }
.recent-chip .rc-plate {
    font-weight: 800; letter-spacing: 1px; direction: ltr;
    background: #f4d000; color: #111; border-radius: 6px; padding: 3px 8px; font-size: .9rem;
    box-shadow: inset 0 0 0 1.5px rgba(0,0,0,.75);
}
.recent-chip .rc-label { color: var(--ink-soft); font-size: .84rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }

/* ---------------- Results ---------------- */
.results { margin-top: 6px; }
.results:empty { margin: 0; }

/* מצב סריקה */
.scanning {
    display: flex; flex-direction: column; align-items: center; gap: 20px;
    padding: 56px 0;
    text-align: center;
}
.scan-ring {
    width: 92px; height: 92px; border-radius: 50%; position: relative;
    background: conic-gradient(from 0deg, transparent 0 60%, var(--gold) 100%);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 6px));
    animation: spin 1s linear infinite;
}
.scan-ring::after {
    content: ''; position: absolute; inset: 20px; border-radius: 50%;
}
.scan-txt { color: var(--ink-soft); font-weight: 600; letter-spacing: .3px; }
.scan-plate { color: var(--gold); font-weight: 800; direction: ltr; display: inline-block; }

/* כרטיס ראש התוצאה */
.result-head {
    position: relative; overflow: hidden;
    border-radius: var(--r-lg);
    padding: 26px clamp(20px, 4vw, 34px);
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(255,196,72,.16), transparent 55%),
        linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.02));
    border: 1px solid var(--glass-brd);
    box-shadow: var(--shadow);
    display: flex; flex-wrap: wrap; align-items: center; gap: 22px;
    margin-bottom: 26px;
}
.rh-main { flex: 1 1 260px; min-width: 0; }
.rh-title { font-size: clamp(1.5rem, 4vw, 2.1rem); font-weight: 800; line-height: 1.15; }
.rh-sub { color: var(--ink-soft); margin-top: 6px; font-size: 1rem; }
.rh-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tag {
    font-size: .82rem; font-weight: 600; color: var(--ink-soft);
    padding: 5px 12px; border-radius: 999px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line);
}
.tag.gold { color: #ffe4a8; border-color: rgba(255,196,72,.32); background: rgba(255,196,72,.1); }
.rh-plate {
    flex: 0 0 auto;
    display: flex; align-items: center; overflow: hidden;
    background: #f4d000; color: #0a0a0a; border-radius: 12px;
    box-shadow: inset 0 0 0 3px #000;
    font-weight: 800; font-size: 1.5rem; letter-spacing: 3px; direction: ltr;
}
.rh-plate .il { background: #0033a0; color: #fff; font-size: .8rem; letter-spacing: 1px; padding: 14px 8px; align-self: stretch; display: grid; place-items: center; }
.rh-plate .num { padding: 12px 16px; }

/* מקטע */
.block { margin-bottom: 30px; }
.section-title {
    display: flex; align-items: center; gap: 14px;
    font-size: 1.2rem; font-weight: 800; color: var(--gold);
    margin-bottom: 18px; letter-spacing: .2px;
}
/* רווח נדיב בין מקטעי התוצאה */
.results .section-title { margin-top: 46px; }
.results .result-head + .section-title { margin-top: 8px; }
.section-title .ttl-ic {
    display: grid; place-items: center; width: 30px; height: 30px;
    color: var(--gold);
}
.section-title::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, rgba(255,196,72,.5), transparent);
}
.section-title .muted { font-size: .8rem; color: var(--ink-mut); font-weight: 500; }

/* רשת כרטיסי נתון */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.cell {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 16px 18px;
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
    opacity: 0; transform: translateY(14px);
}
.cell.in { opacity: 1; transform: none; }
.cell:hover { transform: translateY(-3px); border-color: rgba(255,196,72,.35); background: var(--card-hi); }
.cell .k { color: var(--ink-mut); font-size: .82rem; margin-bottom: 6px; }
.cell .val { font-size: 1.32rem; font-weight: 700; text-align: start; word-break: break-word; }
.cell.wide { grid-column: 1 / -1; }
.cell.hl { border-color: rgba(255,196,72,.4); background: linear-gradient(160deg, rgba(255,196,72,.12), rgba(255,196,72,.03)); }
.cell.hl .val { color: var(--gold); }

/* גייג' עגול (זיהום / בטיחות / תוקף) */
.gauges { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.gauge {
    background: var(--card); border: 1px solid var(--line);
    border-radius: var(--r-md); padding: 22px 18px;
    display: flex; align-items: center; gap: 18px;
    opacity: 0; transform: translateY(14px); transition: .2s ease;
}
.gauge.in { opacity: 1; transform: none; }
.dial { --p: 0; --c: var(--gold); position: relative; width: 88px; height: 88px; flex: 0 0 auto; }
.dial svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.dial .track { fill: none; stroke: rgba(255,255,255,.1); stroke-width: 6.5; }
.dial .fill { fill: none; stroke: var(--c); stroke-width: 6.5; stroke-linecap: round;
    stroke-dasharray: var(--circ); stroke-dashoffset: var(--circ);
    transition: stroke-dashoffset 1.1s cubic-bezier(.2,.8,.2,1); }
.dial .center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.dial .center b { font-size: 1.5rem; font-weight: 800; line-height: 1; }
.dial .center small { font-size: .66rem; color: var(--ink-mut); }
.gauge .meta .g-title { font-weight: 700; font-size: 1.02rem; }
.gauge .meta .g-desc { color: var(--ink-soft); font-size: .84rem; margin-top: 4px; }

/* מד תוקף רישוי (בר) */
.license {
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
    padding: 22px clamp(18px, 3vw, 26px); margin-bottom: 14px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px;
}
.license .lic-days { display: flex; align-items: baseline; gap: 8px; }
.license .lic-days b { font-size: 2.6rem; font-weight: 800; }
.license .lic-days span { color: var(--ink-soft); font-weight: 600; }
.license .lic-right { flex: 1 1 240px; min-width: 200px; }
.license .lic-label { color: var(--ink-soft); font-size: .9rem; margin-bottom: 10px; }
/* גרדיאנט: ירוק (תחילת השנה, ימין) -> כתום -> אדום (מועד חידוש, שמאל).
   ה-i הוא מסכה כהה על החלק שעוד לא חלף (לכיוון החידוש) - נחשף ככל שמתקרבים. */
.bar {
    height: 13px; border-radius: 999px; overflow: hidden; position: relative;
    background: linear-gradient(to left, var(--ok) 0%, var(--ok) 40%, var(--gold) 72%, #ef4444 100%);
}
/* בשפות LTR (אנגלית/ספרדית/צרפתית) התוויות מתהפכות - התחלת שנה משמאל,
   חידוש מימין - אז הגרדיאנט חייב להתהפך ל-to right כדי להתאים להן. */
[dir="ltr"] .bar {
    background: linear-gradient(to right, var(--ok) 0%, var(--ok) 40%, var(--gold) 72%, #ef4444 100%);
}
/* מאפיינים לוגיים: המסכה (החלק שטרם חלף) והסמן מתהפכים אוטומטית לפי כיוון */
.bar > i {
    position: absolute; top: 0; bottom: 0; inset-inline-end: 0; width: 0;
    background: rgba(6, 10, 20, .72);
    border-inline-start: 2px solid rgba(255,255,255,.65);
    transition: width 1.1s cubic-bezier(.2,.8,.2,1);
}
.license .lic-date { text-align: center; }
.license .lic-date .d { font-size: 1.4rem; font-weight: 800; color: var(--gold); direction: ltr; }
.license.expired .lic-days b { color: var(--bad); }

/* צ'יפים של אבזור בטיחות */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-flex; align-items: center; gap: 9px;
    padding: 11px 15px; border-radius: 13px;
    background: var(--card); border: 1px solid var(--line);
    font-size: .95rem; font-weight: 600;
    opacity: 0; transform: translateY(10px) scale(.98); transition: .22s ease;
}
.chip.in { opacity: 1; transform: none; }
.chip .mk { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; flex: 0 0 auto; }
.chip.on { color: var(--ink); border-color: rgba(52,211,153,.35); background: rgba(52,211,153,.08); }
.chip.on .mk { background: rgba(52,211,153,.2); color: var(--ok); }
.chip.off { color: var(--ink-mut); }
.chip.off .mk { background: rgba(255,255,255,.06); color: var(--ink-mut); }

/* כרטיס תו נכה */
.disabled-card {
    display: flex; align-items: center; gap: 18px;
    padding: 20px 22px; border-radius: var(--r-lg);
    border: 1px solid var(--glass-brd);
    background: linear-gradient(160deg, rgba(56,120,255,.14), rgba(255,255,255,.02));
}
.disabled-card.none { background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); }
.disabled-card .dc-ic {
    width: 54px; height: 54px; border-radius: 14px; flex: 0 0 auto;
    display: grid; place-items: center; color: #fff;
    background: linear-gradient(145deg, #4d8bff, #2f6bff);
    box-shadow: 0 10px 22px -8px rgba(56,120,255,.7);
}
.disabled-card.none .dc-ic { background: rgba(255,255,255,.07); color: var(--ink-mut); box-shadow: none; }
.disabled-card .dc-title { font-weight: 800; font-size: 1.12rem; }
.disabled-card .dc-desc { color: var(--ink-soft); font-size: .9rem; margin-top: 3px; }

/* טיפים מקצועיים */
.tips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tip {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 18px; border-radius: var(--r-md);
    background: var(--card); border: 1px solid var(--line);
    opacity: 0; transform: translateY(12px); transition: .22s ease;
}
.tip.in { opacity: 1; transform: none; }
.tip:hover { border-color: rgba(255,196,72,.3); background: var(--card-hi); }
.tip.urgent { border-color: rgba(255,196,72,.42); background: linear-gradient(160deg, rgba(255,196,72,.12), rgba(255,196,72,.03)); }
.tip-ic {
    flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px;
    display: grid; place-items: center; color: var(--gold);
    background: rgba(255,196,72,.12); border: 1px solid rgba(255,196,72,.22);
}
.tip.urgent .tip-ic { color: #17130a; background: linear-gradient(145deg, var(--gold), var(--gold-2)); border: 0; }
.tip-title { font-weight: 700; font-size: 1.02rem; margin-bottom: 4px; }
.tip-text { color: var(--ink-soft); font-size: .9rem; line-height: 1.65; }

/* מצב "לא נמצא" / שגיאה */
.notice {
    text-align: center; padding: 48px 24px;
    border: 1px solid var(--glass-brd); border-radius: var(--r-lg);
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
}
.notice .n-ic {
    width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 18px;
    display: grid; place-items: center; color: var(--gold);
    background: rgba(255,196,72,.12); border: 1px solid rgba(255,196,72,.3);
}
.notice h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 8px; }
.notice p { color: var(--ink-soft); max-width: 480px; margin: 0 auto; }

/* ---------------- FAQ ---------------- */
.faq { margin-top: 56px; }
.faq .section-title { justify-content: center; font-size: 1.9rem; }
.faq .section-title::after, .faq h2.section-title::before { display: none; }
.faq-list { max-width: 780px; margin: 8px auto 0; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid var(--line); border-radius: var(--r-md);
    background: var(--card); overflow: hidden;
    transition: border-color .2s ease, background .2s ease;
}
.faq-item[open] { border-color: rgba(255,196,72,.3); background: var(--card-hi); }
.faq-item summary {
    list-style: none; cursor: pointer; user-select: none;
    display: flex; align-items: center; gap: 14px;
    padding: 18px 20px; font-weight: 700; font-size: 1.08rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item .q-text { flex: 1; }
.q-ic { position: relative; width: 18px; height: 18px; flex: 0 0 auto; }
.q-ic::before, .q-ic::after {
    content: ''; position: absolute; background: var(--gold); border-radius: 2px;
    transition: transform .25s ease, opacity .25s ease;
}
.q-ic::before { top: 8px; left: 0; right: 0; height: 2px; }
.q-ic::after { left: 8px; top: 0; bottom: 0; width: 2px; }
.faq-item[open] .q-ic::after { transform: scaleY(0); opacity: 0; }
.a-wrap {
    display: grid; grid-template-rows: 0fr;
    transition: grid-template-rows .3s ease;
}
.faq-item[open] .a-wrap { grid-template-rows: 1fr; }
.a-wrap > p {
    overflow: hidden;
    color: var(--ink-soft); padding: 0 20px;
    line-height: 1.75;
}
.faq-item[open] .a-wrap > p { padding-bottom: 20px; }

/* ---------------- Footer ---------------- */
.site-footer {
    max-width: var(--max); margin: 40px auto 0;
    padding: 28px clamp(16px, 4vw, 34px) 46px;
    border-top: 1px solid var(--line);
    color: var(--ink-mut); font-size: .85rem; text-align: center;
}
.site-footer p { max-width: 760px; margin: 0 auto; }
.site-footer .disclaimer { margin-top: 10px; opacity: .8; }

/* ---------------- Reveal on load ---------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .5s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------------- מובייל / טאבלט ---------------- */
@media (max-width: 720px) {
    .topbar { padding: 15px 16px; }
    .live-pill { font-size: .72rem; padding: 6px 10px; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 11px; }
    .cell { padding: 13px 15px; }
    .cell .val { font-size: 1.16rem; }
    .results .section-title { margin-top: 36px; }
    .section-title { font-size: 1.08rem; }
    .result-head { padding: 20px 18px; gap: 16px; }
    .gauge { padding: 18px 15px; gap: 14px; }
}

@media (max-width: 560px) {
    main { padding: 0 14px 48px; }
    .hero { padding: 20px 0 26px; }
    .search { gap: 10px; }
    .go { flex: 1 1 100%; min-height: 56px; }
    .plate { flex: 1 1 100%; }
    .plate input { font-size: 1.55rem; letter-spacing: 3px; }
    /* ראש התוצאה נערם אנכית והלוחית עוברת לשמאל */
    .result-head { flex-direction: column; align-items: stretch; gap: 14px; }
    /* בעמודה, flex-basis של 260px הופך לגובה - מאפסים כדי למנוע רווח ענק */
    .rh-main { flex: 0 1 auto; }
    .rh-plate { align-self: flex-start; font-size: 1.2rem; }
    .rh-title { font-size: 1.4rem; }
    .license { flex-direction: column; align-items: stretch; gap: 16px; }
    .license .lic-right { flex-basis: auto; width: 100%; }
    .license .lic-days b { font-size: 2.4rem; }
    /* תג האזהרה יורד לשורה נפרדת עם רווח (לא צמוד לטקסט) */
    .license .lic-days span { display: inline-flex; flex-wrap: wrap; align-items: center; }
    .lic-warn { margin-top: 7px; margin-inline-start: 0; }
    .gauges { grid-template-columns: 1fr; }
    .grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
    .chips { gap: 8px; }
    .chip { padding: 10px 13px; font-size: .9rem; }
    .faq .section-title { font-size: 1.5rem; }
    .faq-item summary { padding: 15px 16px; font-size: 1rem; }
    /* רשימת חיפושים אחרונים קומפקטית במובייל */
    .recents { margin-top: 12px; }
    .recents-head { margin-bottom: 5px; }
    .recents-title { font-size: .72rem; }
    .recents-title svg { width: 13px; height: 13px; }
    .recents-clear { font-size: .72rem; padding: 3px 6px; }
    .recents-list { gap: 5px; }
    .recent-chip { padding: 3px 7px; gap: 5px; border-radius: 8px; }
    .recent-chip .rc-plate { padding: 1px 5px; font-size: .72rem; letter-spacing: .3px; }
    .recent-chip .rc-label { max-width: 78px; font-size: .72rem; }
    .brand { font-size: 1.05rem; }
}

@media (max-width: 380px) {
    .live-pill { display: none; }
    .plate input { font-size: 1.35rem; letter-spacing: 2px; }
    .grid { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .blob { animation: none; }
}

/* ============================================================
   כלי נגישות + חלון הצהרה
   ============================================================ */
.a11y-toggle {
    position: fixed; bottom: 20px; left: 20px; z-index: 900;
    width: 44px; height: 44px; border-radius: 50%; cursor: pointer; border: 0;
    display: grid; place-items: center; color: #10131c;
    background: linear-gradient(145deg, var(--gold), var(--gold-2));
    box-shadow: 0 10px 26px -6px rgba(255,196,72,.6), inset 0 1px 0 rgba(255,255,255,.5);
    transition: transform .18s ease, box-shadow .18s ease;
}
.a11y-toggle:hover { transform: scale(1.07); }
.a11y-toggle:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }

.a11y-panel {
    position: fixed; bottom: 86px; left: 20px; z-index: 901;
    width: min(320px, calc(100vw - 40px));
    background: rgba(14, 20, 38, .96);
    border: 1px solid var(--glass-brd); border-radius: 18px;
    box-shadow: var(--shadow); backdrop-filter: blur(14px);
    padding: 16px; color: var(--ink);
    opacity: 0; transform: translateY(12px) scale(.97); transform-origin: bottom left;
    transition: opacity .2s ease, transform .2s ease;
}
.a11y-panel.open { opacity: 1; transform: none; }
.a11y-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a11y-head span { font-weight: 800; color: var(--gold); }
.a11y-close { background: transparent; border: 0; color: var(--ink-soft); font-size: 1.6rem; line-height: 1; cursor: pointer; padding: 0 4px; }
.a11y-close:hover { color: #fff; }
.a11y-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.a11y-grid button {
    font-family: var(--ff); font-size: .86rem; font-weight: 600; cursor: pointer;
    padding: 11px 8px; border-radius: 11px; color: var(--ink);
    background: rgba(255,255,255,.05); border: 1px solid var(--line);
    transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.a11y-grid button:hover { transform: translateY(-1px); border-color: rgba(255,196,72,.4); }
.a11y-grid button.active { background: rgba(255,196,72,.16); border-color: var(--gold); color: #ffe4a8; }
.a11y-foot { display: flex; gap: 8px; margin-top: 12px; }
.a11y-reset, .a11y-statement-link {
    flex: 1; font-family: var(--ff); font-size: .84rem; font-weight: 600; cursor: pointer;
    padding: 10px; border-radius: 11px; border: 1px solid var(--line); background: transparent; color: var(--ink-soft);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.a11y-reset:hover { color: var(--bad); border-color: rgba(248,113,113,.4); background: rgba(248,113,113,.08); }
.a11y-statement-link:hover { color: var(--gold); border-color: rgba(255,196,72,.4); background: rgba(255,196,72,.08); }

/* חלון מודאלי (הצהרת נגישות) */
.modal-overlay {
    position: fixed; inset: 0; z-index: 1000;
    display: grid; place-items: center; padding: 20px;
    background: rgba(3, 5, 12, .72); backdrop-filter: blur(6px);
    opacity: 0; transition: opacity .22s ease;
}
.modal-overlay.open { opacity: 1; }
/* קריטי: 'hidden' חייב לנצח את display:grid כדי לא לחסום לחיצות בכל העמוד */
.modal-overlay[hidden], .a11y-panel[hidden], .lang-menu[hidden] { display: none !important; }
.modal {
    width: min(600px, 100%); max-height: 88vh; overflow-y: auto;
    background: linear-gradient(160deg, #121a30, #0b1120);
    border: 1px solid var(--glass-brd); border-radius: 22px;
    padding: clamp(22px, 4vw, 34px); box-shadow: var(--shadow);
    transform: translateY(16px) scale(.97); transition: transform .22s ease;
}
.modal-overlay.open .modal { transform: none; }
.modal h2 { font-size: 1.6rem; font-weight: 800; color: var(--gold); }
.modal-updated { color: var(--ink-mut); font-size: .88rem; margin-top: 6px; margin-bottom: 18px; }
.modal-body p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 14px; }
.modal-coord { color: var(--ink) !important; font-weight: 700; }
.modal-coord a { color: var(--gold); font-weight: 800; }
.modal-ok {
    margin-top: 8px; width: 100%; cursor: pointer; border: 0;
    font-family: var(--ff); font-weight: 800; font-size: 1.05rem; color: #17130a;
    padding: 15px; border-radius: 14px;
    background: linear-gradient(145deg, #ffd968, var(--gold-2));
    box-shadow: 0 12px 26px -10px rgba(255,196,72,.6);
    transition: transform .15s ease, filter .15s ease;
}
.modal-ok:hover { transform: translateY(-2px); filter: brightness(1.05); }

/* ---- מצבי נגישות (מחלקות על :root) ---- */
:root.a11y-contrast {
    --ink: #ffffff; --ink-soft: #eef2fb; --ink-mut: #cfd6e6;
    --line: rgba(255,255,255,.34); --card: rgba(255,255,255,.09); --card-hi: rgba(255,255,255,.14);
    --glass-brd: rgba(255,255,255,.42);
}
:root.a11y-contrast body { background: #01030a; }
:root.a11y-contrast .cell, :root.a11y-contrast .chip, :root.a11y-contrast .tip,
:root.a11y-contrast .faq-item { border-width: 1.5px; }

:root.a11y-grayscale body { filter: grayscale(1); }

:root.a11y-links a,
:root.a11y-links .recent-chip,
:root.a11y-links summary { text-decoration: underline !important; }
:root.a11y-links a:focus-visible,
:root.a11y-links button:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

:root.a11y-readable body,
:root.a11y-readable .plate input,
:root.a11y-readable .go,
:root.a11y-readable .a11y-grid button {
    font-family: Arial, "Segoe UI", sans-serif !important;
    letter-spacing: .3px; line-height: 1.85;
}
:root.a11y-readable .rh-title, :root.a11y-readable .hero h1 { letter-spacing: 0; }

:root.a11y-bigcursor, :root.a11y-bigcursor * {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 32 32'%3E%3Cpath d='M6 2l20 12-8 2 5 10-4 2-5-10-6 6z' fill='%23fff' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important;
}

:root.a11y-noanim *,
:root.a11y-noanim *::before,
:root.a11y-noanim *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
}
:root.a11y-noanim .blob { animation: none !important; }

@media (max-width: 480px) {
    .a11y-toggle { width: 40px; height: 40px; bottom: 14px; left: 14px; }
    .a11y-panel { bottom: 64px; left: 14px; }
}

/* ============================================================
   ניווט, בורר שפות ועמוד אודות
   ============================================================ */
.brand { text-decoration: none; color: var(--ink); }
.brand:hover { text-decoration: none; }

.nav { display: flex; gap: 6px; }
.nav-link {
    padding: 8px 14px; border-radius: 10px; text-decoration: none;
    color: var(--ink-soft); font-weight: 600; font-size: .95rem;
    transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: var(--ink); background: rgba(255,255,255,.05); text-decoration: none; }
.nav-link.active { color: var(--gold); background: rgba(255,196,72,.1); }

.topbar-right { display: flex; align-items: center; gap: 10px; }

.lang { position: relative; }
.lang-btn {
    display: flex; align-items: center; gap: 8px; cursor: pointer;
    height: 42px; padding: 0 12px; border-radius: 10px; color: var(--ink);
    border: 1px solid var(--line); background: rgba(255,255,255,.04);
    font-family: var(--ff); font-weight: 600; font-size: .9rem;
    transition: border-color .15s ease;
}
.lang-btn:hover { border-color: rgba(255,196,72,.4); }
.lang-flag, .lang-menu img { border-radius: 3px; display: block; object-fit: cover; box-shadow: 0 0 0 1px rgba(255,255,255,.18); }
.lang-caret { opacity: .7; transition: transform .2s ease; }
.lang.open .lang-caret { transform: rotate(180deg); }
.lang-menu {
    position: absolute; top: calc(100% + 8px); inset-inline-end: 0;
    min-width: 172px; list-style: none; z-index: 950; padding: 6px;
    background: rgba(14,20,38,.98); border: 1px solid var(--glass-brd);
    border-radius: 14px; box-shadow: var(--shadow); backdrop-filter: blur(12px);
}
.lang-menu li { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; }
.lang-menu li:hover { background: rgba(255,255,255,.06); }
.lang-menu li.sel { background: rgba(255,196,72,.14); color: var(--gold); }

.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 10px; cursor: pointer;
    border: 1px solid var(--line); background: rgba(255,255,255,.04);
    flex-direction: column; align-items: center; justify-content: center; gap: 5px;
}
.nav-toggle span { width: 20px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .22s ease, opacity .22s ease; }
.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 760px) {
    .topbar { position: relative; }
    .nav-toggle { display: flex; }
    .nav {
        position: absolute; top: 72px; inset-inline-end: clamp(16px, 4vw, 34px);
        flex-direction: column; min-width: 190px; display: none; z-index: 940; padding: 8px;
        background: rgba(14,20,38,.98); border: 1px solid var(--glass-brd);
        border-radius: 14px; box-shadow: var(--shadow); backdrop-filter: blur(12px);
    }
    .nav.open { display: flex; }
    .live-pill { display: none; }
    .lang-name { display: none; }
    .lang-btn { padding: 8px 10px; }
}

/* ----- עמוד אודות ----- */
.about-hero {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(24px, 5vw, 50px);
    align-items: center; padding: clamp(22px, 5vw, 56px) 0 28px;
}
.about-copy h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.16; margin-top: 10px; }
.about-copy .lede { text-align: start; margin: 16px 0 0; max-width: none; }
.about-cta {
    display: inline-block; margin-top: 24px; padding: 13px 28px; border-radius: 13px;
    color: #17130a; font-weight: 800; text-decoration: none;
    background: linear-gradient(145deg, #ffd968, var(--gold-2));
    box-shadow: 0 12px 26px -10px rgba(255,196,72,.6);
    transition: transform .16s ease, filter .16s ease;
}
.about-cta:hover { transform: translateY(-2px); filter: brightness(1.05); text-decoration: none; }
.about-illustration { display: grid; place-items: center; }
.about-illustration svg { max-width: 460px; width: 100%; filter: drop-shadow(0 30px 50px rgba(0,0,0,.45)); }

.about-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 8px; }
.step { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 22px; }
.step-num {
    display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px;
    color: #17130a; font-weight: 800; margin-bottom: 12px;
    background: linear-gradient(145deg, var(--gold), var(--gold-2));
}
.step-title { font-weight: 700; font-size: 1.05rem; }
.step-text { color: var(--ink-soft); font-size: .9rem; margin-top: 6px; line-height: 1.6; }

.disclaimer-box {
    display: flex; gap: 18px; align-items: flex-start; margin: 34px 0;
    padding: clamp(20px, 3vw, 26px); border-radius: var(--r-lg);
    border: 1px solid rgba(255,196,72,.35);
    background: linear-gradient(160deg, rgba(255,196,72,.12), rgba(255,196,72,.03));
}
.disc-ic {
    flex: 0 0 auto; width: 54px; height: 54px; border-radius: 14px;
    display: grid; place-items: center; color: #17130a;
    background: linear-gradient(145deg, var(--gold), var(--gold-2));
}
.disclaimer-box h2 { color: var(--gold); font-size: 1.3rem; font-weight: 800; margin-bottom: 6px; }
.disclaimer-box p { color: var(--ink-soft); line-height: 1.75; }

@media (max-width: 760px) {
    .about-hero { grid-template-columns: 1fr; text-align: center; }
    .about-copy .lede { text-align: center; }
    .about-illustration { order: -1; }
    .about-steps { grid-template-columns: 1fr; }
    .disclaimer-box { flex-direction: column; }
}

/* ============================================================
   יישור ערכי כרטיסים לפי כיוון העמוד
   (מספרים/קודים נשארים בכיוון LTR לקריאה נכונה, אך מיושרים לקצה)
   ============================================================ */
html[dir="rtl"] .cell .k, html[dir="rtl"] .cell .val { text-align: right; }
html[dir="ltr"] .cell .k, html[dir="ltr"] .cell .val { text-align: left; }

/* באנר רכב שירד מהכביש */
.offroad-banner {
    display: flex; gap: 16px; align-items: flex-start;
    padding: 18px 22px; border-radius: var(--r-lg); margin-bottom: 26px;
    border: 1px solid rgba(248,113,113,.42);
    background: linear-gradient(160deg, rgba(248,113,113,.15), rgba(248,113,113,.03));
}
.ob-ic {
    flex: 0 0 auto; width: 48px; height: 48px; border-radius: 13px;
    display: grid; place-items: center; color: #2a0f0f;
    background: linear-gradient(145deg, #fca5a5, #f87171);
    box-shadow: 0 10px 22px -8px rgba(248,113,113,.6);
}
.ob-title { font-weight: 800; font-size: 1.08rem; color: #fecaca; }
.ob-desc { color: var(--ink-soft); font-size: .9rem; margin-top: 4px; line-height: 1.6; }

/* כפתור רענון + תג "מהזיכרון" בראש התוצאה */
.rh-cache { margin-top: 8px; font-size: .8rem; font-weight: 600; color: var(--gold); opacity: .95; }
.rh-refresh {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font-family: var(--ff); font-size: .82rem; font-weight: 700;
    padding: 5px 12px; border-radius: 999px; color: var(--gold);
    background: rgba(255,196,72,.1); border: 1px solid rgba(255,196,72,.32);
    transition: transform .15s ease, background .15s ease;
}
.rh-refresh:hover { background: rgba(255,196,72,.18); }
.rh-refresh svg { transition: transform .5s ease; }
.rh-refresh:hover svg { transform: rotate(-180deg); }

/* ============================================================
   לוגו + כותרת ראשית מעוצבת
   ============================================================ */
.brand-logo {
    height: 46px; width: auto; display: block;
    filter: drop-shadow(0 6px 14px rgba(0,0,0,.45));
    transition: transform .18s ease;
}
.brand:hover .brand-logo { transform: scale(1.04); }

.hero-title {
    font-size: clamp(2.7rem, 8vw, 4.8rem);
    font-weight: 900; line-height: 1.02; letter-spacing: -1.5px;
    margin: 0; padding-bottom: .08em;
    filter: drop-shadow(0 6px 34px rgba(255,196,72,.28));
}
.hero-subtitle {
    margin: 20px auto 0; max-width: 720px;
    font-size: clamp(1.15rem, 3.2vw, 1.75rem);
    font-weight: 700; letter-spacing: .2px; color: var(--ink);
}
.hero-subtitle::before {
    content: ''; display: block; width: 66px; height: 4px;
    margin: 0 auto 18px; border-radius: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-2));
    box-shadow: 0 4px 14px -2px rgba(255,196,72,.5);
}

@media (max-width: 560px) {
    .brand-logo { height: 40px; }
    .hero-subtitle { font-size: 1.15rem; }
}

/* לוגו גדול בעמוד הבית */
.hero-logo {
    display: block; margin: 0 auto 26px;
    width: min(300px, 74vw); height: auto;
    filter: drop-shadow(0 16px 38px rgba(0,0,0,.55));
}
@media (max-width: 560px) { .hero-logo { width: min(240px, 70vw); margin-bottom: 20px; } }

/* אזהרות תוקף רישיון: כתום מתחת לחודש, אדום מתחת לשבוע */
.license.soon .lic-days b { color: var(--gold); }
.license.urgent .lic-days b { color: var(--bad); }
.lic-warn {
    display: inline-block; margin-inline-start: 10px; vertical-align: middle;
    font-size: .82rem; font-weight: 800; letter-spacing: .2px;
    padding: 5px 13px; border-radius: 999px; white-space: nowrap;
}
.lic-warn.warn { color: #241800 !important; background: #ffce4d; }
.lic-warn.bad { color: #fff !important; background: #e23b3b; box-shadow: 0 6px 16px -6px rgba(226,59,59,.7); }

/* קישור חידוש רישיון */
.lic-renew {
    display: inline-flex; align-items: center; gap: 5px; margin-top: 10px;
    font-size: .72rem; font-weight: 700; text-decoration: none;
    color: #17130a; background: linear-gradient(145deg, #ffd968, var(--gold-2));
    padding: 4px 10px; border-radius: 8px;
    box-shadow: 0 8px 20px -8px rgba(255,196,72,.6);
    transition: transform .15s ease, filter .15s ease;
}
.lic-renew svg { width: 11px; height: 11px; }
.lic-renew:hover { transform: translateY(-2px); filter: brightness(1.05); text-decoration: none; }

/* ============================================================
   כפתור העתקה בתא + פעולות + הדפסה/PDF
   ============================================================ */
.cell { position: relative; }
.cell-copy {
    position: absolute; top: 9px; inset-inline-end: 9px; z-index: 2;
    width: 26px; height: 26px; border-radius: 8px; cursor: pointer;
    display: grid; place-items: center; color: var(--ink-mut);
    background: rgba(255,255,255,.05); border: 1px solid var(--line);
    opacity: .4; transition: opacity .15s ease, color .15s ease, border-color .15s ease, transform .12s ease;
}
.cell:hover .cell-copy, .cell-copy:focus-visible { opacity: 1; }
.cell-copy:hover { color: var(--gold); border-color: rgba(255,196,72,.42); transform: translateY(-1px); }
.cell-copy.ok { opacity: 1; color: var(--ok); border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.12); }

/* כפתור העתקה קטן ומעוצב ליד לוחית הזיהוי (לא עליה), ממורכז אנכית מולה */
.rh-plate-wrap { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; align-self: flex-start; }
.plate-copy {
    position: static; opacity: 1; flex: 0 0 auto; z-index: auto;
    inset-inline-end: auto; align-self: center;
    width: 26px; height: 26px; border-radius: 8px;
    color: var(--ink-soft); background: var(--card);
    border: 1px solid var(--line); box-shadow: none;
}
.plate-copy:hover { color: var(--gold); border-color: rgba(255,196,72,.5); transform: translateY(-1px); }
.plate-copy.ok { opacity: 1; color: var(--ok); border-color: rgba(52,211,153,.45); background: rgba(52,211,153,.12); }
.plate-copy svg { width: 12px; height: 12px; }

.rh-action {
    display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
    font-family: var(--ff); font-size: .82rem; font-weight: 700;
    padding: 5px 12px; border-radius: 999px; color: var(--ink-soft);
    background: rgba(255,255,255,.05); border: 1px solid var(--line);
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.rh-action:hover { color: var(--gold); border-color: rgba(255,196,72,.4); background: rgba(255,196,72,.08); }

/* ----- הדפסה / ייצוא PDF ----- */
@media print {
    .aurora, .topbar, .hero, .recents, .site-footer, .faq,
    .a11y-toggle, .a11y-panel, .modal-overlay,
    .cell-copy, .rh-refresh, .rh-action, .lic-renew { display: none !important; }

    html, body { background: #fff !important; }
    main { padding: 0 !important; max-width: 100% !important; }
    .reveal, .cell, .gauge, .tip, .chip { opacity: 1 !important; transform: none !important; }

    .result-head, .cell, .license, .gauge, .tip, .disabled-card, .offroad-banner,
    .chip, .faq-item, .license .lic-right .bar {
        background: #fff !important; border: 1px solid #d0d4dd !important;
        box-shadow: none !important; color: #111 !important;
    }
    .section-title { color: #1b2438 !important; font-weight: 800 !important; }
    .section-title svg { color: #b7860b !important; }
    .section-title::after { background: #d0d4dd !important; }
    .rh-title, .cell .val, .lic-days b, .lic-date .d, .g-title, .tip-title,
    .dc-title, .ob-title { color: #111 !important; }
    .cell .k, .rh-sub, .g-desc, .tip-text, .lic-label { color: #555 !important; }
    .result-head { background: #fff !important; }
    .chip.on .mk { color: #128a5a !important; }
    @page { margin: 14mm; }
}

/* מצב ייצוא PDF: חושפים הכל ומסתירים כפתורי פעולה מהצילום */
.pdf-mode .reveal, .pdf-mode .cell, .pdf-mode .gauge, .pdf-mode .chip, .pdf-mode .tip {
    opacity: 1 !important; transform: none !important;
}
.pdf-mode .cell-copy, .pdf-mode .rh-refresh, .pdf-mode .rh-action, .pdf-mode .lic-renew { visibility: hidden !important; }
.rh-action.busy { pointer-events: none; opacity: .8; }
.rp-spin {
    width: 14px; height: 14px; border-radius: 50%;
    border: 2px solid rgba(255,255,255,.3); border-top-color: var(--gold);
    display: inline-block; animation: spin .7s linear infinite;
}

/* מצב ייצוא PDF - עיצוב בהיר כמו הדפסה (נלכד ע"י html2canvas) */
.pdf-mode #results { background: #fff; padding: 10px; border-radius: 0; }
.pdf-mode .result-head, .pdf-mode .cell, .pdf-mode .license, .pdf-mode .gauge,
.pdf-mode .tip, .pdf-mode .disabled-card, .pdf-mode .offroad-banner,
.pdf-mode .chip, .pdf-mode .bar {
    background: #fff !important; border: 1px solid #d0d4dd !important;
    box-shadow: none !important; color: #111 !important;
}
/* גופן מערכת קריא לכל טקסט ה-PDF: הגופן החיצוני (Heebo) מוסר ב-onclone כדי
   שלא ייתקע על הרשת, ובלעדיו הטקסט נופל לגופן ברירת מחדל לא קריא. */
.pdf-mode, .pdf-mode * {
    font-family: 'Segoe UI', 'Arial Hebrew', Arial, 'Heebo', sans-serif !important;
}
/* html2canvas דוחס טקסט עברי בתוך flex container כשהוא צומת-טקסט ישיר.
   הפתרון: טקסט הכותרת עטוף ב-span (.ttl-tx) - נשאר רצף טקסט תקין.
   letter-spacing:normal חשוב כי ערך מפורש מפעיל רינדור אות-אות שמאבד רווחים. */
.pdf-mode .section-title { color: #12203a !important; font-weight: 800 !important; letter-spacing: normal !important; }
.pdf-mode .section-title .ttl-tx { letter-spacing: normal !important; }
.pdf-mode .section-title svg { color: #b7860b !important; }
.pdf-mode .section-title::after { background: #d7dbe4 !important; }
.pdf-mode .section-title .muted { color: #777 !important; }
.pdf-mode .rh-title, .pdf-mode .cell .val, .pdf-mode .lic-days b, .pdf-mode .lic-date .d,
.pdf-mode .g-title, .pdf-mode .tip-title, .pdf-mode .dc-title, .pdf-mode .ob-title,
.pdf-mode .g-title, .pdf-mode .rh-plate .num { color: #111 !important; }
.pdf-mode .cell .k, .pdf-mode .rh-sub, .pdf-mode .g-desc, .pdf-mode .tip-text,
.pdf-mode .lic-label, .pdf-mode .rh-tags .tag { color: #555 !important; }
.pdf-mode .rh-tags .tag { background: #f1f3f7 !important; border: 1px solid #d7dbe4 !important; }
.pdf-mode .dial .track { stroke: #e3e6ec !important; }
.pdf-mode .tip-ic, .pdf-mode .dc-ic, .pdf-mode .ob-ic { filter: none !important; }
.pdf-mode .chip.on { background: #eafaf2 !important; border-color: #9fe3c4 !important; }
.pdf-mode .chip.on .mk { background: #cdeede !important; color: #128a5a !important; }
.pdf-mode .chip.off { background: #f5f6f9 !important; color: #888 !important; }
.pdf-mode .lic-warn.warn { color: #241800 !important; }

/* ============================================================
   כפתור ניקוי (×) בלוחית + כפתור סריקת לוחית
   ============================================================ */
.plate-clear {
    flex: 0 0 auto; align-self: center; margin-inline-end: 9px;
    width: 30px; height: 30px; border-radius: 50%; cursor: pointer; border: 0;
    display: grid; place-items: center; color: #f4d000;
    background: rgba(0,0,0,.8);
    transition: transform .15s ease, background .15s ease;
}
.plate-clear:hover { transform: scale(1.09); background: #000; }
.plate-clear[hidden] { display: none !important; }

.scan-btn {
    display: flex; align-items: center; gap: 9px; width: fit-content;
    margin: 16px auto 0; cursor: pointer;
    font-family: var(--ff); font-weight: 700; font-size: .95rem; color: var(--ink);
    padding: 11px 20px; border-radius: 13px;
    background: rgba(255,255,255,.05); border: 1px solid var(--line);
    transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.scan-btn:hover { border-color: rgba(255,196,72,.42); background: rgba(255,196,72,.08); transform: translateY(-1px); }
.scan-btn svg { color: var(--gold); }
.scan-btn.busy { pointer-events: none; opacity: .7; }
.scan-btn.busy svg { animation: spin .9s linear infinite; }
/* חובה: display:flex דורס את תכונת hidden של HTML, אז מסתירים במפורש */
.scan-btn[hidden] { display: none !important; }

/* הודעה מעוצבת ניטרלית: שירות הסריקה אינו זמין כרגע */
.scan-na {
    display: flex; align-items: center; gap: 12px;
    width: fit-content; max-width: 440px; margin: 16px auto 0;
    padding: 12px 16px; border-radius: 14px; text-align: start;
    background: rgba(255,196,72,.08); border: 1px solid rgba(255,196,72,.30);
}
.scan-na svg { color: var(--gold); flex: 0 0 auto; }
.scan-na-t { font-weight: 700; font-size: .92rem; color: var(--ink); }
.scan-na-x { font-size: .82rem; color: var(--ink-soft); margin-top: 2px; line-height: 1.45; }
.scan-na[hidden] { display: none !important; }

/* הערת מידע (למשל אין נתוני קילומטראז') */
.info-note {
    display: flex; align-items: center; gap: 11px; margin: 14px 0 26px;
    padding: 14px 18px; border-radius: var(--r-md);
    background: var(--card); border: 1px solid var(--line);
    color: var(--ink-soft); font-size: .92rem;
}
.info-note svg { color: var(--gold); flex: 0 0 auto; }

/* הדפסה: למנוע חיתוך של כרטיס/סעיף לעמוד הבא */
@media print {
    .section-title { break-after: avoid; page-break-after: avoid; }
    .cell, .gauge, .tip, .license, .disabled-card, .offroad-banner,
    .result-head, .chip, .info-note {
        break-inside: avoid; page-break-inside: avoid;
    }
}
.pdf-mode .info-note { background: #fff !important; border: 1px solid #d0d4dd !important; color: #555 !important; }

/* בר התקדמות שנת הרישוי - אחוז ותוויות קצה ברורות */
.lic-pct { font-weight: 800; }
.lic-pct.warn { color: var(--gold); }
.lic-pct.bad { color: var(--bad); }
.lic-pct:not(.warn):not(.bad) { color: var(--ok); }
.lic-ends { display: flex; justify-content: space-between; margin-top: 7px; font-size: .72rem; color: var(--ink-mut); font-weight: 600; }
.pdf-mode .lic-pct:not(.warn):not(.bad) { color: #128a5a !important; }
.pdf-mode .lic-ends { color: #888 !important; }

/* שמירת גרדיאנט הבר גם בהדפסה/PDF, כולל היפוך ל-LTR */
.pdf-mode .bar, .pdf-mode .license .lic-right .bar {
    background: linear-gradient(to left, #34d399 0%, #34d399 40%, #ffce4d 72%, #ef4444 100%) !important;
}
[dir="ltr"] .pdf-mode .bar, [dir="ltr"] .pdf-mode .license .lic-right .bar {
    background: linear-gradient(to right, #34d399 0%, #34d399 40%, #ffce4d 72%, #ef4444 100%) !important;
}
.pdf-mode .bar > i { background: #eceff3 !important; border-inline-start-color: #9aa1ad !important; }
@media print {
    .bar, .license .lic-right .bar {
        background: linear-gradient(to left, #34d399 0%, #34d399 40%, #ffce4d 72%, #ef4444 100%) !important;
        -webkit-print-color-adjust: exact; print-color-adjust: exact;
    }
    [dir="ltr"] .bar, [dir="ltr"] .license .lic-right .bar {
        background: linear-gradient(to right, #34d399 0%, #34d399 40%, #ffce4d 72%, #ef4444 100%) !important;
    }
    .bar > i { background: #eceff3 !important; border-inline-start-color: #9aa1ad !important; }
}

/* ============================================================
   שיפורי הדפסה: שמירת צבעים, אייקונים ומסגרת הלוחית
   ============================================================ */
@media print {
    /* לאלץ הדפסת רקעים וצבעים */
    *, *::before, *::after { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

    /* לוחית בראש התוצאה - מסגרת אמיתית במקום box-shadow, ורצועת IL כחולה */
    .rh-plate {
        background: #f4d000 !important; border: 2.5px solid #000 !important;
        box-shadow: none !important; border-radius: 10px !important; overflow: hidden;
    }
    .rh-plate .il { background: #0033a0 !important; color: #fff !important; }
    .rh-plate .num { color: #111 !important; }

    /* אייקוני עיגול צבעוניים - לשמור רקע כדי שהאייקון הלבן ייראה */
    .dc-ic { background: linear-gradient(145deg, #4d8bff, #2f6bff) !important; color: #fff !important; }
    .ob-ic { background: linear-gradient(145deg, #fca5a5, #f87171) !important; color: #2a0f0f !important; }
    .tip-ic { background: #fff4d6 !important; color: #b7860b !important; border: 1px solid #f0d68a !important; }
    .disabled-card .dc-ic svg, .offroad-banner .ob-ic svg { color: inherit !important; }

    /* גגונים/גייג'ים - לשמור את צבעי ה-SVG */
    .dial .fill { stroke: var(--c) !important; }
    .disabled-card { background: #fff !important; border: 1px solid #d0d4dd !important; }
}

/* מספר גרסה בתחתית האודות - עדין ולא בולט */
.app-version {
    text-align: center;
    margin: 34px auto 4px;
    font-size: .74rem;
    letter-spacing: .12em;
    font-variant-numeric: tabular-nums;
    color: var(--ink-mut);
    opacity: .55;
    direction: ltr;
    transition: opacity .2s ease;
    user-select: all;
}
.app-version:hover { opacity: .85; }
@media print { .app-version { display: none !important; } }
