/* TripZol app. "Night flight deck": forest canvas, mint signal colour, boarding-pass surfaces.
   Phone first, RTL, logical properties throughout. Two themes: night (default) and day. */

:root {
  --bg: #021810; --bg-2: #04241a; --bg-3: #07301f;
  --card: rgba(255, 255, 255, .045); --card-2: rgba(255, 255, 255, .085); --solid: #072b1e;
  --line: rgba(160, 255, 225, .13); --line-2: rgba(160, 255, 225, .26);
  --text: #ecf8f3; --muted: #93b5a8; --faint: #5f8275;
  --accent: #46f9c3; --accent-ink: #012a1d; --accent-soft: rgba(70, 249, 195, .13);
  --btn: #46f9c3; --btn-ink: #012a1d;
  --gold: #f6c66a; --coral: #ff8a76; --sky: #7cc7ff; --violet: #b9a4ff;
  --glass: rgba(4, 34, 25, .9);
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, .7);
  --r: 22px; --r-sm: 14px;
  --dock-h: 66px; --kb: 0px;
  --sans: "Rubik", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #f7f0ea; --bg-2: #f0e7dc; --bg-3: #e9dfd2;
  --card: #fffdfa; --card-2: #f3ece3; --solid: #fffdfa;
  --line: rgba(1, 42, 29, .11); --line-2: rgba(1, 42, 29, .26);
  --text: #012a1d; --muted: #4c675c; --faint: #8b9d95;
  --accent: #0a8f65; --accent-ink: #ffffff; --accent-soft: rgba(14, 159, 114, .12);
  --btn: #012a1d; --btn-ink: #46f9c3;
  --gold: #a9730a; --coral: #c9432c; --sky: #1c72b8; --violet: #6a4fc7;
  --glass: rgba(255, 253, 250, .93);
  --shadow: 0 18px 44px -20px rgba(1, 42, 29, .35);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; min-height: 100%; }
