/*! © 2026 אלחנן סאידוב (Elhanan Saidov). כל הזכויות שמורות. All rights reserved. */
/* Design v2 — "clean & premium". Loaded after the base styles in index.html and only overrides them:
   removing the <link> to this file (and icons.js) brings back the previous design (git branch design-v1). */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --surface-2: #f2f4f7;
  --line: rgba(16, 24, 40, .09);
  --line-strong: rgba(16, 24, 40, .16);
  --text: #0b1324;
  --muted: #5d6b82;
  --accent: #0b5cad;
  --accent-2: #084a8c;
  --accent-soft: #e9f1fb;
  --teal: #14b8a6;
  --danger: #d92d20;
  --warn-bg: #fff7e6;
  --warn-fg: #7a4d00;
  --radius: 20px;
  --shadow: 0 1px 2px rgba(16,24,40,.04), 0 2px 8px rgba(16,24,40,.04), 0 12px 32px -12px rgba(16,24,40,.10);
  --shadow-lift: 0 2px 4px rgba(16,24,40,.05), 0 18px 44px -14px rgba(16,24,40,.22);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --nav-h: 0px;
}
:root[data-theme="dark"] {
  --bg: #060b16;
  --surface: #0d1526;
  --surface-2: #142036;
  --line: rgba(255,255,255,.08);
  --line-strong: rgba(255,255,255,.16);
  --text: #edf2fa;
  --muted: #95a3bb;
  --accent: #5aa7ff;
  --accent-2: #8fc3ff;
  --accent-soft: #10284a;
  --teal: #2dd4bf;
  --warn-bg: #33270d;
  --warn-fg: #f8d48a;
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 12px 32px -12px rgba(0,0,0,.5);
  --shadow-lift: 0 18px 44px -14px rgba(0,0,0,.7);
}

body { font-weight: 400; letter-spacing: 0; }
h1, h2, h3 { letter-spacing: -.01em; }
::selection { background: color-mix(in srgb, var(--accent) 22%, transparent); }

/* ---------- Line icons (icons.js) ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; stroke-width: 1.9; }
.btn .ico, .tab .ico, .menu-pop .ico { width: 1.1em; height: 1.1em; }
.hint > .ico, .gm-linked > .ico { margin-inline-end: 6px; color: var(--accent); }
.chip .ico { width: 1em; height: 1em; }
.hero-dest .ico, .hero-shared .ico { margin-inline-end: 4px; }

/* ---------- Top bar ---------- */
.topbar { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom-color: var(--line); }
.brand { font-weight: 800; letter-spacing: -.01em; }
.brand-logo { width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, var(--accent) 0%, #0e7fb8 55%, var(--teal) 100%); box-shadow: 0 6px 16px -6px color-mix(in srgb, var(--accent) 70%, transparent); }
.brand-logo .ico { width: 20px; height: 20px; }
.trip-chip { border-radius: 999px; padding: 6px 16px; background: var(--surface); border-color: var(--line); transition: background .2s var(--ease), border-color .2s, transform .15s var(--ease); }
.trip-chip:hover { border-color: var(--line-strong); }
.trip-chip.active { background: var(--text); border-color: var(--text); color: var(--surface); }
.trip-chip.active small { color: color-mix(in srgb, var(--surface) 75%, transparent); }
.trip-chip.add { flex-direction: row; align-items: center; gap: 4px; border-style: solid; border-color: var(--line); color: var(--accent); }
.menu-pop { border-radius: 18px; border-color: var(--line); box-shadow: var(--shadow-lift); padding: 8px; animation: pop-in .18s var(--ease); transform-origin: top; }
.menu-pop button { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 500; }
.menu-pop button .ico { color: var(--muted); }
.menu-btn .ico { width: 1.25em; height: 1.25em; }

/* ---------- Buttons & fields ---------- */
.btn { border-radius: 12px; padding: 9px 16px; font-weight: 600; transition: background .2s var(--ease), border-color .2s, box-shadow .2s, transform .12s var(--ease); }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--accent); box-shadow: 0 1px 2px rgba(16,24,40,.08), 0 6px 16px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.btn.primary:hover { background: var(--accent-2); }
.btn.ghost { background: var(--surface); border-color: var(--line); }
.btn.ghost:hover { background: var(--surface-2); border-color: var(--line-strong); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.glass { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.28); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-radius: 999px; }
.icon-btn { border-radius: 10px; transition: background .15s, color .15s; }
.icon-btn .ico { width: 18px; height: 18px; }
.field input, .field select, .field textarea, .add-row input, .add-row select {
  border-radius: 12px; border-color: var(--line); background: var(--surface-2); padding: 10px 13px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus, .field select:focus, .field textarea:focus, .add-row input:focus, .add-row select:focus {
  outline: none; background: var(--surface); border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent);
}
:focus-visible { outline-color: var(--accent); }

