/* איילת השחר – עיצוב יוקרתי: שמנת חמה, כחול לילה עמוק וזהב מוברש, בהשראת שקיעה מעל ההרים */
:root {
  --navy-900: #071330;
  --navy-800: #0b1a40;
  --navy-700: #0f2152;
  --navy-600: #16306f;
  --navy-500: #24479a;
  --gold-50: #fff7dc;
  --gold-100: #fbe9b0;
  --gold-300: #ecc874;
  --gold-500: #d4a647;
  --gold-700: #a87a26;
  --gold-900: #6e4c12;
  --gold: linear-gradient(180deg, #fff3c4 0%, #f2d688 22%, #e0b55a 55%, #c8973c 80%, #e6c676 100%);
  --gold-soft: linear-gradient(180deg, #fff6d6 0%, #f5e0a0 40%, #e9c879 100%);
  --gold-line: linear-gradient(90deg, #b8862e, #f6dc93 50%, #c99a3a);
  --navy: linear-gradient(135deg, #16306f 0%, #0f2152 45%, #0a1838 100%);
  --bg: #f8f1e3;
  --paper: #fffbf3;
  --ink: #0d1c45;
  --muted: #6b6a7c;
  --line: #ead9b6;
  --chip: #f3e7cd;
  --ok: #1f9a5a;
  --ok-bg: #dff3e3;
  --bad: #c9283c;
  --bad-bg: #fbe1e3;
  --warn: #b46a0a;
  --warn-bg: #fdecc8;
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 10px 24px -14px rgba(11, 26, 64, .45);
  --gold-shadow: 0 1px 0 rgba(255, 255, 255, .85) inset, 0 -2px 0 rgba(140, 95, 20, .25) inset, 0 6px 14px -6px rgba(120, 80, 10, .55);
  --radius: 18px;
  --display: "Heebo", "Assistant", system-ui, sans-serif;
  --body: "Assistant", "Heebo", "Segoe UI", system-ui, sans-serif;
  --safe-b: max(env(safe-area-inset-bottom, 0px), var(--tg-safe-area-inset-bottom, 0px));
  --safe-t: var(--tg-content-safe-area-inset-top, 0px);
  --vh: var(--tg-viewport-stable-height, 100dvh);
  color-scheme: light;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; -webkit-text-size-adjust: 100%; }
html { overflow-x: hidden; }
body { min-height: var(--vh); overscroll-behavior: none; overflow-x: hidden; width: 100%; }
#app { min-height: var(--vh); }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: var(--navy-500); }
[hidden] { display: none !important; }
svg.i, .icon-btn svg, .tabs svg { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ----- כותרת: זריחה, לוגו וגל זהב ----- */
.top { position: relative; overflow: hidden; padding: calc(12px + var(--safe-t)) 16px 30px; background: linear-gradient(180deg, #fdf8ee, var(--bg)); }
.top-art { position: absolute; inset: 0 auto 0 0; width: 72%; background: url("/app/img/sunrise.jpg") 40% 100% / cover no-repeat;
  -webkit-mask-image: linear-gradient(90deg, #000 45%, transparent 100%); mask-image: linear-gradient(90deg, #000 45%, transparent 100%); opacity: .95; }
.top-row { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.brand { display: flex; align-items: center; gap: 10px; }
.logo { width: 58px; height: 58px; flex: none; filter: drop-shadow(0 6px 10px rgba(11, 26, 64, .35)); animation: glow 4s ease-in-out infinite alternate; }
@keyframes glow { to { filter: drop-shadow(0 6px 14px rgba(212, 166, 71, .55)); } }
.brand-text small { display: block; font-family: var(--display); font-weight: 700; font-style: italic; color: var(--navy-600); font-size: .85rem; line-height: 1; }
.brand-text h1 { margin: 0; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.65rem; line-height: 1.05; letter-spacing: -.3px; color: var(--navy-800); text-shadow: 0 1px 0 #fff; }
.brand-text p { margin: 2px 0 0; font-size: .8rem; font-weight: 700; color: var(--gold-700); }
.wave { position: absolute; inset: auto 0 0; width: 100%; height: 34px; display: block; }
.icon-btn { border: 0; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; color: var(--navy-800); background: var(--gold); box-shadow: var(--gold-shadow); transition: transform .15s; }
.icon-btn:active { transform: scale(.9) rotate(-40deg); }
.icon-btn.small { width: 34px; height: 34px; font-size: .95rem; }

/* ----- תוכן ----- */
main { position: relative; z-index: 2; padding: 4px 12px calc(104px + var(--safe-b)); max-width: 760px; margin-inline: auto; }
.stack > * { animation: up .45s cubic-bezier(.2, .8, .2, 1) both; }
.stack > *:nth-child(2) { animation-delay: .04s; } .stack > *:nth-child(3) { animation-delay: .08s; }
.stack > *:nth-child(4) { animation-delay: .12s; } .stack > *:nth-child(5) { animation-delay: .16s; } .stack > *:nth-child(n+6) { animation-delay: .2s; }
@keyframes up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.card { background: linear-gradient(180deg, #fffdf8, var(--paper)); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; margin-bottom: 12px; border: 1.5px solid var(--line); }
.card h2 { font-family: var(--display); font-weight: 800; font-size: 1.12rem; margin: 0 0 10px; color: var(--navy-800); display: flex; align-items: center; gap: 8px; }
.card h3 { margin: 0 0 6px; font-size: 1.02rem; color: var(--navy-800); }
.hero .big { font-family: var(--display); font-weight: 800; font-size: 1.35rem; margin: 2px 0 6px; color: var(--navy-800); }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.section-title { font-family: var(--display); font-weight: 800; font-size: 1.12rem; margin: 16px 4px 8px; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--navy-800); }
.section-title:first-child { margin-top: 4px; }
.section-title .link { border: 0; background: none; color: var(--gold-700); font-weight: 700; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 2px; font-family: var(--body); }
.section-title .ttl { display: inline-flex; align-items: center; gap: 6px; }
.section-title .ttl svg { color: var(--gold-700); }
.row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .94rem; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; }

/* ----- ברכה ----- */
.hello { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 2px 4px 12px; }
.hello .greet { font-family: var(--display); font-weight: 900; font-size: 1.5rem; line-height: 1.1; color: var(--navy-800); margin: 0; }
.hello .sub { color: var(--muted); font-size: .9rem; font-weight: 600; margin-top: 2px; }
.hello .side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.badge-gold { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; background: var(--gold); box-shadow: var(--gold-shadow); color: var(--navy-800); font-weight: 800; font-size: .86rem; border: 0; cursor: default; white-space: nowrap; }
.badge-gold svg { width: 1.05em; height: 1.05em; }
.greet { font-family: var(--display); font-weight: 900; font-size: 1.45rem; line-height: 1.15; color: var(--navy-800); margin: 0 0 4px; }

/* ----- כרטיס כחול (זמינות / מצב סדרן) ----- */
.navy-card { position: relative; overflow: hidden; border-radius: 20px; padding: 14px; margin-bottom: 12px; color: #fff; background: var(--navy);
  border: 2px solid transparent; background-clip: padding-box; box-shadow: 0 0 0 1.5px var(--gold-300), 0 14px 26px -14px rgba(7, 19, 48, .8); }
.navy-card::before { content: ""; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 140%; background: radial-gradient(closest-side, rgba(90, 140, 255, .22), transparent); pointer-events: none; }
.navy-card::after { content: ""; position: absolute; inset: auto -10% -60% 30%; height: 90%; background: linear-gradient(160deg, transparent 40%, rgba(255, 255, 255, .06) 50%, transparent 60%); pointer-events: none; }
.navy-card > * { position: relative; z-index: 1; }
.navy-card h2, .navy-card h3 { color: #fff; }
.navy-card .muted { color: #b8c4e6; }
.navy-card .info-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; }
.navy-card .info-row:first-of-type { border-top: 0; }
.navy-card .info-row .k { display: inline-flex; align-items: center; gap: 8px; color: #fff; font-weight: 600; }
.navy-card .info-row .k svg { color: var(--gold-300); }
.navy-card .info-row .v { color: #e6ebfa; text-align: end; }
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 8px; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255, 255, 255, .6) inset, 0 1px 2px rgba(0, 0, 0, .4); }
.dot.g { background: radial-gradient(circle at 35% 35%, #6ff0a4, #14934d); }
.dot.r { background: radial-gradient(circle at 35% 35%, #ff7b7b, #b4141f); }
.dot.y { background: radial-gradient(circle at 35% 35%, #ffe17a, #c98a06); }

/* ----- באנר עם רכב בשקיעה ----- */
.promo { position: relative; overflow: hidden; border-radius: 20px; min-height: 150px; margin-bottom: 12px; color: #fff; display: flex; align-items: center;
  background: linear-gradient(270deg, #0b1a40 0%, #0f2152 38%, rgba(15, 33, 82, .55) 58%, rgba(15, 33, 82, 0) 78%), url("/app/img/car.jpg") left center / auto 100% no-repeat, #0f2152;
  box-shadow: 0 0 0 1.5px var(--gold-300), 0 14px 26px -14px rgba(7, 19, 48, .8); }
.promo .txt { position: relative; z-index: 1; width: 60%; padding: 14px 16px 14px 8px; }
.promo h2 { margin: 0 0 10px; font-family: var(--display); font-weight: 900; font-size: 1.32rem; line-height: 1.15; color: #fff; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
.promo .btn { width: 100%; }

/* ----- כפתורי זהב ----- */
.btn { border: 0; border-radius: 14px; padding: 11px 16px; font-weight: 800; cursor: pointer; color: var(--navy-800); background: var(--gold-soft); box-shadow: var(--gold-shadow);
  transition: transform .12s, filter .12s; display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; font-size: .95rem; line-height: 1.2; }
.btn:active { transform: translateY(1px) scale(.97); filter: brightness(.96); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn.primary, .btn.gold { background: var(--gold); }
.btn.dark { background: var(--navy); color: #fff; box-shadow: 0 0 0 1.5px var(--gold-300) inset, 0 6px 14px -8px rgba(7, 19, 48, .8); }
.btn.ok { background: linear-gradient(180deg, #3fc47c, #1f9a5a); color: #fff; box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, 0 6px 14px -8px rgba(20, 110, 60, .8); }
.btn.bad { background: #fff; color: var(--bad); box-shadow: inset 0 0 0 1.5px rgba(201, 40, 60, .55); }
.btn.ghost { background: #fff; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.block { width: 100%; }
.btn.lg { padding: 14px 18px; font-size: 1.05rem; border-radius: 16px; }
.btn.sm { padding: 8px 12px; font-size: .86rem; border-radius: 12px; }
.btn .chev { margin-inline-start: auto; opacity: .75; }
.btn.on { box-shadow: 0 0 0 2.5px #fff, 0 0 0 4.5px var(--gold-500), var(--gold-shadow); }
.btn.off-state { filter: saturate(.55) brightness(.94); }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btns .btn { flex: 1 1 auto; }

/* ריבועי נתונים מוזהבים */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stat { border: 0; border-radius: 16px; padding: 12px 4px 10px; cursor: pointer; text-align: center; color: var(--navy-800); background: var(--gold); box-shadow: var(--gold-shadow); position: relative; transition: transform .12s; font-family: var(--body); }
.stat:active { transform: scale(.96); }
.stat svg { width: 26px; height: 26px; fill: none; stroke: var(--navy-800); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; display: block; margin: 0 auto 2px; }
.stat b { display: block; font-family: var(--display); font-weight: 900; font-size: 1.9rem; line-height: 1.05; }
.stat span { display: block; font-size: .8rem; font-weight: 700; line-height: 1.2; }
.stat.hot::after { content: ""; position: absolute; top: 8px; left: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--bad); box-shadow: 0 0 0 2px #fff; animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { transform: scale(1.35); opacity: .7; } }

/* כפתורי פעולה גדולים במסך הבית */
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 10px; }
.actions.four { grid-template-columns: repeat(4, 1fr); }
.actions.list { grid-template-columns: 1fr; }
.act { border: 0; border-radius: 16px; min-height: 58px; padding: 10px 12px; cursor: pointer; display: flex; align-items: center; gap: 10px; color: var(--navy-800); background: var(--gold-soft); box-shadow: var(--gold-shadow);
  font-weight: 800; font-size: .95rem; text-align: start; position: relative; transition: transform .12s; font-family: var(--body); line-height: 1.15; }
.act:active { transform: scale(.97); }
.act > svg:first-child { width: 28px; height: 28px; fill: none; stroke: var(--navy-800); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.act .chev { margin-inline-start: auto; width: 16px; height: 16px; fill: none; stroke: var(--navy-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; opacity: .7; flex: none; }
.act .lbl { display: flex; flex-direction: column; min-width: 0; }
.act .lbl small { font-weight: 600; font-size: .72rem; color: var(--gold-900); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act .n { position: absolute; top: -6px; left: -4px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--bad); color: #fff; font-size: .74rem; font-weight: 800; display: grid; place-items: center; padding: 0 6px; box-shadow: 0 0 0 2px #fff; }
.actions.four .act, .act.col { flex-direction: column; justify-content: center; text-align: center; gap: 4px; padding: 10px 4px; font-size: .8rem; min-height: 82px; }
.act.wide { grid-column: 1 / -1; }
.act.navy { background: var(--navy); color: #fff; box-shadow: 0 0 0 1.5px var(--gold-300) inset, 0 8px 16px -10px rgba(7, 19, 48, .8); }
.act.navy > svg:first-child, .act.navy .chev { stroke: var(--gold-300); }
.act.navy .lbl small { color: #b8c4e6; }

.tools { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tools .btn { flex-direction: column; padding: 12px 6px; font-size: .8rem; font-weight: 700; min-height: 76px; }
.tools .btn i { font-style: normal; font-size: 1.35rem; }
.tools .btn svg { width: 24px; height: 24px; }

.seg { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
@media (min-width: 560px) { .seg { grid-template-columns: repeat(4, 1fr); } }
.seg button { border: 0; border-radius: 12px; padding: 10px 6px; background: rgba(255, 255, 255, .1); color: #fff; cursor: pointer; font-weight: 700; font-size: .86rem; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.seg button.on { background: var(--gold); color: var(--navy-800); box-shadow: var(--gold-shadow); }
.card .seg button { background: var(--chip); color: var(--ink); box-shadow: none; }
.card .seg button.on { background: var(--gold); color: var(--navy-800); box-shadow: var(--gold-shadow); }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--line); cursor: pointer; font-weight: 700; font-size: .88rem; white-space: nowrap; color: var(--navy-800); }
.chip.on { background: var(--navy); color: #fff; box-shadow: inset 0 0 0 1.5px var(--gold-300); }
.chip .n { display: inline-block; min-width: 20px; padding: 0 6px; margin-inline-start: 4px; border-radius: 999px; background: var(--bad); color: #fff; font-size: .76rem; }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 800; background: var(--chip); color: var(--navy-800); white-space: nowrap; }
.pill svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.pill.ok { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1px rgba(31, 154, 90, .25); }
.pill.warn { background: var(--warn-bg); color: var(--warn); }
.pill.bad { background: var(--bad-bg); color: var(--bad); }
.pill.info { background: #e3e9f8; color: var(--navy-600); }
.pill.gold { background: var(--gold-soft); color: var(--navy-800); box-shadow: var(--gold-shadow); }

/* ----- כרטיס נסיעה עם סרט כחול ----- */
.ride .route { font-weight: 800; font-size: 1.04rem; margin: 6px 0; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; color: var(--navy-800); }
.ride .route .arrow { color: var(--gold-700); }
.ride .html { white-space: pre-wrap; line-height: 1.5; font-size: .94rem; }
.ride.urgent { box-shadow: inset -4px 0 0 var(--bad), var(--shadow); }
.ticket { position: relative; padding: 0; overflow: hidden; }
.ticket .ribbon { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9px 14px 9px 46px; color: #fff; font-weight: 800;
  background: var(--navy); clip-path: polygon(0 0, 100% 0, 100% 100%, 34px 100%, 0 0); }
.ticket .ribbon svg { color: var(--gold-300); }
.ticket .body { padding: 10px 14px 14px; }
.ticket .meta { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: .86rem; margin: 4px 0 2px; }
.ticket .meta span { display: inline-flex; align-items: center; gap: 4px; }
.ticket .meta svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ticket .price { font-family: var(--display); font-weight: 900; font-size: 1.5rem; color: var(--navy-800); }
.ticket .dest { font-family: var(--display); font-weight: 900; font-size: 1.2rem; color: var(--navy-800); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 2px; }
.ticket .dest .arrow { color: var(--gold-700); }
.ticket .btns { margin-top: 10px; }

.req { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.req:first-child { border-top: 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 12px; }
.steps .btn { flex-direction: column; padding: 10px 4px; font-size: .78rem; gap: 2px; }
.steps .btn.done { background: var(--ok-bg); color: var(--ok); box-shadow: inset 0 0 0 1.5px rgba(31, 154, 90, .35); }
.steps .btn i { font-style: normal; font-size: 1.25rem; }
.eta-pick { margin-top: 12px; padding: 12px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: 0 0 0 1.5px var(--gold-300); }
.eta-pick b { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: .95rem; }
.eta-pick b svg { color: var(--gold-300); }
.eta-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.eta-grid .btn { flex-direction: column; gap: 0; padding: 10px 2px; font-size: .78rem; }
.eta-grid .btn strong { font-family: var(--display); font-size: 1.4rem; font-weight: 900; line-height: 1; }
.thumbs { display: flex; gap: 8px; margin-top: 10px; }
.thumbs img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; border: 1.5px solid var(--line); cursor: zoom-in; background: var(--chip); }
.proof { width: 100%; max-height: 360px; object-fit: contain; border-radius: 14px; background: var(--chip); margin: 8px 0; cursor: zoom-in; }

.empty { text-align: center; padding: 26px 16px; color: var(--muted); }
.empty .glyph { font-size: 2.2rem; display: block; margin-bottom: 6px; }
.banner { border-radius: var(--radius); padding: 12px 14px; margin-bottom: 12px; background: linear-gradient(180deg, #fff6dc, #fdecc0); border: 1.5px solid var(--gold-300); }
.banner.info { background: #eef2fb; border-color: #c9d4f0; }
.sync { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px; background: var(--ok-bg); color: var(--ok); font-weight: 700; font-size: .9rem; margin-bottom: 12px; box-shadow: inset 0 0 0 1px rgba(31, 154, 90, .25); }
.sync.bad { background: var(--bad-bg); color: var(--bad); box-shadow: inset 0 0 0 1px rgba(201, 40, 60, .25); }
.sync svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.field { display: block; margin-bottom: 10px; }
.field span { display: block; font-size: .86rem; font-weight: 700; margin-bottom: 4px; color: var(--navy-600); }
.input, textarea.input, select.input { width: 100%; border: 1.5px solid var(--line); background: #fff; border-radius: 14px; padding: 11px 12px; outline: none; transition: border-color .15s, box-shadow .15s; }
.input:focus { border-color: var(--gold-500); box-shadow: 0 0 0 3px rgba(212, 166, 71, .2); }
textarea.input { min-height: 92px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.switch { position: relative; width: 52px; height: 30px; border-radius: 999px; background: #cfd3de; border: 0; cursor: pointer; transition: background .2s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch.on { background: var(--ok); }
.switch.on::after { transform: translateX(-22px); }

/* ----- ניווט תחתון: פס כחול עם כפתורי זהב ----- */
.tabs { position: fixed; z-index: 20; inset: auto 0 0; display: flex; gap: 6px; padding: 10px 10px calc(10px + var(--safe-b)); background: var(--navy);
  border-radius: 22px 22px 0 0; box-shadow: 0 -1.5px 0 var(--gold-300), 0 -10px 30px -12px rgba(7, 19, 48, .6); }
.tabs > button { flex: 1; min-width: 0; border: 0; border-radius: 14px; padding: 8px 2px 7px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-size: .76rem; font-weight: 800; color: var(--navy-800); background: var(--gold-soft); box-shadow: var(--gold-shadow); position: relative; transition: transform .12s; font-family: var(--body); white-space: nowrap; }
.tabs > button svg { width: 24px; height: 24px; stroke-width: 1.9; }
.tabs > button:active { transform: scale(.95); }
.tabs > button.on { background: var(--gold); box-shadow: 0 0 0 2px #fff6d6, 0 0 16px 2px rgba(236, 200, 116, .65), var(--gold-shadow); }
.tabs .dot { position: absolute; top: -7px; left: 10px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--bad); color: #fff; font-size: .7rem; line-height: 20px; padding: 0 5px; box-shadow: 0 0 0 2px var(--navy-800); width: auto; }
@media (min-width: 780px) { .tabs { max-width: 760px; margin-inline: auto; } }
/* 6 לשוניות (נהג מאושר) – מרווח קטן יותר כדי שהכול ייכנס במסך צר */
.tabs:has(> button:nth-child(6)) { gap: 4px; padding-inline: 6px; }
.tabs:has(> button:nth-child(6)) .tl { font-size: .68rem; }
.tabs .tl { display: block; max-width: 100%; white-space: normal; text-align: center; line-height: 1.05; font-size: .74rem; }

/* ----- צ'אט ----- */
.chat-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; height: calc(var(--vh) - 230px - var(--safe-b)); min-height: 360px; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; overscroll-behavior: contain;
  background: radial-gradient(rgba(212, 166, 71, .14) 1px, transparent 1px) 0 0 / 18px 18px, #fbf6ea; }
.bubble { max-width: 86%; padding: 9px 12px; border-radius: 18px; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word; animation: pop .25s ease-out both; font-size: .95rem; }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } to { opacity: 1; transform: none; } }
.bubble.bot { align-self: flex-start; background: #fff; border: 1.5px solid var(--line); border-start-start-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--navy); color: #fff; border-start-end-radius: 6px; }
.bubble.me a { color: var(--gold-300); }
.bubble img { display: block; max-width: 100%; border-radius: 12px; margin-bottom: 6px; }
.bubble code { background: var(--chip); padding: 0 5px; border-radius: 6px; font-size: .9em; }
.bubble pre { background: var(--chip); padding: 8px; border-radius: 10px; overflow-x: auto; }
.bubble blockquote { margin: 4px 0; padding-inline-start: 10px; border-inline-start: 3px solid var(--gold-500); }
.ikb { display: flex; flex-direction: column; gap: 5px; margin-top: 8px; white-space: normal; }
.ikb .r { display: flex; gap: 5px; }
.ikb button, .ikb a { flex: 1; border: 0; border-radius: 12px; padding: 9px 6px; background: var(--gold-soft); box-shadow: var(--gold-shadow); font-weight: 800; font-size: .86rem; cursor: pointer; text-decoration: none; color: var(--navy-800); text-align: center; }
.ikb a::after { content: " ↗"; opacity: .6; }
.ikb button:active { transform: scale(.97); }
.typing { align-self: flex-start; padding: 10px 14px; background: #fff; border-radius: 18px; border: 1.5px solid var(--line); }
.typing span { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-500); margin: 0 2px; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
.composer-wrap { border-top: 1.5px solid var(--line); background: var(--paper); padding: 8px 10px calc(8px + var(--safe-b)); }
.chat-card .composer-wrap { padding-bottom: 8px; }
.rkb { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; max-height: 136px; overflow-y: auto; }
.rkb button { flex: 1 1 calc(50% - 6px); border: 0; border-radius: 12px; padding: 9px 6px; background: var(--gold-soft); box-shadow: var(--gold-shadow); font-weight: 800; font-size: .85rem; cursor: pointer; color: var(--navy-800); }
.composer { display: flex; align-items: flex-end; gap: 6px; }
.composer textarea { flex: 1; resize: none; border: 1.5px solid var(--line); border-radius: 18px; padding: 10px 14px; background: #fff; max-height: 120px; min-height: 44px; outline: none; }
.composer textarea:focus { border-color: var(--gold-500); }
.round { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; flex: none; font-size: 1.1rem; display: grid; place-items: center; background: var(--chip); color: var(--navy-800); }
.round.send { background: var(--gold); box-shadow: var(--gold-shadow); }

/* ----- חלון ----- */
.sheet { position: fixed; inset: 0; z-index: 50; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(7, 19, 48, .55); backdrop-filter: blur(2px); animation: fade .2s both; }
.sheet-panel { position: absolute; inset: auto 0 0; max-width: 760px; margin-inline: auto; max-height: calc(var(--vh) * .9); display: flex; flex-direction: column; background: var(--bg); border-radius: 24px 24px 0 0; overflow: hidden; animation: slide .3s cubic-bezier(.2, .8, .2, 1) both; box-shadow: 0 -2px 0 var(--gold-300); }
.sheet-grip { width: 44px; height: 5px; border-radius: 3px; background: var(--gold-300); margin: 8px auto 0; cursor: pointer; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 14px 8px; font-family: var(--display); font-weight: 800; font-size: 1.08rem; color: var(--navy-800); }
.sheet .chat-log { min-height: 180px; }
@keyframes slide { from { transform: translateY(100%); } to { transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

.toast { position: fixed; z-index: 60; inset: calc(14px + var(--safe-t)) 14px auto; max-width: 520px; margin-inline: auto; padding: 12px 16px; border-radius: 16px; background: var(--navy); color: #fff; box-shadow: 0 0 0 1.5px var(--gold-300), 0 14px 30px -10px rgba(0, 0, 0, .5); animation: drop .3s cubic-bezier(.2, .8, .2, 1) both; font-weight: 700; }
@keyframes drop { from { transform: translateY(-20px); opacity: 0; } to { transform: none; opacity: 1; } }

.skeleton .sk { height: 84px; border-radius: var(--radius); margin-bottom: 12px; background: linear-gradient(90deg, var(--chip) 0%, #fffaf0 50%, var(--chip) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite linear; }
.skeleton .sk-hero { height: 150px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.lightbox { position: fixed; inset: 0; z-index: 70; background: rgba(0, 0, 0, .86); display: grid; place-items: center; padding: 16px; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; }

/* ----- העוזר החכם (AI) ----- */
.ai-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1.5px solid var(--line); background: var(--navy); color: #fff; }
.ai-head > div:nth-child(2) { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.ai-head .muted { color: #b8c4e6; }
.ai-orb { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--navy-800); font-size: 1.1rem; background: var(--gold); box-shadow: 0 0 0 3px rgba(236, 200, 116, .3); animation: orb 3.5s ease-in-out infinite; }
@keyframes orb { 50% { box-shadow: 0 0 0 7px rgba(236, 200, 116, .12); } }
.ai-empty { text-align: center; color: var(--muted); padding: 22px 10px; line-height: 1.6; }
.ai-empty b { color: var(--ink); }
.ai-empty .glyph { font-size: 2.4rem; display: block; margin-bottom: 4px; }
.ai-sugg { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-top: 14px; }
.ai-sugg .chip { white-space: normal; text-align: center; }
.ai-thinking em { font-style: normal; font-size: .82rem; color: var(--muted); margin-inline-start: 6px; }
.bubble.err { border-color: var(--bad); color: var(--bad); }

/* ----- חלון פעולות (טפסים וכרטיסים) ----- */
.modal { z-index: 45; }
.modal-body { overflow-y: auto; padding: 2px 12px calc(16px + var(--safe-b)); overscroll-behavior: contain; }
.modal-body .card:last-child { margin-bottom: 4px; }

/* ----- עוזר והודעות: מתג בין העוזר החכם לשיחה עם הבוט ----- */
.help-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 6px; margin-bottom: 10px; border-radius: 18px; background: var(--navy); box-shadow: 0 0 0 1.5px var(--gold-300), 0 10px 20px -14px rgba(7, 19, 48, .8); }
.help-switch button { border: 0; border-radius: 13px; padding: 10px 6px; cursor: pointer; font-weight: 800; font-size: .92rem; color: #e6ebfa; background: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 6px; font-family: var(--body); }
.help-switch button svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.help-switch button.on { background: var(--gold); color: var(--navy-800); box-shadow: var(--gold-shadow); }
.help-note { text-align: center; font-size: .8rem; color: var(--muted); margin: -2px 6px 10px; }
.chat-card.in-help { height: calc(var(--vh) - 300px - var(--safe-b)); }

/* ----- בחירה בכפתורים (רכב, מקומות, זמינות) ----- */
.pick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pick.three { grid-template-columns: repeat(3, 1fr); }
.pick.four { grid-template-columns: repeat(4, 1fr); }
.pick button { border: 0; border-radius: 14px; padding: 12px 6px; cursor: pointer; font-weight: 800; font-size: .9rem; color: var(--navy-800); background: #fff; box-shadow: inset 0 0 0 1.5px var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 2px; font-family: var(--body); line-height: 1.2; transition: transform .12s; }
.pick button small { font-weight: 600; font-size: .74rem; color: var(--muted); }
.pick button:active { transform: scale(.96); }
.pick button.on { background: var(--gold); box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px var(--gold-500), var(--gold-shadow); }
.pick button:disabled { opacity: .55; }
.navy-card .pick button { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }
.navy-card .pick button.on { background: var(--gold); color: var(--navy-800); box-shadow: var(--gold-shadow); }
.sec-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-family: var(--display); font-weight: 800; font-size: 1.05rem; color: var(--navy-800); }
.navy-card .sec-h { color: #fff; }
.sec-h svg { color: var(--gold-700); }
.navy-card .sec-h svg { color: var(--gold-300); }
.sec-h .pill { margin-inline-start: auto; }
.av-big { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.av-big button { border: 0; border-radius: 18px; padding: 16px 8px; cursor: pointer; font-family: var(--display); font-weight: 900; font-size: 1.15rem; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: rgba(255, 255, 255, .08); color: #e6ebfa; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); transition: transform .12s; }
.av-big button:active { transform: scale(.97); }
.av-big button.on.g { background: linear-gradient(180deg, #49d088, #1f9a5a); color: #fff; box-shadow: 0 0 0 2px #fff6d6, 0 0 18px rgba(63, 196, 124, .55); }
.av-big button.on.r { background: var(--gold); color: var(--navy-800); box-shadow: var(--gold-shadow); }
.loc-row { display: flex; align-items: center; gap: 10px; }
.loc-row .grow { line-height: 1.3; }
.trial { background: linear-gradient(135deg, #fff6d6, #f5e0a0); border: 1.5px solid var(--gold-500); }
.meter { height: 8px; border-radius: 999px; background: rgba(11, 26, 64, .12); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; border-radius: inherit; background: var(--navy); }

/* ----- מוקד הפעילות ----- */
.act.center-tile { grid-column: 1 / -1; min-height: 74px; }
.act.center-tile .live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--gold-300); font-weight: 800; }
.act.center-tile .live::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #3fc47c; box-shadow: 0 0 0 3px rgba(63, 196, 124, .3); animation: pulse 1.6s infinite; }
.feed { padding: 4px 0; }
.feed-item { width: 100%; border: 0; background: none; display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; text-align: start; cursor: pointer; border-top: 1px solid var(--line); font-family: var(--body); color: var(--ink); }
.feed-item:first-child { border-top: 0; }
.feed-item:active { background: var(--chip); }
.feed-item:disabled { cursor: default; color: var(--ink); opacity: 1; }
.feed-item:disabled:active { background: none; }
.feed-item .ico { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 1.1rem; background: var(--gold-soft); box-shadow: var(--gold-shadow); }
.feed-item.bad .ico { background: var(--bad-bg); box-shadow: inset 0 0 0 1px rgba(201, 40, 60, .25); }
.feed-item .txt { flex: 1; min-width: 0; line-height: 1.3; }
.feed-item .txt b { display: block; font-size: .95rem; color: var(--navy-800); }
.feed-item .txt .s { display: block; font-size: .84rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-item .txt .m { display: block; font-size: .76rem; color: var(--muted); margin-top: 1px; }
.feed-item .chev { width: 16px; height: 16px; fill: none; stroke: var(--gold-700); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; flex: none; margin-top: 10px; }
.feed-day { padding: 8px 14px 4px; font-size: .78rem; font-weight: 800; color: var(--gold-700); background: #fbf6ea; border-top: 1px solid var(--line); }

@media (max-width: 360px) {
  .actions.four { grid-template-columns: repeat(2, 1fr); }
  .stat b { font-size: 1.6rem; }
  .tabs > button { font-size: .7rem; }
  .brand-text h1 { font-size: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* ===== עמלות: סך לתשלום + ריבוע לכל נסיעה ===== */
.card.fees { border: 1.5px solid var(--gold-300); }
.card.fees.overdue { border-color: var(--bad); }
.card.fees.hot { box-shadow: 0 0 0 2px var(--ok-bg), var(--shadow, 0 2px 10px rgba(0,0,0,.06)); }
.fee-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 4px 0 2px; }
.fee-head span { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--navy-800); font-size: .95rem; }
.fee-head span svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fee-head b { font-family: var(--display); font-weight: 900; font-size: 2.3rem; line-height: 1.1; color: var(--navy-800); }
.fee-head small { font-size: .8rem; color: var(--muted, #667); font-weight: 600; }
.fee-straw { text-align: center; font-weight: 900; color: #c0122c; font-size: 1.05rem; letter-spacing: .5px; margin-bottom: 6px; }
.fee-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 7px; margin: 12px 0 4px; }
.fee-tile { border-radius: 12px; padding: 8px 6px 7px; text-align: center; background: var(--warn-bg); border: 1px solid rgba(180, 106, 10, .18); display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.fee-tile b { font-family: var(--display); font-weight: 900; font-size: 1.05rem; color: var(--navy-800); }
.fee-tile .num { font-size: .72rem; font-weight: 800; color: var(--warn); }
.fee-tile small { font-size: .68rem; line-height: 1.25; color: var(--navy-800); opacity: .8; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fee-tile em { font-style: normal; font-size: .64rem; opacity: .7; }
.fee-tile.sent { background: var(--chip); border-color: rgba(11, 26, 64, .1); }
.fee-tile.sent .num { color: var(--navy-800); }

/* באזור שלך */
.nearby-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
.nearby-grid .nb { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border-radius: 14px; background: var(--gold-50); border: 1px solid var(--gold-100); font: inherit; color: var(--navy-800); }
.nearby-grid .nb b { font-family: var(--display); font-size: 1.8rem; font-weight: 900; line-height: 1.1; }
.nearby-grid .nb span { font-size: .82rem; font-weight: 700; }
.nearby-grid button.nb { cursor: pointer; }
.nearby-grid .nb.hot { box-shadow: 0 0 0 2px var(--gold-300); }

/* חץ זהב שמצביע על ההרשמה (למי שעוד לא רשום) */
.reg-arrow { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 8px; font-weight: 900; color: var(--gold-700); }
.reg-arrow svg { width: 44px; height: 44px; filter: drop-shadow(0 3px 6px rgba(120, 80, 10, .45)); animation: regBounce 1.1s ease-in-out infinite; }
@keyframes regBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) { .reg-arrow svg { animation: none; } }
.card.flash { animation: rideFlash 1.6s ease-in-out 2; }
@keyframes rideFlash { 0%, 100% { box-shadow: var(--shadow, 0 2px 10px rgba(0,0,0,.06)); } 50% { box-shadow: 0 0 0 3px var(--gold-500), var(--shadow, 0 2px 10px rgba(0,0,0,.06)); } }