body {
  font-family: var(--sans); font-size: 16px; line-height: 1.5; color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none;
}
body.locked { overflow: hidden; }
h1, h2, h3, h4, p { margin: 0; }
h1 { font-size: clamp(1.7rem, 7vw, 2.15rem); font-weight: 800; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; }
h2 { font-size: 1.2rem; font-weight: 700; }
h3 { font-size: 1.02rem; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
.ico { flex: none; display: block; }
.mono { font-family: var(--mono); letter-spacing: .04em; direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: .84rem; }
.row { display: flex; align-items: center; }
.gap { gap: 10px; } .gap-s { gap: 6px; }
.grow { flex: 1; min-width: 0; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.stack { display: grid; gap: 12px; }
.center { text-align: center; }
.num { font-variant-numeric: tabular-nums; direction: ltr; unicode-bidi: isolate; }

/* ── canvas: aurora + flight grid ── */
.sky { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; background: linear-gradient(180deg, var(--bg-2), var(--bg) 46%); }
.sky::before, .sky::after { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.sky::before { width: 70vmax; height: 46vmax; inset-inline-start: -22vmax; top: -24vmax; background: radial-gradient(closest-side, rgba(70, 249, 195, .34), transparent); animation: drift 22s ease-in-out infinite alternate; }
.sky::after { width: 52vmax; height: 40vmax; inset-inline-end: -20vmax; top: 8vmax; background: radial-gradient(closest-side, rgba(124, 199, 255, .16), transparent); animation: drift 28s ease-in-out infinite alternate-reverse; }
.sky i { position: absolute; inset: 0; background-image: radial-gradient(var(--line) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: linear-gradient(180deg, #000, transparent 62%); -webkit-mask-image: linear-gradient(180deg, #000, transparent 62%); opacity: .7; }
[data-theme="light"] .sky::before { background: radial-gradient(closest-side, rgba(70, 249, 195, .5), transparent); opacity: .55; }
[data-theme="light"] .sky::after { background: radial-gradient(closest-side, rgba(246, 198, 106, .4), transparent); }
@keyframes drift { to { transform: translate3d(6vmax, 4vmax, 0) scale(1.12); } }

/* ── layout ── */
#app { max-width: 600px; margin-inline: auto; min-height: 100dvh; position: relative; }
.page { padding: calc(14px + env(safe-area-inset-top)) 16px calc(var(--dock-h) + 44px + env(safe-area-inset-bottom)); animation: rise .34s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }
.page-head { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 18px; }
.page-head .titles { flex: 1; min-width: 0; }
.kicker { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 4px; direction: ltr; text-align: end; unicode-bidi: plaintext; }
.page-head .sub { color: var(--muted); margin-top: 4px; font-size: .95rem; }
.section { margin-top: 24px; }
.section > .section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.section-head h2 { font-size: 1.02rem; }

.icon-btn { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--line); color: var(--text); flex: none; transition: transform .15s, background .15s; }
.icon-btn:active { transform: scale(.93); background: var(--card-2); }
.icon-btn.plain { background: none; border-color: transparent; }
.avatar { width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-weight: 700; flex: none; color: #012a1d; background: hsl(var(--h, 160) 80% 72%); font-size: 1rem; }
.avatar.lg { width: 60px; height: 60px; border-radius: 20px; font-size: 1.35rem; }
.avatar.me { background: linear-gradient(135deg, #46f9c3, #7cc7ff); }

/* ── buttons ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 20px; border-radius: 16px; font-weight: 600; border: 1px solid transparent; transition: transform .15s, opacity .15s, background .15s; white-space: nowrap; }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .45; pointer-events: none; }
.btn.primary { background: var(--btn); color: var(--btn-ink); box-shadow: 0 10px 26px -12px var(--accent); }
.btn.ghost { background: var(--card); border-color: var(--line); }
.btn.soft { background: var(--accent-soft); color: var(--accent); }
.btn.danger { background: rgba(255, 138, 118, .14); color: var(--coral); }
.btn.wa { background: #1faa55; color: #fff; }
.btn.sm { min-height: 40px; padding: 0 14px; border-radius: 13px; font-size: .92rem; }
.btn.block { width: 100%; }
.btn .spin, .spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid currentColor; border-inline-end-color: transparent; animation: spin .7s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.link { color: var(--accent); font-weight: 600; background: none; padding: 6px 0; }

/* ── form controls ── */
.field { display: grid; gap: 6px; }
.field > span, .label { font-size: .78rem; color: var(--muted); font-weight: 500; letter-spacing: .02em; }
.input, textarea.input, select.input {
  width: 100%; min-height: 52px; padding: 13px 15px; border-radius: 15px; border: 1px solid var(--line); background: var(--card);
  color: var(--text); outline: none; transition: border-color .15s, background .15s; appearance: none; -webkit-appearance: none;
}
textarea.input { resize: none; line-height: 1.5; }
.input:focus { border-color: var(--accent); background: var(--card-2); }
.input::placeholder { color: var(--faint); }
input[type="date"].input { min-width: 0; }
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75) sepia(.4) hue-rotate(100deg); opacity: .8; }
[data-theme="light"] input[type="date"]::-webkit-calendar-picker-indicator { filter: none; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; scroll-snap-type: x proximity; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 13px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-size: .86rem; white-space: nowrap; color: var(--text); flex: none; }
button.chip { transition: background .15s, border-color .15s, color .15s; }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.chip.tiny { min-height: 26px; padding: 0 9px; font-size: .74rem; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.seg button { min-height: 40px; border-radius: 12px; font-weight: 600; font-size: .92rem; color: var(--muted); }
.seg button.on { background: var(--btn); color: var(--btn-ink); }
.stepper { display: flex; align-items: center; gap: 4px; }
.stepper button { width: 42px; height: 42px; border-radius: 13px; background: var(--card); border: 1px solid var(--line); display: grid; place-items: center; font-size: 1.3rem; }
.stepper button[disabled] { opacity: .3; }
.stepper b { min-width: 34px; text-align: center; font-size: 1.1rem; }
.kv { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); }
.kv:last-child { border-bottom: 0; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; background: transparent; direction: ltr; }
input[type="range"]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--accent) var(--fill, 25%), var(--card-2) var(--fill, 25%)); }
input[type="range"]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--card-2); }
input[type="range"]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--accent); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: var(--btn); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent), 0 6px 14px -4px var(--accent); }
input[type="range"]::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--btn); border: 4px solid var(--bg); box-shadow: 0 0 0 1.5px var(--accent); }