/* ---------- Hero: the destination photo, big ---------- */
main { padding-block: 22px 64px; }
.hero {
  border-radius: 28px; min-height: 320px;
  background-image: linear-gradient(180deg, rgba(4,10,24,0) 30%, rgba(4,10,24,.35) 58%, rgba(4,10,24,.82) 100%),
    var(--cover, radial-gradient(120% 90% at 85% 0%, #2bb5c8 0%, rgba(43,181,200,0) 55%), linear-gradient(140deg, #0b5cad 0%, #08305e 100%));
  box-shadow: var(--shadow-lift);
}
.hero-inner { padding: 30px 32px; align-items: flex-end; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.4rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.05; margin: 6px 0 8px; text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.hero-dest { display: inline-flex; align-items: center; font-size: .92rem; font-weight: 600; opacity: .95; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: 4px 12px; border-radius: 999px; }
.hero-dates { font-size: 1.02rem; opacity: .92; }
.countdown { border-radius: 18px; padding: 10px 18px; background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.26); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.countdown b { font-size: 1.8rem; }
@media (min-width: 900px) { .hero { min-height: 380px; } .hero-inner { padding: 36px 40px; } }

/* ---------- Tabs: underline row on wide screens ---------- */
.tabs { gap: 4px; margin: 22px 0 22px; border-bottom: 1px solid var(--line); padding-bottom: 0; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
@media (min-width: 721px) { .tabs { flex-wrap: wrap; row-gap: 0; } .tab { padding-inline: 12px; } }
.tab { position: relative; border: none; background: transparent; border-radius: 0; padding: 12px 14px 14px; color: var(--muted); transition: color .2s; }
.tab::after { content: ""; position: absolute; inset-inline: 10px; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--accent); transform: scaleX(0); transition: transform .28s var(--ease); }
.tab:hover { color: var(--text); }
.tab.active { background: transparent; color: var(--text); border: none; }
.tab.active::after { transform: scaleX(1); }
.tab.active .ic { color: var(--accent); }
.tab .ic { display: inline-flex; font-size: 1.1rem; }
.tab.tab-cfg { border: none; margin-inline-start: auto; font-weight: 500; }
.menu-pop button span > .ico:first-child, .zoom > .ico:first-child { margin-inline-end: .45em; }
.tab .count { background: var(--surface-2); border: none; font-variant-numeric: tabular-nums; }
.tab.active .count { background: var(--accent-soft); color: var(--accent); }

/* ---------- Panels, cards ---------- */
.panel-head { margin-bottom: 16px; }
.panel-head h2 { font-size: 1.55rem; font-weight: 800; letter-spacing: -.015em; }
.card { border-radius: var(--radius); border-color: var(--line); box-shadow: var(--shadow); }
.hint { display: block; }
.empty { border: 1.5px dashed var(--line-strong); border-radius: 24px; padding: 56px 24px; background: color-mix(in srgb, var(--surface) 60%, transparent); }
.empty .big { width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 22px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-size: 2rem; }
.empty .big .ico { width: 34px; height: 34px; stroke-width: 1.6; }
.chip { border-color: transparent; background: var(--surface-2); color: var(--muted); font-weight: 500; padding: 3px 10px; }
.badge { background: var(--accent-soft); color: var(--accent); }

/* Flights: boarding-pass cards */
.tickets { gap: 18px; }
.ticket { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.ticket:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); }
.ticket-thumb { border-bottom: 2px dashed var(--line-strong); }
.ticket::before, .ticket::after { content: ""; position: absolute; top: 160px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); z-index: 1; }
.ticket::before { inset-inline-start: -10px; box-shadow: inset -1px 0 0 var(--line); }
.ticket::after { inset-inline-end: -10px; box-shadow: inset 1px 0 0 var(--line); }
.ticket-body { padding: 18px 20px 20px; }
.route { font-size: 1.7rem; gap: 14px; justify-content: space-between; }
.route b { font-weight: 800; letter-spacing: .02em; }
.route .plane { flex: 1; display: flex; align-items: center; gap: 8px; color: var(--accent); font-size: 1.05rem; }
.route .plane::before, .route .plane::after { content: ""; flex: 1; border-top: 1.5px dashed var(--line-strong); }
.card-actions { border-radius: 12px; }

/* Places & restaurants */
.places { gap: 20px; }
.place { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) { .place:hover { transform: translateY(-3px); box-shadow: var(--shadow-lift); } }
.gallery { height: 220px; gap: 2px; }
.place-head h3 { font-size: 1.2rem; font-weight: 700; }
.num { background: var(--accent); box-shadow: 0 4px 10px -4px color-mix(in srgb, var(--accent) 80%, transparent); }
.num.food { background: #e8590c; }
.place-actions { border-top-color: var(--line); }
.note { border-radius: 12px; }

/* Stays & schedule & shopping */
.date-box { border-radius: 14px; border-color: var(--line); }
.shop-group { padding: 16px 18px; }
.check { border-radius: 8px; border-color: var(--line-strong); transition: background .15s, border-color .15s, transform .12s var(--ease); }
.check:active { transform: scale(.9); }
.filter { border-color: var(--line); transition: background .15s, border-color .15s; }
.filter.active { background: var(--text); border-color: var(--text); color: var(--surface); }
.filter.active small { color: color-mix(in srgb, var(--surface) 75%, transparent); }
.progress div { background: linear-gradient(90deg, var(--accent), var(--teal)); }

/* ---------- Dialogs ---------- */
dialog.form-dlg { border-radius: 24px; box-shadow: 0 30px 80px -20px rgba(4,10,24,.45); }
dialog.form-dlg::backdrop { background: rgba(6,12,26,.42); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
dialog[open].form-dlg { animation: dlg-in .26s var(--ease); }
.form h3 { font-size: 1.3rem; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.form h3 .ico { color: var(--accent); }
.settings-cat { border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .2s, transform .12s var(--ease); }
.settings-cat:hover { box-shadow: var(--shadow); }
.settings-cat .sc-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--accent-soft); color: var(--accent); }
.settings-cat .sc-ic .ico { width: 22px; height: 22px; }
.seg-opt span { display: flex; align-items: center; justify-content: center; gap: 6px; }
.toast { border-radius: 14px; background: #0b1324; box-shadow: 0 16px 40px -12px rgba(0,0,0,.45); }
.fab { background: var(--accent); box-shadow: 0 10px 24px -8px color-mix(in srgb, var(--accent) 80%, transparent); transition: transform .15s var(--ease), bottom .2s; }
.fab:active { transform: scale(.94); }
.fab .ico { width: 24px; height: 24px; }
/* U27: the support chat sits above the feedback button (⭐) */
.fab-support { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); background: var(--accent-2, var(--accent)); }
body.is-auth .fab-support { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
.bubble.note { background: none; box-shadow: none; padding: 0 4px; font-size: .85rem; color: var(--muted); }
.offer.proposal .prop-fields { list-style: none; margin: 6px 0 10px; padding: 0; display: grid; gap: 3px; font-size: .92rem; }
.offer.proposal .prop-fields .muted { display: inline-block; min-width: 76px; }

/* ---------- Notification invitations ---------- */
.bell-btn { position: relative; padding-inline: 11px; }
.bell-btn .ico { width: 1.25em; height: 1.25em; }
.bell-btn .dot { position: absolute; top: 5px; inset-inline-end: 6px; width: 10px; height: 10px; background: #f59e0b; border: 2px solid var(--surface); }
.news-push { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 16px; background: var(--accent-soft); color: var(--accent-2); }
.news-push b { flex: 1 1 200px; display: flex; align-items: flex-start; gap: 8px; }
.ask-card b > .ico { margin-inline-end: 6px; color: var(--accent); }
.ask-btns { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

/* ---------- Sign-in screen ---------- */
body.is-auth { background: #08203f; }
body.is-auth .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: transparent; border-bottom-color: transparent; position: absolute; inset-inline: 0; color: #fff; }
body.is-auth .site-foot, body.is-auth .site-foot a { color: rgba(255,255,255,.7); }
body.is-auth main { max-width: none; padding: 0; }
.auth-scene {
  min-height: 100svh; display: flex; align-items: center; justify-content: center; gap: 56px; flex-wrap: wrap;
  padding: calc(96px + env(safe-area-inset-top, 0px)) 20px 48px; color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(60% 50% at 80% 12%, rgba(255,196,120,.55) 0%, rgba(255,196,120,0) 60%),
    radial-gradient(70% 60% at 10% 100%, rgba(20,184,166,.45) 0%, rgba(20,184,166,0) 60%),
    linear-gradient(170deg, #0b5cad 0%, #08305e 55%, #061a33 100%);
}
.auth-scene::before {
  content: ""; position: absolute; inset: auto 0 0 0; height: 46%; pointer-events: none; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 400' preserveAspectRatio='none'%3E%3Cpath d='M0 260 C 240 200 420 300 720 240 S 1200 180 1440 230 L1440 400 L0 400Z' fill='%23ffffff' fill-opacity='.08'/%3E%3Cpath d='M0 310 C 300 270 520 350 820 300 S 1260 260 1440 300 L1440 400 L0 400Z' fill='%23ffffff' fill-opacity='.10'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.auth-scene::after {
  content: ""; position: absolute; top: 18%; inset-inline: -10% -10%; height: 160px; pointer-events: none; opacity: .35;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 160' preserveAspectRatio='none'%3E%3Cpath d='M0 140 C 300 20 700 0 1200 60' fill='none' stroke='%23ffffff' stroke-width='2' stroke-dasharray='2 12' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.auth-intro { position: relative; z-index: 1; max-width: 440px; }
.auth-logo { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.24); backdrop-filter: blur(10px); font-size: 1.8rem; margin-bottom: 22px; }
.auth-logo .ico { width: 30px; height: 30px; }
.auth-intro h2 { margin: 0 0 12px; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 800; line-height: 1.05; letter-spacing: -.025em; }
.auth-intro p { margin: 0; font-size: 1.1rem; color: rgba(255,255,255,.82); line-height: 1.6; }
.auth-scene .auth { position: relative; z-index: 1; margin: 0; width: min(420px, 100%); padding: 30px 28px; border-radius: 26px; border: 1px solid rgba(255,255,255,.4); background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(18px); box-shadow: 0 30px 80px -24px rgba(0,0,0,.55); color: var(--text); animation: rise .5s var(--ease) both; }
.auth h1 { font-size: 1.55rem; font-weight: 800; }
.auth .switch { position: static; width: auto; height: auto; background: none; border-radius: 0; cursor: auto; }
.auth .switch::after { content: none; }
.auth .btn.primary { padding: 12px 16px; font-size: 1rem; }

/* ---------- Motion (calm; off with reduced motion or the accessibility switch) ---------- */
.panel.enter { animation: fade-up .32s var(--ease) both; }
.panel.enter .card { animation: fade-up .4s var(--ease) both; }
.panel.enter .card:nth-child(2) { animation-delay: .04s; }
.panel.enter .card:nth-child(3) { animation-delay: .08s; }
.panel.enter .card:nth-child(4) { animation-delay: .12s; }
.panel.enter .card:nth-child(n+5) { animation-delay: .16s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(10px); } }
@keyframes dlg-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.98); } }
@media (prefers-reduced-motion: reduce) {
  .panel.enter, .panel.enter .card, dialog[open].form-dlg, .menu-pop, .auth-scene .auth { animation: none; }
}

/* ---------- Phone: bottom navigation bar, bottom-sheet dialogs ---------- */
@media (max-width: 720px) {
  :root { --nav-h: calc(66px + env(safe-area-inset-bottom, 0px)); }
  main { padding-bottom: calc(var(--nav-h) + 28px); }
  .site-foot { padding-bottom: calc(var(--nav-h) + 16px); }
  .hero { min-height: 260px; border-radius: 24px; margin-inline: -4px; }
  .panel { margin-top: 24px; }
  .countdown { padding: 7px 14px; }
  .countdown b { font-size: 1.45rem; }
  .hero-inner { padding: 22px 20px; }
  .hero-actions .btn { padding: 7px 12px; font-size: .85rem; }
  .tabs {
    position: fixed; z-index: 950; inset-inline: 0; bottom: 0; margin: 0; gap: 0;
    display: flex; justify-content: space-around; overflow-x: auto;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
    background: color-mix(in srgb, var(--surface) 88%, transparent);
    backdrop-filter: saturate(1.6) blur(18px); -webkit-backdrop-filter: saturate(1.6) blur(18px);
    border-top: 1px solid var(--line); border-bottom: none;
  }
  .tabs { justify-content: flex-start; scroll-snap-type: x proximity; }
  .tab { flex: 1 0 auto; flex-direction: column; gap: 3px; padding: 6px 4px; font-size: .68rem; font-weight: 600; min-width: 70px; max-width: 92px; scroll-snap-align: start; }
  .tab > :not(.ic):not(.count) { max-width: 100%; }
  .tab { overflow: hidden; text-overflow: ellipsis; }
  .tab::after { display: none; }
  .tab .ic { width: 52px; height: 30px; display: grid; place-items: center; border-radius: 999px; font-size: 1.2rem; transition: background .2s var(--ease); }
  .tab .ic .ico { width: 22px; height: 22px; }
  .tab.active .ic { background: var(--accent-soft); }
  .tab.active { color: var(--accent); }
  .tab .count { position: absolute; top: 2px; inset-inline-start: calc(50% + 6px); padding: 0 5px; font-size: .62rem; line-height: 16px; min-width: 16px; text-align: center; background: var(--accent); color: #fff; }
  .tab.active .count { background: var(--accent); color: #fff; }
  .fab { bottom: calc(var(--nav-h) + 14px); width: 48px; height: 48px; }
  .fab-support { bottom: calc(var(--nav-h) + 72px); }
  body.is-auth .fab-support { bottom: calc(18px + env(safe-area-inset-bottom, 0px)); }
  .ask-card { bottom: calc(var(--nav-h) + 72px); }
  .toast { bottom: calc(var(--nav-h) + 14px); }
  .panel-head h2 { font-size: 1.35rem; }
  dialog.form-dlg { width: 100vw; max-width: 100vw; margin: auto 0 0; border-radius: 24px 24px 0 0; max-height: 92dvh; padding-bottom: env(safe-area-inset-bottom, 0px); }
  dialog[open].form-dlg { animation: sheet-up .3s var(--ease); }
  .auth-scene { gap: 28px; padding-top: calc(84px + env(safe-area-inset-top, 0px)); align-content: center; }
  .auth-intro { text-align: center; }
  .auth-logo { margin-inline: auto; }
}
@keyframes sheet-up { from { transform: translateY(40px); opacity: .4; } }
@media (prefers-reduced-motion: reduce) { dialog[open].form-dlg { animation: none; } }

/* Photo credits (Wikimedia attribution) */
.photo-credit { display: block; font-size: .7rem; line-height: 1.3; color: var(--muted); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-credit:hover { text-decoration: underline; }
.hero-credit { position: absolute; top: 8px; inset-inline-end: 12px; max-width: 55%; color: rgba(255,255,255,.78); text-shadow: 0 1px 4px rgba(0,0,0,.6); z-index: 1; }
.gallery-credit { padding: 3px 12px 0; }
#vSub .photo-credit { display: inline; color: inherit; opacity: .8; text-decoration: underline; }
.minimap .leaflet-control-attribution { font-size: 8px; line-height: 1.4; padding: 0 4px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Preview deployments run against the staging project — make that impossible to miss */
html[data-env="staging"] body::after { content: "TEST · סביבת בדיקות"; position: fixed; z-index: 9999; top: 0; inset-inline-start: 50%; transform: translateX(-50%); background: #f59e0b; color: #000; font: 700 11px/1.6 system-ui, sans-serif; padding: 0 10px; border-radius: 0 0 8px 8px; pointer-events: none; }

/* U20: signed-in devices (settings → account) */
.devices { margin: 14px 0; }
.dev-list { display: grid; gap: 6px; margin-top: 6px; }
.dev-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.dev-row.current { border-color: var(--accent); }
.dev-ic { font-size: 1.3rem; }
.dev-txt { flex: 1; min-width: 0; display: grid; }
.dev-txt small { overflow-wrap: anywhere; }

/* ---------- U23: trip agent ("✨ מצא לי חופשה") ---------- */
.agent-cta { position: relative; display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; margin: 6px 0 2px;
  min-height: 60px; padding: 12px 26px; border: 0; border-radius: 999px; cursor: pointer; color: #fff; font: inherit; font-size: 1.15rem;
  font-weight: 800; overflow: hidden; isolation: isolate; background: #1e3461;
  box-shadow: 0 12px 28px -12px rgba(30,52,97,.75); transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.agent-cta::after { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255,255,255,.16) 50%, transparent 62%); background-size: 250% 100%;
  animation: agent-shine 4.5s ease-in-out infinite; }
.agent-cta:hover { background: #24407a; transform: translateY(-1px); box-shadow: 0 16px 32px -12px rgba(30,52,97,.85); }
.agent-cta:active { transform: scale(.98); }
.agent-cta .pilot-tag { font-size: .8rem; }
.agent-cta-ic { position: relative; width: 34px; height: 30px; flex: none; }
.agent-cta-ic .plane { position: absolute; inset-inline-start: 0; bottom: 0; font-size: 24px; line-height: 1; transform: scaleX(-1) rotate(-12deg); }
html[dir="ltr"] .agent-cta-ic .plane { transform: rotate(-12deg); }
.agent-cta-ic .spark { position: absolute; color: #fff; line-height: 1; animation: agent-twinkle 2.2s ease-in-out infinite; }
.agent-cta-ic .s1 { inset-inline-end: 0; top: -2px; font-size: 13px; }
.agent-cta-ic .s2 { inset-inline-end: 9px; top: 9px; font-size: 8px; animation-delay: .7s; }
.or-line { display: flex; align-items: center; gap: 14px; margin: 14px 4px 10px; color: var(--muted); }
.or-line::before, .or-line::after { content: ''; flex: 1; border-top: 2px dashed var(--line-strong); }
:root[data-theme="dark"] .agent-cta, .dark .agent-cta { background: #2a4a8c; }
@keyframes agent-shine { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
@keyframes agent-twinkle { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
html[data-a11y~="motion"] .agent-cta::after, html[data-a11y~="motion"] .agent-cta-ic .spark { animation: none; }
@media (prefers-reduced-motion: reduce) { .agent-cta::after, .agent-cta-ic .spark { animation: none; } }

.agent-dlg { width: min(560px, 100vw); }
.agent { position: relative; display: flex; flex-direction: column; gap: 10px; height: min(78vh, 720px); padding: 16px 18px 12px; box-sizing: border-box; }
.agent-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-inline-end: 44px; min-height: 40px; }
.agent-head h3 { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.agent-x { position: absolute; top: 14px; inset-inline-end: 12px; }
.agent-dlg { overflow-x: hidden; }
body.chat-open .fab { display: none; }
/* U27: on the phone the chats (support and trip agent) fill the screen, and stay above the keyboard (--vvh, fitToKeyboard) */
@media (max-width: 720px) {
  dialog.form-dlg.agent-dlg { width: 100vw; max-width: 100vw; height: var(--vvh, 100dvh); max-height: none; margin: 0; inset: 0 auto auto 0;
    border-radius: 0; padding: env(safe-area-inset-top, 0px) 0 env(safe-area-inset-bottom, 0px); box-sizing: border-box; animation: none; }
  .agent-dlg .agent { height: 100%; padding: 10px 14px 8px; }
  .agent-dlg .agent-x { top: 8px; inset-inline-end: 8px; }
  .agent-dlg .agent-head h3 { font-size: 1.05rem; }
  .agent-dlg .agent-new { padding-inline: 10px; }
  .agent-dlg .bubble { max-width: 88%; }
  .agent-dlg .agent-input textarea { font-size: 16px; }
  .agent-dlg .agent-note { font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .agent-dlg .offer.proposal .offer-acts .btn { flex-basis: 100%; min-height: 44px; }
}
.agent-log { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 4px 2px; overscroll-behavior: contain; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 18px; line-height: 1.5; animation: fade-up .25s var(--ease); }
.bubble.bot { align-self: flex-start; background: var(--surface-2); border-end-start-radius: 6px; }
.bubble.me { align-self: flex-end; background: var(--accent); color: #fff; border-end-end-radius: 6px; }
.bubble.err { background: var(--warn-bg); color: var(--warn-fg); }
.bubble.offers { max-width: 100%; width: 100%; padding: 0; display: grid; gap: 10px; }
.bubble.typing { color: var(--muted); }
.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: dot 1s infinite ease-in-out; }
.dots i:nth-child(2) { animation-delay: .15s; } .dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@keyframes fade-up { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; box-shadow: var(--shadow); display: grid; gap: 4px; }
.offer-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.offer-days { font-size: .85rem; color: var(--muted); white-space: nowrap; }
.offer-price b { font-size: 1.35rem; color: var(--accent); }
.offer-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.offer-acts .btn { flex: 1 1 140px; text-align: center; justify-content: center; }
.agent-starts { display: flex; flex-wrap: wrap; gap: 8px; }
.agent-chips { display: flex; flex-wrap: wrap; gap: 8px; align-self: flex-start; animation: fade-up .25s var(--ease); }
.agent-head-acts { display: flex; gap: 6px; align-items: center; }
.agent-new { font-size: 1.1rem; padding-inline: 12px; }
.agent-from { white-space: nowrap; }
.agent-head h3 { white-space: nowrap; }
.offer-dest { font-weight: 700; font-size: .95rem; }
.offer-meta { display: grid; gap: 2px; }
.offer-meta .leg b { font-weight: 600; color: var(--text); }
.offer-meta .direct { color: var(--accent); font-weight: 600; }
.offer-acts .offer-hotel { flex-basis: 100%; }
.agent-input { display: flex; gap: 8px; align-items: flex-end; }
.agent-input textarea { flex: 1; resize: none; max-height: 120px; min-height: 44px; border-radius: 14px; }
.agent-note { margin: 0; text-align: center; }
.chip-btn { border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); border-radius: 999px; padding: 7px 14px;
  font: inherit; font-size: .9rem; cursor: pointer; transition: background .15s, border-color .15s; }
.chip-btn:hover { background: var(--accent-soft); border-color: var(--accent); }
.chip-btn.on { background: var(--accent); border-color: var(--accent); color: #fff; }
/* U23 v3: the buttons step, badges, price calendar, stays and plan */
.bubble.prefs { max-width: 100%; width: 100%; box-sizing: border-box; }
.bubble.prefs p { margin: 0 0 8px; }
.agent-prefs { display: grid; gap: 10px; }
.pref-row { display: grid; grid-template-columns: 6.5em 1fr; gap: 8px; align-items: center; }
.pref-row > span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.pref-row input[name=dest] { min-height: 40px; }
.pref-chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-width: 0; }
.pref-chips .chip-btn { padding: 6px 12px; font-size: .85rem; }
.pref-chips select, .pref-chips input[type=date] { min-height: 36px; border-radius: 999px; padding: 4px 10px; font-size: .85rem; max-width: 100%; }
.stepper { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; }
.stepper input { width: 4em; min-height: 36px; text-align: center; }
.pref-go { width: 100%; min-height: 46px; font-size: 1rem; }
@media (max-width: 420px) { .pref-row { grid-template-columns: 1fr; gap: 4px; } }
.link-btn { background: none; border: 0; padding: 0 4px; color: inherit; text-decoration: underline; font: inherit; font-size: .85rem; cursor: pointer; opacity: .9; }
.offer-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.offer-badges .chip { font-size: .75rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
.offer-badges .badge-cheapest { background: color-mix(in srgb, var(--teal) 18%, transparent); color: var(--teal); }
.offer .good { color: var(--teal); font-weight: 600; }
.offer .warn-txt { color: var(--warn-fg); }
.offer.live { border-style: dashed; }
.offer.stay p { margin: 0; }
.price-cal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; display: grid; gap: 8px; }
.cal-row { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; overscroll-behavior-x: contain; }
.cal-day { flex: 0 0 auto; width: 64px; display: grid; justify-items: center; gap: 2px; padding: 6px 2px 4px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--text); font: inherit; cursor: pointer; }
.cal-day .bar { width: 10px; height: 40px; border-radius: 5px; background: linear-gradient(to top, var(--accent) var(--h), var(--surface-2) var(--h)); }
.cal-day b { font-size: .78rem; font-variant-numeric: tabular-nums; }
.cal-day small { font-size: .7rem; color: var(--muted); }
.cal-day.best { border-color: var(--teal); }
.cal-day.best .bar { background: linear-gradient(to top, var(--teal) var(--h), var(--surface-2) var(--h)); }
.plan-day { font-size: .9rem; }
.plan-day ul { margin: 2px 0 6px; padding-inline-start: 18px; display: grid; gap: 2px; }

/* ---------- U22: secure documents ---------- */
.docs-lock { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 28px 20px; margin-top: 16px; }
.docs-lock-ic { width: 72px; height: 72px; border-radius: 22px; display: grid; place-items: center; font-size: 34px;
  background: linear-gradient(140deg, var(--accent) 0%, #0e7fb8 55%, var(--teal) 100%); box-shadow: 0 12px 28px -12px color-mix(in srgb, var(--accent) 70%, transparent); }
.docs-lock h3 { margin: 4px 0 0; }
.docs-lock p { max-width: 420px; margin: 0; line-height: 1.55; }
.docs-safe { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 4px;
  padding: 10px 14px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-2); font-weight: 600; font-size: .92rem; }
.mfa-form { display: grid; gap: 8px; }
.mfa-steps { margin: 0; padding-inline-start: 20px; line-height: 1.6; }
.mfa-qr { display: block; margin: 4px auto; background: #fff; padding: 8px; border-radius: 12px; }
.mfa-secret { user-select: all; word-break: break-all; font-size: .85rem; }
.mfa-code { font-size: 1.6rem; letter-spacing: .35em; text-align: center; font-variant-numeric: tabular-nums; }
.mfa-err { color: var(--danger); min-height: 1.2em; margin: 0; font-size: .9rem; }
