/* יחידות+ — מערכת עיצוב
   צבע מותג: קובלט · אקסנט: ליים · Rubik לכותרות, Assistant לטקסט · בהיר/כהה */

:root {
  --bg: #F4F6FB;
  --surface: #FFFFFF;
  --surface-2: #EEF1F8;
  --border: #E1E6F0;
  --text: #0D1530;
  --muted: #566079;
  --faint: #DCE2F0;
  --brand: #2B4FF5;
  --brand-hover: #2442D9;
  --brand-text: #2442D9;
  --brand-soft: #E8EDFF;
  --brand-shadow: rgba(43, 79, 245, .45);
  --lime: #C9F26B;
  --on-lime: #0D1530;
  --lime-ring: rgba(201, 242, 107, .35);
  --mark: #C9F26B;
  --success: #12805C;
  --success-soft: #E2F5EC;
  --warn: #8A4A07;
  --warn-soft: #FFF0DC;
  --danger: #B42A20;
  --danger-soft: #FDECEA;
  --info: #2442D9;
  --info-soft: #E8EDFF;
  --neutral-soft: #EEF1F7;
  --ink: #0D1530;
  --ink-card: #17224A;
  --ink-border: #2A3766;
  --ink-text: #EEF2FF;
  --ink-muted: #AEB8D6;
  --track: #E8ECF5;
  --switch-off: #C3CADB;
  --skeleton: #E6EAF3;
  --shadow-sm: 0 1px 2px rgba(13, 21, 48, .06);
  --shadow-lg: 0 1px 2px rgba(13, 21, 48, .06), 0 24px 60px -24px rgba(13, 21, 48, .22);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --font-display: 'Rubik', system-ui, sans-serif;
  --font-body: 'Assistant', system-ui, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #090E1C;
  --surface: #111830;
  --surface-2: #18213D;
  --border: #263255;
  --text: #E9EDF8;
  --muted: #A3AECB;
  --faint: #2A3660;
  --brand: #3A57F2;
  --brand-hover: #4C68FF;
  --brand-text: #9AAEFF;
  --brand-soft: #1B2550;
  --brand-shadow: rgba(58, 87, 242, .55);
  --lime-ring: rgba(201, 242, 107, .16);
  --mark: rgba(58, 87, 242, .55);
  --success: #4FD29F;
  --success-soft: rgba(79, 210, 159, .13);
  --warn: #FFB25C;
  --warn-soft: rgba(255, 178, 92, .13);
  --danger: #FF8A7E;
  --danger-soft: rgba(255, 138, 126, .13);
  --info: #9AAEFF;
  --info-soft: #1B2550;
  --neutral-soft: #1C2546;
  --ink: #151E3A;
  --ink-card: #1C2648;
  --ink-border: #2E3A66;
  --track: #222C4D;
  --switch-off: #3A4670;
  --skeleton: #1C2546;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 1px 2px rgba(0, 0, 0, .3), 0 24px 60px -24px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1 0 auto; }

h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand-text); }
a:hover { color: var(--brand-hover); }
img, svg { max-width: 100%; }
code, .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; }
code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); }

:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.icon { flex: none; vertical-align: middle; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden, [hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: 860px; }
.stack { display: flex; flex-direction: column; gap: var(--gap, 16px); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--gap, 12px); }
.row-between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(var(--min, 240px), 1fr)); gap: var(--gap, 16px); }
.eyebrow { font-weight: 700; font-size: 15px; color: var(--brand-text); }
.section-title { font-weight: 800; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; letter-spacing: -.02em; }

/* ---------- כותרת וניווט ---------- */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 5; }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-weight: 800; font-size: 22px; }
.brand:hover { color: var(--text); }
.brand .plus { color: var(--brand-text); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 22px; font-weight: 600; font-size: 16px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav-pills { display: flex; flex-wrap: wrap; gap: 4px; }
.nav-pills a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 16px; text-decoration: none; }
.nav-pills a[aria-current="page"] { background: var(--brand-soft); color: var(--brand-text); }
.nav-pills a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--lime); color: var(--on-lime); font-family: var(--font-display); font-weight: 800; font-size: 16px; display: grid; place-items: center; }