/* ── cards ── */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; }
.card.tap { transition: transform .15s, border-color .15s; display: block; color: inherit; width: 100%; text-align: start; }
.card.tap:active { transform: scale(.985); border-color: var(--line-2); }
.list { display: grid; gap: 10px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--card-2); color: var(--muted); white-space: nowrap; }
.status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.status[data-s="sent"], .status[data-s="active"] { color: var(--sky); background: color-mix(in srgb, var(--sky) 14%, transparent); }
.status[data-s="viewed"], .status[data-s="quoted"] { color: var(--violet); background: color-mix(in srgb, var(--violet) 15%, transparent); }
.status[data-s="chosen"], .status[data-s="lead"] { color: var(--gold); background: color-mix(in srgb, var(--gold) 15%, transparent); }
.status[data-s="booked"], .status[data-s="confirmed"] { color: var(--accent); background: var(--accent-soft); }
.status[data-s="cancelled"] { color: var(--coral); background: color-mix(in srgb, var(--coral) 14%, transparent); }
.demo-tag { font-family: var(--mono); font-size: .64rem; letter-spacing: .12em; padding: 3px 8px; border-radius: 6px; border: 1px dashed var(--gold); color: var(--gold); direction: ltr; white-space: nowrap; }
.profit { color: var(--accent); font-weight: 700; }
.pill-profit { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-weight: 700; font-size: .84rem; }

/* ── ticket: the signature surface ── */
.ticket { position: relative; display: block; width: 100%; text-align: start; border-radius: var(--r); background: var(--solid); border: 1px solid var(--line); overflow: hidden; color: inherit; transition: transform .18s cubic-bezier(.2, .8, .2, 1), border-color .18s; box-shadow: var(--shadow); }
button.ticket:active, a.ticket:active { transform: scale(.98); border-color: var(--line-2); }
.ticket-art { position: relative; height: 150px; overflow: hidden; background: var(--bg-3); }
.ticket-art .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.ticket-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .35)); }
.art-chips { position: absolute; inset-inline: 10px; top: 10px; display: flex; justify-content: space-between; gap: 8px; z-index: 1; }
.art-chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; color: #fff; background: rgba(1, 26, 18, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border: 1px solid rgba(255, 255, 255, .16); }
.art-chip.rate { background: #46f9c3; color: #012a1d; border-color: transparent; font-family: var(--mono); }
.ticket-body { display: grid; grid-template-columns: 1fr auto; position: relative; }
/* perforation between art and body, with the two side notches */
.ticket-body::before { content: ""; position: absolute; inset-inline: 14px; top: 0; border-top: 2px dashed var(--line-2); opacity: .7; }
.ticket.notched::before, .ticket.notched::after { content: ""; position: absolute; top: 150px; width: 20px; height: 20px; margin-top: -10px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); z-index: 2; }
.ticket.notched::before { inset-inline-start: -11px; } .ticket.notched::after { inset-inline-end: -11px; }
.stay-main { padding: 14px 16px 15px; min-width: 0; display: grid; gap: 5px; align-content: start; }
.stay-main h3 { font-size: 1.05rem; line-height: 1.25; direction: ltr; text-align: end; unicode-bidi: plaintext; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.stay-main .where { font-size: .84rem; color: var(--muted); display: flex; align-items: center; gap: 4px; }
.ticket-stub { padding: 12px 16px 14px; display: grid; align-content: center; justify-items: end; gap: 1px; border-inline-start: 2px dashed var(--line); min-width: 112px; }
.ticket-stub .lbl { font-size: .68rem; color: var(--muted); letter-spacing: .04em; }
.ticket-stub .price { font-size: 1.32rem; font-weight: 800; line-height: 1.15; }
.ticket-stub .per { font-size: .68rem; color: var(--faint); }
.carousel { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -16px; padding: 4px 16px 14px; }
.carousel::-webkit-scrollbar { display: none; }
.carousel > * { flex: 0 0 min(80vw, 330px); scroll-snap-align: center; }

/* route strip: TLV → ROM */
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; direction: ltr; }
.route .end { display: grid; gap: 0; }
.route .end b { font-family: var(--mono); font-size: 1.55rem; font-weight: 700; letter-spacing: .06em; line-height: 1.1; }
.route .end span { font-size: .74rem; color: var(--muted); direction: rtl; }
.route .end:last-child { text-align: end; }
.route .line { position: relative; height: 22px; display: grid; place-items: center; color: var(--accent); }
.route .line::before { content: ""; position: absolute; inset-inline: 0; top: 50%; border-top: 2px dashed var(--line-2); }
.route .line .ico { position: relative; background: var(--solid); padding-inline: 6px; box-sizing: content-box; transform: rotate(45deg); }
.route-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pass { background: var(--solid); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.barcode { height: 34px; border-radius: 4px; opacity: .55; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 9px, var(--text) 9px 12px, transparent 12px 14px); }

