/* ========== SmartAisle design system ========== */
@font-face { font-family: 'Noto Sans'; font-weight: 400; font-display: swap; src: url(../assets/fonts/noto-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 500; font-display: swap; src: url(../assets/fonts/noto-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 600; font-display: swap; src: url(../assets/fonts/noto-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 700; font-display: swap; src: url(../assets/fonts/noto-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Noto Sans'; font-weight: 800; font-display: swap; src: url(../assets/fonts/noto-sans-latin-800-normal.woff2) format('woff2'); }

:root {
  --blue: #0a5bb5;
  --blue-600: #0b4f9e;
  --blue-50: #e8f1fd;
  --yellow: #ffd31a;
  --yellow-soft: #ffe68a;
  --ink: #0f1a2b;
  --ink-2: #3c4657;
  --muted: #7d8696;
  --line: rgba(15, 26, 43, .08);
  --glass: rgba(255, 255, 255, .58);
  --glass-strong: rgba(255, 255, 255, .84);
  --glass-border: rgba(255, 255, 255, .85);
  --shadow-sm: 0 2px 8px rgba(28, 52, 98, .06);
  --shadow: 0 10px 28px rgba(28, 52, 98, .10), 0 2px 6px rgba(28, 52, 98, .05);
  --shadow-lg: 0 24px 60px rgba(20, 40, 80, .18);
  --r-sm: 12px; --r: 18px; --r-lg: 26px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --nav-h: 76px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Noto Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color: var(--ink); background: #e9eef6; -webkit-font-smoothing: antialiased;
  overscroll-behavior: none;
}
button { font: inherit; color: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
input { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
.ic { flex: none; display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- app shell (phone frame on desktop) ---------- */
#app {
  position: relative; width: 100%; height: 100dvh; max-width: 440px; margin: 0 auto; overflow: hidden;
  background: #f7f9fc; isolation: isolate;
}
@media (min-width: 600px) {
  body { display: grid; place-items: center; background: radial-gradient(1200px 600px at 20% 10%, #dce8fb, transparent), radial-gradient(900px 500px at 90% 90%, #fff1bf, transparent), #eef2f8; }
  #app { height: min(900px, 96dvh); border-radius: 44px; box-shadow: 0 40px 100px rgba(20, 40, 80, .25), 0 0 0 10px #0f1a2b, 0 0 0 11px #2a3242; }
}
.bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg::before, .bg::after { content: ''; position: absolute; border-radius: 50%; filter: blur(50px); }
.bg::before { width: 70%; height: 38%; left: -20%; top: -8%; background: radial-gradient(closest-side, rgba(110, 160, 255, .45), transparent); }
.bg::after { width: 75%; height: 42%; right: -25%; top: -6%; background: radial-gradient(closest-side, rgba(255, 210, 70, .55), transparent); }
.bg i { position: absolute; width: 80%; height: 40%; right: -30%; bottom: -10%; border-radius: 50%; filter: blur(60px); background: radial-gradient(closest-side, rgba(255, 214, 90, .45), transparent); }

/* ---------- screens & transitions ---------- */
.screen {
  position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; -webkit-overflow-scrolling: touch;
  padding: calc(var(--safe-top) + 14px) 18px calc(var(--nav-h) + var(--safe-bot) + 28px);
  scrollbar-width: none;
}
.screen::-webkit-scrollbar { display: none; }
.screen.no-nav { padding-bottom: calc(var(--safe-bot) + 110px); }
.screen.enter { animation: enterPush .42s var(--ease) both; }
.screen.leave { animation: leavePush .36s var(--ease) both; pointer-events: none; }
.screen.enter.pop { animation-name: enterPop; }
.screen.leave.pop { animation-name: leavePop; }
.screen.enter.fade { animation-name: fadeIn; }
.screen.leave.fade { animation-name: fadeOut; }
@keyframes enterPush { from { transform: translateX(28%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes leavePush { to { transform: translateX(-12%); opacity: 0; } }
@keyframes enterPop { from { transform: translateX(-14%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes leavePop { to { transform: translateX(26%); opacity: 0; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(1.02); } to { opacity: 1; transform: none; } }
@keyframes fadeOut { to { opacity: 0; } }

.rise { animation: rise .55s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.pop-in { animation: popIn .45s var(--spring) both; animation-delay: calc(var(--i, 0) * 50ms); }
@keyframes popIn { from { opacity: 0; transform: scale(.88); } to { opacity: 1; transform: none; } }

/* ---------- top bar ---------- */
.topbar { display: flex; align-items: center; gap: 10px; min-height: 44px; margin-bottom: 14px; position: relative; z-index: 3; }
.topbar .spacer { flex: 1; }
.topbar .title { font-weight: 700; font-size: 15px; color: var(--ink); letter-spacing: -.01em; }
.round {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; position: relative;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); transition: transform .2s var(--ease), background .2s;
}
.round:active { transform: scale(.9); }
.round .dot { position: absolute; top: 7px; right: 8px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-size: 9px; font-weight: 800; display: grid; place-items: center; padding: 0 3px; border: 2px solid #fff; }
.round.on { color: #e0424f; }
.logo { height: 30px; display: flex; align-items: center; }
.logo img { height: 30px; width: auto; display: block; }

/* ---------- typography ---------- */
.h1 { font-size: 30px; line-height: 1.08; font-weight: 500; letter-spacing: -.025em; margin: 6px 0 6px; }
.h1 b { font-weight: 800; }
.h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 4px; }
.sub { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.sec-title { display: flex; align-items: center; justify-content: space-between; margin: 22px 0 12px; }
.sec-title h3 { margin: 0; font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.link-pill { font-size: 11.5px; font-weight: 600; padding: 6px 10px; border-radius: 20px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); display: inline-flex; align-items: center; gap: 4px; }
.link-pill .ic { width: 14px; height: 14px; }

/* ---------- glass surfaces ---------- */
.glass { background: var(--glass); border: 1px solid var(--glass-border); box-shadow: var(--shadow); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.card { border-radius: var(--r); }

/* ---------- search field ---------- */
.search {
  display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 8px 0 16px; border-radius: 16px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); color: var(--muted);
}
.search input { flex: 1; border: 0; outline: 0; background: none; font-size: 14px; color: var(--ink); min-width: 0; }
.search input::placeholder { color: #9aa2b1; }
.search .scan-btn { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ink-2); }
.search:focus-within { box-shadow: 0 0 0 3px rgba(10, 91, 181, .15), var(--shadow-sm); }

/* ---------- floor selector + map card ---------- */
.floor-wrap { display: flex; gap: 12px; margin-top: 16px; align-items: stretch; }
.floor-rail { display: flex; flex-direction: column; gap: 8px; padding: 6px; border-radius: 22px; align-self: flex-start; position: relative; }
.floor-rail button { width: 38px; height: 44px; border-radius: 16px; font-weight: 700; font-size: 13px; color: var(--ink-2); position: relative; z-index: 1; transition: color .25s; }
.floor-rail button.on { color: #fff; }
.floor-rail .ind { position: absolute; left: 6px; width: 38px; height: 44px; border-radius: 16px; background: var(--blue); box-shadow: 0 6px 16px rgba(10, 91, 181, .35); transition: transform .38s var(--spring); }
.floor-rail button.on::after { content: ''; position: absolute; left: 50%; bottom: 7px; width: 4px; height: 4px; margin-left: -2px; border-radius: 2px; background: #fff; }
.map-card { flex: 1; border-radius: var(--r-lg); overflow: hidden; position: relative; min-height: 210px; touch-action: pan-y; }
.map-card .track { display: flex; height: 100%; transition: transform .45s var(--ease); }
.map-card .slide { min-width: 100%; position: relative; padding: 12px 12px 14px; display: flex; flex-direction: column; }
.map-card .mini-map { flex: 1; min-height: 130px; display: grid; place-items: center; }
.map-card .mini-map svg { width: 100%; height: 140px; }
.map-card .meta { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.map-card .meta small { display: block; font-size: 10.5px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; font-weight: 600; }
.map-card .meta b { font-size: 15px; font-weight: 700; letter-spacing: -.01em; }
.map-card .corner { position: absolute; top: 0; right: 0; width: 60px; height: 60px; background: var(--yellow); border-bottom-left-radius: 60px; opacity: .95; }
.dots { display: flex; gap: 5px; justify-content: center; margin-top: 10px; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #c6cede; transition: width .3s var(--ease), background .3s; }
.dots i.on { width: 16px; background: var(--blue); }
.go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: #fff; box-shadow: var(--shadow-sm); flex: none; transition: transform .2s; }
.go .ic { width: 16px; height: 16px; }
.go:active { transform: scale(.88); }
.go.dark { background: var(--ink); color: #fff; }
.go.yellow { background: var(--yellow); }

/* ---------- section cards ---------- */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec-card { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 1.32; background: #eef1f6; box-shadow: var(--shadow-sm); display: block; transition: transform .25s var(--ease), box-shadow .25s; isolation: isolate; }
.sec-card:active { transform: scale(.97); }
.sec-card .art { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.sec-card:hover .art { transform: scale(1.04); }
.sec-card .label { position: absolute; left: 6px; right: 6px; bottom: 6px; display: flex; align-items: center; justify-content: space-between; padding: 6px 6px 6px 10px; border-radius: 12px; background: rgba(255, 255, 255, .72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font-size: 12.5px; font-weight: 600; }
.sec-card .label .go { width: 26px; height: 26px; }
.sec-card .label .go .ic { width: 13px; height: 13px; }
.sec-card.tall { aspect-ratio: 1.05; }
.sec-card.hl { box-shadow: 0 0 0 2px var(--yellow), var(--shadow-sm); }
.sec-card .badge { position: absolute; top: 8px; right: 8px; background: var(--yellow); color: var(--ink); font-size: 10px; font-weight: 800; padding: 3px 8px; border-radius: 10px; }

/* ---------- chips ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; margin: 0 -18px 16px; padding: 2px 18px 4px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; height: 34px; padding: 0 14px; border-radius: 17px; font-size: 12.5px; font-weight: 600; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s, transform .2s; }
.chip.on { background: var(--blue); color: #fff; border-color: var(--blue); box-shadow: 0 6px 14px rgba(10, 91, 181, .3); }
.chip:active { transform: scale(.95); }
.chip .x { width: 14px; height: 14px; opacity: .5; }

/* ---------- product cards ---------- */
.prod-card { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: .78; background: linear-gradient(160deg, #f4f1ec, #e6e9ef); box-shadow: var(--shadow-sm); display: block; transition: transform .25s var(--ease); }
.prod-card:active { transform: scale(.97); }
.prod-card .art { position: absolute; left: 0; right: 0; top: 4%; width: 100%; height: 64%; object-fit: cover; transition: transform .5s var(--ease); }
.prod-card .art.photo { top: 0; height: 100%; }
.prod-card .info { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; color: #fff; background: linear-gradient(to top, rgba(20, 24, 32, .78), rgba(20, 24, 32, .38) 60%, transparent); }
.prod-card .info b { display: block; font-size: 14px; font-weight: 800; letter-spacing: .02em; text-transform: uppercase; }
.prod-card .info small { display: block; font-size: 11px; opacity: .85; margin: 1px 0 6px; }
.prod-card .info .row { display: flex; align-items: center; justify-content: space-between; }
.prod-card .info .price { font-weight: 700; font-size: 14px; }
.prod-card .info .go { width: 28px; height: 28px; color: var(--ink); }
.prod-card .fav { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .8); display: grid; place-items: center; color: var(--ink-2); }
.prod-card .fav.on { color: #e0424f; }
.prod-card .fav .ic { width: 16px; height: 16px; }
.empty { text-align: center; color: var(--muted); padding: 40px 10px; font-size: 14px; }

/* ---------- product page ---------- */
.pdp-hero { position: relative; margin: -6px -16px 0; height: 270px; display: flex; align-items: center; justify-content: center; }
.pdp-hero .stage { width: 88%; height: 100%; display: grid; place-items: center; }
.pdp-hero .stage .art { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(20, 40, 80, .12)); }
.pdp-hero .stage.swap .art { animation: swapIn .5s var(--ease); }
@keyframes swapIn { from { opacity: 0; transform: translateX(16px) scale(.97); } to { opacity: 1; transform: none; } }
.swatches { position: absolute; left: 18px; top: 22px; display: flex; flex-direction: column; gap: 10px; z-index: 2; }
.swatch { width: 18px; height: 18px; border-radius: 50%; box-shadow: 0 0 0 2px #fff, 0 2px 6px rgba(0, 0, 0, .15); transition: transform .25s var(--spring); }
.swatch.on { transform: scale(1.25); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
.thumbs { display: flex; gap: 10px; justify-content: center; margin: 4px 0 6px; }
.thumb { width: 64px; height: 50px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); padding: 4px; transition: transform .2s, box-shadow .2s; overflow: hidden; }
.thumb .art { width: 100%; height: 100%; }
.thumb.on { box-shadow: 0 0 0 2px var(--blue), var(--shadow-sm); }
.thumb.fabric { background: repeating-linear-gradient(45deg, var(--fc, #e9dcc7) 0 3px, color-mix(in srgb, var(--fc, #e9dcc7), #fff 25%) 3px 6px); }
.pager { display: flex; gap: 4px; justify-content: center; margin-bottom: 14px; }
.pager i { width: 14px; height: 3px; border-radius: 2px; background: #cdd4e0; }
.pager i.on { background: var(--blue); width: 22px; }

.tabs { position: relative; display: flex; padding: 5px; border-radius: 18px; margin-bottom: 18px; }
.tabs button { flex: 1; height: 38px; font-size: 13px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; transition: color .25s; }
.tabs button.on { color: var(--blue); }
.tabs .bar { position: absolute; bottom: 5px; height: 3px; border-radius: 2px; background: var(--blue); transition: transform .35s var(--ease), width .35s var(--ease); left: 0; }
.tab-body { animation: rise .4s var(--ease) both; }
.pdp-name { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; }
.pdp-type { color: var(--muted); font-size: 13px; margin: 2px 0 10px; }
.pdp-price { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 10px; }
.pdp-price sup { font-size: 15px; font-weight: 700; margin-right: 2px; vertical-align: 6px; }
.pdp-desc { color: var(--ink-2); font-size: 14px; line-height: 1.55; margin: 0 0 14px; max-width: 34ch; }
.kv { border-radius: var(--r); padding: 4px 14px; }
.kv .row { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; font-size: 13.5px; border-bottom: 1px solid var(--line); }
.kv .row:last-child { border-bottom: 0; }
.kv .row span { color: var(--muted); }
.kv .row b { font-weight: 600; }
.kv-title { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; margin: 4px 0 10px; }
.kv-title .ic { width: 18px; height: 18px; color: var(--blue); }
.care { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; border-radius: var(--r); padding: 14px 10px; }
.care div { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; font-size: 10px; color: var(--ink-2); line-height: 1.25; }
.care .ic { width: 26px; height: 26px; color: var(--ink); }
.info-row { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: var(--r); margin-bottom: 10px; }
.info-row .ico { width: 44px; height: 44px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.info-row small { display: block; color: var(--muted); font-size: 12px; }
.info-row b { font-size: 19px; font-weight: 800; letter-spacing: -.01em; }
.stock-bar { height: 6px; border-radius: 3px; background: #e3e8f0; margin-top: 8px; overflow: hidden; }
.stock-bar i { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, #36b37e, #79d39f); transform-origin: left; animation: grow 1s var(--ease) both .2s; }
@keyframes grow { from { transform: scaleX(0); } }

/* ---------- action bar (sticky bottom) ---------- */
.action-bar { position: absolute; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; gap: 10px; padding: 12px 18px calc(var(--safe-bot) + 16px); background: linear-gradient(to top, rgba(247, 249, 252, .98) 60%, rgba(247, 249, 252, 0)); }
.btn { height: 50px; border-radius: 25px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; font-size: 14px; padding: 0 18px; transition: transform .2s var(--ease), box-shadow .2s, background .2s; position: relative; overflow: hidden; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn .ic { width: 19px; height: 19px; }
.btn-glass { background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 22px rgba(10, 91, 181, .32); }
.btn-primary:disabled { opacity: .5; }
.btn-yellow { background: var(--yellow); color: var(--ink); box-shadow: 0 10px 22px rgba(230, 180, 0, .3); }
.btn-block { width: 100%; }
.btn.flex1 { flex: 1; }
.btn.done { background: #1f9d63; }
.ripple { position: absolute; border-radius: 50%; transform: scale(0); background: currentColor; opacity: .18; animation: ripple .6s ease-out; pointer-events: none; }
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ---------- tab bar ---------- */
.tabbar {
  position: absolute; left: 14px; right: 14px; bottom: calc(var(--safe-bot) + 14px); z-index: 30; height: 60px; border-radius: 30px; padding: 6px;
  display: grid; grid-template-columns: 1.25fr 1fr 1fr; align-items: center;
  background: rgba(255, 255, 255, .78); border: 1px solid var(--glass-border); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(22px) saturate(160%); -webkit-backdrop-filter: blur(22px) saturate(160%);
  transition: transform .45s var(--ease), opacity .3s;
}
.tabbar.hidden { transform: translateY(140%); opacity: 0; pointer-events: none; }
.tabbar a { height: 48px; border-radius: 24px; display: flex; align-items: center; justify-content: center; gap: 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); position: relative; z-index: 1; transition: color .3s; }
.tabbar a .ic { width: 20px; height: 20px; }
.tabbar a.on { color: #fff; }
.tabbar a + a::before { content: ''; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--line); }
.tabbar .pill { position: absolute; top: 6px; left: 6px; height: 48px; border-radius: 24px; background: var(--blue); box-shadow: 0 8px 18px rgba(10, 91, 181, .35); transition: transform .45s var(--spring), width .45s var(--spring); z-index: 0; }
.tabbar .count { position: absolute; top: 6px; right: 16%; min-width: 16px; height: 16px; border-radius: 8px; background: var(--yellow); color: var(--ink); font-size: 9.5px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.tabbar .count.bump { animation: bump .5s var(--spring); }
@keyframes bump { 40% { transform: scale(1.5); } }

/* ---------- splash ---------- */
.splash { padding: 0; background: linear-gradient(170deg, #0d5fc0 0%, #0a4f9f 55%, #083f82 100%); color: #fff; overflow: hidden; }
.splash .room { position: absolute; left: 6%; right: 6%; top: calc(var(--safe-top) + 128px); bottom: 300px; }
.splash .room svg { width: 100%; height: 100%; display: block; }
.splash { background: linear-gradient(160deg, #1c74d6 0%, #0c55ad 60%, #0a4f9f 100%); }
.splash .copy { background: linear-gradient(to bottom, rgba(10,79,159,0), #0a4f9f 22%); padding-top: 40px; }
@media (max-height: 640px) { .splash h1 { font-size: 34px; } .splash p { margin-bottom: 16px; } .splash .room { bottom: 270px; top: calc(var(--safe-top) + 118px); } }
.splash .copy { position: absolute; left: 0; right: 0; bottom: 0; padding: 0 24px calc(var(--safe-bot) + 28px); }
.splash .brand { position: absolute; top: calc(var(--safe-top) + 22px); left: 24px; }
.splash .brand img { height: 40px; width: 40px; border-radius: 11px; box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.splash .app-name { position: absolute; top: calc(var(--safe-top) + 74px); left: 24px; font-size: 30px; font-weight: 700; color: var(--yellow); letter-spacing: -.02em; }
.splash h1 { font-size: 40px; line-height: 1.04; font-weight: 800; letter-spacing: -.03em; margin: 0 0 12px; }
.splash p { margin: 0 0 22px; color: rgba(255, 255, 255, .82); font-size: 14.5px; line-height: 1.5; max-width: 30ch; }
.splash .cta { width: 100%; height: 58px; border-radius: 29px; display: flex; align-items: center; padding: 5px; gap: 12px; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); font-weight: 600; font-size: 15px; position: relative; overflow: hidden; }
.splash .cta .knob { width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--blue); display: grid; place-items: center; transition: transform .5s var(--ease); }
.splash .cta .lbl { flex: 1; text-align: center; margin-right: 48px; }
.splash .cta { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
.splash .cta .knob { position: relative; z-index: 2; box-shadow: 0 4px 14px rgba(0,0,0,.18); flex: none; }
.splash .cta .chev { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); letter-spacing: 2px; font-size: 18px; opacity: .55; animation: chev 1.6s ease-in-out infinite; pointer-events: none; }
@keyframes chev { 0%, 100% { transform: translate(0, -50%); opacity: .3; } 50% { transform: translate(5px, -50%); opacity: .8; } }
.splash .shine { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, .25) 50%, transparent 60%); transform: translateX(-100%); animation: shine 3.2s ease-in-out infinite 1.2s; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.float { animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-6px); } }

/* ---------- search ---------- */
.recent { display: flex; flex-wrap: wrap; gap: 8px; }
.browse { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.browse a { aspect-ratio: 1; border-radius: 16px; display: grid; place-items: center; color: var(--ink-2); }
.browse a span { font-size: 10px; font-weight: 600; margin-top: -10px; }
.browse a .ic { width: 24px; height: 24px; }
.results { display: flex; flex-direction: column; gap: 8px; }
.res { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 16px; }
.res .thumb-sm { width: 52px; height: 44px; border-radius: 12px; background: linear-gradient(160deg, #f4f1ec, #e6e9ef); overflow: hidden; flex: none; }
.res .thumb-sm .art { width: 100%; height: 100%; object-fit: cover; }
.res .t { flex: 1; min-width: 0; }
.res .t b { display: block; font-size: 14px; font-weight: 700; }
.res .t small { color: var(--muted); font-size: 12px; }
.res .p { font-weight: 700; font-size: 13.5px; }
mark { background: var(--yellow-soft); color: inherit; border-radius: 3px; padding: 0 1px; }

/* ---------- navigation map ---------- */
.nav-screen { padding-left: 0; padding-right: 0; overflow: hidden; }
.nav-screen .topbar, .nav-screen .h1, .nav-screen .sub, .nav-screen .target { margin-left: 18px; margin-right: 18px; }
.target { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px; position: relative; z-index: 4; }
.target .thumb-sm { width: 52px; height: 42px; border-radius: 12px; background: linear-gradient(160deg, #f4f1ec, #e6e9ef); overflow: hidden; flex: none; }
.target .thumb-sm .art { width: 100%; height: 100%; }
.target .t { flex: 1; min-width: 0; }
.target b { font-size: 14px; font-weight: 700; display: block; }
.target small { color: var(--muted); font-size: 12px; }
.target small em { font-style: normal; color: var(--blue); font-weight: 600; }
.target select { position: absolute; inset: 0; opacity: 0; }
.map-stage { position: absolute; left: 0; right: 0; top: 200px; bottom: 0; touch-action: none; }
.map-stage svg { width: 100%; height: 100%; display: block; }
.map-tools { position: absolute; left: 14px; top: 210px; z-index: 5; display: flex; flex-direction: column; gap: 8px; }
.map-tools .rail { display: flex; flex-direction: column; gap: 4px; padding: 5px; border-radius: 18px; }
.map-tools .rail button { width: 36px; height: 36px; border-radius: 12px; font-weight: 700; font-size: 12px; color: var(--ink-2); }
.map-tools .rail button.on { background: var(--blue); color: #fff; }
.map-tools .round { width: 46px; height: 46px; border-radius: 16px; }
.route-card { position: absolute; left: 14px; right: 14px; bottom: calc(var(--safe-bot) + 88px); z-index: 6; border-radius: 22px; padding: 12px 12px 12px 14px; display: flex; align-items: center; gap: 12px; }
.route-card .ico { width: 40px; height: 40px; border-radius: 14px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.route-card .t { flex: 1; min-width: 0; }
.route-card b { display: block; font-size: 15px; font-weight: 700; }
.route-card small { display: block; color: var(--muted); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.route-card .eta { display: block; font-size: 11.5px; font-weight: 700; color: var(--blue); margin-top: 2px; }
.route-dash { stroke-dasharray: 10 8; animation: dash 1.1s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -18; } }
.route-draw { animation: draw 1.4s var(--ease) both .2s; }
@keyframes draw { from { stroke-dashoffset: var(--len); } to { stroke-dashoffset: 0; } }
.pulse { animation: pulse 1.8s ease-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(2.4); opacity: 0; } }
.pin-bob { animation: bob 1.6s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px); } }
.steps { position: absolute; left: 14px; right: 14px; bottom: calc(var(--safe-bot) + 170px); z-index: 6; border-radius: 18px; padding: 12px 14px; font-size: 13px; display: none; }
.steps.show { display: block; animation: rise .4s var(--ease); }
.steps ol { margin: 0; padding-left: 18px; }
.steps li { padding: 3px 0; color: var(--ink-2); }
.steps li.now { color: var(--ink); font-weight: 700; }

/* ---------- trolley ---------- */
.scan-hero { border-radius: var(--r-lg); padding: 18px; margin: 14px 0 18px; position: relative; overflow: hidden; aspect-ratio: 1.15; display: grid; place-items: center; }
.scan-hero svg.trolley { width: 82%; }
.scan-hero .frame { position: absolute; inset: 14%; }
.scan-hero .frame i { position: absolute; width: 34px; height: 34px; border: 4px solid #fff; border-radius: 4px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .12)); }
.scan-hero .frame i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.scan-hero .frame i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.scan-hero .frame i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.scan-hero .frame i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.scan-hero .laser { position: absolute; left: 12%; right: 12%; height: 3px; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--blue), transparent); box-shadow: 0 0 12px var(--blue); animation: laser 2.4s ease-in-out infinite; }
@keyframes laser { 0%, 100% { top: 18%; } 50% { top: 80%; } }
.feat { list-style: none; padding: 0; margin: 0 0 22px; display: flex; flex-direction: column; gap: 12px; }
.feat li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--ink-2); }
.feat li .ic { width: 20px; height: 20px; color: var(--ink); }
.titem { display: flex; align-items: center; gap: 12px; padding: 8px 12px 8px 8px; border-radius: 18px; margin-bottom: 10px; transition: transform .3s var(--ease), opacity .3s; }
.titem.out { transform: translateX(-30px); opacity: 0; }
.titem .thumb-sm { width: 56px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, #f7f4ef, #e8ebf1); overflow: hidden; flex: none; }
.titem .thumb-sm .art { width: 100%; height: 100%; object-fit: cover; }
.titem .t { flex: 1; min-width: 0; }
.titem b { display: block; font-size: 14.5px; font-weight: 700; }
.titem small { color: var(--muted); font-size: 12px; }
.titem .p { font-size: 13px; font-weight: 700; margin-top: 2px; display: block; color: var(--ink); }
.qty { display: flex; align-items: center; gap: 6px; margin-right: 4px; }
.qty button { width: 24px; height: 24px; border-radius: 8px; background: rgba(15, 26, 43, .06); display: grid; place-items: center; }
.qty button .ic { width: 13px; height: 13px; }
.qty span { font-size: 13px; font-weight: 700; min-width: 14px; text-align: center; }
.check { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #c8d0dc; display: grid; place-items: center; color: #fff; transition: background .2s, border-color .2s, transform .25s var(--spring); flex: none; }
.check .ic { width: 16px; height: 16px; opacity: 0; transform: scale(.4); transition: opacity .2s, transform .25s var(--spring); }
.check.on { background: var(--blue); border-color: var(--blue); }
.check.on .ic { opacity: 1; transform: none; }
.summary { border-radius: var(--r); padding: 14px 16px; margin: 6px 0 16px; }
.summary .row { display: flex; justify-content: space-between; font-size: 13.5px; padding: 4px 0; color: var(--ink-2); }
.summary .row.total { color: var(--ink); font-weight: 800; font-size: 17px; border-top: 1px dashed #cdd4e0; margin-top: 6px; padding-top: 10px; }
.summary .save { color: #1f9d63; font-weight: 700; }
.compare-bar { display: flex; gap: 10px; }
.compare-bar .btn-primary { flex: 1; }
.compare-bar .add { width: 50px; padding: 0; }

.cmp-tabs { margin-bottom: 14px; }
.cmp-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.cmp-card { border-radius: 20px; overflow: hidden; position: relative; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); transition: box-shadow .25s, transform .25s; text-align: left; }
.cmp-card.on { box-shadow: 0 0 0 2.5px var(--blue), var(--shadow); }
.cmp-card .img { height: 130px; background: linear-gradient(160deg, #f6f3ee, #e9ecf2); display: grid; place-items: center; }
.cmp-card .img .art { width: 100%; height: 100%; object-fit: cover; }
.cmp-card .foot { display: block; padding: 10px 12px 12px; transition: background .25s, color .25s; }
.cmp-card.on .foot { background: var(--blue); color: #fff; }
.cmp-card .foot b { display: block; font-size: 13.5px; }
.cmp-card .foot span { font-weight: 800; font-size: 15px; }
.cmp-card .check { position: absolute; top: 10px; right: 10px; background: #fff; }
.cmp-card .check.on { background: var(--blue); }
.cmp-card .in-trolley { position: absolute; top: 10px; left: 10px; font-size: 9.5px; font-weight: 800; background: var(--yellow); padding: 3px 7px; border-radius: 8px; }
.cmp-table { border-radius: var(--r); padding: 4px 12px; }
.cmp-table .row { display: grid; grid-template-columns: 1.1fr 1fr 1fr; gap: 8px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; align-items: center; }
.cmp-table .row:last-child { border-bottom: 0; }
.cmp-table .row span:first-child { color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cmp-table .row span:first-child .ic { width: 15px; height: 15px; color: var(--ink-2); }
.cmp-table .row b { font-weight: 600; }
.tier { display: inline-block; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 8px; }
.tier.Budget { background: #ffe9a3; color: #6b5200; }
.tier.Premium { background: #dce8fb; color: var(--blue-600); }
.better { color: #1f9d63; font-weight: 800; }

/* ---------- camera / AR ---------- */
.cam { position: absolute; inset: 0; z-index: 40; background: #05080f; color: #fff; overflow: hidden; animation: fadeIn .35s var(--ease); }
.cam video, .cam .still { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam .layer { position: absolute; inset: 0; pointer-events: none; }
.cam .layer > * { pointer-events: auto; }
.cam .top { position: absolute; top: calc(var(--safe-top) + 12px); left: 14px; right: 14px; display: flex; align-items: center; gap: 10px; z-index: 5; }
.cam .round { background: rgba(20, 26, 38, .45); border-color: rgba(255, 255, 255, .2); color: #fff; }
.cam .status { flex: 1; display: flex; justify-content: center; }
.cam .status span { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: 17px; background: rgba(20, 26, 38, .5); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); font-size: 12.5px; font-weight: 600; border: 1px solid rgba(255, 255, 255, .15); }
.cam .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); box-shadow: 0 0 0 0 rgba(255, 211, 26, .7); animation: live 1.6s infinite; }
.cam .status i.found { background: #3ddc84; box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(255, 211, 26, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 211, 26, 0); } }
.reticle { position: absolute; inset: 22% 12% 30%; pointer-events: none; transition: opacity .4s; }
.reticle i { position: absolute; width: 28px; height: 28px; border: 3px solid rgba(255, 255, 255, .85); border-radius: 3px; }
.reticle i:nth-child(1) { left: 0; top: 0; border-right: 0; border-bottom: 0; }
.reticle i:nth-child(2) { right: 0; top: 0; border-left: 0; border-bottom: 0; }
.reticle i:nth-child(3) { left: 0; bottom: 0; border-right: 0; border-top: 0; }
.reticle i:nth-child(4) { right: 0; bottom: 0; border-left: 0; border-top: 0; }
.reticle.hide { opacity: 0; }
.hint { position: absolute; left: 50%; bottom: calc(var(--safe-bot) + 150px); transform: translateX(-50%); background: rgba(20, 26, 38, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-radius: 14px; padding: 8px 14px; font-size: 12.5px; text-align: center; white-space: nowrap; transition: opacity .4s; border: 1px solid rgba(255, 255, 255, .12); }
.hint.hide { opacity: 0; }

.box-hl { position: absolute; border-radius: 14px; border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(10, 91, 181, .4), inset 0 0 30px rgba(255, 211, 26, .12); transition: opacity .3s; pointer-events: none; }
.box-hl.other { border-style: dashed; border-color: rgba(255, 255, 255, .5); box-shadow: none; }
.anchor { position: absolute; width: 14px; height: 14px; margin: -7px 0 0 -7px; border-radius: 50%; background: var(--yellow); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); pointer-events: none; }
.anchor::after { content: ''; position: absolute; inset: -9px; border-radius: 50%; border: 2px solid rgba(255, 211, 26, .8); animation: ring 1.8s ease-out infinite; }
@keyframes ring { from { transform: scale(.5); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
.stem { position: absolute; width: 2px; background: linear-gradient(#fff, rgba(255, 255, 255, .3)); pointer-events: none; transform-origin: top; }
.bubble {
  position: absolute; transform: translate(-50%, -100%); width: 256px; color: var(--ink); text-align: left;
  border-radius: 20px; padding: 8px 10px 8px 8px; display: flex; gap: 10px; align-items: center;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
  backdrop-filter: blur(18px) saturate(160%); -webkit-backdrop-filter: blur(18px) saturate(160%);
  animation: bubbleIn .45s var(--spring) both; transition: opacity .3s;
}
.bubble.fading { opacity: 0; }
@keyframes bubbleIn { from { opacity: 0; transform: translate(-50%, -80%) scale(.7); } to { opacity: 1; transform: translate(-50%, -100%) scale(1); } }
.bubble .bt { width: 52px; height: 46px; border-radius: 12px; background: linear-gradient(160deg, #f6f3ee, #e6e9ef); overflow: hidden; flex: none; }
.bubble .bt .art { width: 100%; height: 100%; object-fit: cover; }
.bubble .bx { flex: 1; min-width: 0; }
.bubble .kick { white-space: nowrap; overflow: hidden; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--blue); display: flex; align-items: center; gap: 4px; }
.bubble .kick .ic { width: 11px; height: 11px; }
.bubble b { display: block; font-size: 14px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble small { display: block; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bubble .desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 11px; line-height: 1.35; color: var(--ink-2); margin-top: 3px; }
.bubble .pr { display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.bubble .pr span { font-size: 14.5px; font-weight: 800; }
.bubble .pr em { white-space: nowrap; font-style: normal; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 6px; background: var(--blue-50); color: var(--blue); }
.bubble .go { width: 28px; height: 28px; background: var(--blue); color: #fff; }
.bubble.compact { width: auto; max-width: 170px; min-width: 0; padding: 6px 12px 6px 6px; border-radius: 16px; }
.bubble.compact .bt { width: 34px; height: 30px; border-radius: 9px; }
.bubble.compact small, .bubble.compact .kick, .bubble.compact .go, .bubble.compact .desc { display: none; }
.bubble.compact .pr { margin-top: 0; }
.bubble.compact b { font-size: 12px; }
.bubble.compact .pr span { font-size: 12px; }
.tagchip { position: absolute; transform: translate(-50%, -50%); background: rgba(20, 26, 38, .55); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); pointer-events: none; text-transform: capitalize; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.cam .bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 14px calc(var(--safe-bot) + 16px); z-index: 5; }
.found-strip { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; min-height: 52px; }
.found-strip::-webkit-scrollbar { display: none; }
.found-strip a { flex: none; display: flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 16px; background: rgba(255, 255, 255, .9); color: var(--ink); font-size: 12px; font-weight: 700; animation: popIn .4s var(--spring); }
.found-strip a .bt { width: 34px; height: 30px; border-radius: 10px; background: linear-gradient(160deg, #f6f3ee, #e6e9ef); overflow: hidden; }
.found-strip a .bt .art { width: 100%; height: 100%; }
.found-strip a span { color: var(--blue); }
.cam-actions { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cam-actions .round { width: 48px; height: 48px; }
.shutter { width: 74px; height: 74px; border-radius: 50%; border: 4px solid #fff; display: grid; place-items: center; transition: transform .2s; }
.shutter i { width: 58px; height: 58px; border-radius: 50%; background: #fff; transition: transform .2s; }
.shutter:active i { transform: scale(.88); }
.loader-card { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(300px, 82%); border-radius: 22px; padding: 20px; text-align: center; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: var(--shadow-lg); z-index: 6; }
.loader-card b { display: block; font-size: 15px; margin: 10px 0 4px; }
.loader-card small { color: var(--muted); font-size: 12px; display: block; line-height: 1.45; }
.loader-card .bar { height: 6px; border-radius: 3px; background: #e3e8f0; margin-top: 14px; overflow: hidden; }
.loader-card .bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 3px; transition: width .2s; }
.loader-card .btn { margin-top: 14px; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #dce5f2; border-top-color: var(--blue); animation: spin .9s linear infinite; margin: 0 auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 7; }
.flash.go { animation: flash .45s ease-out; }
@keyframes flash { 15% { opacity: .85; } 100% { opacity: 0; } }
.scan-sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; background: #f7f9fc; color: var(--ink); border-radius: 28px 28px 0 0; padding: 10px 18px calc(var(--safe-bot) + 18px); max-height: 62%; overflow-y: auto; animation: sheetUp .45s var(--ease); }

/* ---------- sheets / toast ---------- */
.scrim { position: absolute; inset: 0; z-index: 60; background: rgba(10, 18, 32, .35); animation: fadeIn .25s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 61; background: #f7f9fc; border-radius: 28px 28px 0 0; padding: 10px 18px calc(var(--safe-bot) + 22px); max-height: 80%; overflow-y: auto; animation: sheetUp .42s var(--ease); box-shadow: var(--shadow-lg); }
.sheet.closing { animation: sheetDown .3s var(--ease) both; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: #cdd4e0; margin: 0 auto 14px; }
@keyframes sheetUp { from { transform: translateY(100%); } }
@keyframes sheetDown { to { transform: translateY(100%); } }
.note { display: flex; gap: 12px; padding: 12px; border-radius: 16px; margin-bottom: 8px; }
.note .ico { width: 38px; height: 38px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }
.note b { font-size: 13.5px; display: block; }
.note p { margin: 2px 0 0; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.note small { color: var(--muted); font-size: 11px; margin-left: auto; white-space: nowrap; }
.toast { position: absolute; left: 50%; top: calc(var(--safe-top) + 14px); z-index: 80; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 16px; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow-lg); animation: toastIn .45s var(--spring) both; white-space: nowrap; max-width: 92%; }
.toast .ic { width: 18px; height: 18px; color: var(--yellow); }
.toast.out { animation: toastOut .3s ease both; }
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -20px) scale(.9); } }
@keyframes toastOut { to { opacity: 0; transform: translate(-50%, -16px); } }
.flyer { position: absolute; z-index: 90; width: 56px; height: 46px; border-radius: 12px; background: #fff; box-shadow: var(--shadow); overflow: hidden; pointer-events: none; transition: transform .7s cubic-bezier(.5, -.3, .7, 1), opacity .7s; }
.flyer .art { width: 100%; height: 100%; }

.service { border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--ink-2); margin-bottom: 16px; }
.service .ico { width: 40px; height: 40px; border-radius: 12px; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; flex: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ---------- design photos ---------- */
.art.photo { object-fit: cover; }
.art.photo.cutout { object-fit: contain; mix-blend-mode: multiply; }
.sec-card.baked, .prod-card.baked { aspect-ratio: auto; background: none; box-shadow: 0 10px 24px rgba(28, 52, 98, .12); border-radius: 18px; overflow: hidden; }
.sec-card.baked img, .prod-card.baked img { display: block; width: 100%; height: auto; transition: transform .5s var(--ease); }
.sec-card.baked:hover img, .prod-card.baked:hover img { transform: scale(1.03); }
.prod-card.baked { border-radius: 22px; }
.prod-card .art.photo.cutout { top: 6%; height: 60%; object-fit: contain; }
.prod-card:has(.art.photo:not(.cutout)) .art.photo { top: 0; height: 100%; }
.map-card .mini-map .map-img { width: 100%; height: 150px; object-fit: contain; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
.thumb .art.photo { border-radius: 10px; }
.thumb.fabric.has-photo { padding: 0; background: none; }
.thumb.fabric.has-photo img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 14px; }
.pdp-hero .stage .art.photo { width: 100%; height: 100%; }
.cmp-card .img .art.photo.cutout, .titem .thumb-sm .art.photo.cutout, .res .thumb-sm .art.photo.cutout, .bubble .bt .art.photo.cutout,
.target .thumb-sm .art.photo.cutout, .found-strip a .bt .art.photo.cutout { object-fit: contain; }
.scan-hero.photo { padding: 0; background: none; border: 0; aspect-ratio: auto; display: block; box-shadow: var(--shadow); }
.scan-hero.photo img { display: block; width: 100%; height: auto; border-radius: var(--r-lg); }
/* welcome photo */
.splash.photo { background: #0b4fa2; }
.splash-blur { position: absolute; inset: -30px; background-size: cover; background-position: center; filter: blur(24px) saturate(1.1); opacity: .9; }
.splash .shot { position: absolute; overflow: hidden; }
.splash .shot > img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.splash .shot .cta { position: absolute; height: auto; padding: 6px; background: rgba(255, 255, 255, .22); border: 1.5px solid rgba(255, 255, 255, .45); }
.splash .shot .cta .knob { background: #f7f8fc; color: #0f1a2b; }
.splash .shot .cta .lbl { font-size: clamp(15px, 4.6vw, 19px); font-weight: 600; margin-right: 0; }
.splash .shot .cta .chev { display: none; }
.accent-bar { display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--yellow); margin: 2px 0 10px; }

/* =====================================================================
   EXACT DESIGN LAYER: matches the SmartAisle screen designs
   ===================================================================== */
@font-face { font-family: 'Jakarta'; font-weight: 300; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin-300-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 400; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin-400-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 500; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin-500-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 600; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin-600-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 700; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin-700-normal.woff2) format('woff2'); }
@font-face { font-family: 'Jakarta'; font-weight: 800; font-display: swap; src: url(../assets/fonts/plus-jakarta-sans-latin-800-normal.woff2) format('woff2'); }
:root { --ink: #0e1a3a; --ink-2: #3b4560; --muted: #6f7890; --blue: #0b57c8; --blue-600: #0a47a6; --navy: #0b2c6b; }
body, button, input { font-family: 'Jakarta', 'Noto Sans', system-ui, sans-serif; }
#app { background: #f2f4fa; }
.bg::before { width: 80%; height: 45%; left: -25%; top: -10%; background: radial-gradient(closest-side, rgba(150, 185, 255, .40), transparent); }
.bg::after { width: 70%; height: 40%; right: -25%; top: -8%; background: radial-gradient(closest-side, rgba(255, 220, 120, .38), transparent); }
.screen { padding: calc(var(--safe-top) + 12px) 16px calc(var(--nav-h) + var(--safe-bot) + 20px); }

/* header */
.topbar { min-height: 40px; margin-bottom: 14px; gap: 10px; }
.topbar .round, .round { width: 38px; height: 38px; background: rgba(255, 255, 255, .9); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 6px 16px rgba(30, 50, 100, .10), inset 0 1px 0 #fff; }
.topbar .round .ic { width: 19px; height: 19px; }
.topbar .divider { width: 1px; height: 26px; background: rgba(14, 26, 58, .15); margin: 0 2px; }
.topbar .title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.logo { height: 27px; }
.logo img { height: 27px; width: auto; border-radius: 2px; }
.topbar.center { justify-content: center; position: relative; }
.topbar.center .round { position: absolute; left: 0; top: 0; }
.round .dot { top: 5px; right: 6px; min-width: 14px; height: 14px; font-size: 8.5px; border-width: 1.5px; }
.round .dot.plain { min-width: 8px; width: 8px; height: 8px; padding: 0; top: 8px; right: 9px; border: 0; font-size: 0; }

/* type */
.h1 { font-size: 31px; line-height: 1.1; font-weight: 300; letter-spacing: -.02em; margin: 4px 4px 6px; color: var(--ink); }
.h1 b { font-weight: 800; }
.h2 { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0 4px 4px; }
.sub { font-size: 12.5px; color: var(--muted); margin: 0 4px 14px; }
.sec-title { margin: 20px 4px 12px; }
.sec-title h3 { font-size: 16px; font-weight: 700; color: var(--ink); }
.link-pill { font-size: 11px; font-weight: 500; padding: 6px 12px; background: rgba(255, 255, 255, .85); color: var(--ink); }
.accent-bar { width: 34px; height: 5px; margin: 6px 4px 10px; }

/* search pill */
.search { height: 40px; border-radius: 20px; padding: 0 10px 0 16px; background: rgba(255, 255, 255, .85); box-shadow: 0 8px 20px rgba(30, 50, 100, .08), inset 0 1px 0 #fff; color: var(--ink); }
.search > .ic { width: 18px; height: 18px; }
.search input { font-size: 12.5px; }
.search input::placeholder { color: #7a8299; }
.search .scan-btn { color: var(--ink); width: 30px; height: 30px; }

/* floor pills (separate pills, as in the design) */
.floor-wrap { gap: 10px; margin-top: 18px; }
.floor-rail { background: none !important; border: 0 !important; box-shadow: none !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; padding: 0; gap: 9px; }
.floor-rail .ind { display: none; }
.floor-rail button { width: 37px; height: 49px; border-radius: 14px; background: rgba(255, 255, 255, .85); box-shadow: 0 6px 14px rgba(30, 50, 100, .10), inset 0 1px 0 #fff; color: var(--ink); font-size: 13px; font-weight: 600; transition: background .3s, color .3s, transform .3s var(--spring); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.floor-rail button::after { content: ''; width: 5px; height: 5px; border-radius: 3px; background: #c9cfdb; position: static; margin: 0; }
.floor-rail button.on { background: linear-gradient(160deg, #2a72e0, #0b4fb8); color: #fff; box-shadow: 0 8px 18px rgba(11, 79, 184, .38); transform: scale(1.04); }
.floor-rail button.on::after { background: #fff; position: static; margin: 0; left: auto; bottom: auto; }
.map-card { border-radius: 20px; min-height: 184px; background: rgba(255, 255, 255, .62); box-shadow: 0 10px 26px rgba(30, 50, 100, .10), inset 0 1px 0 #fff; }
.map-card .slide { padding: 10px 12px 12px 14px; }
.map-card .mini-map { min-height: 112px; }
.map-card .mini-map .map-img { height: 118px; }
.map-card .meta small { font-size: 8.5px; letter-spacing: .32em; color: var(--ink); font-weight: 600; margin-bottom: 3px; }
.map-card .meta b { font-size: 15px; font-weight: 700; line-height: 1.15; color: var(--ink); max-width: 190px; display: block; }
.map-card .corner { width: 74px; height: 38px; border-radius: 0 20px 0 100%; top: 0; right: 0; }
.map-card .go { width: 34px; height: 34px; background: rgba(255, 255, 255, .95); box-shadow: 0 4px 12px rgba(30, 50, 100, .12); }
.dots { margin-top: 12px; }
.dots i { width: 6px; height: 6px; }
.dots i.on { width: 6px; background: var(--blue); }

/* tiles */
.grid2 { gap: 9px; }
.sec-card.baked, .prod-card.baked { border-radius: 16px; box-shadow: 0 8px 20px rgba(28, 52, 98, .10); }

/* tab bar */
.tabbar { left: 15px; right: 15px; height: 48px; border-radius: 24px; padding: 4px; background: rgba(255, 255, 255, .86); box-shadow: 0 10px 30px rgba(20, 40, 80, .14), inset 0 1px 0 #fff; grid-template-columns: 1.3fr 1fr 1fr; }
.tabbar a { height: 40px; font-size: 12.5px; font-weight: 500; color: var(--ink); gap: 8px; }
.tabbar a .ic { width: 19px; height: 19px; }
.tabbar a.on { font-weight: 600; }
.tabbar .pill { top: 4px; left: 4px; height: 40px; border-radius: 20px; background: linear-gradient(160deg, #2a72e0, #0b4fb8); box-shadow: 0 8px 18px rgba(11, 79, 184, .35); }
.tabbar a + a::before { top: 11px; bottom: 11px; background: rgba(14, 26, 58, .15); }
.tabbar .count { display: none !important; }

/* chips */
.chip { height: 34px; padding: 0 16px; font-size: 12.5px; font-weight: 500; background: rgba(255, 255, 255, .85); color: var(--ink); box-shadow: 0 6px 14px rgba(30, 50, 100, .08), inset 0 1px 0 #fff; }
.chip.on { background: linear-gradient(160deg, #123d86, #0a2a64); border-color: #0a2a64; box-shadow: 0 8px 16px rgba(10, 42, 100, .35); }
.sub-lg { font-size: 15px; color: #6b7590; margin-bottom: 18px; }
.h2-xl { font-size: 30px; }

/* product page */
.pdp .pdp-hero { height: 250px; }
.swatches { left: 16px; top: 16px; gap: 13px; }
.swatch { width: 20px; height: 20px; box-shadow: 0 2px 6px rgba(0, 0, 0, .12); }
.swatch.on { transform: none; box-shadow: 0 0 0 2.5px #ffd31a, 0 2px 8px rgba(0, 0, 0, .15); }
.thumbs { gap: 12px; margin: 2px 0 10px; }
.thumb { width: 66px; height: 58px; border-radius: 16px; padding: 3px; background: rgba(255, 255, 255, .9); box-shadow: 0 6px 14px rgba(30, 50, 100, .08); }
.thumb.on { box-shadow: 0 0 0 2px #1d5fd6, 0 6px 14px rgba(30, 50, 100, .08); }
.pager { gap: 4px; margin-bottom: 14px; }
.pager i { width: 17px; height: 4px; background: #d7dce6; }
.pager i.on { width: 18px; background: #1d5fd6; }
.tabs { padding: 0 6px; height: 46px; border-radius: 23px; background: rgba(255, 255, 255, .85); margin: 0 0 18px; align-items: center; box-shadow: 0 8px 20px rgba(30, 50, 100, .08), inset 0 1px 0 #fff; }
.tabs button { height: 46px; font-size: 14px; font-weight: 500; color: var(--ink); }
.tabs button.on { color: #1d5fd6; font-weight: 700; }
.tabs .bar { bottom: 0; height: 3.5px; border-radius: 2px; background: #1d5fd6; }
.pdp-name { font-size: 24px; font-weight: 800; color: var(--ink); margin: 0 4px; }
.pdp-type { font-size: 13.5px; color: var(--ink-2); margin: 4px 4px 10px; }
.pdp-price { font-size: 26px; font-weight: 800; color: var(--ink); margin: 0 4px 10px; }
.pdp-desc { font-size: 13.5px; line-height: 1.6; color: var(--ink-2); margin: 0 4px 12px; max-width: 32ch; }
.card-box { border-radius: 22px; padding: 14px 16px 6px; margin-bottom: 12px; background: rgba(255, 255, 255, .78); }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.card-head b { font-size: 15px; font-weight: 700; color: var(--ink); }
.ico-c { width: 40px; height: 40px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 12px rgba(30, 50, 100, .08); flex: none; }
.kv.kv-in { background: none; box-shadow: none; border: 0; padding: 0 0 0 52px; backdrop-filter: none; }
.kv.kv-in .row { padding: 10px 0; font-size: 13px; }
.kv.kv-in .row span { color: var(--ink); }
.kv.kv-in .row b { font-weight: 500; }
.card-box .care { background: none; box-shadow: none; border: 0; padding: 6px 0 12px; backdrop-filter: none; }
.card-box .care div { font-size: 10px; color: var(--ink); position: relative; }
.card-box .care div + div::before { content: ''; position: absolute; left: -4px; top: 4px; bottom: 4px; width: 1px; background: rgba(14, 26, 58, .12); }
.info-row { gap: 14px; padding: 12px 16px; border-radius: 20px; background: rgba(255, 255, 255, .8); color: inherit; }
.info-row .vd { width: 1px; align-self: stretch; background: rgba(14, 26, 58, .12); margin: 2px 0; }
.info-row small { font-size: 12.5px; color: var(--ink); }
.info-row b { font-size: 22px; font-weight: 800; color: var(--ink); }
a.info-row:active { transform: scale(.98); }
.action-bar { gap: 12px; padding: 10px 16px calc(var(--safe-bot) + 14px); }
.action-bar .btn { height: 48px; border-radius: 24px; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 14.5px; font-weight: 600; box-shadow: 0 8px 22px rgba(30, 50, 100, .10), inset 0 1px 0 #fff; }
.action-bar .btn.done { background: #1f9d63; }

/* search details */
.recent { flex-wrap: nowrap; overflow-x: auto; gap: 7px; scrollbar-width: none; }
.recent .chip { height: 30px; padding: 0 12px; font-size: 11px; gap: 6px; }
.recent .chip .ic { width: 13px; height: 13px; }
.link-text { font-size: 12.5px; font-weight: 500; color: #1d5fd6; }
input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.browse { gap: 9px; }
.browse a { aspect-ratio: 1.45; border-radius: 16px; background: rgba(255, 255, 255, .7); color: var(--ink); }
.browse a .ic { width: 26px; height: 26px; }

/* in-store navigation */
.nav-sun { position: absolute; right: -40px; top: 40px; width: 120px; height: 120px; border-radius: 50%; background: #ffd31a; clip-path: inset(0 40px 60px 0); z-index: 0; }
.nav-title { font-size: 28px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); margin: 0 18px 4px; position: relative; }
.nav-title span { color: #1d5fd6; }
.nav-sub { margin: 0 18px 12px; font-size: 13px; color: #59627a; position: relative; }
.target { margin: 0 18px; padding: 10px 12px; border-radius: 26px; background: rgba(255, 255, 255, .92); gap: 12px; box-shadow: 0 10px 26px rgba(30, 50, 100, .10); }
.target .thumb-sm { width: 76px; height: 46px; background: none; border-radius: 10px; }
.target .vd { width: 1px; align-self: stretch; margin: 4px 0; background: rgba(14, 26, 58, .12); }
.target b { font-size: 15px; font-weight: 700; color: var(--ink); }
.target small { font-size: 12px; color: #59627a; display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.target small em { font-style: normal; font-weight: 700; color: var(--ink); background: #ffeaa0; padding: 3px 9px; border-radius: 10px; }
.target .pick-btn { width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 4px 12px rgba(30, 50, 100, .12); display: grid; place-items: center; color: var(--ink); flex: none; }
.map-stage.photo { overflow: hidden; }
.map-stage .navmap { width: 100%; height: auto; display: block; }
.map-tools { left: 0; right: 0; height: 0; z-index: 5; pointer-events: none; }
.map-tools > * { pointer-events: auto; }
.map-tools .rail { position: absolute; left: calc(42px * var(--k, .44)); top: calc(50px * var(--k, .44)); width: calc(90px * var(--k, .44)); padding: calc(4px * var(--k, .44)); border-radius: calc(45px * var(--k, .44)); background: rgba(255, 255, 255, .96); box-shadow: 0 8px 20px rgba(30, 50, 100, .12); display: flex; flex-direction: column; align-items: center; gap: calc(10px * var(--k, .44)); padding-bottom: calc(14px * var(--k, .44)); }
.map-tools .rail button { width: calc(84px * var(--k, .44)); height: calc(82px * var(--k, .44)); border-radius: calc(24px * var(--k, .44)); font-size: calc(30px * var(--k, .44)); font-weight: 700; color: var(--ink); display: grid; place-items: center; }
.map-tools .rail button.on { background: #0a5fd9; color: #fff; box-shadow: 0 6px 14px rgba(10, 95, 217, .35); }
.map-tools .rail button .ic { width: calc(48px * var(--k, .44)); height: calc(48px * var(--k, .44)); stroke-width: 2.4; }
.map-tools .rail .rule { width: calc(46px * var(--k, .44)); height: 1px; background: rgba(14, 26, 58, .2); }
.map-tools .tool-r { position: absolute; right: calc(42px * var(--k, .44)); width: calc(80px * var(--k, .44)); height: calc(80px * var(--k, .44)); border-radius: 50%; background: #fff; color: var(--ink); }
.map-tools #recenter { top: calc(45px * var(--k, .44)); }
.map-tools #labels { top: calc(135px * var(--k, .44)); }
.route-card { left: 18px; right: 18px; bottom: calc(var(--safe-bot) + 16px); padding: 12px 12px 12px 18px; border-radius: 26px; background: rgba(255, 255, 255, .95); gap: 14px; box-shadow: 0 12px 30px rgba(30, 50, 100, .12); }
.route-card .pin-i { color: var(--ink); display: grid; place-items: center; }
.route-card .vd { width: 1px; align-self: stretch; margin: 4px 0; background: rgba(14, 26, 58, .12); }
.route-card b { font-size: 17px; font-weight: 800; color: var(--ink); }
.route-card small { font-size: 12.5px; color: #59627a; }
.route-card .go.yellow { width: 40px; height: 40px; background: #ffd31a; color: var(--ink); }
.steps { bottom: calc(var(--safe-bot) + 96px); left: 18px; right: 18px; }
.steps .eta { margin-left: auto; font-size: 11.5px; font-weight: 700; color: #1d5fd6; }

/* scan intro */
.scan-intro .topbar { margin-bottom: 0; }
.si-head { text-align: center; margin-top: -6px; }
.si-icon { display: inline-grid; place-items: center; color: #1d5fd6; margin-bottom: 4px; }
.si-head .h2 { font-size: 27px; margin: 2px 0 6px; }
.si-head .sub { font-size: 13px; line-height: 1.45; margin: 0 0 16px; }
.scan-intro .scan-hero.photo { width: 84%; margin: 0 auto 18px; box-shadow: none; background: none; }
.scan-intro .scan-hero.photo img { border-radius: 22px; }
.scan-intro .feat { gap: 10px; margin: 0 6% 20px; }
.scan-intro .feat li { font-size: 12.5px; color: var(--ink); gap: 12px; }
.scan-intro .feat .fi { width: 26px; height: 26px; border-radius: 8px; background: #fff; display: grid; place-items: center; box-shadow: 0 3px 8px rgba(30, 50, 100, .08); }
.scan-intro .feat .fi .ic { width: 15px; height: 15px; color: var(--ink); }
.si-btn { display: flex; width: 100%; height: 48px; border-radius: 24px; color: var(--ink); font-size: 15px; font-weight: 700; background: linear-gradient(180deg, #ffffff, #e8eefc); box-shadow: 0 10px 24px rgba(30, 80, 200, .16), inset 0 1px 0 #fff; }

/* trolley list */
.t-sun { position: absolute; right: -60px; top: 110px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffd84a, #ffc400); filter: blur(1px); opacity: .9; z-index: 0; }
.t-title { font-size: 30px; margin: 4px 6px 18px; position: relative; }
.trolley-list .titem { position: relative; padding: 10px 18px 10px 12px; border-radius: 24px; margin-bottom: 11px; gap: 16px; background: rgba(255, 255, 255, .78); box-shadow: 0 10px 24px rgba(30, 50, 100, .08), inset 0 1px 0 #fff; transition: transform .3s var(--ease), opacity .3s; touch-action: pan-y; }
.trolley-list .titem .thumb-sm { width: 82px; height: 64px; background: none; }
.trolley-list .titem .vd { width: 1px; align-self: stretch; margin: 6px 0; background: rgba(14, 26, 58, .1); }
.trolley-list .titem b { font-size: 16px; font-weight: 800; color: var(--ink); }
.trolley-list .titem b em { font-style: normal; font-weight: 600; color: #1d5fd6; font-size: 13px; }
.trolley-list .titem small { font-size: 12.5px; color: #69728a; }
.trolley-list .check { width: 26px; height: 26px; border-radius: 7px; }
.trolley-list .check.on { background: #1d5fd6; border-color: #1d5fd6; }
.cmp-pill { display: flex; align-items: center; height: 56px; border-radius: 28px; margin-top: 16px; padding: 0 8px 0 0; background: rgba(255, 255, 255, .8); box-shadow: 0 12px 28px rgba(30, 50, 100, .10), inset 0 1px 0 #fff; }
.cmp-pill #cmp { flex: 1; height: 100%; font-size: 20px; font-weight: 800; color: var(--ink); }
.cmp-pill #cmp:disabled { opacity: .45; }
.cmp-pill .vd { width: 1px; height: 30px; background: rgba(14, 26, 58, .12); margin-right: 14px; }
.cmp-pill .add { width: 42px; height: 42px; border-radius: 50%; background: #fff; display: grid; place-items: center; color: var(--ink); box-shadow: 0 4px 12px rgba(30, 50, 100, .12); }
.t-hint { text-align: center; margin-top: 10px; font-size: 11px; }

/* compare */
.compare .topbar { margin-bottom: 10px; }
.c-sun { position: absolute; right: -80px; bottom: 40px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, #ffe680, #ffd84a); opacity: .65; z-index: 0; }
.compare > * { position: relative; }
.c-title { text-align: center; font-size: 29px; margin: 6px 0 2px; }
.c-sub { text-align: center; font-size: 17px; color: #6b7590; margin: 0; }
.c-bar { margin: 8px auto 18px; width: 36px; }
.c-dots { display: flex; justify-content: center; gap: 6px; margin: -8px 0 14px; }
.c-dots a { width: 6px; height: 6px; border-radius: 3px; background: #cbd2df; }
.c-dots a.on { width: 16px; background: #1d5fd6; }
.compare .cmp-cards { gap: 16px; margin: 0 14px 18px; }
.compare .cmp-card { border-radius: 22px; background: #fff; border: 0; box-shadow: 0 12px 28px rgba(30, 50, 100, .10); }
.compare .cmp-card .img { height: 150px; background: #fff; }
.compare .cmp-card .foot { padding: 10px 14px 14px; background: #fff; color: var(--ink); position: relative; overflow: hidden; }
.compare .cmp-card .foot b { font-size: 15px; font-weight: 700; }
.compare .cmp-card .foot span { font-size: 18px; font-weight: 800; }
.compare .cmp-card.on { box-shadow: 0 0 0 1.5px #1d5fd6, 0 14px 30px rgba(29, 95, 214, .22); }
.compare .cmp-card.on .foot { background: #0b63d1; color: #fff; }
.compare .cmp-card.on .foot::after { content: ''; position: absolute; right: 0; bottom: 0; width: 46px; height: 34px; background: #ffd31a; clip-path: polygon(100% 0, 100% 100%, 0 100%); border-bottom-right-radius: 22px; }
.compare .cmp-card .check { top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 6px; border: 2px solid #1c2440; background: #fff; }
.compare .cmp-card .check.on { border-radius: 50%; background: #1d5fd6; border-color: #1d5fd6; }
.compare .cmp-card .check .ic { width: 13px; height: 13px; }
.compare .cmp-table { border-radius: 22px; padding: 4px 10px; margin: 0 2px; background: #fff; box-shadow: 0 12px 28px rgba(30, 50, 100, .08); overflow: hidden; }
.compare .cmp-table .row { grid-template-columns: 1.15fr 1fr 1fr; gap: 0; padding: 0; border-bottom: 1px solid rgba(14, 26, 58, .07); font-size: 12px; min-height: 44px; }
.compare .cmp-table .row > * { padding: 10px 6px; height: 100%; display: flex; align-items: center; justify-content: center; }
.compare .cmp-table .row .lbl { justify-content: flex-start; gap: 10px; color: var(--ink); font-weight: 600; font-size: 11.5px; line-height: 1.2; }
.compare .cmp-table .row .lbl small { font-weight: 500; }
.compare .cmp-table .row .lbl .ic { width: 18px; height: 18px; color: var(--ink); flex: none; }
.compare .cmp-table .row .ca { background: rgba(214, 228, 252, .45); font-weight: 500; }
.compare .cmp-table .row .cb { background: rgba(255, 240, 200, .45); font-weight: 500; }
.compare .tier { font-size: 11.5px; padding: 4px 12px; border-radius: 12px; font-weight: 700; }
.compare .tier.Budget { background: #d7e6fd; color: #1d5fd6; }
.compare .tier.Premium { background: #ffd84a; color: var(--ink); }
.c-hint { text-align: center; font-size: 11px; margin-top: 12px; }
.target small em { white-space: nowrap; }
.target .t { min-width: 0; }
.compare .cmp-table .row { grid-template-columns: 1.35fr 1fr 1fr; }
.compare .cmp-table .row .lbl { font-size: 11px; white-space: nowrap; }
.compare .cmp-table .row .lbl span { white-space: normal; }
.scan-intro .si-head { margin-top: 4px; }
.scan-intro .si-head .h2 { font-size: 30px; margin-bottom: 8px; }
.scan-intro .si-head .sub { font-size: 13.5px; margin-bottom: 22px; }
.scan-intro .scan-hero.photo { width: 76%; margin-bottom: 26px; }
.scan-intro .feat { margin: 0 9% 30px; gap: 14px; }
.scan-intro .si-btn { width: auto; margin: 0 4px; height: 52px; border-radius: 26px; font-size: 16px; }
.kv.kv-in .row { padding: 8px 0; }
.card-box { padding: 12px 16px 4px; }
.recent { margin: 0 -16px; padding: 2px 16px 4px; gap: 6px; }
.recent .chip { padding: 0 10px; gap: 5px; font-size: 11px; }

/* ===== one consistent background on every screen ===== */
.nav-sun, .t-sun, .c-sun { display: none !important; }
#app { background: #f3f5fb; }
.bg::before { width: 85%; height: 46%; left: -28%; top: -12%; background: radial-gradient(closest-side, rgba(140, 180, 255, .42), transparent); }
.bg::after { width: 75%; height: 42%; right: -28%; top: -10%; background: radial-gradient(closest-side, rgba(255, 214, 102, .42), transparent); }
.bg i { width: 70%; height: 36%; right: -30%; bottom: -12%; background: radial-gradient(closest-side, rgba(255, 220, 120, .30), transparent); }
.splash .bg, .splash ~ .bg { display: none; }
/* the design map picture blends into the shared background */
.map-stage.photo .navmap { mix-blend-mode: multiply;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 88%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0, #000 6%, #000 88%, transparent 100%); }

/* ===== AR Setup ===== */
.cam .top .round + .round { margin-left: -2px; }
.setup-src { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #1d5fd6; background: rgba(29, 95, 214, .08); padding: 5px 10px; border-radius: 10px; margin: 0 4px 12px; }
.setup-quick { display: flex; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.setup-quick .btn { flex: 1; height: 44px; font-size: 13px; min-width: 140px; }
.lbl-card { border-radius: 22px; padding: 12px 14px 12px; margin-bottom: 12px; background: rgba(255, 255, 255, .85); animation: rise .4s var(--ease) both; }
.lbl-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.lbl-top .lt, .lbl-sheet .lt { width: 60px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, #f7f4ef, #e8ebf1); overflow: hidden; flex: none; display: block; }
.lbl-top .lt .art, .lbl-sheet .lt .art { width: 100%; height: 100%; object-fit: cover; }
.lbl-top .lt .art.cutout { object-fit: contain; }
.lbl-obj { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.lbl-obj small, .fld small { font-size: 11px; color: var(--muted); font-weight: 600; }
.lbl-obj select { height: 38px; border-radius: 12px; border: 1px solid rgba(14, 26, 58, .12); background: #fff; padding: 0 10px; font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); width: 100%; }
.fld { display: flex; flex-direction: column; gap: 4px; margin-bottom: 8px; }
.fld input, .fld textarea { border: 1px solid rgba(14, 26, 58, .12); border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 14px; color: var(--ink); background: #fff; resize: none; outline: 0; }
.fld input:focus, .fld textarea:focus, .lbl-obj select:focus { border-color: #1d5fd6; box-shadow: 0 0 0 3px rgba(29, 95, 214, .15); }
.lbl-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.lbl-actions .btn { height: 38px; font-size: 12.5px; padding: 0 14px; }
.lbl-actions .btn.danger { margin-left: auto; color: #c63b3b; }
.switch { position: relative; width: 46px; height: 28px; flex: none; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 14px; background: #cdd4e0; transition: background .2s; }
.switch i::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .2); transition: transform .25s var(--spring); }
.switch input:checked + i { background: #1d5fd6; }
.switch input:checked + i::after { transform: translateX(18px); }
.add-obj { margin-bottom: 10px; }
.ar-setup #try { margin-bottom: 18px; }
.share-box .pdp-desc { margin: 0 0 6px; font-size: 13px; }
.share-steps { margin: 0 0 12px; padding-left: 20px; font-size: 13px; color: var(--ink-2); line-height: 1.6; }
.pick-wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.more-obj { margin-top: 12px; }
.more-obj summary { font-weight: 700; font-size: 13px; color: #1d5fd6; cursor: pointer; margin-bottom: 10px; }
.lbl-sheet .lt { width: 100%; height: 170px; border-radius: 20px; margin-bottom: 12px; }
.lbl-sheet .lt .art { object-fit: contain; }
.lbl-sheet .lt .art.photo:not(.cutout) { object-fit: cover; }
.lbl-sheet .kick { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #1d5fd6; display: flex; gap: 5px; align-items: center; margin: 0; }