.site-footer { border-top: 1px solid var(--border); background: var(--surface); margin-top: 48px; }
.site-footer .container { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 32px; padding-top: 28px; padding-bottom: 28px; font-size: 15px; color: var(--muted); }
.site-footer a { color: var(--muted); }

/* ---------- כפתורים ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: var(--radius-sm);
  border: 1px solid transparent; background: none; color: var(--text);
  font-family: var(--font-body); font-weight: 700; font-size: 16px; line-height: 1;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .15s ease, border-color .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: #FFFFFF; }
.btn-primary:hover { background: var(--brand-hover); color: #FFFFFF; }
.btn-primary.btn-glow { box-shadow: 0 10px 24px -10px var(--brand-shadow); }
.btn-secondary { background: var(--surface); border-color: var(--border); color: var(--text); }
.btn-secondary:hover { border-color: var(--muted); color: var(--text); }
.btn-soft { background: var(--brand-soft); color: var(--brand-text); }
.btn-soft:hover { color: var(--brand-hover); }
.btn-lime { background: var(--lime); color: var(--on-lime); font-weight: 800; }
.btn-lime:hover { color: var(--on-lime); filter: brightness(.96); }
.btn-ghost { color: var(--text); }
.btn-ghost:hover { background: var(--surface-2); color: var(--text); }
.btn-danger { background: var(--surface); border-color: var(--border); color: var(--danger); }
.btn-danger:hover { border-color: var(--danger); color: var(--danger); }
.btn-dashed { border: 1.5px dashed var(--brand); color: var(--brand-text); }
.btn-dashed:hover { background: var(--brand-soft); }
.btn-lg { min-height: 56px; padding: 0 28px; border-radius: 14px; font-size: 18px; }
.btn-block { display: flex; width: 100%; }
.btn-icon { width: 44px; padding: 0; }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand-text); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; }

/* ---------- תגיות ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-weight: 700; font-size: 14px; white-space: nowrap; line-height: 1.3; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.no-dot::before { display: none; }
.badge-success { background: var(--success-soft); color: var(--success); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-danger { background: var(--danger-soft); color: var(--danger); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-neutral { background: var(--neutral-soft); color: var(--muted); }
.badge-lime { background: var(--lime); color: var(--on-lime); }
.pill-lime { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 12px; border-radius: 999px; background: var(--lime); color: var(--on-lime); font-weight: 700; font-size: 15px; }
.save-tag { display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 10px; background: var(--lime); color: var(--on-lime); font-weight: 700; font-size: 15px; }

/* ---------- כרטיסים ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-sm); }
.card-tight { padding: 20px 22px; border-radius: 20px; }
.card-ink { background: var(--ink); color: var(--ink-text); border-color: transparent; }
.card-ink .muted { color: var(--ink-muted); }
.card-soft { background: var(--brand-soft); color: var(--brand-text); border-color: transparent; box-shadow: none; }
.card-warn { border-color: var(--warn); }

/* ---------- טפסים ---------- */
.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .label { font-weight: 700; font-size: 16px; }
.label .opt { font-weight: 500; color: var(--muted); }
.req { color: var(--danger); }
.input {
  width: 100%; min-height: 52px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid var(--border); background: var(--bg); color: var(--text);
  font-family: var(--font-body); font-size: 18px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.input.is-invalid { border-color: var(--danger); }
.input.is-valid { border-color: var(--success); }
.input-lg { min-height: 56px; font-family: var(--font-display); font-weight: 600; font-size: 21px; letter-spacing: .03em; }
.input[dir="ltr"] { text-align: right; }
.input[dir="ltr"]::placeholder { text-align: right; }
.hint { font-size: 14px; color: var(--muted); }
.field-error { font-size: 14px; font-weight: 600; color: var(--danger); }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; cursor: pointer; }
.check input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; accent-color: var(--brand); }
select.input { appearance: none; background-image: none; }
input[type="range"] { width: 100%; height: 28px; accent-color: var(--brand); cursor: pointer; margin: 0; }

/* ---------- הודעות ---------- */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-weight: 600; font-size: 16px; }
.alert-success { background: var(--success-soft); color: var(--success); }
.alert-error { background: var(--danger-soft); color: var(--danger); }
.alert-warn { background: var(--warn-soft); color: var(--warn); }
.alert-info { background: var(--info-soft); color: var(--info); }
.flash-stack { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }

/* ---------- דף נחיתה ---------- */
.hero { padding: 72px 0 88px; }
.hero .container { display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.hero-copy .pill-lime { align-self: flex-start; }
.hero h1 { font-weight: 800; font-size: clamp(38px, 5.2vw, 68px); line-height: 1.06; letter-spacing: -.025em; }
.hero h1 .mark { box-shadow: inset 0 -.3em 0 var(--mark); }
.hero .lead { max-width: 34em; font-size: 20px; line-height: 1.65; color: var(--muted); }
.trust { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: 15px; font-weight: 600; color: var(--muted); }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust .icon { color: var(--success); }

.calc { flex: 1 1 400px; max-width: 480px; min-width: 0; background: var(--surface); border: 1px solid var(--border); border-radius: 28px; padding: 30px; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; gap: 22px; }
.calc-qty { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.calc-qty .big { font-family: var(--font-display); font-weight: 800; font-size: 54px; line-height: 1.1; letter-spacing: -.02em; }
.calc-rows { border-top: 1px dashed var(--border); padding-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.calc-rows .strike { text-decoration: line-through; }
.price-big { font-family: var(--font-display); font-weight: 800; font-size: 34px; letter-spacing: -.01em; }
.chips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.chip { min-height: 44px; border-radius: 12px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); font-family: var(--font-body); font-weight: 700; font-size: 15px; cursor: pointer; }
.chip[aria-pressed="true"], .chip:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); }
.chip:has(input:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }

/* הדגמת טעינה אוטומטית בראש דף הבית */
.demo { position: relative; flex: 1 1 400px; max-width: 480px; min-width: 0; background: var(--ink); color: var(--ink-text); border-radius: 28px; padding: 26px; box-shadow: var(--shadow-lg); }
.demo-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.demo-live { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: rgba(201, 242, 107, .14); color: var(--lime); font-weight: 700; font-size: 14px; }
.demo-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.4s ease-in-out infinite; }
.demo-body { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.demo .gauge { width: 150px; height: 150px; }
.demo .gauge .value-arc { transition: stroke .3s ease; }
.demo .gauge .center b { font-size: 30px; }
.demo .gauge .center span { color: #AEB8D6; }
.demo-state { margin-top: 4px; font-size: 12px !important; font-weight: 700; color: var(--lime) !important; }
.demo-state.low { color: #FFB25C !important; }
.demo-rules { flex: 1 1 150px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.demo-rules div { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 8px; border-bottom: 1px dashed var(--ink-border); font-size: 15px; }
.demo-rules dt { color: #AEB8D6; }
.demo-rules dd { margin: 0; font-weight: 700; }
.demo-log { list-style: none; margin: 0; padding: 16px 18px; border-radius: 18px; background: var(--ink-card); border: 1px solid var(--ink-border); display: flex; flex-direction: column; gap: 12px; font-size: 15px; }
.demo-log li { display: flex; align-items: center; gap: 10px; transition: opacity .35s ease, transform .35s ease; }
.demo-log li[data-off] { opacity: .22; }
.demo-log li[data-off] .dot-done, .demo-log li[data-off] .dot-warn { background: transparent; color: #8E9AC0; box-shadow: inset 0 0 0 2px var(--ink-border); }
.demo-log .when { margin-inline-start: auto; color: #8E9AC0; font-size: 13px; font-variant-numeric: tabular-nums; }
.dot-warn { width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 178, 92, .18); color: #FFB25C; display: grid; place-items: center; flex: none; }
.demo-log .dot-done .icon { width: 15px; height: 15px; }
.demo-toast { position: absolute; top: -16px; inset-inline-end: 22px; background: var(--lime); color: var(--on-lime); font-family: var(--font-display); font-weight: 800; font-size: 16px; padding: 8px 14px; border-radius: 12px; box-shadow: 0 10px 28px rgba(13, 21, 48, .3); animation: pop .35s ease; }
.demo-toast[hidden] { display: none; }
.mail-peek { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--ink); border: 1px solid var(--ink-border); }
.price-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.price-grid .calc { flex: 1 1 340px; max-width: none; }
.price-card { flex: 1.5 1 440px; min-width: 0; padding: 8px 4px; }
.cta-band .btn-outline-light { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }
.cta-band .btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #FFFFFF; }

.band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.band .container { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 44px; }
.step-card { background: var(--bg); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.step-card .icon-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }
.step-card .n { font-family: var(--font-display); font-weight: 800; font-size: 40px; color: var(--faint); }
.step-card h3 { font-weight: 700; font-size: 22px; }

.auto-band { padding: 96px 0; }
.auto-inner { background: var(--ink); color: var(--ink-text); border-radius: 36px; padding: clamp(28px, 5vw, 64px); display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.auto-inner .eyebrow { color: var(--lime); }
.check-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 18px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list .icon { color: var(--lime); margin-top: 2px; }
.ink-card { background: var(--ink-card); border: 1px solid var(--ink-border); border-radius: 24px; padding: 22px 24px; }
.timeline { display: flex; flex-direction: column; gap: 14px; font-size: 16px; }
.timeline .t { display: flex; align-items: center; gap: 12px; }
.dot-done { width: 28px; height: 28px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; flex: none; }
.dot-now { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--lime); display: grid; place-items: center; flex: none; }
.dot-now::after { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lime); animation: pulse 1.4s ease-in-out infinite; }
.dot-next { width: 28px; height: 28px; border-radius: 50%; border: 2px dashed var(--ink-border); flex: none; }

.faq { display: flex; flex-direction: column; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; }
.faq summary { list-style: none; min-height: 64px; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 16px 22px; font-family: var(--font-display); font-weight: 600; font-size: 18px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s ease; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }

.cta-band { background: var(--brand); color: #FFFFFF; border-radius: 32px; padding: clamp(32px, 5vw, 56px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.cta-band p { color: #E4E9FF; font-size: 18px; }
.cta-band .btn { background: #FFFFFF; color: #1A2C8F; }
.cta-band .btn:hover { background: #F0F3FF; color: #1A2C8F; }

/* ---------- רכישה ---------- */
.stepper { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 12px; }
.stepper li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.stepper li:not(:last-child) { flex: 1 1 auto; }
.stepper li:not(:last-child)::after { content: ""; flex: 1 1 auto; min-width: 16px; height: 3px; border-radius: 3px; background: var(--border); }
.stepper li.done:not(:last-child)::after { background: var(--success); }
.stepper .dot { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface); color: var(--muted); border: 2px solid var(--border); font-family: var(--font-display); font-weight: 700; font-size: 16px; }
.stepper .lbl { font-weight: 700; font-size: 16px; color: var(--muted); white-space: nowrap; }
.stepper li.current .dot { background: var(--brand); border-color: var(--brand); color: #FFFFFF; }
.stepper li.done .dot { background: var(--success); border-color: var(--success); color: #FFFFFF; }
.stepper li.current .lbl, .stepper li.done .lbl { color: var(--text); }

.buy-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px; }
.buy-main { flex: 999 1 560px; min-width: 0; }
.buy-aside { flex: 1 1 300px; min-width: 0; }
.packs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.pack { text-align: right; min-height: 108px; padding: 16px; border-radius: 18px; border: 2px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; display: flex; flex-direction: column; gap: 2px; font-family: var(--font-body); }
.pack .u { font-family: var(--font-display); font-weight: 800; font-size: 23px; line-height: 1.2; }
.pack .p { margin-top: auto; font-weight: 700; font-size: 17px; }
.pack .s { font-size: 13px; color: var(--success); font-weight: 700; }
.pack[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }
.confirm-card { border-radius: 22px; background: var(--ink); color: var(--ink-text); padding: 24px 26px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.confirm-card .k { font-size: 14px; color: var(--ink-muted); }
.confirm-card .v { font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.confirm-card .arrow { color: var(--lime); }
.confirm-card .btn { margin-inline-start: auto; border-color: var(--ink-border); color: var(--ink-text); }
.iframe-box { border: 1.5px solid var(--border); border-radius: 20px; padding: 14px; background: #FFFFFF; position: relative; min-height: 120px; }
.iframe-box iframe { width: 100%; height: 0; border: 0; display: block; }
.iframe-wait { display: flex; flex-direction: column; gap: 12px; padding: 8px; }
.skeleton { height: 50px; border-radius: 12px; background: var(--skeleton); animation: shimmer 1.4s ease-in-out infinite; }
.summary-row { display: flex; justify-content: space-between; gap: 12px; }
.success-icon { width: 92px; height: 92px; border-radius: 50%; background: var(--lime); color: var(--on-lime); display: grid; place-items: center; box-shadow: 0 0 0 12px var(--lime-ring); animation: pop .45s cubic-bezier(.2, 1.4, .4, 1) both; }
.status-list { list-style: none; margin: 0; padding: 20px 24px; width: 100%; max-width: 440px; border-radius: 18px; background: var(--bg); display: flex; flex-direction: column; gap: 12px; text-align: right; }
.status-list li { display: flex; gap: 12px; align-items: center; }
.status-dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--surface-2); color: var(--muted); }
.status-dot.ok { background: var(--success); color: #FFFFFF; }
.status-dot.run { background: var(--brand-soft); color: var(--brand-text); }
.status-dot.run .icon { animation: spin 1s linear infinite; }
.status-dot.bad { background: var(--danger); color: #FFFFFF; }

/* ---------- אזור אישי ---------- */
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; }
.page-head h1 { font-weight: 800; font-size: clamp(28px, 2.8vw, 36px); }
.kpi { display: flex; flex-direction: column; gap: 4px; }
.kpi .k { font-size: 15px; font-weight: 600; color: var(--muted); }
.kpi .v { font-family: var(--font-display); font-weight: 800; font-size: 32px; line-height: 1.2; }
.card-ink .kpi .k { color: var(--ink-muted); }
.card-ink .kpi .v { color: var(--lime); }
.dash-layout { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px; }
.dash-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.dash-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.sys-card { display: flex; flex-direction: column; gap: 20px; }
.sys-top { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 24px; }
.gauge { position: relative; width: 112px; height: 112px; flex: none; }
.gauge svg { transform: rotate(-90deg); }
.gauge .track { stroke: var(--track); }
.gauge .value { transition: stroke-dasharray .6s ease; }
.gauge .center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.gauge .center b { font-family: var(--font-display); font-weight: 800; font-size: 21px; }
.gauge .center span { font-size: 13px; color: var(--muted); }
.sys-info { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.sys-info h3 { font-weight: 700; font-size: 21px; }
.auto-panel { border-radius: 18px; background: var(--bg); padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.switch { position: relative; width: 60px; height: 34px; flex: none; border-radius: 999px; border: 0; background: var(--switch-off); cursor: pointer; padding: 0; transition: background-color .16s ease; }
.switch::after { content: ""; position: absolute; top: 4px; right: 4px; width: 26px; height: 26px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: right .16s ease; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { right: 30px; }
.switch[disabled] { opacity: .5; cursor: not-allowed; }
.preview-line { padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 16px; }
.range-head { display: flex; justify-content: space-between; gap: 10px; font-size: 15px; }
.range-head label { font-weight: 600; color: var(--muted); }
.paycard { border-radius: 18px; background: var(--ink); color: var(--ink-text); padding: 20px; display: flex; flex-direction: column; gap: 20px; min-height: 150px; }
.paycard .digits { font-family: var(--font-display); font-weight: 600; font-size: 22px; letter-spacing: .12em; }
.empty { text-align: center; padding: 36px 20px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.empty .icon-tile { width: 64px; height: 64px; border-radius: 20px; background: var(--brand-soft); color: var(--brand-text); display: grid; place-items: center; }

/* ---------- טבלאות ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; font-size: 16px; }
.table th { text-align: right; padding: 10px 12px; font-weight: 700; font-size: 14px; color: var(--muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table a.row-link { color: inherit; text-decoration: none; font-weight: 700; }
.table a.row-link:hover { color: var(--brand-text); }
.table .nowrap { white-space: nowrap; }

/* ---------- אשף ---------- */
.wizard-bars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wizard-bars span { height: 6px; border-radius: 6px; background: var(--track); transition: background-color .2s ease; }
.wizard-bars span.on { background: var(--brand); }
.num-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: n; }
.num-list li { display: flex; gap: 14px; align-items: flex-start; }
.num-list li::before { counter-increment: n; content: counter(n); width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--brand); color: #FFFFFF; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 15px; }

/* ---------- auth ---------- */
.auth-wrap { min-height: calc(100vh - 160px); display: grid; place-items: center; padding: 48px 20px; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-weight: 800; font-size: 30px; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ---------- אדמין ---------- */
.admin-header { background: var(--ink); color: var(--ink-text); }
.admin-header .brand, .admin-header .brand:hover { color: var(--ink-text); }
.admin-header .nav-pills a { color: var(--ink-muted); }
.admin-header .nav-pills a[aria-current="page"] { background: rgba(255, 255, 255, .1); color: #FFFFFF; }
.admin-header .nav-pills a:hover { color: #FFFFFF; }
.admin-header .btn-ghost { color: var(--ink-text); }
.admin-header .btn-ghost:hover { background: rgba(255, 255, 255, .08); color: #FFFFFF; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.filters .input { min-height: 44px; font-size: 16px; }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 160px; padding-top: 10px; }
.bars .b { flex: 1 1 0; min-width: 4px; background: var(--brand); border-radius: 6px 6px 2px 2px; position: relative; opacity: .9; }
.bars .b:hover { opacity: 1; }
.bars .b.zero { background: var(--track); }
.kv { display: grid; grid-template-columns: minmax(120px, max-content) 1fr; gap: 8px 18px; font-size: 16px; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
pre.raw { margin: 0; padding: 12px; border-radius: 12px; background: var(--surface-2); font-size: 13px; white-space: pre-wrap; word-break: break-all; max-height: 260px; overflow: auto; direction: ltr; text-align: left; }
.tier-table .input { min-height: 44px; font-size: 16px; }

/* ---------- דיאלוג ---------- */
dialog.modal { border: 0; padding: 0; border-radius: 24px; background: var(--surface); color: var(--text); width: min(480px, calc(100vw - 32px)); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .45); }
dialog.modal::backdrop { background: rgba(9, 14, 28, .55); }
dialog.modal .body { padding: 26px; display: flex; flex-direction: column; gap: 16px; }
dialog.modal .actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- טוסט ---------- */
.toast { position: fixed; bottom: 24px; right: 50%; transform: translateX(50%); z-index: 50; padding: 12px 18px; border-radius: 14px; background: var(--ink); color: var(--ink-text); font-weight: 700; box-shadow: var(--shadow-lg); animation: rise .25s ease both; }

@keyframes pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .45; transform: scale(.8); } }
@keyframes shimmer { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes rise { from { transform: translate(50%, 12px); opacity: 0; } to { transform: translate(50%, 0); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

@media (max-width: 720px) {
  body { font-size: 16px; }
  .container { padding: 0 16px; }
  .hero { padding: 40px 0 56px; }
  .hero .container { gap: 36px; }
  .hero .lead { font-size: 18px; }
  .calc { padding: 22px; border-radius: 22px; }
  .calc-qty .big { font-size: 44px; }
  .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .band .container { padding-top: 56px; padding-bottom: 56px; }
  .auto-band { padding: 56px 0; }
  .stepper .lbl { display: none; }
  .stepper li.current .lbl { display: inline; }
  .nav { order: 3; width: 100%; gap: 0 18px; overflow-x: auto; flex-wrap: nowrap; }
  .nav a { white-space: nowrap; }
  .btn-lg { min-height: 54px; padding: 0 22px; font-size: 17px; }
  .confirm-card .btn { margin-inline-start: 0; }
  .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
}

@media (max-width: 440px) {
  .site-header:not(.admin-header) .header-actions .btn-primary { display: none; }
  .demo { padding: 20px; border-radius: 22px; }
  .demo .gauge { width: 124px; height: 124px; }
  .demo .gauge svg { width: 124px; height: 124px; }
  .demo .gauge .center b { font-size: 24px; }
  .demo-log { padding: 14px; font-size: 14px; }
  .demo-body { justify-content: center; }
  .demo-rules { flex-basis: 100%; }
  .brand { font-size: 20px; }
  .header-actions { gap: 4px; }
}