/* ── dock ── */
.dock { position: fixed; z-index: 30; bottom: calc(12px + env(safe-area-inset-bottom)); inset-inline: 0; margin-inline: auto; width: min(calc(100vw - 24px), 430px); height: var(--dock-h); display: grid; grid-template-columns: 1fr 1fr 78px 1fr 1fr; align-items: center; padding-inline: 6px; border-radius: 26px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, .8, .2, 1), opacity .2s; }
.dock a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0; color: var(--muted); font-size: .66rem; font-weight: 500; border-radius: 18px; transition: color .15s; }
.dock a.on { color: var(--accent); }
.dock a.on::after { content: ""; position: absolute; bottom: 2px; width: 16px; height: 3px; border-radius: 3px; background: var(--accent); }
.dock .badge { position: absolute; top: 3px; inset-inline-start: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 700; display: grid; place-items: center; box-shadow: 0 0 0 3px var(--bg-2); }
.dock a.orb { justify-self: center; width: 68px; height: 68px; margin-top: -26px; padding: 0; border-radius: 24px; display: grid; place-items: center; background: radial-gradient(circle at 35% 28%, #0d5a41, #012a1d 70%); border: 1.5px solid var(--accent); box-shadow: 0 0 0 6px var(--bg), 0 0 28px -4px var(--accent); animation: breathe 3.6s ease-in-out infinite; position: relative; }
[data-theme="light"] .orb { box-shadow: 0 0 0 6px var(--bg), 0 10px 24px -8px rgba(1, 42, 29, .6); }
.orb img { width: 38px; height: 38px; object-fit: contain; }
.dock a.orb.on { border-width: 2.5px; }
.dock a.orb::after { display: none; }
.orb .dot { position: absolute; top: -5px; inset-inline-end: -5px; width: 14px; height: 14px; border-radius: 50%; background: var(--gold); border: 3px solid var(--bg); }
@keyframes breathe { 50% { box-shadow: 0 0 0 6px var(--bg), 0 0 40px 0 var(--accent); } }
body.kb .dock { transform: translateY(140%); opacity: 0; pointer-events: none; }
body.gate .dock { display: none; }

/* ── sheets ── */
.sheet-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0, 10, 6, 0); display: flex; align-items: flex-end; justify-content: center; transition: background .26s; }
.sheet-wrap.open { background: rgba(0, 10, 6, .62); }
.sheet { width: min(100%, 600px); max-height: 88dvh; display: flex; flex-direction: column; background: var(--bg-2); border: 1px solid var(--line); border-bottom: 0; border-radius: 28px 28px 0 0; transform: translateY(102%); transition: transform .3s cubic-bezier(.2, .85, .25, 1); box-shadow: 0 -20px 60px -20px rgba(0, 0, 0, .6); }
.sheet.tall { height: 94dvh; max-height: 94dvh; }
.sheet-wrap.open .sheet { transform: none; }
.sheet-head { position: relative; padding: 18px 18px 6px; min-height: 58px; display: flex; align-items: center; flex: none; }
.sheet-grip { position: absolute; top: 8px; inset-inline: 0; margin-inline: auto; width: 42px; height: 4px; border-radius: 4px; background: var(--line-2); }
.sheet-title { flex: 1; font-size: 1.12rem; }
.sheet-x { margin-inline-start: auto; width: 38px; height: 38px; border-radius: 13px; }
.sheet-body { overflow-y: auto; padding: 8px 18px calc(22px + env(safe-area-inset-bottom) + var(--kb)); overscroll-behavior: contain; }
.sheet-foot { position: sticky; bottom: calc(-22px - env(safe-area-inset-bottom)); margin: 18px -18px calc(-22px - env(safe-area-inset-bottom)); padding: 12px 18px calc(16px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, var(--bg-2) 26%); display: flex; gap: 10px; }
.confirm { display: grid; gap: 18px; padding-bottom: 6px; }

