/* Finishing layer: warm paper + fine grain, calmer hero, a proper railway. Loaded last. */
html { background: #F4F1EA; }
html::after { content: ''; position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; opacity: .5; mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .5  0 0 0 0 .5  0 0 0 0 .5  0 0 0 .55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>"); }

/* hero: quiet, matte, no blue glow */
.hero { background: linear-gradient(180deg, #0C161E 0%, #121F29 100%); }
.hero-glow { background: radial-gradient(circle, rgba(214, 165, 72, .09), transparent 66%); }
.hero-lines { background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 86px); }
.ecrl { background: linear-gradient(180deg, #0C161E, #111D27); }

/* railway: ballast bed, sleepers, two steel rails, and a soft light travelling the line */
.rail-bed { fill: none; stroke: rgba(255, 255, 255, .05); stroke-width: 26; stroke-linecap: butt; stroke-linejoin: round; }
.rail-ties { fill: none; stroke: #8E7D63; stroke-opacity: .6; stroke-width: 17; stroke-dasharray: 2.6 8.4; stroke-linejoin: round; }
.rail-steel { fill: none; stroke: #B7BEC4; stroke-width: 8.5; stroke-linecap: round; stroke-linejoin: round; }
.rail-gap { fill: none; stroke: #0F1A23; stroke-width: 5.4; stroke-linecap: round; stroke-linejoin: round; }
.rail-line { fill: none; stroke: none; }
.rail-pulse { fill: none; stroke: #F1D28A; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; filter: url(#rail-glow); opacity: .95; }
.rail-spark { fill: #F1D28A; filter: url(#rail-glow); }
.ecrl-dot { fill: #0C161E; stroke: #EDE6D6; stroke-width: 2.5; }
.ecrl-halo { fill: rgba(214, 165, 72, .55); fill-opacity: 0; }
.ecrl-stop:hover .ecrl-halo, .ecrl-stop:focus-visible .ecrl-halo, .ecrl-stop.is-on .ecrl-halo { fill-opacity: 1; fill: rgba(214, 165, 72, .26); }
.ecrl-label { fill: rgba(237, 230, 214, .82); letter-spacing: .02em; }
@media (prefers-reduced-motion: reduce) { html::after { opacity: .35; } }

/* showroom as a page (portal Cars) */
.cars-showroom { min-height: 100dvh; display: grid; }
.showroom.is-page { position: relative; inset: auto; z-index: 1; min-height: 100dvh; background: radial-gradient(120% 90% at 50% 0%, #1D3445 0%, #0C161E 62%); padding-top: 64px; }
.showroom.is-page .sr-top { padding-top: 18px; }
@media (max-width: 899px) { .showroom.is-page { padding-bottom: 84px; } }
.showroom.is-page .sr-card { --w: min(44vw, 380px); }
.showroom.is-page .sr-stage { min-height: 300px; margin-bottom: 34px; }
.showroom.is-page .sr-top { position: relative; z-index: 6; }
.showroom.is-page .sr-card figcaption { top: calc(100% + 8px); }
/* Lenis is stopped on admin/kiosk; do not let that freeze native scrolling there */
html:has(body.admin-mode).lenis-stopped, html:has(body.kiosk-mode).lenis-stopped { overflow: auto !important; }

/* ---- opening sequence ---- */
#boot-splash { background: transparent; overflow: hidden; display: block; }
.in-pane { position: absolute; left: 0; right: 0; height: 50.5%; background: #0C161E; z-index: 0; }
.in-top { top: 0; } .in-bot { bottom: 0; }
.in-pane::after { content: ''; position: absolute; inset: 0; background: radial-gradient(60% 90% at 50% 100%, rgba(214, 165, 72, .08), transparent 70%); }
.in-bot::after { background: radial-gradient(60% 90% at 50% 0%, rgba(214, 165, 72, .08), transparent 70%); }
.in-stage { position: absolute; inset: 0; margin: auto; width: max-content; height: 90px; z-index: 2; display: flex; align-items: center; gap: 18px; }
.in-icon { width: 78px; height: 78px; border-radius: 22px; background: var(--accent); color: #14232F; display: grid; place-items: center; flex: none; box-shadow: 0 18px 40px -14px rgba(214, 165, 72, .6); will-change: transform; }
.in-icon svg { width: 42px; height: 42px; }
.in-word { display: inline-flex; align-items: baseline; gap: .32em; font: 800 clamp(2.4rem, 7vw, 4rem)/1 var(--font-display); color: #F4F1EA; letter-spacing: -.03em; }
.in-rental { font-weight: 500; opacity: .8; }
.in-ch { display: inline-block; font-weight: inherit; will-change: transform; }
.in-stage.is-lit .in-zivo { text-shadow: 0 0 28px rgba(214, 165, 72, .55); transition: text-shadow .5s; }
.in-wind { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.in-wind i { position: absolute; left: 0; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, rgba(244, 241, 234, .75), transparent); opacity: 0; }
.in-warp { position: absolute; inset: 0; margin: auto; width: min(160vmax, 2400px); height: auto; aspect-ratio: 1; z-index: 3; pointer-events: none; opacity: 0; }
.in-warp line { stroke: rgba(244, 241, 234, .5); stroke-width: 1.6; }
.in-warp g { stroke-dasharray: 90 400; }
#boot-splash.is-quick .in-icon { transform: none; }
body:not(.game-mode) .showroom.is-page { padding-top: calc(var(--header-h) + 6px); min-height: 100dvh; }

/* ---- Stations page ---- */
.st-page { padding: calc(var(--header-h) + clamp(24px, 4vw, 48px)) 0 clamp(48px, 7vw, 96px); }
.st-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end; margin-bottom: clamp(20px, 3vw, 36px); }
.st-head h1 { font-size: clamp(2rem, 4.2vw, 3.3rem); letter-spacing: -.035em; margin: 6px 0 10px; max-width: 18ch; }
.st-head p { max-width: 52ch; }
.st-facts { display: flex; gap: 12px; }
.st-facts li { display: grid; gap: 2px; padding: 14px 20px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); min-width: 112px; }
.st-facts b { font: 800 1.9rem/1 var(--font-display); color: var(--ink); } .st-facts span { font-size: .78rem; color: var(--muted); }
.st-grid { display: grid; grid-template-columns: minmax(280px, 380px) minmax(0, 1fr); gap: clamp(16px, 2.4vw, 28px); align-items: start; }
.st-side { display: grid; gap: 12px; min-width: 0; position: sticky; top: calc(var(--header-h) + 14px); }
.st-search { display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line-2); color: var(--muted); }
.st-search:focus-within { border-color: var(--accent-600); } .st-search svg { width: 18px; height: 18px; flex: none; }
.st-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: none; font: inherit; color: var(--ink); }
.st-rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 22px 2px 2px; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 30px), transparent); }
.st-rail::-webkit-scrollbar { display: none; }
.st-chip { flex: none; white-space: nowrap; padding: 8px 16px; border-radius: 999px; border: 1.5px solid var(--line-2); background: transparent; color: var(--ink); font-weight: 600; font-size: .84rem; cursor: pointer; transition: all .25s; }
.st-chip:hover { border-color: var(--ink); } .st-chip[aria-pressed='true'] { background: var(--ink); color: #F4F1EA; border-color: var(--ink); }
.st-list { position: relative; max-height: min(62vh, 560px); overflow: auto; padding: 4px 4px 4px 0; display: grid; gap: 4px; scrollbar-width: thin; }
.st-list::before { content: ''; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 2px; background: repeating-linear-gradient(var(--line-2) 0 6px, transparent 6px 10px); }
.st-item { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; padding: 10px 12px 10px 4px; border-radius: 16px; cursor: pointer; transition: background .25s, transform .25s var(--ease); }
.st-item:hover { background: rgba(20, 35, 47, .05); transform: translateX(3px); }
.st-pin { position: relative; flex: none; width: 22px; display: grid; place-items: center; z-index: 1; }
.st-pin::before { content: ''; width: 11px; height: 11px; border-radius: 50%; background: #F4F1EA; border: 2.5px solid var(--ink-3); transition: all .3s var(--ease); }
.st-item.is-on { background: var(--ink); color: #F4F1EA; box-shadow: 0 16px 30px -18px rgba(12, 22, 30, .8); }
.st-item.is-on .st-pin::before { background: var(--accent); border-color: var(--accent); transform: scale(1.35); box-shadow: 0 0 0 5px rgba(214, 165, 72, .28); }
.st-ico { flex: none; width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-50); color: var(--ink); } .st-ico svg { width: 18px; height: 18px; }
.st-item.is-on .st-ico { background: rgba(255, 255, 255, .1); color: var(--accent); }
.st-txt { display: grid; min-width: 0; } .st-txt strong { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .st-txt small { color: var(--muted); font-size: .76rem; } .st-item.is-on small { color: rgba(244, 241, 234, .65); }
.st-none { padding: 20px; color: var(--muted); }
.st-detail { position: relative; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, #14232F, #0C161E); color: #F4F1EA; min-height: 460px; box-shadow: 0 40px 70px -40px rgba(12, 22, 30, .9); }
.st-map { position: relative; min-height: 360px; background: #1a2a36; }
.st-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; opacity: 0; transition: opacity .6s; filter: grayscale(.35) contrast(1.05); } .st-map iframe.is-in { opacity: 1; }
.st-map-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .25); font-style: normal; } .st-map-ph svg { width: 44px; height: 44px; }
.st-kind { position: absolute; left: 16px; top: 16px; z-index: 2; padding: 6px 14px; border-radius: 999px; background: rgba(12, 22, 30, .8); backdrop-filter: blur(10px); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); }
.st-info { display: grid; gap: 14px; align-content: center; padding: clamp(20px, 3vw, 36px); }
.st-title { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.st-title h2 { color: #fff; font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: -.03em; line-height: 1.12; }
.st-no { font: 800 1.9rem/1 var(--font-display); color: var(--accent); white-space: nowrap; } .st-no small { font-size: .8rem; color: rgba(244, 241, 234, .5); margin-left: 3px; }
.st-addr { display: flex; gap: 10px; color: rgba(244, 241, 234, .72); font-size: .92rem; } .st-addr svg { width: 18px; height: 18px; flex: none; color: var(--accent); margin-top: 2px; }
.st-tags { display: flex; flex-wrap: wrap; gap: 8px; } .st-tags span { padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: .76rem; font-weight: 700; } .st-tags .tbc { background: rgba(214, 165, 72, .16); color: var(--accent); }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-dark { border: 1.5px solid rgba(255, 255, 255, .28); color: #fff; background: transparent; } .btn-ghost-dark:hover { background: rgba(255, 255, 255, .1); }
.st-step { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: rgba(244, 241, 234, .55); }
.st-step button { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid rgba(255, 255, 255, .25); color: #fff; cursor: pointer; transition: all .25s; } .st-step button:hover:not(:disabled) { background: var(--accent); color: #14232F; border-color: var(--accent); } .st-step button:disabled { opacity: .3; cursor: default; } .st-step button svg { width: 18px; height: 18px; } .st-step span { flex: 1; text-align: center; }
@media (max-width: 1000px) { .st-grid { grid-template-columns: 1fr; } .st-side { position: static; } .st-list { max-height: 320px; } .st-detail { grid-template-columns: 1fr; } .st-map { min-height: 260px; } .st-head { grid-template-columns: 1fr; } }
@media (max-width: 1180px) { .st-detail { grid-template-columns: 1fr; } .st-map { min-height: 260px; } }

/* ---- Boarding-pass style rental pass ---- */
.bp { --bp-ink: #14232F; --bp-paper: #FBF9F4; --bp-line: #DDD6C6; max-width: 720px; margin: 0 auto 24px; border-radius: 24px; background: var(--bp-paper); color: var(--bp-ink); box-shadow: 0 24px 60px -24px rgba(0, 0, 0, .55); overflow: hidden; position: relative; text-align: left; }
.bp strong, .bp small, .bp b, .bp span { color: inherit; }
.bp-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px; background: #14232F; color: #F4F1EA; }
.bp-brand { display: inline-flex; align-items: center; gap: 8px; color: #D6A548 !important; }
.bp-brand svg { width: 22px; height: 22px; }
.bp-brand b { font: 800 1rem/1 var(--font-display); color: #F4F1EA; letter-spacing: -.01em; }
.bp-brand i { font-style: normal; font-weight: 500; opacity: .7; }
.bp-title { margin-left: auto; font-size: .7rem; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: rgba(244, 241, 234, .65) !important; }
.bp-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 14px; align-items: center; padding: 26px 24px 8px; }
.bp-route .r { text-align: right; }
.bp-route small { display: block; margin-top: 4px; color: #5A6470; font-size: .82rem; }
.bp-k { display: block; font-size: .64rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8A8576 !important; margin-bottom: 3px; }
.bp-code { font: 800 clamp(2rem, 9vw, 3.2rem)/1 var(--font-display); letter-spacing: -.03em; display: block; }
.bp-path { display: flex; align-items: center; gap: 8px; color: #D6A548; }
.bp-path svg { width: 22px; height: 22px; flex: none; }
.bp-path span { height: 2px; width: clamp(18px, 7vw, 80px); background: repeating-linear-gradient(90deg, #C9C2B0 0 5px, transparent 5px 10px); }
.bp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 20px; padding: 20px 24px 26px; }
.bp-cell { display: grid; gap: 2px; min-width: 0; }
.bp-cell strong { font-size: 1rem; line-height: 1.25; overflow-wrap: anywhere; }
.bp-cell small { color: #5A6470; font-size: .82rem; }
.bp-tear { position: relative; height: 0; }
.bp-tear i { position: absolute; top: -13px; width: 26px; height: 26px; border-radius: 50%; background: #0C161E; }
.bp-tear i:first-child { left: -13px; } .bp-tear i:last-child { right: -13px; }
.bp-tear b { position: absolute; left: 22px; right: 22px; top: -1px; border-top: 2px dashed var(--bp-line); }
.bp-stub { display: flex; align-items: center; gap: 22px; padding: 26px 24px; background: #F3EFE5; }
.bp-qr { padding: 8px; border-radius: 14px; background: #fff; border: 1px solid var(--bp-line); flex: none; }
.bp-qr img { display: block; width: 104px; height: 104px; }
.bp-code2 { display: grid; gap: 8px; min-width: 0; flex: 1; }
.bp-barcode { display: flex; align-items: stretch; height: 46px; overflow: hidden; }
.bp-barcode i { display: block; background: #14232F; flex: none; }
.bp-ref { font: 800 1.3rem/1 var(--font-display); letter-spacing: .22em; }
.bp-code2 small { color: #5A6470; font-size: .78rem; }
.k-done .bp { width: 100%; }
@media (max-width: 560px) {
  .bp { border-radius: 20px; }
  .bp-head { padding: 14px 16px; flex-wrap: wrap; } .bp-title { margin-left: 0; order: 3; width: 100%; }
  .bp-route { padding: 20px 16px 4px; gap: 8px; }
  .bp-grid { grid-template-columns: 1fr 1fr; padding: 16px; gap: 14px; }
  .bp-stub { flex-direction: column; align-items: stretch; text-align: center; padding: 20px 16px; gap: 14px; }
  .bp-qr { align-self: center; } .bp-barcode { justify-content: center; } .bp-ref { font-size: 1.1rem; }
}
/* ---- Showroom header: brand carousel + type chips, back button ---- */
.sr-headrow { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sr-back { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px 0 12px; border-radius: 999px; border: 1px solid rgba(244, 241, 234, .22); background: rgba(255, 255, 255, .06); color: #F4F1EA; font-weight: 700; flex: none; backdrop-filter: blur(8px); }
.sr-back svg { width: 18px; height: 18px; }
body.game-mode .sr-back { display: none; }
.sr-top { display: grid; gap: 14px; }
.sr-filters { display: grid; gap: 10px; min-width: 0; }
.sr-brands .sr-rail { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 2px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.sr-brands .sr-rail::-webkit-scrollbar, .sr-fgroup .sr-rail::-webkit-scrollbar { display: none; }
.sr-brand { flex: none; scroll-snap-align: center; display: grid; grid-template-columns: 64px auto; grid-template-rows: auto auto; column-gap: 12px; align-items: center; min-height: 64px; padding: 6px 18px 6px 6px; border-radius: 20px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(244, 241, 234, .14); color: #F4F1EA; text-align: left; transition: transform .35s cubic-bezier(.2, .9, .3, 1.3), background .25s, border-color .25s, box-shadow .3s; }
.sr-brand-img { grid-row: 1 / 3; width: 64px; height: 52px; border-radius: 14px; background: rgba(0, 0, 0, .28); display: grid; place-items: center; overflow: hidden; }
.sr-brand-img img { width: 100%; height: 100%; object-fit: cover; }
.sr-brand-img svg { width: 26px; height: 26px; opacity: .7; }
.sr-brand b { font: 700 .98rem/1.1 var(--font-display); align-self: end; color: inherit; }
.sr-brand small { font-size: .74rem; opacity: .6; align-self: start; color: inherit; }
.sr-brand[aria-pressed='true'] { background: linear-gradient(135deg, #D6A548, #B98A32); border-color: #D6A548; color: #14232F; transform: translateY(-2px) scale(1.03); box-shadow: 0 14px 30px -12px rgba(214, 165, 72, .7); }
.sr-fgroup .sr-rail { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px; -webkit-overflow-scrolling: touch; }
.sr-chip { min-height: 40px; flex: none; }
@media (max-width: 640px) {
  .sr-brand { grid-template-columns: 52px auto; min-height: 56px; padding-right: 14px; border-radius: 16px; }
  .sr-brand-img { width: 52px; height: 44px; }
  .sr-headrow { gap: 10px; }
  .sr-back span { display: none; }
  .sr-back { padding: 0; width: 44px; justify-content: center; }
}

/* ---- Showroom page on phones ---- */
@media (max-width: 640px) {
  .showroom.is-page .sr-card { --w: 64vw; }
  .showroom.is-page .sr-stage { min-height: 250px; margin-bottom: 26px; }
  .showroom.is-page .sr-panel { padding-bottom: 150px; }
  .showroom.is-page .sr-buy { position: fixed; left: 12px; right: 12px; bottom: calc(84px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px 10px 18px; border-radius: 22px; background: rgba(12, 22, 30, .82); backdrop-filter: blur(16px); border: 1px solid rgba(244, 241, 234, .16); box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .7); }
  .showroom.is-page .sr-buy .btn { min-height: 48px; flex: none; }
  .showroom.is-page .sr-price strong { font-size: 1.5rem; }
}

/* ---- Phones: dock, tap targets, tables ---- */
@media (max-width: 899px) {
  .g-dock a, .g-dock button { min-width: 0; min-height: 52px; }
  .g-dock span { white-space: nowrap; font-size: .64rem; }
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }
  .a-bar { gap: 8px; } .a-bar .seg { width: 100%; } .a-bar .seg button { flex: 1; min-height: 40px; }
}

.admin, .a-main, .a-body { min-width: 0; max-width: 100%; }
@media (max-width: 760px) {
  .rows-cards { overflow: visible; background: transparent; border: 0; box-shadow: none; }
  .rows-cards table, .rows-cards tbody { display: block; width: 100%; }
  .rows-cards thead { display: none; }
  .rows-cards tr { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 14px 16px; margin-bottom: 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(244, 241, 234, .12); }
  .rows-cards td { display: block; padding: 0 !important; border: 0 !important; min-width: 0; }
  .rows-cards td:nth-child(1) { flex: 1 1 60%; }
  .rows-cards td:nth-child(6) { order: 2; flex: none; }
  .rows-cards td:nth-child(2) { order: 3; flex: 1 1 100%; overflow-wrap: anywhere; }
  .rows-cards td:nth-child(3), .rows-cards td:nth-child(4), .rows-cards td:nth-child(5) { order: 4; }
  .rows-cards td:nth-child(4)::before { content: 'Bookings '; opacity: .55; font-size: .8rem; }
  .a-actions .icon-btn { width: 44px; height: 44px; }
}
.rows-cards .a-actions { display: flex; gap: 6px; }

/* ---- Phone: the main "Book a car" button (pulses every 3 s) ---- */
.g-book { display: none; }
@media (max-width: 899px) {
  .g-book { position: fixed; left: 14px; right: 14px; bottom: calc(86px + var(--safe-b, 0px)); z-index: 95; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; border-radius: 20px; background: linear-gradient(135deg, #E6B85C, #D6A548 55%, #B98A32); color: #14232F; font: 800 1.05rem/1 var(--font-display); box-shadow: 0 16px 34px -10px rgba(214, 165, 72, .75); overflow: hidden; animation: gBookPulse 3s ease-in-out infinite; -webkit-tap-highlight-color: transparent; }
  .g-book svg { width: 22px; height: 22px; flex: none; }
  .g-book::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .65), transparent); transform: skewX(-18deg); animation: gBookShine 3s ease-in-out infinite; }
  .g-book:active { transform: scale(.97); }
  body.game-mode #view { padding-bottom: 170px; }
}
@keyframes gBookPulse { 0%, 62%, 100% { transform: scale(1); box-shadow: 0 16px 34px -10px rgba(214, 165, 72, .75); } 72% { transform: scale(1.045); box-shadow: 0 0 0 10px rgba(214, 165, 72, .22), 0 18px 40px -8px rgba(214, 165, 72, .9); } 84% { transform: scale(.99); } }
@keyframes gBookShine { 0%, 60% { left: -60%; } 85%, 100% { left: 130%; } }
@media (prefers-reduced-motion: reduce) { .g-book, .g-book::after { animation: none; } }

/* ---- Driver portal ---- */
.dv { max-width: 640px; margin: 0 auto; padding: calc(70px + env(safe-area-inset-top, 0px)) 16px 40px; color: #F4F1EA; }
.dv-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.dv-top h1 { font-size: clamp(1.7rem, 7vw, 2.4rem); margin: 2px 0 0; color: #F4F1EA; }
.dv-duty { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 18px 0 12px; border-radius: 999px; border: 1px solid rgba(244, 241, 234, .18); background: rgba(255, 255, 255, .06); color: #F4F1EA; font-weight: 800; flex: none; }
.dv-duty i { width: 26px; height: 26px; border-radius: 50%; background: #5A6470; transition: background .3s; }
.dv-duty.available { border-color: rgba(70, 200, 120, .5); background: rgba(70, 200, 120, .12); }
.dv-duty.available i { background: #46C878; animation: dvPing 2s ease-out infinite; }
.dv-duty.on_job i { background: #D6A548; }
.dv-duty[disabled] { opacity: .85; }
@keyframes dvPing { 0% { box-shadow: 0 0 0 0 rgba(70, 200, 120, .6); } 100% { box-shadow: 0 0 0 14px rgba(70, 200, 120, 0); } }
.dv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; list-style: none; margin: 0 0 16px; padding: 0; }
.dv-stats li { padding: 14px 10px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(244, 241, 234, .1); text-align: center; display: grid; gap: 2px; }
.dv-stats b { font: 800 1.7rem/1 var(--font-display); color: #D6A548; }
.dv-stats span { font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; opacity: .65; }
.dv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; padding: 5px; border-radius: 18px; background: rgba(255, 255, 255, .06); margin-bottom: 18px; position: sticky; top: 8px; z-index: 5; backdrop-filter: blur(14px); }
.dv-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 46px; border-radius: 14px; color: rgba(244, 241, 234, .7); font-weight: 700; transition: background .25s, color .25s; }
.dv-tabs svg { width: 18px; height: 18px; }
.dv-tabs button[aria-selected='true'] { background: #D6A548; color: #14232F; }
.dv-h { margin: 22px 2px 10px; font-size: 1rem; color: #F4F1EA; display: flex; align-items: center; gap: 8px; }
.dv-h em { font-style: normal; font-size: .75rem; padding: 2px 9px; border-radius: 99px; background: rgba(214, 165, 72, .2); color: #D6A548; }
.dv-hero { border-radius: 26px; padding: 18px; background: linear-gradient(160deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, .03)); border: 1px solid rgba(214, 165, 72, .35); box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8); display: grid; gap: 16px; }
.dv-hero header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dv-count { font-weight: 700; font-size: .9rem; color: #D6A548; }
.dv-chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: 99px; font-size: .74rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .1); color: #F4F1EA; white-space: nowrap; }
.dv-chip.is-new { background: #D6A548; color: #14232F; animation: dvBlink 1.6s ease-in-out infinite; }
.dv-chip.is-ok { background: rgba(70, 200, 120, .2); color: #6EE19B; }
@keyframes dvBlink { 50% { box-shadow: 0 0 0 7px rgba(214, 165, 72, .25); } }
.dv-car { display: flex; align-items: center; gap: 14px; }
.dv-car img, .dv-car > i { width: 112px; height: 78px; border-radius: 16px; object-fit: cover; flex: none; background: rgba(0, 0, 0, .3); display: grid; place-items: center; }
.dv-car h2 { margin: 0; font-size: 1.35rem; color: #F4F1EA; }
.dv-car p { margin: 4px 0 0; opacity: .7; font-size: .88rem; }
.dv-route { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(0, 0, 0, .22); }
.dv-route small { display: block; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; opacity: .55; }
.dv-route strong { display: block; font-size: 1.05rem; margin: 2px 0; }
.dv-route span { font-size: .8rem; opacity: .75; }
.dv-route i { color: #D6A548; display: grid; }
.dv-route i svg { width: 20px; height: 20px; }
.dv-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); position: relative; }
.dv-steps::before { content: ''; position: absolute; left: 10%; right: 10%; top: 19px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .12); }
.dv-steps::after { content: ''; position: absolute; left: 10%; top: 19px; height: 3px; border-radius: 3px; background: #D6A548; width: calc(80% * var(--at) / (var(--n) - 1)); transition: width .6s cubic-bezier(.2, .9, .3, 1); }
.dv-steps li { position: relative; z-index: 1; display: grid; justify-items: center; gap: 6px; text-align: center; }
.dv-steps li span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #1A2A36; border: 2px solid rgba(255, 255, 255, .14); color: rgba(244, 241, 234, .55); }
.dv-steps li span svg { width: 18px; height: 18px; }
.dv-steps small { font-size: .66rem; opacity: .6; line-height: 1.15; }
.dv-steps .is-done span { background: #46C878; border-color: #46C878; color: #0C161E; }
.dv-steps .is-now span { background: #D6A548; border-color: #D6A548; color: #14232F; box-shadow: 0 0 0 6px rgba(214, 165, 72, .25); }
.dv-steps .is-now small { opacity: 1; font-weight: 700; }
.dv-cust { display: flex; align-items: center; gap: 12px; }
.dv-cust > div { flex: 1; min-width: 0; }
.dv-cust strong { display: block; }
.dv-cust small { display: block; opacity: .65; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dv-av { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: #D6A548; color: #14232F; font-weight: 800; flex: none; }
.dv-av.big { width: 84px; height: 84px; font-size: 1.8rem; margin: 0 auto 12px; }
.dv-ic { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .09); color: #F4F1EA; flex: none; }
.dv-ic svg { width: 20px; height: 20px; }
.dv-ic:last-child { background: rgba(70, 200, 120, .2); color: #6EE19B; }
.dv-act { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.dv-go { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 18px; border-radius: 20px; background: linear-gradient(135deg, #E6B85C, #D6A548 60%, #B98A32); color: #14232F; font: 800 1.02rem/1.1 var(--font-display); text-align: left; box-shadow: 0 14px 30px -10px rgba(214, 165, 72, .7); }
.dv-go span svg { width: 24px; height: 24px; }
.dv-go:active { transform: scale(.98); }
.dv-go.is-loading { opacity: .6; }
.dv-map { display: grid; place-items: center; gap: 2px; min-width: 76px; min-height: 60px; border-radius: 20px; background: rgba(255, 255, 255, .08); color: #F4F1EA; font-size: .72rem; font-weight: 700; }
.dv-map svg { width: 20px; height: 20px; }
.dv-finished { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 60px; border-radius: 20px; background: rgba(70, 200, 120, .16); color: #6EE19B; font-weight: 800; }
.dv-list { display: grid; gap: 10px; }
.dv-row { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 12px; border-radius: 18px; background: rgba(255, 255, 255, .05); border: 1px solid rgba(244, 241, 234, .1); }
.dv-row small { display: block; opacity: .65; font-size: .8rem; }
.dv-row strong { display: block; }
.dv-thumb { width: 64px; height: 50px; border-radius: 12px; overflow: hidden; background: rgba(0, 0, 0, .3); display: grid; place-items: center; }
.dv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dv-empty { text-align: center; padding: 40px 20px; border-radius: 24px; background: rgba(255, 255, 255, .04); border: 1px dashed rgba(244, 241, 234, .18); }
.dv-empty svg { width: 40px; height: 40px; color: #D6A548; }
.dv-empty h3 { margin: 12px 0 6px; color: #F4F1EA; }
.dv-empty p { opacity: .7; margin: 0; }
.dv-me { text-align: center; margin-bottom: 18px; }
.dv-me h2 { margin: 0; color: #F4F1EA; }
.dv-me p { opacity: .65; margin: 4px 0 0; }
.dv-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 18px; }
.dv-facts div { padding: 14px; border-radius: 16px; background: rgba(255, 255, 255, .05); }
.dv-facts dt { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; opacity: .55; }
.dv-facts dd { margin: 4px 0 0; font-weight: 700; }
.dv-out { width: 100%; min-height: 54px; border-radius: 18px; display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 90, 90, .14); color: #FF8A8A; font-weight: 800; }
@media (max-width: 899px) { .dv { padding-bottom: 130px; } }
@media (max-width: 380px) { .dv-car img, .dv-car > i { width: 88px; height: 64px; } .dv-go { font-size: .94rem; } }

/* ---- Showroom page: fit the car, stats and Select button in one screen on laptops ---- */
@media (min-width: 900px) {
  .showroom.is-page { padding-top: calc(var(--header-h, 72px) + 4px); }
  .showroom.is-page .sr-top { padding-top: 6px; gap: 8px; }
  .showroom.is-page .sr-stage { min-height: clamp(220px, 31vh, 340px); margin-bottom: 20px; }
  .showroom.is-page .sr-card { --w: min(30vw, 340px); }
  .showroom.is-page .sr-panel { padding-bottom: 28px; }
}

/* ---- fixes: car page image (admin.css .car-img 56x38 leaked), showroom rail clipping ---- */
.car-stage .car-img, .car-stage-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; background: transparent; overflow: visible; }
.car-stage .car-img-ph { display: grid; place-items: center; align-content: center; background: linear-gradient(160deg, var(--ink-2), var(--night)); }
.k-car .car-img, .car-card .car-img { width: 100%; height: 100%; border-radius: 0; }
.sr-rail, .sr-brands .sr-rail, .sr-fgroup .sr-rail { padding-top: 14px !important; padding-bottom: 16px !important; margin-top: -8px; margin-bottom: -6px; }
.sr-brands .sr-rail { padding-left: 4px !important; padding-right: 24px !important; }
.sr-fgroup .sr-rail { padding-left: 4px !important; }

/* ---- sequential booking wizard (/book) ---- */
.bk { min-height: 100dvh; display: flex; flex-direction: column; padding: calc(var(--header-h, 64px) + 8px) 18px 110px; max-width: 560px; margin: 0 auto; width: 100%; }
body.game-mode .bk { padding-top: 14px; }
.bk-top { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; }
.bk-back { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line, rgba(255,255,255,.18)); background: rgba(255,255,255,.06); color: inherit; display: grid; place-items: center; }
.bk-back svg { width: 20px; height: 20px; }
.bk-prog { flex: 1; display: flex; gap: 6px; }
.bk-prog span { flex: 1; height: 5px; border-radius: 9px; background: rgba(255,255,255,.14); transition: background .3s; }
.bk-prog span.done { background: #D6A548; } .bk-prog span.now { background: linear-gradient(90deg, #D6A548, #f0c878); box-shadow: 0 0 10px rgba(214,165,72,.6); }
.bk-count { font-size: .8rem; font-weight: 700; opacity: .7; min-width: 30px; text-align: right; }
.bk-q { font: 800 clamp(1.6rem, 6vw, 2.1rem)/1.15 var(--font-display); margin: 0 0 6px; }
.bk-sub { opacity: .7; margin: 0 0 20px; font-size: .98rem; }
.bk-h { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; opacity: .6; margin: 22px 0 10px; }
.bk-opts { display: grid; gap: 12px; }
.bk-opt, .bk-car { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; min-height: 84px; padding: 14px 16px; text-align: left; color: inherit; border-radius: 20px; border: 1.5px solid rgba(255,255,255,.16); background: rgba(255,255,255,.05); transition: border-color .2s, background .2s, transform .2s; }
.bk-opt:active, .bk-car:active { transform: scale(.985); }
.bk-opt-ic { width: 52px; height: 52px; flex: none; border-radius: 16px; display: grid; place-items: center; background: rgba(214,165,72,.16); color: #D6A548; }
.bk-opt-ic svg { width: 26px; height: 26px; }
.bk-opt-tx { display: grid; gap: 2px; flex: 1; min-width: 0; } .bk-opt-tx strong { font-size: 1.08rem; } .bk-opt-tx small { opacity: .65; font-size: .86rem; }
.bk-opt-tick { width: 26px; height: 26px; flex: none; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.3); display: grid; place-items: center; color: transparent; }
.bk-opt-tick svg { width: 16px; height: 16px; }
.bk-opt[aria-pressed='true'], .bk-car.is-on { border-color: #D6A548; background: rgba(214,165,72,.12); box-shadow: 0 0 0 3px rgba(214,165,72,.18); }
.bk-opt[aria-pressed='true'] .bk-opt-tick, .bk-car.is-on .bk-opt-tick { background: #D6A548; border-color: #D6A548; color: #14232F; }
.bk-opt.is-gold .bk-opt-ic { background: rgba(212,175,55,.2); }
.bk-form { display: grid; gap: 16px; } .bk-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bk-form .input, .bk-form .select, .bk-form .textarea { min-height: 50px; font-size: 16px; }
.bk-step { display: flex; align-items: center; justify-content: space-between; border: 1px solid rgba(255,255,255,.18); border-radius: 16px; padding: 6px; }
.bk-step button { width: 48px; height: 48px; border-radius: 12px; border: 0; background: rgba(214,165,72,.18); color: #D6A548; display: grid; place-items: center; } .bk-step svg { width: 22px; height: 22px; }
.bk-step strong { font-size: 1.1rem; }
.bk-cars { display: grid; gap: 12px; }
.bk-car { padding: 10px 14px 10px 10px; min-height: 104px; }
.bk-car[disabled] { opacity: .45; }
.bk-car-img { width: 112px; height: 82px; flex: none; border-radius: 14px; overflow: hidden; position: relative; background: linear-gradient(160deg, #26435c, #101c26); display: block; }
.bk-car-img .car-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; object-fit: cover; }
.bk-car-tx { display: grid; gap: 2px; flex: 1; min-width: 0; } .bk-car-tx strong { font-size: 1rem; } .bk-car-tx small { opacity: .65; }
.bk-car-price { font-size: .86rem; } .bk-car-price em { opacity: .6; font-style: normal; } .bk-car-price b { color: #D6A548; }
.bk-sold { color: #ff8f8f; font-size: .8rem; }
.bk-sum-img { width: 84px; height: 60px; border-radius: 12px; overflow: hidden; position: relative; flex: none; background: #101c26; } .bk-sum-img .car-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.bk-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, transparent, rgba(12,22,30,.96) 38%); }
.bk-bar .btn { min-height: 54px; } .bk-next { flex: 1; }
@media (min-width: 700px) { .bk { padding-top: 90px; } .bk-bar { max-width: 560px; margin: 0 auto; } }

.bk-wrap { min-height: 100dvh; color: #F4F1EA; background: radial-gradient(120% 90% at 50% 0%, #1D3445 0%, #0C161E 62%); }
.bk-wrap .field label, .bk-wrap .check, .bk-wrap .muted { color: rgba(244,241,234,.8); }
.bk-wrap .input, .bk-wrap .select, .bk-wrap .textarea { background: rgba(255,255,255,.07); color: #F4F1EA; border: 1.5px solid rgba(255,255,255,.2); }
.bk-wrap .select option, .bk-wrap .select optgroup { color: #14232F; background: #fff; }
.bk-wrap .card { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); color: #F4F1EA; }
.bk-wrap .price-total, .bk-wrap .price-lines li { color: #F4F1EA; }
.bk-wrap .notice { margin-bottom: 16px; }

.bk-lock { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; } .bk-lock svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.bk-car-price b { display: block; font-size: 1rem; }
.booking-actions .bk-orders { order: -1; flex: 1 1 100%; justify-content: center; }
