/* LOOPX · Violet edition. Shared components, desktop and mobile. */
:root {
  --bg:#f5f5fa; --paper:#ffffff; --white:#ffffff; --ink:#171521;
  --muted:#696676; --line:#e8e6f0; --violet:#6c42ed; --violet-dark:#5430c2;
  --lavender:#f0ebff; --coral:var(--violet); --coral-dark:var(--violet-dark);
  --coral-light:var(--lavender); --green:#68558e; --green-light:#f0ebff;
  --radius:24px; --shadow:0 14px 45px #24203408;
  color:var(--ink); background:var(--bg);
}
body { background:var(--bg); }
button,a,input,select,textarea { touch-action:manipulation; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible { outline:3px solid #9b7df6; outline-offset:4px; }
button:disabled { opacity:.45; transform:none!important; }
::selection { background:#ded3ff; color:#20143b; }
h1 { font-size:42px; font-weight:800; line-height:1.13; letter-spacing:-1.8px; }
h2 { font-size:26px; letter-spacing:-.9px; }
h3 { font-weight:750; }
.eyebrow { color:var(--violet); font-size:10px; font-weight:700; letter-spacing:1.6px; }

/* A quiet dark rail gives the map and white surfaces room. */
.sidebar { width:224px; background:#171521; color:#f3f0fc; border:0; padding:31px 18px 20px; overflow-y:auto; scrollbar-width:none; }
.brand { padding:0 9px; gap:11px; }
.brand-mark { width:36px; height:40px; font-size:46px; color:#a58aff; transform:rotate(-8deg); }
.brand-mark>span { width:7px; height:7px; right:-1px; background:#b5a0ff; box-shadow:0 0 0 3px #171521; }
.brand-name { color:#fff; font-size:30px; letter-spacing:-1.4px; }
.brand-name>span { margin-top:5px; color:#8c859f; letter-spacing:1.15px; font-size:7px; font-weight:650; }
.desktop-nav { margin-top:44px; gap:7px; }
.nav-item { position:relative; padding:13px 14px; border-radius:12px; gap:13px; color:#a09aac; font-size:13px; font-weight:500; transition:color .18s,background .18s,transform .18s; }
.nav-item:hover { color:#f5f2ff; background:#ffffff07; }
.nav-item.active,.nav-item.active:hover { color:#fff; background:#6c42ed; box-shadow:0 6px 22px #6c42ed2b; font-weight:650; }
.nav-item.active:after { content:''; width:5px; height:5px; background:#d8caff; border-radius:50%; margin-left:auto; }
.nav-item svg { width:19px; height:19px; stroke-width:1.7; }
.nav-caption { margin:29px 14px 6px; color:#6e687e; font-size:9px; letter-spacing:1.45px; }
.nav-badge { border:0; padding:3px 5px; border-radius:4px; color:#c5afff; background:#a480ff15; font-size:8px; }
.nav-count { background:#fff2; color:#fff; font-size:10px; min-width:19px; height:19px; }
.nav-item:has(.nav-count):after { display:none; }
.sidebar-bottom { padding-top:22px; }
.sidebar-bottom .nav-item { font-size:12px; color:#a29bad; }
.profile { border-color:#ffffff10; color:#e6e1f0; font-weight:550; padding:19px 4px 0; margin-top:18px; }
.profile>div>span { color:#787184; font-size:10px; margin-top:4px; }
.avatar { background:#302641; color:#c7b5ff; width:34px; height:34px; border:1px solid #bd98ff22; }
.small-dot { width:5px; height:5px; background:#b7d5c8; }
.sidebar-promo { position:relative; display:block; margin:30px 4px 22px; padding:89px 15px 17px; border:1px solid #a58aff20; border-radius:19px; overflow:hidden; background:radial-gradient(ellipse at 60% 0,#6648a437,transparent 70%),#211b2e; }
.promo-kicker { display:block; font-size:7px; letter-spacing:1.6px; color:#a89ab9; margin-bottom:9px; }
.sidebar-promo>strong { color:#f5f1ff; font:650 13px/1.55 'Manrope',sans-serif; letter-spacing:-.2px; }
.promo-action { display:flex; gap:7px; align-items:center; margin-top:16px; color:#beabff; font-size:10px; }
.promo-action svg { width:13px; height:13px; }
.promo-orbit { position:absolute; width:95px; height:64px; left:50%; top:20px; transform:translateX(-50%); }
.promo-orbit>i { position:absolute; border:1px solid #bba3ff3b; background:#8a63f00b; width:62px; height:37px; transform:rotate(-25deg) skewX(27deg); border-radius:9px; top:18px; left:16px; }
.promo-orbit>i:nth-child(2) { top:9px; border-color:#bba3ff62; background:#7b51db1a; }
.promo-orbit>i:nth-child(3) { top:0; border-color:#c9b6ff95; background:#a27efa21; }
.promo-orbit>span { position:absolute; left:40px; top:8px; color:#d4c5ff; }
.promo-orbit svg { width:22px; height:22px; stroke-width:1.3; }
.main-shell { margin-left:224px; }
.demo-banner { min-height:29px; background:#eeedf4; color:#696676; gap:8px; font-size:9px; }
.demo-banner strong { color:#696676; letter-spacing:1.3px; font-size:7px; }
.demo-dot { background:#a18bbf; width:4px; height:4px; }
.demo-banner button { color:#696676; }
.topbar { height:69px; background:#ffffffc9; border-color:var(--line); padding:0 32px; }
.breadcrumb { color:#696676; font-size:12px; }
.breadcrumb strong { color:#3a3448; font-weight:600; }
.topbar-actions { gap:14px; }
.location-pill { gap:7px; font-size:11px; color:#696676; }
.location-pill svg { color:#8b70b2; }
.tag-mini { border:0; border-radius:4px; background:#efedf4; color:#696676; padding:4px 5px; }
.icon-button { width:36px; height:36px; border:1px solid var(--line); border-radius:12px; background:#fff; color:#696676; transition:background .16s,border-color .16s; }
.icon-button:hover { background:#f4efff; border-color:#d7c9ff; }
.profile-button { background:#ede6fc; color:#7351ab; border:1px solid #ded1f5; border-radius:50%; width:34px; height:34px; font-size:11px; }
#main { padding:31px 32px 30px; max-width:1660px; margin:auto; }
.page-heading { gap:22px; align-items:center; margin-bottom:26px; }
.page-heading .eyebrow { margin-bottom:10px; }
.page-heading h1 em { color:var(--violet); font-weight:800; }
.page-heading p { font-size:12px; line-height:1.7; color:var(--muted); margin-top:11px; max-width:580px; }
.map-page-heading .heading-line { display:block; }
.page-heading-side { align-self:flex-end; margin-bottom:3px; }
.button { border-radius:12px; min-height:44px; padding:12px 17px; background:var(--violet); color:#fff; font-size:12px; font-weight:650; box-shadow:0 4px 12px #6c42ed10; }
.button:hover { background:var(--violet-dark); box-shadow:0 7px 18px #6c42ed20; }
.button.secondary { background:#fff; color:#3a3448; border-color:var(--line); box-shadow:0 3px 8px #17152103; }
.button.secondary:hover { background:#f7f4ff; border-color:#d9cdf8; }
.button.dark { background:#24202e; }
.button.dark:hover { background:#3c304f; }
.button.subtle { color:var(--violet); background:#ede5fc; box-shadow:none; }
.button.subtle:hover { background:#e6daf9; }
.button.text-button { color:var(--violet); background:none; box-shadow:none; }
.button.small { border-radius:9px; font-size:11px; min-height:35px; }
.pill { font-size:10px; border-radius:6px; padding:5px 7px; }
.pill.green { color:#4b7965; background:#eef6f1; }
.pill.coral { color:var(--violet); background:#eee7fa; }
.pill.grey { color:#696676; background:#f1eff5; }

/* Discover: a generous map with a focused place list. */
.discovery-layout { grid-template-columns:minmax(0,1fr) 326px; gap:22px; height:572px; max-height:calc(100dvh - 285px); min-height:495px; }
.map-shell { order:1; border-color:#e1ddea; border-radius:26px; background:#eeeaf5; box-shadow:var(--shadow); }
.discovery-panel { order:2; border:1px solid var(--line); border-radius:24px; background:#fff; box-shadow:var(--shadow); }
.panel-heading { display:flex; justify-content:space-between; align-items:center; padding:20px 20px 0; gap:14px; }
.panel-heading h2,.panel-heading h3 { font-size:19px; letter-spacing:-.7px; margin-top:4px; }
.panel-kicker { color:#696676; font-size:8px; font-weight:650; letter-spacing:1.5px; text-transform:uppercase; }
.panel-heading-icon { width:32px; height:32px; display:grid; place-items:center; border:1px solid #ece6f7; background:#f9f6ff; color:var(--violet); border-radius:10px; }
.panel-heading-icon svg { width:16px; height:16px; }
.panel-search { padding:17px 17px 11px; }
.search-box { padding:12px; background:#f8f7fb; border-color:#efecf4; border-radius:12px; }
.search-box:focus-within { background:#fff; border-color:#c6b5f8; box-shadow:0 0 0 3px #7953df0c; }
.search-box input { font-size:12px; }
.search-box input::placeholder { color:#696676; }
.search-box svg { color:#998ca7; }
.category-strip { padding:0 17px 15px; gap:6px; }
.chip { border-radius:8px; padding:8px 10px; border-color:#eeeaf3; color:#696676; font-size:10px; }
.chip:hover { border-color:#d7caf1; background:#faf7ff; }
.chip.active { background:#272132; border-color:#272132; color:#fff; }
.results-heading { border-color:#f1eef6; padding:13px 20px 7px; color:#3a3448; font-size:10px; }
.results-heading span:last-child { color:#696676; font-size:9px; }
.business-list { padding:4px 10px 10px; scrollbar-color:#ddd3eb transparent; }
.business-card { position:relative; padding:13px 10px; gap:12px; grid-template-columns:59px minmax(0,1fr); border:1px solid transparent; border-radius:16px; margin:3px 0; transition:background .16s,border-color .16s,transform .16s; }
.business-card:hover { background:#fbf9ff; border-color:#e9e0f7; transform:translateX(-2px); }
.business-card.selected { background:#f7f3ff; border-color:#e7dbff; }
.business-art { width:59px; height:69px; border-radius:12px; background:#e9e1f0; flex:none; }
.business-info h3 { color:#171521; font-size:13px; letter-spacing:-.3px; margin:0 0 5px; }
.business-title-line { display:flex; justify-content:space-between; align-items:center; gap:8px; }
.business-title-line h3 { overflow:hidden; }
.business-open { display:flex; color:var(--violet); flex:none; }
.business-open svg { width:13px; height:13px; }
.business-meta { font-size:10px; color:#696676; gap:5px; }
.business-meta .divider-dot { background:#c2b6cc; }
.business-bottom { margin-top:10px; align-items:flex-end; gap:6px; }
.business-benefit { display:flex; flex-direction:column; gap:3px; min-width:0; }
.discount-caption { color:#696676; font-size:8px; line-height:1; }
.discount-label { color:var(--violet); font-size:12px; letter-spacing:-.2px; }
.mini-model { color:var(--violet); font-size:9px; gap:3px; white-space:nowrap; }
.panel-footer { background:#fcfaff; border-color:#f0ebf6; color:#696676; padding:12px 19px; font-size:9px; }
.panel-footer svg { color:#9c82b5; }
.map-label-top { background:#fffffff0; border-color:#ede8f3; box-shadow:0 4px 16px #35214307; padding:10px 12px; top:18px; left:18px; border-radius:11px; color:#696676; font-size:10px; backdrop-filter:blur(15px); }
.map-label-top svg { color:#8e6bc2; }
.map-tools { top:18px; right:18px; gap:7px; }
.map-tool { border-color:#e8e0ef; background:#fffffff0; color:#696676; border-radius:11px; width:35px; height:35px; box-shadow:0 4px 15px #33213c08; backdrop-filter:blur(12px); }
.map-tool:hover { color:var(--violet); background:#f8f3ff; }
.map-tool.active { background:var(--violet); border-color:var(--violet); color:#fff; }
.map-marker { color:#3a3448; background:#fff; border:2px solid #fff; border-radius:12px 12px 12px 3px; padding:9px 11px; box-shadow:0 6px 18px #4e2d6c20; font-size:11px; }
.map-marker:hover,.map-marker.selected { background:var(--violet); border-color:white; color:#fff; box-shadow:0 6px 20px #6c42ed45; }
.map-marker.selected:after { background:#7953ba30; }
.map-business-label { color:#696676; background:#ffffffb8; font-size:9px; padding:4px 6px; backdrop-filter:blur(7px); }
.map-locate { right:18px; bottom:35px; gap:7px; }
.map-attribution { color:#696676; font-size:8px; bottom:8px; left:15px; max-width:72%; }
.map-feature-card { bottom:38px; left:19px; max-width:300px; padding:16px; border-radius:19px; gap:13px; border-color:#eee6f4; background:#fffffff5; box-shadow:0 10px 35px #45296014; backdrop-filter:blur(16px); }
.map-feature-card>.business-art { width:55px; height:68px; border-radius:11px; }
.featured-kicker { display:block; margin-bottom:5px; color:var(--violet); font-size:8px; font-weight:700; line-height:1.4; letter-spacing:1.1px; text-transform:uppercase; }
.map-feature-card h3 { font-size:13px; color:#171521; margin:1px 14px 6px 0; }
.map-feature-card p { color:#696676; font-size:9px; }
.map-feature-card .button { margin-top:11px; min-height:29px; padding:7px 10px; border-radius:8px; font-size:10px; box-shadow:none; }
.map-feature-close { top:6px; right:6px; width:24px; height:24px; color:#696676; font-size:17px; }
.map-fallback-note { position:absolute; z-index:5; top:64px; left:18px; right:18px; width:fit-content; max-width:calc(100% - 36px); padding:7px 10px; border-radius:7px; background:#ffffffe0; color:#696676; font-size:9px; line-height:1.5; pointer-events:none; }
.journey-strip,.journey-promo { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:19px 22px; margin-top:20px; border:1px solid #e8e1f3; border-radius:19px; background:linear-gradient(100deg,#fff 30%,#f1eaff); }
.journey-message { color:#696676; font-size:11px; }
.journey-message strong { color:#3a3448; font-weight:650; }
.journey-promo-icon { display:grid; place-items:center; flex:none; width:40px; height:40px; border-radius:12px; background:#eee5ff; color:var(--violet); }
.journey-promo-icon svg { width:21px; height:21px; }
.journey-promo-copy { flex:1; min-width:0; }
.journey-promo-copy strong { display:block; color:#3a3448; font:650 13px/1.4 'Manrope',sans-serif; }
.journey-promo-copy p,.journey-promo-copy>span:last-child { display:block; font-size:10px; line-height:1.5; color:#696676; margin-top:4px; }
.journey-promo-link,.journey-strip>a { font-size:11px; color:var(--violet); display:flex; align-items:center; gap:9px; font-weight:650; white-space:nowrap; }
.journey-promo-link svg,.journey-strip>a svg { width:15px; height:15px; }

/* Scanner, wallet, management and dialogs share the same material language. */
.section-card { background:#fff; border-color:var(--line); box-shadow:var(--shadow); border-radius:22px; padding:26px; }
.section-card p { color:#696676; font-size:12px; line-height:1.65; }
.section-heading { margin-bottom:23px; gap:16px; }
.segment { background:#ebe7f2; border:1px solid #e7e0ee; padding:4px; border-radius:12px; }
.segment button { color:#696676; font-size:11px; border-radius:9px; min-height:35px; padding:8px 15px; }
.segment button.active { background:#fff; color:var(--violet); box-shadow:0 2px 7px #4121570a; }
.segment button svg { width:16px; height:16px; }
.wallet-summary { background:#eee6fc; color:#696676; border:1px solid #e6d9f6; border-radius:14px; font-size:11px; padding:13px 17px; }
.wallet-summary strong { color:var(--violet); font-size:27px; font-weight:600; }
.wallet-grid { grid-template-columns:repeat(auto-fill,minmax(285px,1fr)); gap:20px; }
.coupon-ticket { position:relative; background:#fff; border:1px solid #e9e1ef; border-radius:23px; box-shadow:var(--shadow); }
.coupon-ticket-head { background:linear-gradient(135deg,#fcfbff,#f1e8ff); border-color:#e1d3f1; padding:23px; }
.coupon-ticket-head h3 { font-size:15px; color:#171521; margin-bottom:8px; }
.coupon-ticket-head p { font-size:11px; color:#696676; }
.coupon-discount { color:var(--violet); font-size:43px; letter-spacing:-2.2px; }
.coupon-ticket-body { padding:22px 23px; }
.coupon-ticket-body p { color:#696676; font-size:11px; }
.coupon-code { border-color:#eee6f5; background:#faf7ff; color:#696676; border-radius:10px; padding:13px; font-size:12px; }
.ticket-footer span { color:#696676; font-size:10px; }
.coupon-ticket.used { opacity:1; background:#f8f7fb; }
.coupon-ticket.used .coupon-discount { color:#696676; }
.empty-state { padding:70px 25px; border:1px dashed #e2d6ee; background:#ffffff80; border-radius:24px; }
.empty-state>svg { color:#a287c1; width:50px; height:50px; margin-bottom:19px; }
.empty-state h3 { font-size:20px; letter-spacing:-.6px; }
.empty-state p { color:#696676; font-size:12px; line-height:1.7; max-width:340px; }
.scan-layout { gap:24px; }
.scanner-stage { background:radial-gradient(ellipse at 55% 40%,#4e355f,#211828 70%); border:1px solid #3e2d4a; border-radius:25px; }
.scanner-stage .scene-bg { opacity:.1; }
.camera-off { padding:30px; color:#f4eafa; text-align:center; }
.camera-off>svg { color:#c9a8ef; width:43px; height:43px; stroke-width:1.2; padding:0; margin-bottom:6px; }
.camera-off h3 { font-size:20px; letter-spacing:-.5px; }
.camera-off p { color:#ab95b8; font-size:12px; max-width:270px; }
.camera-off .button { margin-top:12px; background:#f3edfc; border-color:#f3edfc; color:#6e488c; min-height:43px; }
.camera-stage-top .pill { color:#d5c2e6; background:#ffffff0b; border-color:#bb98d933; padding:7px 10px; font-size:9px; }
.camera-stage-top .icon-button { border-color:#bb98d933; background:#ffffff0b; color:#c5acd9; }
.scan-corners { border-color:#b184df23; border-radius:23px; }
.scan-corners:before,.scan-corners:after { border-color:#c9a0ff; }
.scan-floating-coupon { background:#fffffff0; border-color:#f2e6ff; border-radius:22px; }
.scan-floating-coupon strong { color:var(--violet); }
.scan-floating-coupon small { color:#696676; font-size:9px; }
.capture-control { color:#c5afd3; }
.shutter { border-color:#cdb3e8; }
.shutter:before { background:#f2e9ff; }
.camera-hint { color:#bba2cc; font-size:10px; }
.label { font-size:12px; color:#3a3448; margin-bottom:8px; }
.field input,.field select,.field textarea { color:#171521; background:#fff; border:1px solid #e8dfef; border-radius:12px; padding:12px 14px; font-size:13px; }
.field input:focus,.field select:focus,.field textarea:focus { border-color:#b59ada; }
.field input::placeholder,.field textarea::placeholder { color:#696676; }
.field small { color:#696676; font-size:11px; }
.check-line { color:#696676; font-size:11px; line-height:1.65; }
.check-line input { accent-color:var(--violet); width:16px; height:16px; margin-top:2px; }
.guide-steps li { color:#696676; line-height:1.65; font-size:11px; gap:13px; margin-bottom:18px; }
.guide-steps li>span { color:var(--violet); background:#f1e7fb; border-color:#eadcf5; }
.guide-steps strong { color:#3a3448; font-size:12px; }
.notice { background:#f7f2fc; border-color:#eadcf5; color:#696676; font-size:11px; line-height:1.65; border-radius:12px; }
.notice.coral { background:#f4edff; border-color:#e5d6fa; color:#696676; }
.photo-counter { color:#696676; }
.photo-counter svg { color:#a180bb; }
.scan-progress { background:#ece1f6; }
.scan-progress>span { background:#b48ada; }
.photo-strip img,.view-photos img { border-radius:10px; }
.draft-row { border-color:#ede3f5!important; }
.draft-row h4 { color:#3a3448; }
.draft-row p { color:#696676; }
.draft-icon { background:#eee4fa; color:var(--violet); }
.immersive-shell { background:#efebf8; border-color:#e1d9ee; border-radius:26px; height:520px; box-shadow:var(--shadow); }
.immersive-top .pill { color:#696676; background:#fffffff0; border-color:#eee3f6; backdrop-filter:blur(15px); }
.immersive-controls { background:#ffffffec; border-color:#e8dcf1; box-shadow:0 5px 25px #3f255f0c; border-radius:13px; padding:5px; }
.immersive-controls button { color:#696676; border-radius:9px; font-size:11px; padding:9px 12px; }
.immersive-controls button:hover { background:#f1e7fc; }
.immersive-sidecard { color:#696676; border-color:#e5d5f0; background:#fffffff0; border-radius:17px; padding:18px; }
.immersive-sidecard h3 { color:#3a3448; font-size:12px; }
.immersive-sidecard p { color:#696676; font-size:10px; }
.stats-grid { gap:19px; margin-top:21px; }
.stat-card { border-color:#e8ddf1; border-radius:19px; background:#fff; padding:21px; gap:15px; }
.stat-icon { background:#f0e7fc; color:var(--violet); border-radius:12px; }
.stat-card strong { color:#171521; font-size:25px; }
.stat-card p { color:#696676; font-size:11px; }
.admin-card,.report-card,.table-wrap { background:#fff; border-color:#e8ddf1; border-radius:21px; box-shadow:var(--shadow); }
.admin-card { padding:23px; }
.admin-card h3,.report-card h3 { color:#171521; font-size:15px; }
.admin-card p,.report-card p { color:#696676; font-size:11px; }
.admin-card-actions { border-color:#ede1f5; }
.admin-card-actions .button { font-size:11px; }
.building-link { color:#696676; font-size:10px; }
.data-table { font-size:12px; }
.data-table th { background:#faf5ff; color:#3a3448; font-size:11px; padding:16px 20px; }
.data-table td { border-color:#f1e5f9; padding:17px 20px; }
.data-table td p,.report-card small { color:#696676; font-size:10px; }
.form-error { color:#a94761; background:#fff2f5; border-color:#f0d1dc; font-size:12px; border-radius:10px; }
dialog { border:1px solid #e9ddf5; border-radius:26px; background:#fff; max-width:570px; box-shadow:0 35px 120px #2d173b28; }
dialog::backdrop { background:#20122f75; backdrop-filter:blur(9px); }
.modal-header { padding:28px 30px 21px; }
.modal-header h2 { font-size:26px; letter-spacing:-.8px; color:#171521; }
.modal-header .eyebrow { font-size:9px; }
.modal-body { padding:0 30px 30px; }
.modal-body>p { font-size:13px; color:#696676; line-height:1.7; }
.modal-body h3 { font-size:15px; color:#3a3448; }
.detail-hero { height:170px; margin:0 30px 23px; border-radius:18px; background:#e9d9f5; }
.detail-hero .pill { background:#fffffff0; }
.detail-address { color:#696676; font-size:12px; }
.detail-coupon { background:#fcf8ff; border-color:#eddef8; border-radius:17px; padding:20px; }
.detail-coupon .coupon-discount { font-size:33px; }
.detail-coupon h4 { color:#3a3448; font-size:13px; }
.detail-coupon p { color:#696676; font-size:11px; }
.detail-coupon .button { margin-top:18px; }
.model-illustration { background:#eee4fa; border-color:#e4d1f2; border-radius:15px; }
.modal-footer-note { color:#696676; font-size:10px; line-height:1.7; }
.about-list li { border-color:#eee0f6; color:#696676; font-size:12px; }
.about-list svg { color:var(--violet); }
.about-list strong { color:#3a3448; }
.settings-status { color:#696676; font-size:12px; }
.settings-status span { background:#bd93d2; }
.local-privacy { background:#f7effe; color:#696676; font-size:11px; line-height:1.7; border-radius:12px; padding:15px 17px; }
.local-privacy strong { color:#3a3448; }
.status-line { color:#696676; font-size:11px; }
#toast { background:#30203e; color:#f4e9fc; border:1px solid #b68bd533; border-radius:14px; box-shadow:0 12px 40px #2c1b4430; left:calc(50% + 112px); font-size:12px; }
.no-results { color:#696676; font-size:12px; }
.scene-fallback { color:#696676; }
.scene-fallback>p,.fallback-notice { color:#696676; font-size:11px; }
.model-loading { color:#696676; }

@media (min-width:1600px) {
  #main { padding:38px 42px 35px; }
  .topbar { padding:0 42px; height:74px; }
  .discovery-layout { grid-template-columns:minmax(0,1fr) 365px; height:650px; }
  .business-card { grid-template-columns:68px minmax(0,1fr); padding:16px 13px; }
  .business-art { width:68px; height:78px; }
  .business-info h3 { font-size:14px; }
  .business-meta { font-size:11px; }
  .discount-label { font-size:13px; }
  h1 { font-size:46px; }
}
@media (max-width:1190px) {
  .sidebar { width:201px; padding-left:14px; padding-right:14px; }
  .main-shell { margin-left:201px; }
  .brand-name { font-size:27px; }
  .brand-name>span { font-size:6px; }
  .sidebar-promo { margin:25px 4px 20px; }
  .topbar { padding:0 25px; }
  #main { padding:27px 25px 28px; }
  .page-heading h1 { font-size:35px; }
  .discovery-layout { grid-template-columns:minmax(0,1fr) 296px; gap:18px; height:555px; }
  .business-card { grid-template-columns:53px minmax(0,1fr); gap:10px; padding:12px 9px; }
  .business-art { width:53px; height:64px; }
  .business-info h3 { font-size:12px; }
  .business-meta { font-size:9px; }
  .discount-label { font-size:11px; }
  .mini-model { font-size:8px; }
  .map-feature-card { max-width:260px; padding:14px; }
  .map-feature-card>.business-art { width:44px; height:62px; }
  .map-feature-card p { font-size:9px; }
  .scan-layout { grid-template-columns:minmax(0,1fr) 290px; gap:19px; }
  .page-heading-side .button { font-size:11px; padding:11px 13px; }
  #toast { left:calc(50% + 100px); }
}
@media (max-width:1050px) and (min-width:761px) {
  .sidebar { width:82px; padding:27px 11px 18px; }
  .main-shell { margin-left:82px; }
  .brand { justify-content:center; padding:0; }
  .brand-name,.sidebar-promo,.nav-caption,.nav-badge,.nav-count,.profile>div,.profile>.small-dot,.nav-item>span:not(.nav-icon) { display:none; }
  .nav-item { padding:15px 12px; justify-content:center; }
  .nav-item.active:after { display:none; }
  .desktop-nav { margin-top:40px; }
  .profile { padding:17px 0 0; justify-content:center; }
  .sidebar-bottom .nav-item { padding:14px 12px; }
  .discovery-layout { grid-template-columns:minmax(0,1fr) 280px; gap:16px; }
  .page-heading h1 { font-size:34px; }
  .map-label-top { left:13px; top:13px; padding:9px; font-size:9px; }
  .map-tools { right:13px; top:13px; }
  .map-feature-card { max-width:250px; left:13px; bottom:36px; }
  .map-feature-card h3 { font-size:12px; }
  .map-marker { padding:7px 9px; font-size:10px; }
  .journey-promo-copy p,.journey-promo-copy>span:last-child { max-width:320px; }
  #toast { left:calc(50% + 41px); }
}
@media (max-width:760px) {
  .sidebar,.location-pill,.profile-button,.breadcrumb { display:none; }
  .main-shell { margin-left:0; }
  .demo-banner { font-size:8px; min-height:28px; gap:6px; padding:6px 10px; }
  .demo-banner strong { font-size:7px; letter-spacing:1px; white-space:nowrap; }
  .topbar { height:66px; background:#fff; padding:0 22px; }
  .mobile-brand { display:flex; align-items:center; gap:10px; color:#201729; font-size:25px; }
  .mobile-brand .brand-mark { color:var(--violet); width:29px; height:35px; font-size:37px; }
  .mobile-brand .brand-mark>span { background:var(--violet); box-shadow:0 0 0 3px #fff; }
  .mobile-settings { display:grid; }
  .topbar-actions { gap:9px; }
  .icon-button { width:35px; height:35px; border-radius:11px; }
  #main { padding:27px 20px 115px; }
  .page-heading { align-items:flex-start; gap:14px; margin-bottom:23px; }
  .page-heading h1 { font-size:32px; letter-spacing:-1.3px; line-height:1.16; }
  .page-heading .eyebrow { font-size:9px; letter-spacing:1.3px; margin-bottom:10px; }
  .page-heading p { font-size:11px; line-height:1.65; max-width:420px; margin-top:11px; }
  .page-heading-side { align-self:flex-end; margin-bottom:3px; }
  .page-heading-side .button { padding:11px 12px; min-height:41px; font-size:10px; }
  .map-page-heading { flex-wrap:wrap; }
  .map-page-heading .page-heading-side { align-self:initial; margin-top:1px; }
  .map-page-heading .page-heading-side .button { min-height:35px; padding:8px 12px; font-size:10px; }
  .discovery-layout { display:flex; flex-direction:column; gap:20px; height:auto; min-height:0; max-height:none; }
  .map-shell { order:1; height:405px; border-radius:24px; }
  .discovery-panel { order:2; border-radius:23px; }
  .panel-heading { padding:21px 21px 0; }
  .panel-heading h2,.panel-heading h3 { font-size:20px; }
  .panel-kicker { font-size:8px; }
  .panel-search { padding:16px 18px 12px; }
  .search-box { padding:13px; }
  .search-box input { font-size:14px; }
  .category-strip { padding:0 18px 15px; }
  .chip { font-size:11px; padding:9px 11px; }
  .results-heading { padding:15px 21px 7px; font-size:11px; }
  .business-list { display:grid; grid-template-columns:1fr 1fr; gap:2px 6px; padding:5px 10px 12px; overflow:visible; }
  .business-card { grid-template-columns:56px minmax(0,1fr); gap:11px; padding:12px 10px; }
  .business-art { width:56px; height:68px; border-radius:12px; }
  .business-info h3 { font-size:12px; }
  .business-meta { font-size:9px; }
  .discount-label { font-size:11px; }
  .discount-caption { font-size:8px; }
  .business-bottom { margin-top:10px; }
  .mini-model { font-size:8px; }
  .panel-footer { font-size:10px; padding:14px 20px; }
  .map-label-top { top:15px; left:15px; border-radius:10px; font-size:9px; padding:10px; }
  .map-tools { top:15px; right:15px; }
  .map-tools .map-tool:first-child { display:grid; }
  .map-tool { width:33px; height:33px; border-radius:10px; }
  .map-marker { font-size:10px; padding:8px 10px; }
  .map-business-label { font-size:8px; }
  .map-locate { right:14px; bottom:33px; }
  .map-feature-card { left:15px; bottom:35px; padding:15px; max-width:266px; gap:11px; border-radius:17px; }
  .map-feature-card>.business-art { width:46px; height:61px; }
  .map-feature-card h3 { font-size:12px; margin-right:8px; }
  .map-feature-card p { font-size:9px; }
  .map-feature-card .button { font-size:10px; min-height:28px; }
  .map-attribution { font-size:7px; }
  .journey-promo,.journey-strip { padding:18px; gap:13px; border-radius:19px; margin-top:20px; flex-wrap:wrap; }
  .journey-promo-copy { min-width:150px; }
  .journey-promo-copy strong { font-size:12px; }
  .journey-promo-copy p,.journey-promo-copy>span:last-child { font-size:10px; line-height:1.5; }
  .journey-promo-link,.journey-strip>a { margin:0 0 0 53px; font-size:10px; }
  .journey-promo-link svg,.journey-strip>a svg { display:block; }
  .mobile-nav { display:flex; left:14px; right:14px; bottom:max(12px,env(safe-area-inset-bottom)); background:#201927f5; border:1px solid #46354f; border-radius:24px; padding:8px 9px; box-shadow:0 9px 35px #2a153b28; gap:4px; backdrop-filter:blur(22px); }
  .mobile-nav a { border-radius:16px; font-size:10px; color:#b59cc5; gap:5px; padding:9px 0 8px; font-weight:500; min-height:56px; }
  .mobile-nav a svg { width:20px; height:20px; stroke-width:1.7; }
  .mobile-nav a.active { background:#7043d5; color:#f9f2ff; font-weight:600; }
  .mobile-nav a.active:after { display:none; }
  .mobile-nav .mobile-count { border-color:#201927; background:#be95f2; color:#362044; width:16px; height:16px; font-size:8px; }
  .button { font-size:12px; min-height:44px; }
  .wallet-summary { padding:11px 13px; font-size:10px; }
  .wallet-summary strong { font-size:24px; }
  .wallet-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .coupon-ticket-head { padding:20px 18px; }
  .coupon-ticket-body { padding:18px; }
  .coupon-ticket-head h3 { font-size:13px; }
  .coupon-discount { font-size:35px; }
  .ticket-footer { flex-wrap:wrap; gap:10px; }
  .coupon-ticket .button { font-size:11px; min-height:35px; }
  .scan-layout { grid-template-columns:1fr; gap:22px; }
  .scan-panel { display:flex; }
  .scanner-stage { height:430px; border-radius:23px; }
  .camera-off h3 { font-size:19px; }
  .camera-off p { font-size:11px; }
  .camera-stage-top .pill { font-size:8px; }
  .scan-bottom .button { font-size:11px; min-height:42px; }
  .scan-corners { inset:90px 48px 90px; }
  .section-card,.scan-panel .section-card { padding:23px; }
  .section-card p,.guide-steps li { font-size:11px; }
  .guide-steps strong { font-size:12px; }
  .notice { font-size:10px; }
  .segment { max-width:100%; }
  .segment button { font-size:11px; padding:9px 13px; }
  .admin-tabs .segment button { font-size:10px; padding:9px 12px; }
  .immersive-shell { height:440px; border-radius:23px; }
  .immersive-top .pill { font-size:9px; }
  .immersive-sidecard { width:170px; right:15px; bottom:80px; }
  .immersive-controls button { font-size:10px; padding:9px 11px; }
  .stats-grid { gap:11px; }
  .stat-card { padding:16px; border-radius:17px; }
  .stat-card strong { font-size:25px; }
  .stat-card p { font-size:10px; }
  .admin-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
  .admin-card { padding:20px; }
  .admin-card h3 { font-size:14px; }
  .admin-card p { font-size:10px; }
  .admin-card-actions .button { min-height:37px; font-size:10px; }
  .empty-state { padding:55px 22px; }
  .empty-state h3 { font-size:20px; }
  .empty-state p { font-size:12px; }
  dialog { width:calc(100% - 28px); max-height:calc(100dvh - 36px); border-radius:24px; }
  .modal-header { padding:25px 24px 20px; }
  .modal-header h2 { font-size:24px; }
  .modal-body { padding:0 24px 26px; }
  .modal-body>p { font-size:12px; }
  .modal-body h3 { font-size:15px; }
  .detail-hero { height:155px; margin:0 24px 22px; border-radius:17px; }
  .detail-coupon { padding:18px; }
  .detail-coupon .coupon-discount { font-size:31px; }
  .detail-actions .button { min-height:43px; font-size:11px; }
  .field input,.field select,.field textarea { font-size:16px; padding:13px 14px; }
  .field input::placeholder,.field textarea::placeholder { font-size:13px; }
  .field label { font-size:12px; }
  .field small { font-size:10px; }
  .check-line { font-size:11px; }
  .local-privacy { font-size:11px; }
  .modal-footer-note { font-size:10px; }
  #toast { left:50%; bottom:105px; font-size:12px; max-width:calc(100vw - 36px); padding:13px 18px; }
}
@media (max-width:480px) {
  #main { padding:25px 17px 114px; }
  .topbar { padding:0 20px; }
  .demo-banner { font-size:7px; gap:6px; }
  .demo-banner strong { font-size:6px; }
  .page-heading h1 { font-size:30px; letter-spacing:-1.3px; }
  .page-heading p { max-width:330px; }
  .page-heading-side .button .optional { display:none; }
  .map-shell { height:395px; }
  .business-list { grid-template-columns:1fr; gap:3px; padding:5px 11px 13px; }
  .business-card { grid-template-columns:64px minmax(0,1fr); padding:14px 12px; gap:14px; }
  .business-art { width:64px; height:73px; }
  .business-info h3 { font-size:14px; }
  .business-meta { font-size:10px; }
  .discount-label { font-size:13px; }
  .discount-caption { font-size:9px; }
  .mini-model { font-size:10px; }
  .map-feature-card { max-width:255px; padding:14px; }
  .map-feature-card>.business-art { width:43px; height:59px; }
  .map-feature-card p { font-size:8px; }
  .map-feature-card h3 { font-size:12px; }
  .wallet-grid,.admin-grid { grid-template-columns:1fr; }
  .coupon-ticket-head,.coupon-ticket-body { padding:22px; }
  .coupon-ticket-head h3 { font-size:15px; }
  .coupon-discount { font-size:42px; }
  .ticket-footer { flex-direction:row; align-items:center; }
  .scanner-stage { height:420px; }
  .scan-corners { inset:90px 35px 90px; }
  .camera-off { padding:28px; }
  .scan-bottom .button { font-size:10px; padding:11px 12px; }
  .photo-counter { font-size:10px; }
  .stats-grid { gap:9px; }
  .stat-card { padding:13px; gap:10px; }
  .stat-card p { font-size:9px; }
  .stat-card strong { font-size:24px; }
  .immersive-shell { height:420px; }
  .immersive-sidecard { display:none; }
  .immersive-top .pill { font-size:8px; }
  .immersive-controls { right:14px; left:14px; justify-content:center; }
  .admin-card { padding:22px; }
  .admin-card-top .business-art { width:55px; height:63px; }
  .admin-card h3 { font-size:15px; }
  .admin-card p { font-size:11px; }
  .admin-card-actions .button { font-size:11px; }
  .field-row { grid-template-columns:1fr; }
  .detail-actions { flex-direction:column; }
}
@media (max-height:800px) and (min-width:1051px) {
  .sidebar-promo { padding-top:65px; margin:21px 4px 12px; }
  .promo-orbit { top:13px; transform:translateX(-50%) scale(.8); transform-origin:top center; }
  .sidebar-promo>strong { font-size:11px; }
  .promo-action { margin-top:11px; }
  .desktop-nav { margin-top:32px; }
}
@media (prefers-reduced-motion:reduce) {
  *,*:before,*:after { animation:none!important; transition:none!important; scroll-behavior:auto!important; }
}

/* City discovery: the city choice stays above the map on every screen. */
.city-explorer-bar{display:flex;align-items:center;gap:22px;padding:18px 22px;margin:0 0 22px;border:1px solid var(--line);border-radius:22px;background:#fff;min-width:0}
.city-explorer-copy{display:flex;flex-direction:column;gap:4px;flex:1;min-width:0}
.city-explorer-copy .eyebrow{font-size:9px;margin-bottom:3px}
.city-explorer-copy strong{font-size:16px;color:#171521;letter-spacing:-.3px}
.city-explorer-copy>span:last-child{font-size:11px;color:#696676}
.city-picker{min-width:230px;max-width:100%}
.city-picker>label{display:block;font-size:10px;font-weight:600;color:#696676;margin:0 0 6px 3px}
.city-picker-control{display:flex;align-items:center;gap:8px;background:#f5f2fc;border:1px solid #e5ddf8;border-radius:13px;padding:0 11px}
.city-picker-control>svg{width:18px;height:18px;flex:none;color:#6c42ed}
.city-picker-control select{width:100%;min-width:0;background:transparent;border:0;color:#171521;font-weight:600;font-size:12px;padding:12px 0;cursor:pointer}
.city-zoom-hint{display:flex;align-items:center;gap:6px;font-size:10px;white-space:nowrap;color:#696676}
.city-zoom-hint svg{width:16px;height:16px;color:#8b70b2}
@media(max-width:1100px){.city-zoom-hint{display:none}.city-explorer-bar{gap:16px}}
@media(max-width:600px){.city-explorer-bar{flex-direction:column;align-items:stretch;padding:18px;margin-bottom:18px;gap:13px;border-radius:20px}.city-picker{min-width:0;width:100%}.city-picker-control select{font-size:13px}.city-explorer-copy strong{font-size:15px}.city-explorer-copy>span:last-child{font-size:11px}}