/* ── toasts ── */
#toasts { position: fixed; z-index: 90; top: calc(14px + env(safe-area-inset-top)); inset-inline: 0; display: grid; justify-items: center; gap: 8px; pointer-events: none; padding-inline: 16px; }
.toast { background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 16px; font-weight: 600; font-size: .94rem; box-shadow: var(--shadow); animation: drop .3s cubic-bezier(.2, .9, .3, 1.2) both; max-width: 100%; }
.toast.bad { background: var(--coral); color: #2a0a04; }
.toast.out { opacity: 0; transform: translateY(-8px); transition: .28s; }
@keyframes drop { from { opacity: 0; transform: translateY(-14px) scale(.96); } }

/* ── skeletons + empty ── */
.sk-list { display: grid; gap: 12px; }
.sk { border-radius: var(--r); background: linear-gradient(100deg, var(--card) 30%, var(--card-2) 50%, var(--card) 70%); background-size: 220% 100%; animation: shimmer 1.3s linear infinite; }
.sk-card { height: 236px; } .sk-row { height: 78px; } .sk-line { height: 18px; border-radius: 8px; }
@keyframes shimmer { to { background-position: -220% 0; } }
.empty { text-align: center; padding: 44px 20px; display: grid; gap: 8px; justify-items: center; color: var(--muted); }
.empty h3 { color: var(--text); font-size: 1.1rem; }
.empty p { max-width: 30ch; }
.empty-ico { width: 68px; height: 68px; border-radius: 24px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); margin-bottom: 6px; }
.empty .btn { margin-top: 10px; }

/* ── gate (login + onboarding) ── */
.gate-page { min-height: 100dvh; display: grid; grid-template-rows: 1fr auto; padding: calc(28px + env(safe-area-inset-top)) 22px calc(24px + env(safe-area-inset-bottom)); gap: 24px; }
.gate-hero { display: grid; align-content: center; justify-items: center; text-align: center; gap: 14px; }
.gate-logo { width: 132px; height: 100px; object-fit: contain; filter: drop-shadow(0 16px 30px rgba(70, 249, 195, .35)); animation: lift 1s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes lift { from { opacity: 0; transform: translateY(26px) scale(.9) rotate(-5deg); } }
.gate-word { height: 40px; }
.gate-slogan { color: var(--muted); font-size: 1.05rem; }
.gate-form { display: grid; gap: 12px; animation: rise .5s .15s both; }
.code-input { font-family: var(--mono); font-size: 1.9rem; letter-spacing: .42em; text-align: center; direction: ltr; padding-inline-start: calc(15px + .42em); min-height: 68px; }
.gate-note { font-size: .86rem; color: var(--muted); text-align: center; }
.gate-err { color: var(--coral); font-size: .92rem; text-align: center; min-height: 1.4em; }

/* ── assistant ── */
.chat { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(14px + env(safe-area-inset-top)) 16px 0; }
.chat-top { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.chat-top .brand { display: flex; align-items: center; gap: 8px; flex: 1; }
.chat-top .brand img { height: 22px; }
.chat-scroll { flex: 1; display: flex; flex-direction: column; gap: 16px; padding-bottom: calc(var(--dock-h) + 128px + env(safe-area-inset-bottom)); }
body.kb .chat-scroll { padding-bottom: calc(var(--kb) + 110px); }
.hero { padding: 26px 0 4px; display: grid; gap: 10px; animation: rise .5s both; }
.hero h1 { font-size: clamp(2rem, 9vw, 2.6rem); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .ask { font-size: 1.12rem; color: var(--muted); }
.pulse { display: grid; gap: 8px; margin-top: 8px; }
.pulse-item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: start; width: 100%; color: inherit; }
.pulse-item .dot { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.pulse-item[data-k="quote_chosen"] .dot { background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.pulse-item[data-k="quote_viewed"] .dot { background: color-mix(in srgb, var(--violet) 16%, transparent); color: var(--violet); }
.pulse-item[data-k="reminder"] .dot { background: color-mix(in srgb, var(--sky) 16%, transparent); color: var(--sky); }
.pulse-item.new { border-color: var(--line-2); }
.pulse-item b { display: block; font-size: .94rem; font-weight: 600; }
.pulse-item small { color: var(--muted); font-size: .78rem; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.kpi { padding: 12px 12px 11px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 2px; text-align: start; color: inherit; }
.kpi b { font-size: 1.22rem; font-weight: 800; line-height: 1.2; }
.kpi span { font-size: .72rem; color: var(--muted); }
.kpi.hot b { color: var(--accent); }
.suggest { display: grid; gap: 8px; margin-top: 6px; }
.suggest button { display: flex; align-items: center; gap: 12px; text-align: start; padding: 13px 14px; border-radius: 18px; border: 1px dashed var(--line-2); color: var(--text); font-size: .95rem; transition: background .15s, transform .15s; }
.suggest button:active { background: var(--card); transform: scale(.985); }
.suggest .ico { color: var(--accent); }
.msg { max-width: 100%; animation: rise .3s both; }
.msg.user { align-self: flex-start; max-width: 86%; background: var(--btn); color: var(--btn-ink); padding: 11px 16px; border-radius: 20px 20px 20px 6px; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
[dir="rtl"] .msg.user { border-radius: 20px 20px 6px 20px; }
.msg.bot { display: grid; gap: 12px; min-width: 0; }
.msg-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; line-height: 1.62; }
.msg-text:empty { display: none; }
.msg.err .msg-text { color: var(--coral); }
.working { display: inline-flex; align-items: center; gap: 9px; color: var(--muted); font-size: .9rem; padding: 6px 0; }
.working .bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 14px; }
.working .bars i { width: 3px; border-radius: 3px; background: var(--accent); animation: eq 1s ease-in-out infinite; }
.working .bars i:nth-child(2) { animation-delay: .15s; } .working .bars i:nth-child(3) { animation-delay: .3s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .84rem; color: var(--muted); }
.mini { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); text-align: start; width: 100%; color: inherit; }
.mini .dot { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); flex: none; }
.mini b { display: block; font-weight: 600; }
.mini small { color: var(--muted); font-size: .8rem; }
.composer { position: fixed; z-index: 25; inset-inline: 0; margin-inline: auto; width: min(calc(100vw - 24px), 576px); bottom: calc(var(--dock-h) + 38px + env(safe-area-inset-bottom)); display: flex; align-items: flex-end; gap: 8px; padding: 8px; border-radius: 26px; background: var(--glass); border: 1px solid var(--line-2); backdrop-filter: blur(22px) saturate(1.3); -webkit-backdrop-filter: blur(22px) saturate(1.3); box-shadow: var(--shadow); transition: bottom .2s; }
body.kb .composer { bottom: calc(var(--kb) + 8px); }
.composer textarea { flex: 1; min-width: 0; border: 0; outline: 0; background: none; resize: none; max-height: 130px; padding: 11px 8px; line-height: 1.45; font-size: 1.02rem; }
.composer textarea::placeholder { color: var(--faint); }
.composer .go { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); flex: none; transition: transform .15s, opacity .15s; }
.composer .go:active { transform: scale(.9); }
.composer .go[disabled] { opacity: .35; }
.composer .go .ico { transform: scaleX(-1); }
.composer .mic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); flex: none; }
.composer .mic.live { color: #fff; background: var(--coral); animation: breatheMic 1.2s ease-in-out infinite; }
@keyframes breatheMic { 50% { box-shadow: 0 0 0 8px rgba(255, 138, 118, .25); } }

/* ── search ── */
.search-pass { display: grid; gap: 12px; }
.dest-box { position: relative; }
.dest-list { position: absolute; z-index: 5; inset-inline: 0; top: calc(100% + 6px); max-height: 280px; overflow-y: auto; border-radius: 18px; background: var(--bg-2); border: 1px solid var(--line-2); box-shadow: var(--shadow); padding: 6px; }
.dest-list button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; border-radius: 12px; text-align: start; }
.dest-list button:active, .dest-list button.hl { background: var(--card-2); }
.dest-list .code { font-family: var(--mono); font-weight: 700; color: var(--accent); width: 44px; direction: ltr; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dest-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dest-tile { position: relative; height: 104px; border-radius: 20px; overflow: hidden; border: 1px solid var(--line); text-align: start; color: #fff; }
.dest-tile .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.dest-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, rgba(0, 0, 0, .55)); }
.dest-tile span { position: absolute; z-index: 1; inset-inline-start: 12px; bottom: 9px; font-weight: 700; font-size: 1.02rem; }
.result-bar { position: sticky; top: 0; z-index: 10; margin: 16px -16px 12px; padding: 10px 16px; background: linear-gradient(180deg, var(--bg) 70%, transparent); display: flex; gap: 8px; align-items: center; }
.result-bar .chips { flex: 1; min-width: 0; margin: 0; padding: 0; }

/* stay sheet */
.stay-hero { position: relative; height: 190px; border-radius: 22px; overflow: hidden; margin-bottom: 14px; }
.stay-hero .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.stay-name { direction: ltr; text-align: end; unicode-bidi: plaintext; font-size: 1.4rem; font-weight: 800; line-height: 1.2; }
.offers { display: grid; gap: 8px; }
.offer { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; align-items: center; padding: 13px 14px; border-radius: 18px; border: 1.5px solid var(--line); background: var(--card); text-align: start; color: inherit; width: 100%; transition: border-color .15s, background .15s; }
.offer.on { border-color: var(--accent); background: var(--accent-soft); }
.offer b { font-weight: 600; }
.offer .cost { font-weight: 700; }
.offer small { color: var(--muted); font-size: .8rem; }
.offer .ok { color: var(--accent); } .offer .no { color: var(--faint); }
.dial { border-radius: 22px; border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--accent-soft), transparent 70%), var(--card); padding: 16px; display: grid; gap: 8px; }
.dial-top { display: flex; justify-content: space-between; align-items: baseline; }
.dial-top b { font-size: 1.5rem; font-weight: 800; color: var(--accent); }
.dial-nums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dial-nums > div { display: grid; gap: 0; }
.dial-nums span { font-size: .74rem; color: var(--muted); }
.dial-nums b { font-size: 1.5rem; font-weight: 800; line-height: 1.2; }
.dial-nums .win b { color: var(--accent); }

/* ── quotes ── */
.q-row { display: grid; grid-template-columns: 74px 1fr; border-radius: 20px; overflow: hidden; background: var(--solid); border: 1px solid var(--line); text-align: start; color: inherit; width: 100%; min-height: 96px; transition: transform .15s; }
.q-row:active { transform: scale(.985); }
.q-row .thumb { position: relative; }
.q-row .thumb .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.q-row .body { padding: 12px 14px; display: grid; gap: 5px; min-width: 0; border-inline-start: 2px dashed var(--line); }
.q-row h3 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.q-row .meta { font-size: .8rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.flight { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: relative; margin: 18px 0 4px; direction: rtl; }
.flight::before { content: ""; position: absolute; top: 9px; inset-inline: 10%; border-top: 2px dashed var(--line-2); }
.flight .stop { display: grid; justify-items: center; gap: 6px; position: relative; font-size: .7rem; color: var(--faint); text-align: center; }
.flight .stop i { width: 20px; height: 20px; border-radius: 50%; background: var(--bg-2); border: 2px solid var(--line-2); display: grid; place-items: center; }
.flight .stop.done { color: var(--muted); } .flight .stop.done i { background: var(--accent); border-color: var(--accent); }
.flight .stop.now { color: var(--accent); font-weight: 700; }
.flight .stop.now i { width: 30px; height: 30px; margin-top: -5px; background: var(--btn); border-color: var(--accent); color: var(--btn-ink); box-shadow: 0 0 0 5px var(--accent-soft); }
.flight .stop.now i .ico { transform: rotate(-45deg) scaleX(-1); }
.opt { border-radius: 20px; border: 1px solid var(--line); background: var(--card); padding: 14px; display: grid; gap: 10px; }
.opt.chosen { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold) inset; }
.opt-head { display: flex; gap: 12px; align-items: center; }
.opt-thumb { width: 56px; height: 56px; border-radius: 16px; overflow: hidden; position: relative; flex: none; }
.opt-thumb .art { position: absolute; inset: 0; width: 100%; height: 100%; }
.opt-name { direction: ltr; text-align: end; unicode-bidi: plaintext; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opt-money { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding-top: 10px; border-top: 1px dashed var(--line); }
.opt-money div { display: grid; }
.opt-money span { font-size: .7rem; color: var(--muted); }
.opt-money b { font-weight: 700; font-size: 1.02rem; }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .wide { grid-column: 1 / -1; }

/* ── clients ── */
.c-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); text-align: start; color: inherit; width: 100%; transition: transform .15s; }
.c-row:active { transform: scale(.985); }
.c-row .who { flex: 1; min-width: 0; display: grid; gap: 3px; }
.c-row .who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.c-row .who small { color: var(--muted); font-size: .8rem; }
.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick a, .quick button { display: grid; justify-items: center; gap: 6px; padding: 12px 4px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); font-size: .74rem; color: var(--text); font-weight: 500; }
.quick .ico { color: var(--accent); }
.timeline { display: grid; gap: 0; position: relative; padding-inline-start: 22px; }
.timeline::before { content: ""; position: absolute; inset-inline-start: 6px; top: 6px; bottom: 6px; border-inline-start: 2px dashed var(--line-2); }
.tl { position: relative; padding: 0 0 16px; }
.tl::before { content: ""; position: absolute; inset-inline-start: -21px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); }
.tl[data-k="note"]::before { border-color: var(--faint); }
.tl p { font-size: .95rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl small { color: var(--faint); font-size: .74rem; }
.fab { position: fixed; z-index: 20; bottom: calc(var(--dock-h) + 30px + env(safe-area-inset-bottom)); inset-inline-end: max(16px, calc(50vw - 284px)); height: 54px; padding: 0 20px 0 16px; border-radius: 27px; display: flex; align-items: center; gap: 8px; background: var(--btn); color: var(--btn-ink); font-weight: 700; box-shadow: 0 14px 30px -10px var(--accent); }
.fab:active { transform: scale(.95); }
.remind { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); }
.remind.done { opacity: .5; text-decoration: line-through; }
.remind.late { border-color: color-mix(in srgb, var(--coral) 50%, transparent); }
.tick { width: 28px; height: 28px; border-radius: 10px; border: 2px solid var(--line-2); display: grid; place-items: center; color: transparent; flex: none; }
.remind.done .tick { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ── business ── */
.bignum { display: grid; gap: 2px; padding: 20px 18px; border-radius: 26px; border: 1px solid var(--line-2); background: radial-gradient(120% 140% at 100% 0%, var(--accent-soft), transparent 60%), var(--card); position: relative; overflow: hidden; }
.bignum .v { font-size: clamp(2.5rem, 13vw, 3.4rem); font-weight: 800; line-height: 1.05; color: var(--accent); letter-spacing: -.02em; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 8px; align-items: end; height: 150px; direction: ltr; }
.bar { display: grid; grid-template-rows: 1fr auto; gap: 6px; height: 100%; align-items: end; text-align: center; }
.bar i { display: block; border-radius: 9px 9px 4px 4px; background: var(--card-2); min-height: 5px; transition: height .6s cubic-bezier(.2, .8, .2, 1); }
.bar.now i { background: linear-gradient(180deg, var(--accent), color-mix(in srgb, var(--accent) 40%, transparent)); }
.bar span { font-size: .68rem; color: var(--muted); font-family: var(--mono); }
.bar b { font-size: .68rem; font-weight: 600; color: var(--muted); }
.funnel { display: grid; gap: 7px; }
.funnel .f { display: grid; grid-template-columns: 78px 1fr 30px; align-items: center; gap: 10px; font-size: .84rem; }
.funnel .f i { height: 12px; border-radius: 6px; background: var(--accent); min-width: 5px; transition: width .6s cubic-bezier(.2, .8, .2, 1); justify-self: start; }
.funnel .f b { text-align: end; }

/* ── itinerary ── */
.day { border-radius: 22px; border: 1px solid var(--line); background: var(--card); padding: 16px; display: grid; gap: 12px; }
.day-head { display: flex; align-items: center; gap: 12px; }
.day-n { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; background: var(--btn); color: var(--btn-ink); font-family: var(--mono); font-weight: 700; flex: none; }
.stop-item { display: grid; grid-template-columns: 64px 1fr; gap: 10px; padding-top: 12px; border-top: 1px dashed var(--line); }
.stop-item .when { font-size: .74rem; color: var(--accent); font-weight: 600; padding-top: 3px; }
.stop-item b { font-weight: 600; }
.stop-item p { font-size: .9rem; color: var(--muted); }
.stop-item .tip { font-size: .82rem; color: var(--gold); margin-top: 3px; }
.edit-item { display: grid; gap: 6px; padding-top: 12px; border-top: 1px dashed var(--line); }
.edit-item .input { min-height: 44px; padding: 9px 12px; border-radius: 12px; font-size: .94rem; }

/* ── large screens: keep the phone column, give it air ── */
@media (min-width: 640px) {
  .page, .chat { padding-inline: 22px; }
  .carousel { margin-inline: -22px; padding-inline: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
