/* styles/01-base.css */
/* sQReet · base – design tokens, header, layout, carousel, chips, map, pins, list, sheet, toast
   (cascade order matters – files are linked in index.html in this order) */
/* ===== layer: style.css ===== */
/* ==========================================================
   sQReet – Smart City QR Navigation (prototype)
   Ultra-luxury glass UI · Dark mode is the strict default
   Sections: tokens · base · header · carousel · map · pins ·
             list · bottom sheet · artwork · responsive / 4K
   ========================================================== */

/* ---------- Design tokens ---------- */
:root,
[data-theme="dark"] {
  --bg: #090D16;
  --card: #111C18;
  --text: #F8FAFC;
  --accent: #34D399;
  --gold: #FBBF24;
  --muted: #94A3B8;
  --border: rgba(52, 211, 153, 0.20);
  --accent-ink: #052018;
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);

  --glass: rgba(17, 28, 24, .55);
  --glass-strong: rgba(14, 24, 20, .86);
  --glass-border: rgba(255, 255, 255, .09);
  --glass-shine: rgba(255, 255, 255, .07);

  --t-free: #94A3B8;
  --t-eco: #34D399;
  --t-boost: #22D3EE;
  --t-premier: #FBBF24;

  --pin-core: #0B1210;
  --sky1: #0A1411;
  --sky2: #173A30;
  --bldg: #0F1F1A;
  --ink: #F8FAFC;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #FFFFFF;
  --card: #F1F5F9;
  --text: #0B3B2D;
  --accent: #10B981;
  --gold: #D97706;
  --muted: #4B6B60;
  --border: rgba(11, 59, 45, 0.16);
  --accent-ink: #FFFFFF;
  --shadow: 0 16px 40px rgba(11, 59, 45, .16);

  --glass: rgba(241, 245, 249, .68);
  --glass-strong: rgba(255, 255, 255, .9);
  --glass-border: rgba(11, 59, 45, .10);
  --glass-shine: rgba(255, 255, 255, .8);

  --t-free: #475569;
  --t-eco: #059669;
  --t-boost: #0891B2;
  --t-premier: #D97706;

  --pin-core: #FFFFFF;
  --sky1: #E9F7F1;
  --sky2: #B9E7D4;
  --bldg: #CFE4DB;
  --ink: #0B3B2D;
  color-scheme: light;
}

:root {
  /* derived tints for 3D shading */
  --t-free-hi:    color-mix(in srgb, var(--t-free) 55%, #fff);
  --t-free-lo:    color-mix(in srgb, var(--t-free) 60%, #000);
  --t-eco-hi:     color-mix(in srgb, var(--t-eco) 55%, #fff);
  --t-eco-lo:     color-mix(in srgb, var(--t-eco) 60%, #000);
  --t-boost-hi:   color-mix(in srgb, var(--t-boost) 55%, #fff);
  --t-boost-lo:   color-mix(in srgb, var(--t-boost) 60%, #000);
  --t-premier-hi: color-mix(in srgb, var(--t-premier) 50%, #fff);
  --t-premier-lo: color-mix(in srgb, var(--t-premier) 62%, #000);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.2, .9, .3, 1.3);
}

/* ---------- Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  position: relative;
  min-height: 100vh;
  font-family: "SF Pro Display", "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: -.011em;
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  transition: background-color .4s ease, color .4s ease;
  padding-bottom: env(safe-area-inset-bottom);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.sheet-open { overflow: hidden; }

/* ambient aurora behind everything */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 40vh at 12% -5%, transparent, transparent 70%),
    radial-gradient(50vw 40vh at 100% 8%, transparent, transparent 70%),
    radial-gradient(70vw 50vh at 50% 110%, transparent, transparent 70%); background:
    radial-gradient(60vw 40vh at 12% -5%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(50vw 40vh at 100% 8%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%),
    radial-gradient(70vw 50vh at 50% 110%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
}

button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-shine), var(--shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.6);
  backdrop-filter: blur(22px) saturate(1.6);
}

/* ---------- Header ---------- */
.app-header {
  position: sticky; top: 0; z-index: 1000;
  padding: calc(10px + env(safe-area-inset-top)) 14px 12px;
  background: var(--bg); background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: blur(26px) saturate(1.7);
  backdrop-filter: blur(26px) saturate(1.7);
  border-bottom: 1px solid var(--glass-border);
}
.header-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }

.back-link {
  font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  padding: 7px 12px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-border);
  transition: transform .25s var(--ease), border-color .25s;
}
.back-link::before { content: "← "; }
.back-link:hover { transform: translateX(-2px); border-color: var(--accent); }

.header-controls { display: flex; align-items: center; gap: 8px; }
.lang-switch {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--glass); border: 1px solid var(--glass-border); border-radius: 999px;
}
.lang-switch button {
  font-size: .72rem; font-weight: 700; letter-spacing: .05em;
  padding: 5px 10px; border-radius: 999px; color: var(--muted);
  transition: background-color .25s, color .25s, transform .2s;
}
.lang-switch button:active { transform: scale(.94); }
.lang-switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.theme-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--gold);
  transition: transform .5s var(--spring), border-color .25s;
}
.theme-toggle:hover { transform: rotate(25deg) scale(1.06); border-color: var(--gold); }
.theme-toggle:active { transform: scale(.92); }
.theme-toggle .icon { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .icon-moon { fill: currentColor; stroke: none; }
[data-theme="dark"]  .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun  { display: none; }

.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.logo {
  font-size: 2rem; font-weight: 800; letter-spacing: -.035em; line-height: 1;
  background: linear-gradient(100deg, var(--text) 0%, var(--text) 45%, var(--accent) 60%, var(--gold) 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: sheen 7s ease-in-out infinite alternate;
}
.logo span { font-weight: 900; }
.slogan { font-size: .74rem; color: var(--muted); margin-top: 5px; }

.eco-badge {
  display: flex; align-items: center; gap: 9px; flex-shrink: 0;
  padding: 7px 13px 7px 10px; border-radius: 16px;
  background: var(--glass); border: 1px solid var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 60%, transparent);
  box-shadow: inset 0 1px 0 var(--glass-shine);
}
.eco-badge.pulse { animation: badgePulse .9s ease; }
.eco-leaf { font-size: 1.25rem; }
.eco-text { display: flex; flex-direction: column; line-height: 1.15; }
.eco-text strong { font-size: .86rem; color: var(--gold); }
.eco-text small { font-size: .7rem; color: var(--muted); }

/* ---------- Layout ---------- */
.app-main { padding: 14px; display: grid; gap: 16px; max-width: 1280px; margin: 0 auto; }
.section-label { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 7px; }
.section-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }

.segmented { display: grid; grid-template-columns: 1fr; gap: 4px; border-radius: 18px; padding: 4px; }
.segmented button {
  padding: 11px 14px; border-radius: 14px; text-align: left; font-weight: 600; font-size: .88rem; color: var(--muted);
  transition: background-color .3s, color .3s, transform .2s;
}
.segmented button:active { transform: scale(.985); }
.segmented button[aria-pressed="true"] { background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--gold))); color: var(--accent-ink); box-shadow: 0 6px 18px transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 35%, transparent); }

/* ---------- Tier badge ---------- */
.tier-badge {
  --tc: var(--t-free);
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px; border-radius: 999px;
  font-size: .68rem; font-weight: 800; letter-spacing: .03em; white-space: nowrap;
  color: var(--tc);
  background: transparent; background: color-mix(in srgb, var(--tc) 16%, transparent);
  border: 1px solid var(--tc); border: 1px solid color-mix(in srgb, var(--tc) 50%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.tier-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 8px var(--tc); }
.tier-badge b { font-weight: 700; opacity: .8; }
.tier-eco     { --tc: var(--t-eco); }
.tier-boost   { --tc: var(--t-boost); }
.tier-premier { --tc: var(--t-premier); background: linear-gradient(110deg, transparent 30%, transparent 50%, transparent 70%); background: linear-gradient(110deg, color-mix(in srgb, var(--tc) 18%, transparent) 30%, color-mix(in srgb, var(--t-premier-hi) 45%, transparent) 50%, color-mix(in srgb, var(--tc) 18%, transparent) 70%); background-size: 220% 100%; animation: shimmer 3.4s linear infinite; }

/* ---------- Luxury carousel ---------- */
.carousel-bar { border-radius: 26px; padding: 14px 4px 4px 14px; position: relative; overflow: hidden; }
.carousel-bar::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit;
  background: linear-gradient(115deg, transparent 40%, var(--glass-shine) 50%, transparent 60%); background-size: 250% 100%;
  animation: sweep 9s ease-in-out infinite;
}
.carousel-title { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); padding-right: 14px; }
.crown-ico { display: inline-flex; width: 20px; height: 20px; }
.crown-ico svg { width: 100%; height: 100%; }

.carousel {
  display: flex; gap: 12px; overflow-x: auto; padding: 12px 14px 14px 0;
  scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.carousel::-webkit-scrollbar { display: none; }

.c-card {
  position: relative; flex: 0 0 min(74vw, 270px); scroll-snap-align: start; text-align: left;
  display: flex; flex-direction: column; overflow: hidden; border-radius: 20px;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 10px 26px rgba(0, 0, 0, .25);
  transition: transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
  animation: rise .7s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 80ms);
}
.c-card:hover { transform: translateY(-5px) scale(1.012); }
.c-card:active { transform: scale(.985); }
.c-card--premier { border-color: var(--t-premier); border-color: color-mix(in srgb, var(--t-premier) 65%, transparent); box-shadow: inset 0 1px 0 var(--glass-shine), 0 14px 36px transparent; box-shadow: inset 0 1px 0 var(--glass-shine), 0 14px 36px color-mix(in srgb, var(--t-premier) 28%, transparent); }
.c-card--boost { border-color: var(--t-boost); border-color: color-mix(in srgb, var(--t-boost) 55%, transparent); }
.c-art { display: block; height: 112px; }
.c-art .art { width: 100%; height: 100%; display: block; }
.c-card .tier-badge { position: absolute; top: 9px; left: 9px; }
.c-body { padding: 10px 13px 13px; display: flex; flex-direction: column; gap: 1px; }
.c-body strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.c-body small { color: var(--muted); font-size: .74rem; }

/* ---------- Chips ---------- */
.chips { display: flex; gap: 7px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: var(--glass); border: 1px solid var(--glass-border);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: transform .2s var(--ease), border-color .25s, color .25s;
}
.chip svg { color: var(--accent); }
.chip:hover { transform: translateY(-1px); }
.chip:active { transform: scale(.95); }
.chip[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---------- Map ---------- */
.map-wrap { position: relative; border-radius: 26px; overflow: hidden; border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
#map { width: 100%; height: 56vh; min-height: 360px; background: var(--bg); z-index: 1; }
.map-badge {
  position: absolute; left: 12px; bottom: 12px; z-index: 500; pointer-events: none;
  font-size: .72rem; font-weight: 700; padding: 6px 12px; border-radius: 999px; box-shadow: none;
}
.tier-legend {
  position: absolute; right: 12px; bottom: 12px; z-index: 500; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border-radius: 14px; box-shadow: none;
  font-size: .64rem; font-weight: 700;
}
.tier-legend span { display: flex; align-items: center; gap: 6px; color: var(--tc); }
.tier-legend i { width: 8px; height: 8px; border-radius: 50%; background: var(--tc); box-shadow: 0 0 6px var(--tc); }

/* Leaflet theming */
.leaflet-container { font-family: inherit; background: var(--bg); }
.leaflet-control-zoom { border: 1px solid var(--glass-border) !important; border-radius: 14px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-control-zoom a { background: var(--glass-strong) !important; color: var(--text) !important; border-color: var(--glass-border) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.leaflet-control-attribution { background: var(--bg) !important; background: color-mix(in srgb, var(--bg) 70%, transparent) !important; color: var(--muted) !important; font-size: 10px; }
.leaflet-control-attribution a { color: var(--accent) !important; }
.leaflet-tooltip { background: var(--glass-strong); color: var(--text); border: 1px solid var(--glass-border); border-radius: 10px; font-weight: 600; box-shadow: var(--shadow); }
.leaflet-tooltip-top::before { border-top-color: var(--glass-strong); }

.center-pin { background: none; border: 0; }
.center-pin span {
  display: block; width: 16px; height: 16px; border-radius: 50%;
  background: var(--gold); border: 3px solid var(--bg);
  box-shadow: 0 0 0 2px var(--gold), 0 0 16px var(--gold);
}

/* ==========================================================
   4-tier map pins (all colour comes from theme tokens)
   ========================================================== */
.sq-pin { background: none; border: 0; overflow: visible; }
.pin {
  position: relative; width: 100%; height: 100%; transform-origin: 50% 100%;
  transition: transform .35s var(--spring);
  animation: pinDrop .7s var(--spring) backwards;
}
.sq-pin:hover .pin, .sq-pin:focus-visible .pin { transform: scale(1.16) translateY(-3px); }
.pin-svg { position: relative; width: 100%; height: 100%; display: block; overflow: visible; }

/* 1 · Standard Free – clean metallic */
.pin--free .pin-svg { filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); }

/* 2 · Eco-Start – 3D emerald */
.pin--eco .pin-svg { filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)) drop-shadow(0 0 7px var(--t-eco)); filter: drop-shadow(0 4px 5px rgba(0, 0, 0, .5)) drop-shadow(0 0 7px color-mix(in srgb, var(--t-eco) 55%, transparent)); }

/* 3 · City Boost – glass cyan, double glow border */
.pin--boost .pin-svg {
  filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .5))
          drop-shadow(0 0 4px var(--t-boost))
          drop-shadow(0 0 12px var(--t-boost)); filter: drop-shadow(0 7px 8px rgba(0, 0, 0, .5))
          drop-shadow(0 0 4px var(--t-boost))
          drop-shadow(0 0 12px color-mix(in srgb, var(--t-boost) 65%, transparent));
}
.pin-offer {
  position: absolute; top: -9px; left: 60%; z-index: 3;
  display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px 2px 5px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  color: #032630; background: linear-gradient(135deg, var(--t-boost-hi), var(--t-boost));
  box-shadow: 0 3px 10px var(--t-boost), inset 0 1px 0 rgba(255, 255, 255, .7); box-shadow: 0 3px 10px color-mix(in srgb, var(--t-boost) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .7);
  animation: floaty 2.8s ease-in-out infinite;
}

/* 4 · Premier Spotlight – gold VIP */
.pin--premier .pin-svg {
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, .55)) drop-shadow(0 0 14px var(--t-premier));
}
.pin-halo {
  position: absolute; left: 50%; top: 4%; width: 190%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, var(--t-premier), transparent 62%); background: radial-gradient(circle, color-mix(in srgb, var(--t-premier) 50%, transparent), transparent 62%);
  animation: halo 2.4s ease-in-out infinite;
}
.pin-pulse, .pin-pulse::after {
  position: absolute; left: 50%; bottom: -5px; width: 74%; height: 30%;
  border: 2px solid var(--t-premier); border-radius: 50%; pointer-events: none;
  transform: translateX(-50%) scale(.3); opacity: 0; animation: ring 2.4s ease-out infinite;
}
.pin-pulse::after { content: ""; left: -2px; bottom: -2px; animation-delay: 1.2s; transform: scale(1); }
.pin-crown {
  position: absolute; top: -22px; left: 50%; width: 28px; z-index: 3; margin-left: -14px;
  filter: drop-shadow(0 2px 6px var(--t-premier)); animation: floaty 2.4s ease-in-out infinite;
}
.pin-crown svg { display: block; width: 100%; }

/* ---------- POI list (store cards) ---------- */
.poi-list { list-style: none; display: grid; gap: 10px; }
.poi-item {
  position: relative; display: flex; align-items: center; gap: 12px; padding: 9px 12px 9px 9px; border-radius: 22px;
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  transition: transform .35s var(--ease), border-color .3s;
  animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms);
}
.poi-item:hover { transform: translateY(-2px); border-color: transparent; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.poi-item--premier { border-color: var(--t-premier); border-color: color-mix(in srgb, var(--t-premier) 55%, transparent); }
.poi-thumb { flex: 0 0 60px; height: 60px; border-radius: 16px; overflow: hidden; box-shadow: 0 0 0 1px var(--glass-border); }
.poi-thumb .art { width: 100%; height: 100%; display: block; }
.poi-body { flex: 1; min-width: 0; text-align: left; display: flex; flex-direction: column; gap: 2px; }
.poi-body strong { font-size: .92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.poi-body small { color: var(--muted); font-size: .74rem; }
.poi-body .tier-badge { align-self: flex-start; font-size: .6rem; padding: 2px 7px 2px 6px; }
.poi-go { padding: 8px 12px; border-radius: 12px; font-size: .74rem; font-weight: 700; color: var(--accent); border: 1px solid var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); transition: background-color .2s, transform .2s; }
.poi-go:hover { background: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.poi-go:active { transform: scale(.94); }

/* ---------- Footer / toast ---------- */
.app-footer { text-align: center; padding: 16px; color: var(--muted); border-top: 1px solid var(--glass-border); }
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 3000;
  transform: translate(-50%, 24px) scale(.96); opacity: 0; pointer-events: none;
  background: var(--glass-strong); color: var(--text); border: 1px solid var(--gold);
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  padding: 11px 18px; border-radius: 16px; font-size: .84rem; font-weight: 600;
  box-shadow: var(--shadow); transition: opacity .3s, transform .4s var(--spring); max-width: 90vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ==========================================================
   Bottom sheet
   ========================================================== */
.sheet { position: fixed; inset: 0; z-index: 2500; display: grid; align-items: end; justify-items: center; visibility: hidden; transition: visibility 0s .5s; }
.sheet.open { visibility: visible; transition: none; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 12, .55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .4s ease; }
.sheet.open .sheet-backdrop { opacity: 1; }

.sheet-panel {
  position: relative; display: flex; flex-direction: column; width: 100%; max-width: 580px; max-height: 92vh; overflow: hidden;
  border-radius: 30px 30px 0 0;
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-bottom: 0;
  -webkit-backdrop-filter: blur(34px) saturate(1.6); backdrop-filter: blur(34px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 -24px 70px rgba(0, 0, 0, .5);
  transform: translateY(105%); transition: transform .55s var(--ease);
  padding-bottom: env(safe-area-inset-bottom);
}
.sheet.open .sheet-panel { transform: none; }
.sheet-handle { position: absolute; top: 0; left: 0; right: 0; height: 30px; z-index: 5; display: grid; place-items: start center; padding-top: 9px; cursor: grab; touch-action: none; }
.sheet-handle span { width: 46px; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .55); box-shadow: 0 1px 4px rgba(0, 0, 0, .35); }
.sheet-close {
  position: absolute; top: 14px; right: 14px; z-index: 6; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
  color: #fff; background: rgba(0, 0, 0, .38); border: 1px solid rgba(255, 255, 255, .22);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: transform .3s var(--spring);
}
.sheet-close:hover { transform: rotate(90deg); }
.sheet-scroll { overflow-y: auto; overscroll-behavior: contain; }

.sheet-art { position: relative; height: 200px; }
.sheet-art .art { width: 100%; height: 100%; display: block; }
.sheet-art::after { content: ""; position: absolute; inset: auto 0 0 0; height: 70px; background: linear-gradient(transparent, var(--glass-strong)); }
.sheet-art .tier-badge { position: absolute; top: 16px; left: 16px; z-index: 2; }

.sheet-content { position: relative; z-index: 2; margin-top: -34px; padding: 0 18px 22px; display: grid; gap: 14px; }
.sheet-cat { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--c, var(--accent)); }
.sheet-head h2 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -.025em; margin: 2px 0 4px; }
.sheet-head p { color: var(--muted); font-size: .86rem; }
.sheet-content > * { animation: rise .55s var(--ease) backwards; }
.sheet-content > *:nth-child(2) { animation-delay: .05s; } .sheet-content > *:nth-child(3) { animation-delay: .1s; }
.sheet-content > *:nth-child(4) { animation-delay: .15s; } .sheet-content > *:nth-child(5) { animation-delay: .2s; }
.sheet-content > *:nth-child(6) { animation-delay: .25s; }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stat { padding: 11px 10px; border-radius: 18px; text-align: center; background: var(--glass); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--glass-shine); }
.stat svg { color: var(--accent); margin-bottom: 3px; }
.stat strong { display: block; font-size: 1.05rem; letter-spacing: -.02em; }
.stat small { font-size: .66rem; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.stat--gold svg, .stat--gold strong { color: var(--gold); }

.btn-primary {
  position: relative; overflow: hidden; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 12px 18px; border-radius: 20px; font-weight: 800; font-size: .98rem; letter-spacing: -.01em;
  color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--gold)));
  box-shadow: 0 12px 30px transparent, inset 0 1px 0 rgba(255, 255, 255, .45); box-shadow: 0 12px 30px color-mix(in srgb, var(--accent) 38%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: shine 4.5s ease-in-out infinite; }
.btn-primary:hover { transform: translateY(-2px); }
.btn-primary:active { transform: scale(.98); }
.btn-primary small { font-weight: 700; opacity: .8; }

.block-title { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); margin-bottom: 7px; }
.btn-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 8px; }
.btn-soft {
  --bc: var(--accent);
  display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 12px; border-radius: 16px;
  text-decoration: none; font-weight: 700; font-size: .84rem; color: var(--text);
  background: var(--glass); background: color-mix(in srgb, var(--bc) 11%, var(--glass)); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--bc) 45%, transparent);
  transition: transform .3s var(--ease), background-color .3s;
}
.btn-soft svg { color: var(--bc); }
.btn-soft:hover { transform: translateY(-2px); background: var(--glass); background: color-mix(in srgb, var(--bc) 20%, var(--glass)); }
.btn-soft:active { transform: scale(.96); }
.btn-soft.whatsapp { --bc: #25D366; } .btn-soft.viber { --bc: #8B77F0; }
.btn-soft.efood { --bc: #EF4444; } .btn-soft.wolt { --bc: #00A8E8; } .btn-soft.call { --bc: #10B981; }

.coupon {
  position: relative; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px;
  border: 1px dashed var(--gold); border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent);
  background: linear-gradient(135deg, var(--glass), var(--glass)); background: linear-gradient(135deg, color-mix(in srgb, var(--gold) 14%, var(--glass)), var(--glass));
}
.coupon::before, .coupon::after { content: ""; position: absolute; top: 50%; width: 16px; height: 16px; margin-top: -8px; border-radius: 50%; background: var(--bg); border: 1px dashed var(--gold); border: 1px dashed color-mix(in srgb, var(--gold) 70%, transparent); }
.coupon::before { left: -8px; } .coupon::after { right: -8px; }
.coupon-off { font-size: 1.5rem; font-weight: 900; color: var(--gold); letter-spacing: -.03em; line-height: 1; }
.coupon-txt { font-size: .8rem; color: var(--muted); margin-top: 3px; }
.coupon-code { display: inline-block; margin-top: 6px; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .76rem; font-weight: 700; padding: 3px 8px; border-radius: 8px; background: transparent; background: color-mix(in srgb, var(--gold) 16%, transparent); color: var(--gold); }
.btn-gold { padding: 11px 15px; border-radius: 14px; font-weight: 800; font-size: .82rem; color: #1F1500; background: linear-gradient(135deg, var(--t-premier-hi), var(--gold)); box-shadow: 0 8px 20px transparent; box-shadow: 0 8px 20px color-mix(in srgb, var(--gold) 35%, transparent); transition: transform .3s var(--spring); }
.btn-gold:hover { transform: translateY(-2px); } .btn-gold:active { transform: scale(.95); }
.coupon.is-redeemed { border-style: solid; border-color: var(--accent); background: var(--glass); background: color-mix(in srgb, var(--accent) 12%, var(--glass)); }
.coupon.is-redeemed .btn-gold { background: transparent; background: color-mix(in srgb, var(--accent) 25%, transparent); color: var(--accent); box-shadow: none; pointer-events: none; }
.no-offer { padding: 12px 14px; border-radius: 16px; color: var(--muted); font-size: .82rem; background: var(--glass); border: 1px dashed var(--glass-border); }

/* ==========================================================
   Generated vector artwork (cards, banners, sheet header)
   ========================================================== */
.art .twinkle { fill: var(--ink); opacity: .55; animation: twinkle 3.2s ease-in-out infinite; }
.art .steam { fill: none; stroke: var(--a); stroke-width: 3; stroke-linecap: round; opacity: .55; stroke-dasharray: 60; animation: steam 3.4s ease-in-out infinite; }
.art .floaty { animation: floaty 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }

/* ---------- Keyframes ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-22px) scale(.6); } to { opacity: 1; transform: none; } }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes halo { 0%, 100% { opacity: .55; transform: translateX(-50%) scale(.86); } 50% { opacity: 1; transform: translateX(-50%) scale(1.08); } }
@keyframes ring { 0% { transform: translateX(-50%) scale(.3); opacity: .9; } 100% { transform: translateX(-50%) scale(1.9); opacity: 0; } }
@keyframes shimmer { to { background-position: -220% 0; } }
@keyframes sweep { 0% { background-position: 150% 0; } 60%, 100% { background-position: -100% 0; } }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@keyframes sheen { to { background-position: 100% 0; } }
@keyframes badgePulse { 0% { box-shadow: 0 0 0 0 var(--gold); } 100% { box-shadow: 0 0 0 16px transparent; } }
@keyframes twinkle { 0%, 100% { opacity: .15; } 50% { opacity: .8; } }
@keyframes steam { 0% { stroke-dashoffset: 60; opacity: 0; } 40% { opacity: .6; } 100% { stroke-dashoffset: -60; opacity: 0; } }

/* ---------- Responsive ---------- */
@media (min-width: 640px) {
  .segmented { grid-template-columns: 1fr 1fr; }
  .logo { font-size: 2.4rem; }
  .slogan { font-size: .86rem; }
  .sheet-panel { border-radius: 30px; margin-bottom: 24px; border-bottom: 1px solid var(--glass-border); }
}

@media (min-width: 960px) {
  .app-main { grid-template-columns: minmax(0, 1fr) 380px; grid-template-areas: "car car" "geo geo" "map list"; align-items: start; }
  .carousel-section { grid-area: car; }
  .geo-switch { grid-area: geo; }
  .map-section { grid-area: map; }
  .poi-section { grid-area: list; max-height: calc(100vh - 220px); overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; }
  #map { height: calc(100vh - 330px); min-height: 480px; }
  .c-card { flex-basis: 290px; }
}

/* 4K / large displays: scale the whole UI so it stays crisp and proportionate */
@media (min-width: 2200px) {
  html { font-size: 22px; }
  .app-main { max-width: 2200px; grid-template-columns: minmax(0, 1fr) 560px; gap: 28px; padding: 28px; }
  .app-header { padding-left: 40px; padding-right: 40px; }
  .poi-section { max-height: calc(100vh - 300px); }
  #map { height: calc(100vh - 460px); min-height: 800px; }
  .c-card { flex-basis: 380px; }
  .c-art { height: 150px; }
  .sheet-panel { max-width: 760px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* styles/02-pillars-and-modals.css */
/* sQReet · pillar tabs & panels, city pulse, map layers, bottom bar, modals
   (cascade order matters – files are linked in index.html in this order) */
/* ===== layer: features.css ===== */
/* ==========================================================
   sQReet – features.css
   Smart City pillars · assistive tools · luxury modals
   (extends style.css; every colour comes from theme tokens)
   ========================================================== */

[hidden] { display: none !important; }
body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
/* keep wide scrollers (tabs, chips, carousel) from stretching the page on phones */
@media (max-width: 959px) { .app-main { grid-template-columns: minmax(0, 1fr); } }
.app-main > * { min-width: 0; }
.toast { bottom: calc(100px + env(safe-area-inset-bottom)); }

/* ---------- 4 pillar tabs ---------- */
.pillars { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 10px; scrollbar-width: none; }
.pillars::-webkit-scrollbar { display: none; }
.pillar {
  position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 15px; border-radius: 16px; font-weight: 700; font-size: .84rem; color: var(--text);
  background: var(--glass); border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--glass-shine);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);
  transition: transform .3s var(--ease), border-color .3s, background-color .3s, color .3s;
}
.pillar svg { color: var(--accent); transition: color .3s; }
.pillar:hover { transform: translateY(-2px); }
.pillar:active { transform: scale(.96); }
.pillar[aria-pressed="true"] {
  color: var(--accent-ink); border-color: transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 60%, var(--gold)));
  box-shadow: 0 8px 22px transparent; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent);
}
.pillar[aria-pressed="true"] svg { color: var(--accent-ink); }
.pillar--main::after {
  content: ""; position: absolute; top: -3px; right: -3px; width: 10px; height: 10px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 10px var(--gold);
}

/* ---------- pillar panel ---------- */
.pillar-panel { display: grid; gap: 10px; padding: 14px; border-radius: 24px; margin-bottom: 12px; animation: rise .5s var(--ease); }
.pp-head { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1rem; letter-spacing: -.02em; }
.pp-head svg { color: var(--accent); }
.pp-head em { margin-left: auto; font-style: normal; font-size: .62rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em;
  color: var(--gold); border: 1px solid var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 55%, transparent); padding: 3px 8px; border-radius: 999px; }
.pp-hint { font-size: .78rem; color: var(--muted); }

.tgl {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px;
  padding: 11px 13px; border-radius: 18px; cursor: pointer;
  background: var(--card); background: color-mix(in srgb, var(--card) 55%, transparent); border: 1px solid var(--glass-border);
  transition: border-color .3s, background-color .3s, transform .2s;
}
.tgl:active { transform: scale(.985); }
.tgl:has(input:checked) { border-color: var(--accent); border-color: color-mix(in srgb, var(--accent) 55%, transparent); background: var(--card); background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
.tgl-ico { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--accent); background: transparent; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tgl-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.tgl-txt b { font-size: .86rem; }
.tgl-txt small { font-size: .72rem; color: var(--muted); }
.tgl input { position: absolute; opacity: 0; pointer-events: none; }
.switch { position: relative; width: 48px; height: 28px; border-radius: 999px; background: transparent; background: color-mix(in srgb, var(--muted) 35%, transparent); transition: background-color .3s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .35s var(--spring); }
.tgl input:checked + .switch { background: var(--accent); box-shadow: 0 0 14px var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 55%, transparent); }
.tgl input:checked + .switch::after { transform: translateX(20px); }
.tgl input:focus-visible + .switch { outline: 2px solid var(--gold); outline-offset: 2px; }

.tip { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 16px; font-size: .8rem;
  background: transparent; background: color-mix(in srgb, var(--accent) 10%, transparent); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); animation: rise .4s var(--ease); }
.tip svg { color: var(--accent); flex: 0 0 auto; }
.tip span { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.tip small { color: var(--muted); font-size: .74rem; }
.tip-go { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); flex: 0 0 auto; }

.env-stats { margin: 2px 0 4px; }

.sos-big {
  display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 58px; border-radius: 20px;
  font-weight: 900; font-size: 1.05rem; letter-spacing: .04em; text-transform: uppercase; color: #fff;
  background: linear-gradient(135deg, #EF4444, #991B1B); box-shadow: 0 12px 30px rgba(239, 68, 68, .45), inset 0 1px 0 rgba(255, 255, 255, .35);
  box-shadow: 0 10px 30px rgba(239, 68, 68, .6); transition: transform .25s var(--ease);
}
.sos-big:active { transform: scale(.97); }

.rp-row, .al-row { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 14px; text-align: left; width: 100%;
  background: var(--card); background: color-mix(in srgb, var(--card) 55%, transparent); border: 1px solid var(--glass-border); font-size: .8rem; }
.rp-row small { margin-left: auto; color: var(--gold); font-weight: 700; }
.rp-row svg, .al-row svg { color: var(--accent); flex: 0 0 auto; }
.al-row span { display: flex; flex-direction: column; min-width: 0; }
.al-row small { color: var(--muted); font-size: .72rem; }
.al-row { transition: transform .25s var(--ease); } .al-row:hover { transform: translateX(3px); }

/* ---------- City Pulse & Event Radar banner ---------- */
.pulse {
  --pc: var(--accent);
  position: relative; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 12px;
  border-radius: 20px; border-left: 4px solid var(--pc); overflow: hidden; animation: rise .5s var(--ease);
}
.pulse--closure { --pc: #F59E0B; } .pulse--festival { --pc: #EC4899; } .pulse--air { --pc: var(--accent); }
.pulse::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, transparent 60%); background: linear-gradient(90deg, color-mix(in srgb, var(--pc) 14%, transparent), transparent 60%); }
.pulse > * { position: relative; }
.pulse-live { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .62rem; font-weight: 900; letter-spacing: .1em; color: #fff; background: #DC2626; }
.pulse-live i { width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blink 1.2s infinite; }
.pulse-ico { color: var(--pc); display: grid; }
.pulse-body { flex: 1 1 200px; min-width: 0; text-align: left; display: flex; flex-direction: column; line-height: 1.25; }
.pulse-name { font-size: .6rem; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.pulse-body b { font-size: .88rem; }
.pulse-body small { font-size: .74rem; color: var(--muted); }
.pulse-tag { font-size: .66rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; color: var(--accent); border: 1px solid var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: transparent; background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pulse-dots { display: inline-flex; gap: 4px; margin-left: auto; }
.pulse-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .4; transition: all .3s; }
.pulse-dots i.on { background: var(--pc); opacity: 1; width: 16px; border-radius: 4px; }

/* ---------- map overlay controls ---------- */
.map-wrap .leaflet-top.leaflet-left { margin-top: 108px; }
.map-actions { position: absolute; top: 12px; left: 12px; z-index: 600; display: flex; flex-direction: column; gap: 8px; }
.qa {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 16px; font-size: .76rem; font-weight: 700; color: var(--text);
  box-shadow: var(--shadow); transition: transform .3s var(--ease), border-color .3s;
}
.qa svg { color: var(--accent); }
.qa:hover { transform: translateX(3px); border-color: var(--accent); }
.qa:active { transform: scale(.96); }

.sos-fab {
  position: absolute; top: 12px; right: 12px; z-index: 650; width: 66px; height: 66px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0;
  font-weight: 900; font-size: .72rem; letter-spacing: .06em; color: #fff;
  background: radial-gradient(circle at 35% 28%, #FCA5A5, #EF4444 45%, #7F1D1D);
  border: 2px solid rgba(255, 255, 255, .55); box-shadow: 0 10px 28px rgba(239, 68, 68, .6);
  box-shadow: 0 10px 30px rgba(239, 68, 68, .6); transition: transform .3s var(--spring);
}
.sos-fab:hover { transform: scale(1.08); } .sos-fab:active { transform: scale(.94); }

.route-chip {
  position: absolute; left: 12px; right: 12px; bottom: 54px; z-index: 620; max-width: 460px;
  display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 12px; border-radius: 18px;
  border-color: #39FF88; border-color: color-mix(in srgb, #39FF88 60%, transparent);
  transform: translateY(20px); opacity: 0; pointer-events: none; transition: opacity .35s, transform .45s var(--spring);
}
.route-chip.show { opacity: 1; transform: none; pointer-events: auto; }
.rc-ico { color: #39FF88; filter: drop-shadow(0 0 6px #39FF88); display: grid; }
.rc-txt { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.rc-txt b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rc-txt small { font-size: .7rem; color: var(--muted); }
.rc-x { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: transparent; background: color-mix(in srgb, var(--muted) 25%, transparent); }

/* ---------- map layers ---------- */
path.route-glow { stroke: #39FF88; filter: blur(6px); }
path.route-line { stroke: #39FF88; filter: drop-shadow(0 0 5px #39FF88) drop-shadow(0 0 12px #39FF88); }
path.route-flow { stroke: #EFFFF5; animation: routeFlow 1s linear infinite; }
path.corridor-glow { stroke: var(--gold); filter: blur(6px); }
path.corridor-core { stroke: var(--gold); filter: drop-shadow(0 0 4px var(--gold)) drop-shadow(0 0 10px var(--gold)); }
path.bike-lane { stroke: var(--t-boost); filter: drop-shadow(0 0 4px var(--t-boost)); }

.alert-pin { background: none; border: 0; }
.alert-pin span {
  position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff;
  background: #F59E0B; border: 2px solid #fff; box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
}
.alert-pin.alert-festival span { background: #EC4899; }
.alert-pin span::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid currentColor; opacity: 0; animation: ring2 2s ease-out infinite; }

.pin-crowd, .pin-duty {
  position: absolute; z-index: 4; font-size: 10px; font-weight: 800; line-height: 1; padding: 3px 6px; border-radius: 999px; color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .45); border: 1.5px solid rgba(255, 255, 255, .85);
}
.pin-crowd { top: -10px; left: -12px; background: #10B981; }
.pin[data-crowd="mod"] .pin-crowd { background: #F59E0B; }
.pin[data-crowd="busy"] .pin-crowd { background: #EF4444; animation: blink 1.4s infinite; }
.pin[data-crowd="calm"] .pin-svg { filter: drop-shadow(0 0 10px #10B981); }
.pin[data-crowd="busy"] .pin-svg { filter: saturate(.55) drop-shadow(0 0 8px #EF4444); }
.pin-duty { top: -10px; right: -16px; background: #059669; }

/* ---------- extras inside the store sheet ---------- */
.sheet-extra { display: grid; gap: 10px; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-s { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border-radius: 999px; font-size: .7rem; font-weight: 700;
  background: var(--glass); border: 1px solid var(--glass-border); }
.chip-s.ok { color: var(--accent); border-color: transparent; border-color: color-mix(in srgb, var(--accent) 45%, transparent); }
.chip-s.bad { color: #EF4444; border-color: transparent; border-color: color-mix(in srgb, #EF4444 45%, transparent); }
.chip-s.duty { color: var(--gold); border-color: var(--gold); border-color: color-mix(in srgb, var(--gold) 50%, transparent); }
.chip-s.crowd-calm { color: #10B981; } .chip-s.crowd-mod { color: #F59E0B; } .chip-s.crowd-busy { color: #EF4444; }
.btn-soft.route { --bc: #39FF88; }

/* ---------- sticky bottom transport bar ---------- */
.transport-bar {
  position: fixed; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 1500;
  width: min(94vw, 760px); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 26px;
  -webkit-backdrop-filter: blur(28px) saturate(1.8); backdrop-filter: blur(28px) saturate(1.8);
  animation: barIn .7s var(--spring) .3s backwards;
}
.tb-info { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.tb-pin { width: 32px; height: 32px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: var(--gold); background: transparent; background: color-mix(in srgb, var(--gold) 14%, transparent); }
.tb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.tb-txt small { font-size: .62rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.tb-txt b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-btn {
  position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 9px; padding: 13px 16px; border-radius: 20px;
  font-weight: 800; font-size: .84rem; color: var(--accent-ink); white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--gold)));
  box-shadow: 0 10px 26px transparent, inset 0 1px 0 rgba(255, 255, 255, .45); box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: transform .3s var(--ease);
}
.tb-btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .45) 50%, transparent 65%); transform: translateX(-120%); animation: shine 5s ease-in-out infinite; }
.tb-btn:hover { transform: translateY(-2px); } .tb-btn:active { transform: scale(.96); }
.tb-btn em { font-style: normal; font-size: .6rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; background: rgba(0, 0, 0, .22); color: #fff; }
@media (max-width: 520px) { .tb-btn em { display: none; } .tb-btn span { max-width: 36vw; overflow: hidden; text-overflow: ellipsis; } }

/* ==========================================================
   Modal host
   ========================================================== */
.modal { position: fixed; inset: 0; z-index: 2800; display: grid; place-items: end center; visibility: hidden; transition: visibility 0s .5s; }
.modal.open { visibility: visible; transition: none; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(2, 6, 12, .62); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; }
.modal.open .modal-backdrop { opacity: 1; }
.modal-panel {
  position: relative; width: 100%; max-width: 580px; max-height: 94vh; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 30px 30px 0 0; color: var(--text);
  background: var(--glass-strong); border: 1px solid var(--glass-border); border-bottom: 0;
  -webkit-backdrop-filter: blur(34px) saturate(1.6); backdrop-filter: blur(34px) saturate(1.6);
  box-shadow: inset 0 1px 0 var(--glass-shine), 0 -24px 70px rgba(0, 0, 0, .55);
  transform: translateY(105%); transition: transform .55s var(--ease); padding-bottom: env(safe-area-inset-bottom);
}
.modal.open .modal-panel { transform: none; }
@media (min-width: 640px) {
  .modal { place-items: center; }
  .modal-panel { border-radius: 30px; border-bottom: 1px solid var(--glass-border); transform: translateY(36px) scale(.97); opacity: 0; transition: transform .5s var(--ease), opacity .4s; }
  .modal.open .modal-panel { transform: none; opacity: 1; }
}
.modal-x { position: absolute; top: 12px; right: 12px; z-index: 6; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%;
  color: var(--text); background: var(--glass); border: 1px solid var(--glass-border); transition: transform .3s var(--spring); }
.modal-x:hover { transform: rotate(90deg); }

.mod-wrap { padding: 22px 18px 20px; display: grid; gap: 14px; }
.mod-head { display: grid; justify-items: center; gap: 4px; text-align: center; padding: 0 28px; }
.mod-head h2 { font-size: 1.4rem; letter-spacing: -.025em; }
.mod-head p { color: var(--muted); font-size: .82rem; }
.mod-ico { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; margin-bottom: 4px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--gold))); box-shadow: 0 10px 26px transparent; box-shadow: 0 10px 26px color-mix(in srgb, var(--accent) 40%, transparent); }
.loc-card { display: flex; align-items: center; gap: 11px; padding: 12px 14px; border-radius: 18px; background: var(--glass); border: 1px solid var(--glass-border); }
.loc-card > svg { color: var(--gold); flex: 0 0 auto; }
.loc-card span { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.loc-card small { font-size: .7rem; color: var(--muted); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.btn-row.two { grid-template-columns: 1.5fr 1fr; }
.field { display: grid; gap: 5px; } .field small { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 700; }
select, textarea { width: 100%; padding: 12px 14px; border-radius: 14px; font: inherit; font-size: .88rem; color: var(--text); background: var(--glass); border: 1px solid var(--glass-border); }
textarea { resize: vertical; min-height: 64px; }
select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.warn { padding: 9px 12px; border-radius: 12px; font-size: .78rem; color: #F59E0B; background: transparent; background: color-mix(in srgb, #F59E0B 12%, transparent); border: 1px solid transparent; border: 1px solid color-mix(in srgb, #F59E0B 40%, transparent); }

/* ---------- civic reporting ---------- */
.rp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-type { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 16px 8px; border-radius: 20px; font-weight: 700; font-size: .82rem; text-align: center;
  background: var(--glass); border: 1px solid var(--glass-border); transition: transform .3s var(--ease), border-color .3s, background-color .3s; }
.rp-type svg { color: var(--gold); }
.rp-type:hover { transform: translateY(-2px); } .rp-type:active { transform: scale(.97); }
.rp-type[aria-pressed="true"] { border-color: var(--accent); background: var(--glass); background: color-mix(in srgb, var(--accent) 13%, var(--glass)); box-shadow: 0 0 0 1px var(--accent) inset; }

/* ---------- receipt ---------- */
.modal--receipt .modal-panel { max-width: 520px; }
.receipt-frame { border-radius: 20px; overflow: hidden; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px transparent; box-shadow: 0 20px 50px rgba(0, 0, 0, .5), 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent); animation: rise .6s var(--ease); }
.receipt-frame svg { display: block; width: 100%; height: auto; }

/* ---------- ride hailing ---------- */
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; padding: 4px; border-radius: 16px; background: var(--glass); border: 1px solid var(--glass-border); }
.seg button { padding: 10px; border-radius: 12px; font-weight: 700; font-size: .84rem; color: var(--muted); transition: background-color .3s, color .3s; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.ride-list { display: grid; gap: 10px; }
.ride-card { position: relative; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 16px 14px 14px; text-align: left; border-radius: 20px;
  background: var(--glass); border: 1px solid var(--glass-border); transition: transform .3s var(--ease), border-color .3s; }
.ride-card:hover { transform: translateY(-2px); }
.ride-card[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset, 0 10px 26px transparent; box-shadow: 0 0 0 1px var(--accent) inset, 0 10px 26px color-mix(in srgb, var(--accent) 22%, transparent); }
.ride-card.is-eco { background: linear-gradient(135deg, var(--glass), var(--glass)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 14%, var(--glass)), var(--glass)); }
.ride-ico { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: var(--accent); background: transparent; background: color-mix(in srgb, var(--accent) 13%, transparent); }
.ride-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; } .ride-txt b { font-size: .9rem; } .ride-txt small { font-size: .74rem; color: var(--muted); }
.ribbon { position: absolute; top: -9px; left: 14px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: .6rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  color: #1F1500; background: linear-gradient(135deg, var(--t-premier-hi), var(--gold)); box-shadow: 0 4px 12px transparent; box-shadow: 0 4px 12px color-mix(in srgb, var(--gold) 45%, transparent); }
.comm-badge { font-size: .64rem; font-weight: 800; padding: 5px 9px; border-radius: 999px; white-space: nowrap; }
.comm-badge.eco { color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 14px var(--accent); box-shadow: 0 0 14px color-mix(in srgb, var(--accent) 50%, transparent); }
.comm-badge.std { color: var(--muted); border: 1px solid var(--glass-border); }
.ride-done { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 18px 10px 4px; }
.ride-done h2 { font-size: 1.2rem; letter-spacing: -.02em; } .ride-done p { color: var(--muted); font-size: .82rem; }
.done-ring { width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; color: var(--accent-ink); background: var(--accent); box-shadow: 0 0 0 10px transparent, 0 0 40px var(--accent); box-shadow: 0 0 0 10px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 40px color-mix(in srgb, var(--accent) 55%, transparent); animation: pop .6s var(--spring); }

/* ---------- audio guide ---------- */
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; height: 74px; padding: 0 10px; border-radius: 20px; background: var(--glass); border: 1px solid var(--glass-border); }
.wave i { width: 4px; height: 14%; border-radius: 4px; background: linear-gradient(var(--accent), var(--gold)); transition: height .3s; }
.wave.on i { animation: wave 1s ease-in-out infinite; animation-delay: calc(var(--i) * -70ms); }
.transcript { padding: 14px; border-radius: 18px; font-size: .9rem; line-height: 1.6; background: var(--card); background: color-mix(in srgb, var(--card) 60%, transparent); border: 1px solid var(--glass-border); }

/* ==========================================================
   SOS – high-contrast emergency
   ========================================================== */
.modal--sos .modal-panel { --text: #fff; --muted: #FCA5A5; color: #fff; background: #070304; border: 2px solid #EF4444;
  box-shadow: 0 0 0 1px #7F1D1D, 0 0 70px rgba(239, 68, 68, .55); }
.modal--sos .modal-x { color: #fff; background: #1A0A0A; border-color: #7F1D1D; }
.sos-wrap { padding: 24px 18px 20px; display: grid; gap: 14px; }
.sos-hero { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 0 20px; }
.sos-hero h2 { font-size: 1.9rem; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; }
.sos-hero p { font-size: .84rem; color: #FCA5A5; }
.sos-pulse { position: relative; width: 84px; height: 84px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: radial-gradient(circle at 35% 30%, #FCA5A5, #EF4444 50%, #7F1D1D); }
.sos-pulse::before, .sos-pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 3px solid #EF4444; animation: ring2 2s ease-out infinite; }
.sos-pulse::after { animation-delay: 1s; }
.sos-pulse.calm { background: radial-gradient(circle at 35% 30%, #86EFAC, #22C55E 50%, #14532D); } .sos-pulse.calm::before, .sos-pulse.calm::after { border-color: #22C55E; }
.sos-loc { display: flex; gap: 14px; align-items: center; padding: 12px; border-radius: 20px; background: #140707; border: 1px solid #7F1D1D; }
.qr { width: 118px; height: 118px; flex: 0 0 auto; border-radius: 12px; }
.sos-loc-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; font-size: .78rem; }
.sos-loc-txt small { color: #FCA5A5; text-transform: uppercase; letter-spacing: .1em; font-size: .64rem; font-weight: 800; }
.sos-loc-txt b { font-size: 1rem; line-height: 1.25; }
.sos-loc-txt em { font-style: normal; color: #FCA5A5; margin-right: 4px; font-size: .66rem; text-transform: uppercase; letter-spacing: .06em; }
.sos-loc-txt span { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .74rem; }
.sos-call { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 68px; border-radius: 22px; text-decoration: none; font-weight: 900; font-size: 1.15rem;
  color: #7F1D1D; background: #fff; box-shadow: 0 0 0 3px #EF4444, 0 12px 34px rgba(239, 68, 68, .5); transition: transform .25s var(--ease); }
.sos-call b { font-size: 1.9rem; letter-spacing: .02em; } .sos-call:active { transform: scale(.97); }
.sos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sos-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px 6px; border-radius: 18px; text-align: center; font-weight: 800; font-size: .74rem;
  color: #fff; background: #1A0A0A; border: 1.5px solid #B91C1C; transition: transform .25s var(--ease), background-color .25s; }
.sos-btn:hover { background: #2A0D0D; } .sos-btn:active { transform: scale(.96); }
.sos-btn.wide { flex-direction: row; min-height: 54px; font-size: .88rem; }
.sos-back { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; font-size: .8rem; font-weight: 700; color: #FCA5A5; }

.sos-wrap.fake { min-height: 520px; align-content: space-between; justify-items: center; text-align: center; background: linear-gradient(#1E293B, #020617); border-radius: 28px 28px 0 0; }
.fake-top small { color: #94A3B8; letter-spacing: .1em; text-transform: uppercase; font-size: .72rem; } .fake-top h2 { font-size: 2rem; margin: 4px 0; } .fake-top p { color: #94A3B8; font-family: ui-monospace, Menlo, monospace; }
.fake-avatar { width: 120px; height: 120px; display: grid; place-items: center; border-radius: 50%; font-size: 3rem; font-weight: 800; background: linear-gradient(135deg, #64748B, #334155); }
.fake-avatar.ringing { animation: shake 1.2s ease-in-out infinite; box-shadow: 0 0 0 12px rgba(148, 163, 184, .14), 0 0 0 26px rgba(148, 163, 184, .07); }
.fake-actions { display: flex; gap: 56px; }
.fake-btn { width: 74px; height: 74px; display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 50%; color: #fff; position: relative; }
.fake-btn small { position: absolute; bottom: -22px; font-size: .72rem; color: #CBD5E1; white-space: nowrap; }
.fake-btn.red { background: #EF4444; } .fake-btn.red svg { transform: rotate(135deg); } .fake-btn.green { background: #22C55E; animation: pop 1.4s ease-in-out infinite; }
.escort-track { position: relative; height: 12px; border-radius: 99px; background: #2A0D0D; overflow: hidden; }
.escort-track i { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 99px; background: linear-gradient(90deg, #22C55E, #86EFAC); animation: escortGo 90s linear forwards; }
.escort-dot { display: none; }
.escort-status { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-radius: 16px; font-size: .82rem; font-weight: 700; color: #86EFAC; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); }
.escort-people { display: flex; gap: 8px; } .escort-people span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: .78rem; background: #1A0A0A; border: 1px solid #7F1D1D; }
.off-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-right: 44px; } .off-head h2 { font-size: 1.1rem; line-height: 1.2; }
.off-tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: .66rem; font-weight: 800; white-space: nowrap; color: #86EFAC; border: 1px solid rgba(34, 197, 94, .5); }
.off-tag i { width: 7px; height: 7px; border-radius: 50%; background: #22C55E; box-shadow: 0 0 8px #22C55E; } .off-tag.off { color: #FCD34D; border-color: rgba(252, 211, 77, .5); } .off-tag.off i { background: #FCD34D; box-shadow: none; }
.off-note { font-size: .78rem; color: #FCA5A5; }
.off-map { width: 100%; max-width: 440px; margin: 0 auto; display: block; border-radius: 22px; border: 1px solid #7F1D1D; }
.off-list { display: grid; gap: 7px; }
.off-row { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-left: 4px solid var(--c); border-radius: 12px; background: #140707; }
.off-row svg { color: var(--c); flex: 0 0 auto; } .off-row span { flex: 1; display: flex; flex-direction: column; min-width: 0; line-height: 1.25; font-size: .84rem; } .off-row small { color: #FCA5A5; font-size: .7rem; }
.off-row em { font-style: normal; font-family: ui-monospace, Menlo, monospace; font-size: .76rem; font-weight: 700; white-space: nowrap; }

/* ==========================================================
   AR Street Lens (simulated camera view)
   ========================================================== */
.modal--ar { place-items: stretch; }
.modal--ar .modal-backdrop { background: #000; }
.modal--ar .modal-panel { max-width: none; width: 100%; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border: 0; overflow: hidden; background: #000; color: #fff;
  transform: scale(1.04); opacity: 0; transition: transform .6s var(--ease), opacity .4s; }
.modal--ar.open .modal-panel { transform: none; opacity: 1; }
.ar-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; color: #fff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.ar-scene, .ar-bg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ar-scene { animation: sway 9s ease-in-out infinite alternate; transform-origin: 50% 60%; }
.ar-scan { position: absolute; inset: 0; pointer-events: none; opacity: .55; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .18) 0 1px, transparent 1px 3px); }
.ar-scan::after { content: ""; position: absolute; left: 0; right: 0; height: 120px; background: linear-gradient(transparent, rgba(34, 211, 238, .14), transparent); animation: scanY 5s linear infinite; }
.ar-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .7)); }
.ar-top { position: absolute; top: calc(14px + env(safe-area-inset-top)); left: 14px; right: 14px; display: flex; align-items: center; gap: 12px; }
.ar-rec { display: inline-flex; align-items: center; gap: 7px; font-size: .74rem; font-weight: 700; padding: 6px 11px; border-radius: 999px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .25); }
.ar-rec i { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; animation: blink 1s infinite; }
.ar-hint { flex: 1; font-size: .72rem; color: #A5F3FC; text-shadow: 0 0 8px #000; }
.ar-x { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .3); }
.ar-compass { position: absolute; top: calc(70px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); display: grid; justify-items: center; gap: 1px; padding: 8px 18px; border-radius: 18px; background: rgba(0, 0, 0, .5); border: 1px solid rgba(34, 211, 238, .5); box-shadow: 0 0 20px rgba(34, 211, 238, .25); }
.ar-compass small { font-size: .6rem; letter-spacing: .14em; text-transform: uppercase; color: #67E8F9; } .ar-compass b { font-size: 1.35rem; color: #E0F2FE; text-shadow: 0 0 12px #22D3EE; } .ar-compass span { font-size: .62rem; color: #94A3B8; }
.ar-targets { position: absolute; inset: 0; pointer-events: none; }
.ar-target { position: absolute; left: 50%; width: 230px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; transition: left .1s linear; }
.ar-target:nth-child(1) { top: 30%; } .ar-target:nth-child(2) { top: 50%; }
.ar-label { display: flex; align-items: center; gap: 9px; padding: 8px 12px; border-radius: 14px; color: var(--c); background: rgba(0, 0, 0, .6); border: 1px solid var(--c); box-shadow: 0 0 18px transparent; box-shadow: 0 0 18px color-mix(in srgb, var(--c) 45%, transparent); }
.ar-label span { display: flex; flex-direction: column; line-height: 1.25; color: #fff; font-family: system-ui, sans-serif; } .ar-label b { font-size: .8rem; } .ar-label small { font-size: .68rem; color: #CBD5E1; } .ar-label em { font-style: normal; color: var(--c); font-weight: 700; }
.ar-arrows { position: relative; width: 150px; height: 130px; transform: perspective(520px) rotateX(58deg) rotateZ(var(--rz, 0deg)); transform-style: preserve-3d; transition: transform .1s linear;
  filter: drop-shadow(0 0 8px var(--c)) drop-shadow(0 0 22px var(--c)); }
.ar-arrows svg { position: absolute; left: 0; width: 150px; top: calc(var(--n) * -30px + 40px); animation: chev 1.2s ease-in-out infinite; animation-delay: calc(var(--n) * .2s); }
.ar-arrows svg path { fill: var(--c); stroke: #fff; stroke-width: 2; stroke-linejoin: round; }
.ar-target.edge .ar-label { opacity: .65; }
.ar-hud { position: absolute; left: 14px; right: 14px; bottom: calc(18px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.ar-card { display: flex; align-items: center; gap: 11px; padding: 11px 14px; border-radius: 18px; color: var(--c); background: rgba(0, 0, 0, .6); border: 1px solid var(--c); border: 1px solid color-mix(in srgb, var(--c) 60%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.ar-card span { flex: 1; display: flex; flex-direction: column; line-height: 1.15; } .ar-card small { font-family: system-ui, sans-serif; font-size: .66rem; color: #CBD5E1; text-transform: uppercase; letter-spacing: .08em; } .ar-card b { font-size: 1.5rem; color: #fff; text-shadow: 0 0 14px var(--c); } .ar-card em { font-style: normal; font-weight: 800; font-size: .82rem; }

/* ---------- keyframes (features) ---------- */
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes ring2 { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes sosGlow { 0%, 100% { box-shadow: 0 10px 28px rgba(239, 68, 68, .5); } 50% { box-shadow: 0 10px 40px rgba(239, 68, 68, .9), 0 0 0 8px rgba(239, 68, 68, .15); } }
@keyframes routeFlow { to { stroke-dashoffset: -36; } }
@keyframes barIn { from { opacity: 0; transform: translate(-50%, 40px); } to { opacity: 1; transform: translate(-50%, 0); } }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: scale(1); opacity: 1; } }
@keyframes wave { 0%, 100% { height: 14%; } 50% { height: 92%; } }
@keyframes shake { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-6deg); } 40% { transform: rotate(6deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(4deg); } }
@keyframes escortGo { to { width: 100%; } }
@keyframes sway { from { transform: scale(1.06) translateX(-14px); } to { transform: scale(1.06) translateX(14px); } }
@keyframes scanY { from { top: -120px; } to { top: 100%; } }
@keyframes chev { 0%, 100% { opacity: .25; } 50% { opacity: 1; } }

/* ---------- desktop / 4K adjustments ---------- */
@media (min-width: 960px) {
  .pillar-panel { max-height: 44vh; overflow-y: auto; }
}
@media (min-width: 2200px) {
  .modal-panel { max-width: 760px; }
  .transport-bar { width: min(94vw, 1000px); }
  .map-wrap .leaflet-top.leaflet-left { margin-top: 132px; }
}

/* styles/03-luxe.css */
/* sQReet · quiet-luxury materials, glass, motion
   (cascade order matters – files are linked in index.html in this order) */
/* ===== layer: luxe.css ===== */
/* ==========================================================
   sQReet – luxe.css  ·  flagship finish layer
   Loaded last. Multi-layer glass, depth, spring motion,
   3D pins, holographic receipt, automotive AR HUD, SOS.
   Every value reads theme tokens → equal in Dark & Light.
   ========================================================== */

/* ---------- material tokens ---------- */
:root, [data-theme="dark"] {
  --rim: rgba(255, 255, 255, .13);
  --rim-strong: rgba(255, 255, 255, .22);
  --glass-hi: linear-gradient(180deg, rgba(255, 255, 255, .085) 0%, rgba(255, 255, 255, .02) 38%, rgba(255, 255, 255, 0) 60%);
  --glass-tint: rgba(13, 22, 19, .58);
  --depth: 0 1px 1px rgba(0, 0, 0, .35), 0 10px 24px -8px rgba(0, 0, 0, .6), 0 32px 64px -24px rgba(0, 0, 0, .7);
  --depth-lg: 0 2px 2px rgba(0, 0, 0, .35), 0 24px 48px -12px rgba(0, 0, 0, .7), 0 60px 120px -40px rgba(0, 0, 0, .8);
  --glow-accent: 0 0 0 1px color-mix(in srgb, var(--accent) 32%, transparent), 0 0 28px -6px color-mix(in srgb, var(--accent) 55%, transparent);
  --glow-gold: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), 0 0 30px -6px color-mix(in srgb, var(--gold) 60%, transparent);
  --floor-sheen: .1; --floor-shade: .38; --vignette: .5;
  --pin-ground: rgba(0, 0, 0, .55);
  --blur: blur(26px) saturate(185%) brightness(1.02);
}
[data-theme="light"] {
  --rim: rgba(255, 255, 255, .95);
  --rim-strong: #fff;
  --glass-hi: linear-gradient(180deg, rgba(255, 255, 255, .85) 0%, rgba(255, 255, 255, .35) 45%, rgba(255, 255, 255, .15) 100%);
  --glass-tint: rgba(241, 245, 249, .62);
  --depth: 0 1px 1px rgba(11, 59, 45, .05), 0 10px 26px -10px rgba(11, 59, 45, .2), 0 30px 54px -26px rgba(11, 59, 45, .25);
  --depth-lg: 0 2px 3px rgba(11, 59, 45, .06), 0 22px 46px -14px rgba(11, 59, 45, .24), 0 60px 110px -40px rgba(11, 59, 45, .3);
  --glow-accent: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 10px 26px -10px color-mix(in srgb, var(--accent) 45%, transparent);
  --glow-gold: 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), 0 10px 28px -10px color-mix(in srgb, var(--gold) 50%, transparent);
  --floor-sheen: .65; --floor-shade: .06; --vignette: .1;
  --pin-ground: rgba(11, 59, 45, .32);
  --blur: blur(24px) saturate(160%) brightness(1.04);
}
@supports (transition-timing-function: linear(0, 1)) {
  :root {
    --spring: linear(0, .009, .035 2.1%, .141 4.4%, .723 12.9%, .938 16.7%, 1.017 19.4%, 1.067, 1.099 24.3%, 1.108 26%, 1.103, 1.084 30.9%, 1.009 41.7%, .987 46.2%, .98 50.4%, .985 56.3%, 1.002 70.6%, 1);
    --spring-soft: linear(0, .05 3%, .25 9%, .63 20%, .88 31%, 1.01 44%, 1.04 52%, 1.02 66%, 1);
  }
}
:root { --spring-soft: var(--ease); }

/* ---------- typography ---------- */
body {
  font-feature-settings: "ss01", "cv11", "kern";
  letter-spacing: -.014em;
  background:
    radial-gradient(1200px 600px at 50% -10%, transparent, transparent 70%),
    var(--bg); background:
    radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    var(--bg);
}
h1, h2, h3, .section-title, .sheet-head h2, .mod-head h2 { letter-spacing: -.03em; }
.stat strong, .eco-text, .coupon-off, .g-num, #arHead, .tier-badge b, .c-body small, .poi-body small { font-variant-numeric: tabular-nums; }
::selection { background: transparent; background: color-mix(in srgb, var(--accent) 35%, transparent); }

/* ambient light: slow drifting aurora */
body::before { animation: aurora 28s ease-in-out infinite alternate; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .5;
  background-image: radial-gradient(transparent .6px, transparent .7px); background-image: radial-gradient(color-mix(in srgb, var(--text) 9%, transparent) .6px, transparent .7px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%); mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 70%);
}
[data-theme="light"] body::after { opacity: .35; }

/* ==========================================================
   Multi-layer glass: tint + top light + inner rim + border glow + depth
   ========================================================== */
.glass, .c-card, .poi-item, .pillar, .chip, .lang-switch, .back-link, .theme-toggle,
.eco-badge, .stat, .tgl, .loc-card, .ride-card, .rp-type, .seg, .wave, .transcript, .rp-row, .al-row, .chip-s, .no-offer {
  background: var(--glass-hi), var(--glass-tint);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 var(--rim), inset 0 -1px 0 transparent, var(--depth); box-shadow: inset 0 1px 0 var(--rim), inset 0 -1px 0 color-mix(in srgb, var(--text) 4%, transparent), var(--depth);
}
.chip, .chip-s, .rp-row, .al-row, .lang-switch, .back-link, .seg { box-shadow: inset 0 1px 0 var(--rim), 0 4px 14px -6px rgba(0, 0, 0, .35); }
[data-theme="light"] .chip, [data-theme="light"] .chip-s, [data-theme="light"] .back-link, [data-theme="light"] .lang-switch { box-shadow: inset 0 1px 0 var(--rim), 0 4px 12px -6px rgba(11, 59, 45, .2); }

/* glowing hairline border on hover/focus for interactive glass */
.c-card, .poi-item, .pillar, .chip, .tgl, .ride-card, .rp-type, .stat, .back-link, .theme-toggle {
  transition: transform .6s var(--spring), box-shadow .45s var(--ease), border-color .35s, background-color .35s;
}
.c-card:hover, .poi-item:hover, .ride-card:hover, .rp-type:hover, .tgl:hover {
  border-color: transparent; border-color: color-mix(in srgb, var(--accent) 45%, transparent);
  box-shadow: inset 0 1px 0 var(--rim-strong), var(--glow-accent), var(--depth);
}
.c-card:active, .poi-item:active, .pillar:active, .chip:active, .rp-type:active, .ride-card:active { transform: scale(.975); transition-duration: .15s; }

/* ---------- header ---------- */
.app-header {
  background: linear-gradient(180deg, var(--bg), var(--bg)); background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--bg) 62%, transparent));
  -webkit-backdrop-filter: blur(30px) saturate(190%); backdrop-filter: blur(30px) saturate(190%);
  border-bottom: 1px solid var(--glass-border);
  box-shadow: inset 0 -1px 0 transparent, 0 18px 40px -30px rgba(0, 0, 0, .6); box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--accent) 10%, transparent), 0 18px 40px -30px rgba(0, 0, 0, .6);
}
.logo-lockup { display: inline-flex; align-items: center; gap: 11px; margin: 0; font-size: inherit; }
.logo-emblem {
  width: 44px; height: 44px; flex: 0 0 auto;
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)) drop-shadow(0 0 14px transparent); filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .35)) drop-shadow(0 0 14px color-mix(in srgb, var(--accent) 35%, transparent));
  transition: transform .9s var(--spring);
}
.logo-lockup:hover .logo-emblem { transform: rotate(-8deg) scale(1.06); }
.logo { display: inline-block; font-size: 2.05rem; letter-spacing: -.045em; }
.logo span {
  background: linear-gradient(135deg, #6EE7B7, var(--accent) 45%, #047857);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
[data-theme="light"] .logo { background-image: linear-gradient(100deg, #0B3B2D 0%, #0B3B2D 45%, #059669 62%, #B45309 100%); }
.slogan { letter-spacing: .01em; margin-top: 6px; }

.eco-badge { border-color: var(--gold); border-color: color-mix(in srgb, var(--gold) 55%, transparent); box-shadow: inset 0 1px 0 var(--rim), var(--glow-gold); }
.eco-leaf { filter: drop-shadow(0 0 8px var(--accent)); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--accent) 60%, transparent)); }
.lang-switch button[aria-pressed="true"], .seg button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--accent));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px -4px var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 12px -4px color-mix(in srgb, var(--accent) 70%, transparent);
}
.theme-toggle { box-shadow: inset 0 1px 0 var(--rim), var(--glow-gold); }

/* ---------- primary buttons: liquid metal ---------- */
.btn-primary, .tb-btn, .pillar[aria-pressed="true"], .segmented button[aria-pressed="true"] {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 52%),
    linear-gradient(135deg, var(--accent) 0%, var(--accent) 40%, var(--accent) 100%); background:
    linear-gradient(180deg, rgba(255, 255, 255, .35), rgba(255, 255, 255, 0) 52%),
    linear-gradient(135deg, color-mix(in srgb, var(--accent) 85%, #fff) 0%, var(--accent) 40%, color-mix(in srgb, var(--accent) 55%, var(--gold)) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(0, 0, 0, .12),
              0 12px 28px -8px var(--accent), 0 2px 4px rgba(0, 0, 0, .2); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), inset 0 -2px 6px rgba(0, 0, 0, .12),
              0 12px 28px -8px color-mix(in srgb, var(--accent) 65%, transparent), 0 2px 4px rgba(0, 0, 0, .2);
  border-color: transparent;
}
.btn-primary { transition: transform .6s var(--spring), box-shadow .4s; }
.btn-primary:hover { transform: translateY(-2px) scale(1.01); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 40px -10px var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 18px 40px -10px color-mix(in srgb, var(--accent) 75%, transparent); }
.btn-gold { background: linear-gradient(180deg, rgba(255, 255, 255, .45), transparent 55%), linear-gradient(135deg, #FFF3C4, #FBBF24 40%, #B45309); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 24px -8px var(--gold); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .7), 0 10px 24px -8px color-mix(in srgb, var(--gold) 70%, transparent); }
.btn-soft { box-shadow: inset 0 1px 0 var(--rim), 0 6px 16px -10px rgba(0, 0, 0, .4); transition: transform .6s var(--spring), background-color .3s, box-shadow .3s; }
.btn-soft:hover { box-shadow: inset 0 1px 0 var(--rim-strong), 0 0 0 1px transparent, 0 10px 26px -10px var(--bc); box-shadow: inset 0 1px 0 var(--rim-strong), 0 0 0 1px color-mix(in srgb, var(--bc) 40%, transparent), 0 10px 26px -10px color-mix(in srgb, var(--bc) 60%, transparent); }

/* ---------- carousel & cards ---------- */
.carousel-bar { border-radius: 30px; box-shadow: inset 0 1px 0 var(--rim), var(--depth-lg); }
.c-card { border-radius: 24px; }
.c-card--premier { border-color: var(--t-premier); border-color: color-mix(in srgb, var(--t-premier) 60%, transparent); box-shadow: inset 0 1px 0 var(--rim-strong), var(--glow-gold), var(--depth); }
.c-card--boost { border-color: var(--t-boost); border-color: color-mix(in srgb, var(--t-boost) 50%, transparent); box-shadow: inset 0 1px 0 var(--rim), 0 0 0 1px transparent, var(--depth); box-shadow: inset 0 1px 0 var(--rim), 0 0 0 1px color-mix(in srgb, var(--t-boost) 22%, transparent), var(--depth); }
.c-art { height: 124px; position: relative; overflow: hidden; }
.c-card .c-art .art { transition: transform 1.2s var(--spring-soft); }
.c-card:hover .c-art .art { transform: scale(1.06); }
.c-art::after, .poi-thumb::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .18) 48%, transparent 62%); transform: translateX(-120%); transition: transform 1s var(--ease); }
.c-card:hover .c-art::after, .poi-item:hover .poi-thumb::after { transform: translateX(120%); }
.poi-thumb { position: relative; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--glass-border), 0 6px 14px -6px rgba(0, 0, 0, .45); }
.poi-item { border-radius: 24px; }
.poi-item--premier { border-color: var(--t-premier); border-color: color-mix(in srgb, var(--t-premier) 55%, transparent); box-shadow: inset 0 1px 0 var(--rim-strong), var(--glow-gold), var(--depth); }
.tier-badge { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px -4px var(--tc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 4px 10px -4px color-mix(in srgb, var(--tc) 60%, transparent); }

/* ---------- map frame ---------- */
.map-wrap { border-radius: 30px; box-shadow: inset 0 1px 0 var(--rim), var(--depth-lg); }
.map-wrap::after { content: ""; position: absolute; inset: 0; z-index: 450; pointer-events: none; border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--glass-border), inset 0 40px 60px -40px var(--bg), inset 0 -50px 70px -50px var(--bg); box-shadow: inset 0 0 0 1px var(--glass-border), inset 0 40px 60px -40px color-mix(in srgb, var(--bg) 70%, transparent), inset 0 -50px 70px -50px color-mix(in srgb, var(--bg) 80%, transparent); }
.qa, .map-badge, .tier-legend, .route-chip { box-shadow: inset 0 1px 0 var(--rim), var(--depth); }

/* keep pillar-specific borders that the glass rule above would flatten */
.pulse { border-left: 4px solid var(--pc); }
.route-chip { border-color: #39FF88; border-color: color-mix(in srgb, #39FF88 60%, transparent); box-shadow: inset 0 1px 0 var(--rim), 0 0 24px -6px #39FF88, var(--depth); }

/* ==========================================================
   3D map pins
   ========================================================== */
.sq-pin:hover .pin, .sq-pin:focus-visible .pin { transform: none; }
.pin { overflow: visible; }
.pin-body { position: relative; z-index: 2; display: block; width: 100%; height: 100%; transform-origin: 50% 100%; transition: transform .7s var(--spring); }
.pin-shadow {
  position: absolute; z-index: 0; left: 50%; bottom: -5px; width: 74%; height: 24%; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(closest-side, var(--pin-ground), transparent); filter: blur(1.2px);
  transition: transform .7s var(--spring), opacity .4s;
}
.sq-pin:hover .pin-body, .sq-pin:focus-visible .pin-body { transform: translateY(-7px) scale(1.14); }
.sq-pin:hover .pin-shadow { transform: translateX(-50%) scale(.7); opacity: .55; }
.sq-pin:active .pin-body { transform: translateY(-1px) scale(.92); transition-duration: .12s; }

.pin--free .pin-svg { filter: drop-shadow(0 2px 1.5px rgba(0, 0, 0, .35)); }
.pin--eco .pin-svg { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35)) drop-shadow(0 0 7px transparent); filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35)) drop-shadow(0 0 7px color-mix(in srgb, var(--t-eco) 45%, transparent)); }
.pin--boost .pin-svg { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .38)) drop-shadow(0 0 3px var(--t-boost)) drop-shadow(0 0 14px var(--t-boost)); filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .38)) drop-shadow(0 0 3px var(--t-boost)) drop-shadow(0 0 14px color-mix(in srgb, var(--t-boost) 60%, transparent)); }
.pin--premier .pin-svg { filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .4)) drop-shadow(0 0 4px var(--t-premier-hi)) drop-shadow(0 0 18px var(--t-premier)); filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .4)) drop-shadow(0 0 4px var(--t-premier-hi)) drop-shadow(0 0 18px color-mix(in srgb, var(--t-premier) 75%, transparent)); }
[data-theme="light"] .pin--premier .pin-svg { filter: drop-shadow(0 8px 6px rgba(11, 59, 45, .28)) drop-shadow(0 0 10px var(--t-premier)); filter: drop-shadow(0 8px 6px rgba(11, 59, 45, .28)) drop-shadow(0 0 10px color-mix(in srgb, var(--t-premier) 55%, transparent)); }

.pin-aura { position: absolute; z-index: 0; left: 50%; top: 2%; width: 150%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(circle, transparent, transparent 65%); background: radial-gradient(circle, color-mix(in srgb, var(--t-boost) 40%, transparent), transparent 65%); animation: aura 3.2s ease-in-out infinite; pointer-events: none; }

/* Premier Spotlight: multi-ring golden radar on the ground + light beam */
.pin-radar { position: absolute; z-index: 0; left: 50%; bottom: -3px; width: 0; height: 0; pointer-events: none; }
.pin-radar i {
  position: absolute; left: -66px; top: -26px; width: 132px; height: 52px; border-radius: 50%;
  border: 2px solid var(--t-premier);
  box-shadow: 0 0 14px var(--t-premier), inset 0 0 14px transparent; box-shadow: 0 0 14px color-mix(in srgb, var(--t-premier) 80%, transparent), inset 0 0 14px color-mix(in srgb, var(--t-premier) 45%, transparent);
  opacity: 0; transform: scale(.12); animation: radar 3s cubic-bezier(.15, .6, .3, 1) infinite;
}
.pin-radar i:nth-child(2) { animation-delay: 1s; }
.pin-radar i:nth-child(3) { animation-delay: 2s; }
.pin-beam { position: absolute; z-index: 1; left: 50%; bottom: 20%; width: 18px; height: 150%; transform: translateX(-50%); pointer-events: none;
  background: linear-gradient(0deg, var(--t-premier), transparent); background: linear-gradient(0deg, color-mix(in srgb, var(--t-premier) 65%, transparent), transparent); filter: blur(5px); border-radius: 50%; animation: beam 3s ease-in-out infinite; }
.pin-crown { top: -24px; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .35)) drop-shadow(0 0 8px var(--t-premier)); }
.pin-offer { box-shadow: 0 4px 12px var(--t-boost), inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(255, 255, 255, .5); box-shadow: 0 4px 12px color-mix(in srgb, var(--t-boost) 55%, transparent), inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(255, 255, 255, .5); }

/* ---------- artwork motion ---------- */
.art .lx-speed path { stroke-dasharray: 18 30; animation: speed .9s linear infinite; }
.art .lx-charge { transform-box: fill-box; transform-origin: left center; animation: charge 2.6s var(--ease) infinite; }
.art .lx-flow { animation: flow 1s linear infinite; }

/* ==========================================================
   Sheets, modals, floating bars
   ========================================================== */
.sheet-panel, .modal-panel {
  background: var(--glass-hi), var(--glass-strong);
  -webkit-backdrop-filter: blur(40px) saturate(190%); backdrop-filter: blur(40px) saturate(190%);
  box-shadow: inset 0 1px 0 var(--rim-strong), inset 0 0 0 1px var(--glass-border), var(--depth-lg);
}
.sheet-panel { transition: transform .75s var(--spring-soft); }
.modal-panel { transition: transform .75s var(--spring-soft), opacity .4s; }
.sheet-backdrop, .modal-backdrop { background: radial-gradient(ellipse at 50% 100%, rgba(2, 6, 12, .45), rgba(2, 6, 12, .7)); }
[data-theme="light"] .sheet-backdrop, [data-theme="light"] .modal-backdrop { background: radial-gradient(ellipse at 50% 100%, rgba(11, 59, 45, .18), rgba(11, 59, 45, .34)); }
[data-theme="light"] .sheet-handle span { background: rgba(11, 59, 45, .35); box-shadow: none; }
.sheet-art { height: 220px; }
.sheet-art .art { animation: kenburns 18s ease-in-out infinite alternate; transform-origin: 50% 60%; }
.sheet-art::after { height: 90px; }
.sheet-close, .modal-x { box-shadow: inset 0 1px 0 var(--rim), 0 6px 16px -6px rgba(0, 0, 0, .5); }
.stat { border-radius: 20px; }
.stat svg { filter: drop-shadow(0 0 6px currentColor); filter: drop-shadow(0 0 6px color-mix(in srgb, currentColor 50%, transparent)); }
.coupon { box-shadow: inset 0 1px 0 var(--rim), var(--glow-gold); }
.mod-ico, .done-ring { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 30px -10px var(--accent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 14px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent); }

.transport-bar {
  border-radius: 28px; background: var(--glass-hi), var(--glass-strong);
  -webkit-backdrop-filter: blur(34px) saturate(200%); backdrop-filter: blur(34px) saturate(200%);
  box-shadow: inset 0 1px 0 var(--rim-strong), inset 0 0 0 1px var(--glass-border), var(--depth-lg), 0 0 40px -18px var(--accent); box-shadow: inset 0 1px 0 var(--rim-strong), inset 0 0 0 1px var(--glass-border), var(--depth-lg), 0 0 40px -18px color-mix(in srgb, var(--accent) 55%, transparent);
}
.sos-fab {
  background: radial-gradient(circle at 34% 26%, #FFE4E6 0%, #FCA5A5 14%, #EF4444 46%, #991B1B 82%, #450A0A 100%);
  box-shadow: inset 0 2px 1px rgba(255, 255, 255, .55), inset 0 -4px 8px rgba(0, 0, 0, .35), 0 12px 28px -6px rgba(239, 68, 68, .75), 0 0 0 4px rgba(239, 68, 68, .14);
}
.toast { background: var(--glass-hi), var(--glass-strong); box-shadow: inset 0 1px 0 var(--rim), var(--glow-gold), var(--depth); }

/* ==========================================================
   Holographic Eco-Footprint card (3D tilt follows the pointer)
   ========================================================== */
.modal--receipt .mod-wrap { perspective: 1200px; }
.receipt-frame {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 30%;
  position: relative; border-radius: 28px; overflow: hidden; transform-style: preserve-3d;
  transform: rotateX(var(--ry)) rotateY(var(--rx)); transition: transform .8s var(--spring-soft);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px transparent, 0 0 60px -20px var(--gold); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .75), 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent), 0 0 60px -20px color-mix(in srgb, var(--gold) 60%, transparent);
}
.receipt-frame.tilting { transition: transform .12s linear; }
.receipt-frame::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; mix-blend-mode: color-dodge; opacity: .45;
  background:
    radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .45), transparent 38%),
    conic-gradient(from 210deg at var(--mx) var(--my), #22D3EE33, #A78BFA33, #F472B633, #FBBF2433, #34D39933, #22D3EE33);
}
[data-theme="light"] .receipt-frame { box-shadow: 0 34px 70px -30px rgba(11, 59, 45, .55), 0 0 0 1px transparent; box-shadow: 0 34px 70px -30px rgba(11, 59, 45, .55), 0 0 0 1px color-mix(in srgb, var(--gold) 45%, transparent); }

/* ==========================================================
   AR Street Lens – automotive HUD
   ========================================================== */
.hud-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hud-chev { stroke: rgba(255, 255, 255, .85); stroke-width: 2; stroke-linejoin: round; }
.ar-wrap.hud .ar-scene { filter: saturate(1.15) contrast(1.05); }
.hud-frame i { position: absolute; width: 46px; height: 46px; border: 2px solid rgba(165, 243, 252, .7); pointer-events: none; filter: drop-shadow(0 0 6px #22D3EE); }
.hud-frame i:nth-child(1) { top: 13%; left: 4%; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.hud-frame i:nth-child(2) { top: 13%; right: 4%; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.hud-frame i:nth-child(3) { bottom: 26%; left: 4%; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.hud-frame i:nth-child(4) { bottom: 26%; right: 4%; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }

.hud-heading { position: absolute; top: calc(68px + env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); width: min(86vw, 440px);
  display: grid; justify-items: center; gap: 4px; padding: 8px 12px 10px; border-radius: 20px;
  background: linear-gradient(180deg, rgba(8, 20, 30, .7), rgba(2, 8, 14, .5)); border: 1px solid rgba(34, 211, 238, .45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 30px -6px rgba(34, 211, 238, .45); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.hud-heading > small { font-size: .58rem; letter-spacing: .2em; text-transform: uppercase; color: #67E8F9; }
.hud-tape { position: relative; width: 100%; height: 30px; overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent); }
.hud-strip { position: absolute; top: 0; left: 50%; height: 100%; will-change: transform; }
.hud-strip i { position: absolute; bottom: 0; width: 1px; height: 7px; background: rgba(165, 243, 252, .55); }
.hud-strip i.md { height: 11px; background: rgba(165, 243, 252, .8); }
.hud-strip i.mj { height: 14px; width: 2px; background: #22D3EE; box-shadow: 0 0 6px #22D3EE; }
.hud-strip i b, .hud-strip i s { position: absolute; bottom: 15px; left: 50%; transform: translateX(-50%); font-size: .66rem; text-decoration: none; color: #A5F3FC; }
.hud-strip i b { font-size: .76rem; color: #E0F2FE; text-shadow: 0 0 8px #22D3EE; }
.hud-caret { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; transform: translateX(-50%); border: 7px solid transparent; border-bottom-color: #FBBF24; filter: drop-shadow(0 0 6px #FBBF24); }
#arHead { font-size: 1.45rem; color: #E0F2FE; text-shadow: 0 0 14px #22D3EE; letter-spacing: .04em; }
.hud-coords { font-size: .6rem; color: #94A3B8; }
.ar-label { -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 22px transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 0 22px color-mix(in srgb, var(--c) 45%, transparent); }

.hud-gauges { position: absolute; left: 14px; right: 14px; bottom: calc(16px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.hud-gauge { position: relative; display: grid; grid-template-columns: 76px 1fr; align-items: center; gap: 10px; padding: 8px 12px 8px 8px; border-radius: 22px;
  background: linear-gradient(180deg, rgba(8, 20, 30, .72), rgba(2, 8, 14, .6)); border: 1px solid var(--c); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 26px -8px var(--c); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.hud-gauge > svg { width: 76px; height: 76px; filter: drop-shadow(0 0 6px var(--c)); }
.hud-gauge .g-val { transition: stroke-dasharray 1s var(--ease); }
.g-num { position: absolute; left: 8px; top: 50%; width: 76px; transform: translateY(-50%); display: grid; justify-items: center; line-height: 1; }
.g-num b { font-size: 1.3rem; color: #fff; text-shadow: 0 0 10px var(--c); } .g-num small { font-size: .6rem; color: #CBD5E1; margin-top: 2px; }
.g-txt { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 7px; min-width: 0; color: var(--c); font-family: system-ui, sans-serif; }
.g-txt > span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.g-txt small { font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; color: #94A3B8; }
.g-txt b { font-size: .8rem; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-txt em { grid-column: 1 / -1; font-style: normal; font-weight: 800; font-size: .74rem; margin-top: 3px; font-family: ui-monospace, "SF Mono", Menlo, monospace; }
@media (max-width: 520px) {
  .hud-gauges { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hud-gauge { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 8px 8px 10px; }
  .hud-gauge > svg { width: 64px; height: 64px; }
  .g-num { left: 0; right: 0; width: auto; top: 40px; }
  .g-txt { grid-template-columns: 1fr; justify-items: center; }
  .g-txt > svg { display: none; }
  .g-txt > span { align-items: center; max-width: 100%; } .hud-frame i:nth-child(3), .hud-frame i:nth-child(4) { bottom: 32%; } .ar-target:nth-child(2) { top: 46%; } }

/* ==========================================================
   Silent SOS – crisp & authoritative (identical in both themes)
   ========================================================== */
.modal--sos .modal-panel {
  background: radial-gradient(120% 50% at 50% 0%, rgba(239, 68, 68, .22), transparent 60%), #060203;
  border: 1px solid rgba(248, 113, 113, .7);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 0 0 1px #450A0A, 0 0 90px -10px rgba(239, 68, 68, .6);
}
.modal--sos .sos-wrap { position: relative; padding-top: 30px; }
.modal--sos .sos-wrap:not(.fake)::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px;
  background: repeating-linear-gradient(-45deg, #EF4444 0 12px, #1A0505 12px 24px); opacity: .9;
}
.sos-hero h2 { font-size: 1.75rem; font-weight: 900; letter-spacing: .16em; text-shadow: 0 0 24px rgba(239, 68, 68, .55); }
.sos-hero p { letter-spacing: .01em; }
.sos-pulse { box-shadow: inset 0 3px 2px rgba(255, 255, 255, .5), inset 0 -6px 12px rgba(0, 0, 0, .4), 0 14px 34px -8px rgba(239, 68, 68, .8); }
.sos-loc { background: linear-gradient(180deg, rgba(255, 255, 255, .05), transparent), #0F0506; border: 1px solid rgba(185, 28, 28, .8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08); }
.qr { box-shadow: 0 0 0 3px #fff, 0 0 0 5px #EF4444, 0 0 24px -4px rgba(239, 68, 68, .7); }
.sos-call {
  background: linear-gradient(180deg, #fff, #F1F5F9); color: #991B1B; letter-spacing: -.01em;
  box-shadow: inset 0 -3px 0 #E2E8F0, 0 0 0 3px #EF4444, 0 0 0 7px rgba(239, 68, 68, .18), 0 18px 40px -10px rgba(239, 68, 68, .7);
  transition: transform .5s var(--spring);
}
.sos-call span { font-size: 1.45rem; font-weight: 900; letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.sos-call:hover { transform: translateY(-2px); }
.sos-btn { background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 60%), #120607; border: 1px solid rgba(220, 38, 38, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1); transition: transform .5s var(--spring), border-color .3s, box-shadow .3s; }
.sos-btn:hover { border-color: #F87171; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 0 22px -6px rgba(239, 68, 68, .8); transform: translateY(-2px); }
.sos-btn svg { filter: drop-shadow(0 0 6px rgba(248, 113, 113, .7)); }
.sos-wrap.fake { background: radial-gradient(80% 40% at 50% 30%, rgba(148, 163, 184, .18), transparent), linear-gradient(#111827, #020617); }

/* ---------- keyframes ---------- */
@keyframes aurora { 0% { transform: translate3d(0, 0, 0) scale(1); } 100% { transform: translate3d(-3%, 2%, 0) scale(1.08); } }
@keyframes radar { 0% { transform: scale(.12); opacity: 1; } 70% { opacity: .35; } 100% { transform: scale(1); opacity: 0; } }
@keyframes beam { 0%, 100% { opacity: .35; } 50% { opacity: .85; } }
@keyframes aura { 0%, 100% { opacity: .5; transform: translateX(-50%) scale(.9); } 50% { opacity: 1; transform: translateX(-50%) scale(1.05); } }
@keyframes speed { to { stroke-dashoffset: -48; } }
@keyframes charge { 0% { transform: scaleX(.15); } 85%, 100% { transform: scaleX(1); } }
@keyframes flow { to { stroke-dashoffset: -24; } }
@keyframes kenburns { from { transform: scale(1); } to { transform: scale(1.07) translateY(-2px); } }

/* ---------- 4K ---------- */
@media (min-width: 2200px) {
  .logo-emblem { width: 58px; height: 58px; }
  .hud-heading { width: 620px; }
  .hud-gauges { left: 40px; right: 40px; }
}

/* list cards truncate long names instead of widening their column */
.poi-list { grid-template-columns: minmax(0, 1fr); }
[data-theme="light"] .carousel-bar::after { opacity: .35; }

/* styles/04-frame.css */
/* sQReet · phone frame & single-column layout
   (cascade order matters – files are linked in index.html in this order) */
/* ===== layer: frame.css ===== */
/* ==========================================================
   sQReet – frame.css (loaded last)
   The app is a mobile product: on tablets / desktops / 4K it is
   shown as a centred 480 px phone-style frame instead of
   stretching across the monitor. Phones are unaffected.
   ========================================================== */

:root { --frame-w: 480px; }

/* single-column phone layout at every width */
.app-main {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-areas: none !important;
  max-width: var(--frame-w);
  gap: 16px;
  padding: 14px;
}
.app-main > * { grid-area: auto !important; min-width: 0; }
.poi-section { max-height: none !important; overflow: visible !important; padding: 0 !important; }
#map { height: 56vh !important; min-height: 360px !important; max-height: 620px; }
.c-card { flex-basis: min(74vw, 290px) !important; }
.c-art { height: 124px !important; }
.pillar-panel { max-height: none !important; overflow: visible !important; }

/* overlays never wider than the frame */
.sheet-panel, .modal-panel { max-width: var(--frame-w) !important; }
.transport-bar { width: min(94vw, calc(var(--frame-w) - 24px)) !important; }
.toast { max-width: min(90vw, calc(var(--frame-w) - 32px)); }

/* map notice when Leaflet cannot load */
.map-offline {
  position: absolute; inset: 0; display: grid; place-content: center; gap: 6px; padding: 24px; text-align: center;
  color: var(--muted); font-size: .85rem; background: var(--glass-tint, var(--card));
}
.map-offline b { color: var(--text); font-size: 1rem; }

/* undo the earlier 4K up-scaling: the frame stays crisp at its native size */
@media (min-width: 2200px) {
  html { font-size: 16px; }
  .app-main { padding: 14px; gap: 16px; }
  .app-header { padding-left: 14px !important; padding-right: 14px !important; }
}

/* ---------- desktop / tablet: centred device frame ---------- */
@media (min-width: 560px) {
  html { background: #04070C; }
  [data-theme="light"] { background: #E6EEEA; }
  html[data-theme="light"] { background: #E6EEEA; }
  body {
    max-width: var(--frame-w);
    margin: 24px auto;
    min-height: calc(100vh - 48px);
    border-radius: 36px;
    overflow: clip;
    border: 1px solid var(--glass-border);
    box-shadow:
      0 0 0 8px transparent,
      0 0 0 9px var(--glass-border),
      0 40px 100px -30px rgba(0, 0, 0, .8),
      0 0 120px -40px transparent; box-shadow:
      0 0 0 8px color-mix(in srgb, var(--text) 4%, transparent),
      0 0 0 9px var(--glass-border),
      0 40px 100px -30px rgba(0, 0, 0, .8),
      0 0 120px -40px color-mix(in srgb, var(--accent) 45%, transparent);
    padding-bottom: 110px;
  }
  [data-theme="light"] body { box-shadow: 0 0 0 8px rgba(255, 255, 255, .7), 0 0 0 9px var(--glass-border), 0 40px 90px -30px rgba(11, 59, 45, .35); }
  /* keep sticky header inside the rounded frame */
  .app-header { border-radius: 36px 36px 0 0; }
  .app-footer { border-radius: 0 0 36px 36px; }
  /* the fixed bar sits at the bottom of the frame column */
  .transport-bar { bottom: 36px; }
  .toast { bottom: 120px; }
  /* sheets & modals: centred cards on desktop */
  .sheet { align-items: center; }
  .sheet-panel { border-radius: 30px; margin: 0; border-bottom: 1px solid var(--glass-border); max-height: 90vh; }
  .modal--ar .modal-panel { max-width: var(--frame-w) !important; margin: 0 auto; border-radius: 30px; height: min(92vh, 900px); align-self: center; }
  .modal--ar { place-items: center; }
}

/* in the 480 px frame the bar is narrow: keep the address readable (commission is shown in the ride modal) */
.tb-btn em { display: none; }
.tb-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* src/features/scan/scan.css */
/* sQReet · Scan – QR scan mode, scanner, you-are-here
   (cascade order matters – files are linked in index.html in this order) */
/* ===== layer: scan.css ===== */
/* ==========================================================
   sQReet – scan.css (loaded last)
   General view vs QR Scan view, floating scan button,
   "you are here" pinpoint, simulated camera scanner.
   ========================================================== */

/* ---------- what each mode shows ---------- */
body.mode-default .carousel-section,
body.mode-default .geo-switch,
body.mode-default #pulseBanner,
body.mode-default #mapActions,
body.mode-default #chips,
body.mode-default .poi-section,
body.mode-default #scanBadge { display: none !important; }
body.mode-default #map { height: 64vh !important; max-height: 680px; }
body.mode-default { padding-bottom: calc(170px + env(safe-area-inset-bottom)); }
body.mode-scan #scanFab { opacity: 0; transform: translate(-50%, 30px) scale(.9); pointer-events: none; }
body.mode-scan .carousel-section, body.mode-scan .geo-switch, body.mode-scan #scanBadge { animation: rise .6s var(--ease) backwards; }
body.mode-scan .geo-switch { animation-delay: .08s; } body.mode-scan .carousel-section { animation-delay: .16s; }

/* ---------- floating "Scan Street QR" button ---------- */
.scan-fab {
  position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); z-index: 1600; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 12px; padding: 12px 22px 12px 14px; border-radius: 999px; white-space: nowrap;
  color: #1F1500;
  background: linear-gradient(180deg, rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #FFF3C4, #FBBF24 40%, #D97706);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(255, 255, 255, .35), 0 16px 34px -10px rgba(217, 119, 6, .75), 0 0 0 6px transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 1px rgba(255, 255, 255, .35), 0 16px 34px -10px rgba(217, 119, 6, .75), 0 0 0 6px color-mix(in srgb, var(--gold) 16%, transparent);
  transition: opacity .35s, transform .6s var(--spring);
  animation: scanBreath 2.8s ease-in-out infinite;
}
.scan-fab:hover { transform: translateX(-50%) translateY(-2px) scale(1.03); }
.scan-fab:active { transform: translateX(-50%) scale(.96); }
.scan-ico { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: #FBBF24; background: #111C18; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.scan-txt { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.scan-txt b { font-size: .98rem; font-weight: 800; letter-spacing: -.01em; }
.scan-txt small { font-size: .68rem; font-weight: 700; opacity: .75; }
@keyframes scanBreath { 0%, 100% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 16px 34px -10px rgba(217, 119, 6, .75), 0 0 0 6px transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 16px 34px -10px rgba(217, 119, 6, .75), 0 0 0 6px color-mix(in srgb, var(--gold) 16%, transparent); }
  50% { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 16px 34px -10px rgba(217, 119, 6, .75), 0 0 0 12px transparent; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 16px 34px -10px rgba(217, 119, 6, .75), 0 0 0 12px color-mix(in srgb, var(--gold) 8%, transparent); } }
@media (min-width: 560px) { .scan-fab { bottom: 118px; } }

/* ---------- scanned-street badge ---------- */
.scan-badge:empty { display: none; }
.scan-badge {
  display: flex; align-items: center; gap: 11px; padding: 10px 10px 10px 12px; border-radius: 20px;
  background: var(--glass-hi), var(--glass-tint); border: 1px solid var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: inset 0 1px 0 var(--rim), var(--glow-gold);
}
.sb-ico { width: 36px; height: 36px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 12px; color: #1F1500; background: linear-gradient(135deg, #FDE68A, #F59E0B); }
.sb-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.sb-txt small { font-size: .66rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-txt b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-exit { display: inline-flex; align-items: center; gap: 5px; padding: 8px 11px; border-radius: 12px; font-size: .72rem; font-weight: 700; white-space: nowrap;
  color: var(--muted); border: 1px solid var(--glass-border); background: var(--glass-tint); transition: color .2s, border-color .2s; }
.sb-exit:hover { color: var(--text); border-color: var(--accent); }

/* ---------- "you are here" pinpoint ---------- */
.you-pin { background: none; border: 0; overflow: visible; }
.you-dot { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF7D6, #FBBF24 45%, #B45309); border: 3px solid #fff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, .45), 0 0 18px #FBBF24; animation: youDrop .8s var(--spring) backwards; }
.you-pulse { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(251, 191, 36, .35); animation: youPulse 2s ease-out infinite; }
.you-label { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); white-space: nowrap; padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 800; color: #1F1500; background: linear-gradient(135deg, #FDE68A, #FBBF24); box-shadow: 0 4px 12px rgba(0, 0, 0, .35); animation: youLabel .8s var(--spring) .15s backwards; }
.you-label::after { content: ""; position: absolute; left: 50%; bottom: -4px; margin-left: -4px; border: 4px solid transparent; border-bottom: 0; border-top-color: #FBBF24; }
@keyframes youDrop { from { opacity: 0; transform: translateY(-40px) scale(.6); } }
@keyframes youLabel { from { opacity: 0; transform: translate(-50%, -20px); } }
@keyframes youPulse { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(4.5); opacity: 0; } }

/* ---------- simulated camera scanner ---------- */
.scan-overlay { position: fixed; inset: 0; z-index: 3200; display: none; overflow: hidden; background: #000; color: #fff; }
.scan-overlay.open { display: block; animation: scFade .35s ease; }
@keyframes scFade { from { opacity: 0; } }
.sc-cam { position: absolute; inset: 0; display: grid; place-items: center; animation: scSway 6s ease-in-out infinite alternate; }
.sc-wall { position: absolute; inset: -10%;
  background:
    repeating-linear-gradient(0deg, rgba(0, 0, 0, .35) 0 2px, transparent 2px 44px),
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .25) 0 2px, transparent 2px 92px),
    radial-gradient(ellipse at 50% 40%, #5B5148, #2A231E 70%, #120F0C);
  filter: blur(1.5px); }
.sc-plaque { position: relative; width: min(62vw, 250px); padding: 14px 14px 12px; border-radius: 16px; text-align: center;
  background: linear-gradient(160deg, #E2E8F0, #94A3B8 45%, #F1F5F9 60%, #64748B);
  box-shadow: 0 30px 60px rgba(0, 0, 0, .6), inset 0 1px 0 rgba(255, 255, 255, .8); transform: perspective(700px) rotateX(8deg) rotateY(-10deg); filter: blur(2px);
  transition: filter .8s ease, transform 1s var(--spring-soft), box-shadow .5s; }
.scan-overlay.reading .sc-plaque { filter: blur(.4px); transform: perspective(700px) rotateX(3deg) rotateY(-3deg); }
.scan-overlay.found .sc-plaque { filter: none; transform: none; box-shadow: 0 30px 60px rgba(0, 0, 0, .6), 0 0 0 3px #D4AF37, 0 0 40px rgba(212, 175, 55, .55); }
.sc-plaque-head { display: flex; justify-content: space-between; align-items: baseline; color: #0B3B2D; font-weight: 800; margin-bottom: 8px; }
.sc-plaque-head i { font-style: normal; color: #059669; }
.sc-plaque-head small { font-family: ui-monospace, Menlo, monospace; font-size: .62rem; color: #334155; }
.sc-qr .qr { width: 100%; height: auto; display: block; border-radius: 8px; }
.sc-plaque-foot { margin-top: 8px; font-size: .68rem; font-weight: 700; color: #0B3B2D; }
.sc-vignette { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 35%, rgba(0, 0, 0, .75)); }
.sc-frame { position: absolute; left: 50%; top: 50%; width: min(74vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); pointer-events: none; }
.sc-frame i { position: absolute; width: 44px; height: 44px; border: 4px solid #fff; transition: border-color .4s, transform .5s var(--spring); filter: drop-shadow(0 0 6px rgba(255, 255, 255, .6)); }
.sc-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; border-top-left-radius: 16px; }
.sc-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; border-top-right-radius: 16px; }
.sc-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; border-bottom-left-radius: 16px; }
.sc-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; border-bottom-right-radius: 16px; }
.scan-overlay.reading .sc-frame i { border-color: #FBBF24; filter: drop-shadow(0 0 8px #FBBF24); }
.scan-overlay.found .sc-frame i { border-color: #D4AF37; filter: drop-shadow(0 0 8px rgba(212, 175, 55, .7)); transform: scale(.92); }
.sc-laser { position: absolute; left: 6%; right: 6%; top: 10%; height: 3px; border-radius: 3px; background: #EF4444; box-shadow: 0 0 14px 3px rgba(239, 68, 68, .8); animation: scLaser 1.6s ease-in-out infinite alternate; }
.scan-overlay.found .sc-laser { display: none; }
@keyframes scLaser { to { top: 88%; } }
@keyframes scSway { from { transform: translate(-6px, -4px) scale(1.02); } to { transform: translate(6px, 4px) scale(1.02); } }
.sc-top { position: absolute; top: calc(16px + env(safe-area-inset-top)); left: 16px; right: 16px; display: flex; justify-content: space-between; align-items: center; }
.sc-rec { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; font-size: .74rem; font-weight: 700; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .25); }
.sc-rec i { width: 8px; height: 8px; border-radius: 50%; background: #EF4444; animation: blink 1s infinite; }
.sc-x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .3); }
.sc-status { position: absolute; left: 50%; bottom: calc(48px + env(safe-area-inset-bottom)); transform: translateX(-50%); width: min(88vw, 420px);
  display: grid; justify-items: center; gap: 4px; padding: 14px 18px; border-radius: 20px; text-align: center;
  background: rgba(10, 14, 20, .72); border: 1px solid rgba(255, 255, 255, .18); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.sc-status b { font-size: .95rem; } .sc-status small { font-size: .74rem; color: #A7F3D0; }
.sc-ok { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #2A1E04; background: linear-gradient(135deg, #F5DC8A, #D4AF37); animation: pop .5s var(--spring); }
.scan-overlay.found .sc-status { border-color: rgba(212, 175, 55, .7); box-shadow: 0 0 26px -8px rgba(212, 175, 55, .6); }
@media (min-width: 560px) {
  .scan-overlay { left: 50%; right: auto; width: 480px; transform: translateX(-50%); top: 24px; bottom: 24px; border-radius: 36px; box-shadow: 0 0 0 9px rgba(255, 255, 255, .06), 0 40px 100px -30px #000; }
}
.sc-qr .qr { box-shadow: none !important; }

/* src/features/around/around.css */
/* ==========================================================
   sQReet · Around you — everything near the scanned plaque, by category
   ========================================================== */
.modal--around .modal-panel { max-width: 640px; overflow-x: hidden; }
.mod-wrap.ar { gap: 12px; padding-top: 18px; grid-template-columns: minmax(0, 1fr); }
.mod-wrap.ar > *, #arBody { min-width: 0; }
.ar-head { display: flex; align-items: center; gap: 12px; padding-right: 44px; }
.ar-pin { flex: 0 0 auto; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--gold))); box-shadow: 0 8px 22px transparent; box-shadow: 0 8px 22px color-mix(in srgb, var(--accent) 38%, transparent); }
.ar-head > div { min-width: 0; }
.ar-head small { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-head h2 { font-size: 1.45rem; letter-spacing: -.025em; line-height: 1.15; }
.ar-head p { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* range */
.ar-range { position: sticky; top: -18px; z-index: 3; display: flex; align-items: center; gap: 6px; overflow-x: auto; scrollbar-width: none;
  margin: 0 -18px; padding: 8px 18px; background: var(--glass-strong); -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.ar-range::-webkit-scrollbar { display: none; }
.ar-range > span { flex: 0 0 auto; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-right: 2px; }
.ar-range button { flex: 0 0 auto; min-height: 36px; padding: 0 13px; border-radius: 999px; font-weight: 800; font-size: .82rem; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); transition: background-color .25s, border-color .25s, color .25s, transform .25s var(--ease); }
.ar-range button:active { transform: scale(.95); }
.ar-range button[aria-checked="true"] { color: var(--accent-ink); background: var(--accent); border-color: var(--accent); box-shadow: 0 6px 16px transparent; box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent); }

/* search */
.ar-q { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 44px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border); color: var(--muted); }
.ar-q input { flex: 1; min-width: 0; border: 0; background: none; font: inherit; font-size: .9rem; color: var(--text); padding: 10px 0; }
.ar-q input:focus { outline: none; }
.ar-q:focus-within { border-color: var(--accent); }

/* summary + notes */
.ar-sum { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: .9rem; }
.ar-sum small { font-size: .72rem; color: var(--muted); }
.ar-note { padding: 9px 12px; border-radius: 12px; font-size: .78rem; color: #F59E0B; background: transparent; background: color-mix(in srgb, #F59E0B 12%, transparent); border: 1px solid transparent; border: 1px solid color-mix(in srgb, #F59E0B 40%, transparent); margin-bottom: 10px; }
.ar-empty { padding: 24px 8px; text-align: center; color: var(--muted); font-size: .86rem; }
.ar-src { font-size: .66rem; color: var(--muted); text-align: center; opacity: .8; }

/* categories */
.ar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin: 10px 0 4px; }
.ar-tile { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left;
  padding: 12px; border-radius: 18px; background: var(--glass); background: color-mix(in srgb, var(--gc) 10%, var(--glass)); border: 1px solid var(--glass-border); border: 1px solid color-mix(in srgb, var(--gc) 32%, var(--glass-border));
  transition: transform .25s var(--ease), border-color .25s; }
.ar-tile:active { transform: scale(.97); }
.ar-tile .ar-ti { grid-row: 1 / 3; }
.ar-tile b { font-size: .84rem; line-height: 1.2; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.ar-tile small { font-size: .78rem; font-weight: 800; color: var(--gc); font-variant-numeric: tabular-nums; }
.ar-ti { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: #fff; background: var(--gc); box-shadow: 0 6px 14px transparent; box-shadow: 0 6px 14px color-mix(in srgb, var(--gc) 35%, transparent); }
.ar-h { font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 14px 2px 6px; }

/* one category */
.ar-gh { display: grid; gap: 8px; margin-bottom: 8px; }
.ar-gh h3 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.ar-gh h3 small { font-size: .8rem; color: var(--gc); font-weight: 800; }
.ar-back { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: .76rem; font-weight: 700;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }
.ar-back svg { transform: scaleX(-1); }
.ar-subs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 8px; padding: 2px 18px; }
.ar-subs::-webkit-scrollbar { display: none; }
.ar-sub { flex: 0 0 auto; min-height: 34px; padding: 0 12px; border-radius: 999px; font-size: .78rem; font-weight: 700; white-space: nowrap;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }
.ar-sub small { color: var(--muted); font-weight: 800; margin-left: 2px; }
.ar-sub[aria-pressed="true"] { background: var(--glass); background: color-mix(in srgb, var(--accent) 16%, var(--glass)); border-color: var(--accent); }

/* rows */
.ar-list { list-style: none; display: grid; gap: 6px; margin: 0; padding: 0; }
.ar-row { width: 100%; display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 16px; text-align: left;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); transition: transform .2s var(--ease), border-color .2s; }
.ar-row:active { transform: scale(.985); border-color: var(--gc); }
.ar-dot { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--gc); background: transparent; background: color-mix(in srgb, var(--gc) 16%, transparent); }
.ar-tx { flex: 1; min-width: 0; display: grid; line-height: 1.25; }
.ar-tx b { font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-tx small { font-size: .72rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ar-tx small:empty { display: none; }
.ar-d { flex: 0 0 auto; display: grid; justify-items: end; line-height: 1.2; font-variant-numeric: tabular-nums; }
.ar-d b { font-size: .82rem; }
.ar-d small { display: inline-flex; align-items: center; gap: 3px; font-size: .68rem; color: var(--muted); }
.ar-more { width: 100%; margin-top: 8px; min-height: 42px; border-radius: 14px; font-weight: 800; font-size: .84rem;
  background: var(--glass); border: 1px dashed var(--glass-border); color: var(--text); }
.ar-more small { color: var(--muted); }

/* loading */
.ar-load { display: grid; justify-items: center; gap: 12px; padding: 34px 0; color: var(--muted); font-size: .86rem; }
.ar-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid transparent; border: 3px solid color-mix(in srgb, var(--accent) 22%, transparent); border-top-color: var(--accent); animation: arSpin .8s linear infinite; }
/* small spinner next to the count while more categories are still arriving */
.ar-spin.sm { width: 14px; height: 14px; border-width: 2px; align-self: center; }
@keyframes arSpin { to { transform: rotate(360deg); } }

/* the button on the scanned-plaque badge */
.sb-around { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 11px; border-radius: 999px; font-size: .74rem; font-weight: 800;
  color: var(--accent-ink); background: var(--accent); margin-left: auto; }
.sb-around + .sb-exit { margin-left: 6px; }

@media (max-width: 359px) {
  .ar-grid { grid-template-columns: 1fr 1fr; }
  .ar-tile { grid-template-columns: 1fr; text-align: left; }
  .ar-tile .ar-ti { grid-row: auto; margin-bottom: 6px; width: 34px; height: 34px; }
}
@media (prefers-reduced-motion: reduce) { .ar-spin { animation-duration: 2.4s; } }

/* open now · sort */
.ar-tools { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.ar-tg { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 13px 0 10px; border-radius: 999px; font-size: .78rem; font-weight: 800;
  background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }
.ar-tg i { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); opacity: .6; transition: background-color .25s, box-shadow .25s; }
.ar-tg[aria-pressed="true"] { border-color: #10B981; background: var(--glass); background: color-mix(in srgb, #10B981 14%, var(--glass)); }
.ar-tg[aria-pressed="true"] i { background: #10B981; opacity: 1; box-shadow: 0 0 0 3px transparent; box-shadow: 0 0 0 3px color-mix(in srgb, #10B981 30%, transparent); }
.ar-sort { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-border); }
.ar-sort button { min-height: 28px; padding: 0 11px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: var(--muted); }
.ar-sort button[aria-pressed="true"] { color: var(--text); background: transparent; background: color-mix(in srgb, var(--accent) 20%, transparent); }

/* row extras */
.ar-oh { display: inline-block; margin-right: 6px; padding: 1px 6px; border-radius: 6px; font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .02em;
  color: var(--muted); background: transparent; background: color-mix(in srgb, var(--muted) 16%, transparent); vertical-align: 1px; }
.ar-oh.on { color: #10B981; background: transparent; background: color-mix(in srgb, #10B981 16%, transparent); }
.ar-dir { display: inline-grid; place-items: center; width: 12px; height: 12px; transform: rotate(var(--deg)); color: var(--accent); }

/* category header row + map button */
.ar-ghr { display: flex; justify-content: space-between; gap: 8px; }
.ar-map { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px 6px 9px; border-radius: 999px; font-size: .76rem; font-weight: 800;
  color: #fff; background: var(--gc); box-shadow: 0 6px 14px transparent; box-shadow: 0 6px 14px color-mix(in srgb, var(--gc) 35%, transparent); }
.ar-map:disabled { opacity: .45; box-shadow: none; }

/* the pill on the map while a category is shown */
.ar-pill { position: absolute; z-index: 800; left: 50%; top: 10px; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; max-width: calc(100% - 20px);
  padding: 5px 5px 5px 6px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); border: 1px solid color-mix(in srgb, var(--gc) 45%, var(--glass-border));
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 10px 26px rgba(0, 0, 0, .35); color: var(--text); white-space: nowrap; }
.ar-pill .ar-ti { width: 26px; height: 26px; border-radius: 50%; }
.ar-pill b { font-size: .78rem; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ar-pill button { flex: 0 0 auto; min-height: 28px; padding: 0 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; background: var(--glass); border: 1px solid var(--glass-border); color: var(--text); }
.ar-pill button[data-arhide] { width: 28px; padding: 0; display: grid; place-items: center; }

/* Explore: "Around me" chip — gold outline so it reads as an action, not a filter */
.chip.chip-around { border-color: var(--gold, #D4AF37); border-color: color-mix(in srgb, var(--gold, #D4AF37) 60%, transparent); color: var(--gold, #D4AF37); font-weight: 800; }
.chip.chip-around svg { color: inherit; }

/* styles/05-theme.css */
/* sQReet · theme refinements & live-data bits
   (cascade order matters – files are linked in index.html in this order) */
/* ===== layer: theme.css ===== */

/* ==========================================================
   sQReet 2026 · Quiet Luxury theme layer (loaded last)
   Obsidian · brushed titanium · emerald · champagne gold
   ========================================================== */
:root, [data-theme="dark"] {
  --bg: #0A0F14; --card: #131A22; --text: #F1F5F9; --muted: #94A3B8;
  --accent: #D4AF37; --emerald: #D4AF37; --gold: #D4AF37; --accent-ink: #2A1E04;
  --border: rgba(212, 175, 55, .16); --line: rgba(241, 245, 249, .09);
  --glass: rgba(19, 26, 34, .62); --glass-strong: rgba(16, 22, 29, .92); --glass-tint: rgba(19, 26, 34, .62);
  --glass-border: rgba(241, 245, 249, .08); --glass-shine: rgba(255, 255, 255, .06);
  --sky1: #0E151C; --sky2: #1A2832; --bldg: #18222C; --ink: #E8EDF2; --pin-core: #0D1318;
  --t-free: #94A3B8; --t-eco: #10B981; --t-boost: #14B8A6; --t-premier: #D4AF37;
  --glow-accent: 0 0 0 1px color-mix(in srgb, var(--accent) 26%, transparent), 0 12px 28px -14px color-mix(in srgb, var(--accent) 45%, transparent);
  --glow-gold: 0 0 0 1px color-mix(in srgb, var(--gold) 38%, transparent), 0 12px 30px -16px color-mix(in srgb, var(--gold) 50%, transparent);
}
[data-theme="light"] {
  --bg: #FAFAFA; --card: #FFFFFF; --text: #0F172A; --muted: #64748B;
  --accent: #A8862A; --emerald: #A8862A; --gold: #B08D2A; --accent-ink: #FFFFFF;
  --border: rgba(15, 23, 42, .1); --line: rgba(15, 23, 42, .1);
  --glass: rgba(255, 255, 255, .74); --glass-strong: rgba(255, 255, 255, .95); --glass-tint: rgba(255, 255, 255, .72);
  --glass-border: rgba(15, 23, 42, .09); --glass-shine: rgba(255, 255, 255, .9);
  --sky1: #F2F6F5; --sky2: #DCE7E3; --bldg: #E4EBE9; --ink: #0F172A; --pin-core: #FFFFFF;
  --t-free: #64748B; --t-eco: #059669; --t-boost: #0F766E; --t-premier: #B8962E;
  --glow-accent: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, transparent), 0 10px 24px -12px rgba(15, 23, 42, .18);
  --glow-gold: 0 0 0 1px color-mix(in srgb, var(--gold) 40%, transparent), 0 10px 24px -12px rgba(15, 23, 42, .18);
}
:root { --frame-w: 460px; }

body { font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
body::before { opacity: .55; }

/* ---------- header ---------- */
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; min-height: 36px; }
.auth-mount { min-width: 0; }
.aqi-chip:empty { display: none; }
.aqi-chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 999px; font-size: .72rem; white-space: nowrap;
  background: var(--glass-tint); border: 1px solid var(--glass-border); box-shadow: inset 0 1px 0 var(--rim, transparent); }
.aqi-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); }
.aqi-chip i.live { background: var(--accent); box-shadow: 0 0 0 3px transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.aqi-chip b { font-weight: 800; } .aqi-chip span { color: var(--muted); }
.logo-lockup { gap: 12px; }
.logo { font-family: "Plus Jakarta Sans", "Inter", sans-serif; font-weight: 800; font-size: 1.9rem; letter-spacing: -.045em;
  background: none !important; color: var(--text) !important; -webkit-text-fill-color: currentColor; animation: none !important; }
.logo span { background-image: linear-gradient(135deg, #F3E2A9, #D4AF37 45%, #9C7A1E) !important; -webkit-background-clip: text !important; background-clip: text !important; -webkit-text-fill-color: transparent; color: transparent; }
[data-theme="light"] .logo span { background-image: linear-gradient(135deg, #C9A23A, #8C6D17) !important; }
.slogan { font-size: .76rem; }
.eco-badge { border-color: transparent; border-color: color-mix(in srgb, var(--gold) 45%, transparent); }

/* ---------- quiet luxury: soften glows & neon ---------- */
path.route-glow { stroke: var(--accent); filter: blur(5px); }
path.route-line { stroke: var(--accent); filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
path.route-flow { stroke: #ECFDF5; }
.route-chip { border-color: transparent !important; border-color: color-mix(in srgb, var(--accent) 45%, transparent) !important; box-shadow: inset 0 1px 0 var(--rim, transparent), var(--depth, none) !important; }
.rc-ico { color: var(--accent); filter: none; }
.btn-soft.route { --bc: var(--accent); }
.btn-primary, .tb-btn, .pillar[aria-pressed="true"], .segmented button[aria-pressed="true"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #F5DC8A 0%, #D4AF37 45%, #A8862A 100%) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -12px var(--accent) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 24px -12px color-mix(in srgb, var(--accent) 70%, transparent) !important;
}
[data-theme="light"] .btn-primary, [data-theme="light"] .tb-btn, [data-theme="light"] .pillar[aria-pressed="true"], [data-theme="light"] .segmented button[aria-pressed="true"] { color: #fff; }
.pin--eco .pin-svg { filter: drop-shadow(0 4px 3px rgba(0, 0, 0, .35)); }
.pin--boost .pin-svg { filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .38)) drop-shadow(0 0 6px transparent); filter: drop-shadow(0 6px 5px rgba(0, 0, 0, .38)) drop-shadow(0 0 6px color-mix(in srgb, var(--t-boost) 45%, transparent)); }
.pin--premier .pin-svg { filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .4)) drop-shadow(0 0 10px var(--t-premier)); filter: drop-shadow(0 8px 6px rgba(0, 0, 0, .4)) drop-shadow(0 0 10px color-mix(in srgb, var(--t-premier) 55%, transparent)); }
.pin-offer { color: #F0FDFA; background: linear-gradient(135deg, #14B8A6, #0F766E); }
.scan-fab { background: linear-gradient(180deg, rgba(255, 255, 255, .4), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #F3E2A9, #D4AF37 45%, #9C7A1E); }
.scan-ico { color: #D4AF37; background: #0A0F14; }

/* ---------- frame & map size (always explicit → tiles never render blank) ---------- */
html body #map { height: 400px !important; min-height: 400px !important; max-height: none !important; }
html body.mode-default #map { height: 460px !important; min-height: 460px !important; }
@media (min-width: 560px) {
  html { background: #05080B; }
  html[data-theme="light"] { background: #E9EEEC; }
}

/* ---------- live data bits ---------- */
.aq-card { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: var(--glass-tint); border: 1px solid var(--glass-border); }
.aq-dial { --p: 20; position: relative; width: 62px; height: 62px; flex: 0 0 auto; display: grid; place-content: center; text-align: center; border-radius: 50%;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), transparent 0); background: conic-gradient(var(--accent) calc(var(--p) * 1%), color-mix(in srgb, var(--text) 10%, transparent) 0); }
.aq-dial::before { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--card); }
.aq-dial b, .aq-dial small { position: relative; line-height: 1; } .aq-dial b { font-size: 1.15rem; } .aq-dial small { font-size: .55rem; color: var(--muted); letter-spacing: .1em; }
.aq-txt { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.aq-txt small { font-size: .64rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.aq-txt b { font-size: 1rem; } .aq-txt em { font-style: normal; font-size: .78rem; } .aq-txt i { font-style: normal; font-size: .68rem; color: var(--accent); }
.osrm-tag { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); margin-top: -4px; }
.app-footer { display: grid; gap: 4px; }
.credits { opacity: .75; font-size: .66rem; }

/* src/features/transit/transit.css */
/* sQReet · Transit – live city transit hub
   (cascade order matters – files are linked in index.html in this order) */
/* ===== layer: transit.css ===== */
/* ==========================================================
   sQReet – Live City Transit hub (vibrant dark UI)
   Buses · Trams · Suburban Rail (Proastiakos) · Trains
   ========================================================== */
.transit-hub, .veh-icon, .leaflet-tooltip {
  --surface: var(--glass-strong); --surface-2: color-mix(in srgb, var(--text) 5%, transparent);
  --line-strong: color-mix(in srgb, var(--text) 22%, transparent); --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --radius: 22px; --pad: 16px; --warn: #F59E0B;
}
path.tr-line { filter: none; }
.center-pin span { box-shadow: 0 0 0 2px var(--gold) !important; }
.alert-pin span { box-shadow: none !important; border-width: 1.5px !important; }
.alert-pin span::after { content: none !important; }

/* flat place markers */
.sq-pin { background: none !important; border: 0 !important; }
.sq-pin .pin { position: relative; width: 100%; height: 100%; animation: none !important; transform: none !important; }
.sq-pin .mk { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: var(--surface); border: 1.5px solid var(--t-free); color: var(--t-free);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .35); transition: transform .15s ease; }
.pin--eco .mk { border-color: var(--t-eco); color: var(--t-eco); }
.pin--boost .mk { border-color: var(--t-boost); color: var(--t-boost); border-width: 2px; }
.pin--premier .mk { border-color: var(--t-premier); color: var(--t-premier); border-width: 2px; }
.sq-pin:hover .mk { transform: scale(1.08); }
.mk-badge { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; font-size: 9px; font-weight: 700;
  background: var(--bg); border: 1px solid var(--line); }
.mk-badge--premier { color: var(--t-premier); } .mk-badge--premier svg { width: 10px; height: 10px; }
.mk-badge--boost { color: var(--t-boost); }
.pin-crowd { top: -8px !important; left: -10px !important; border: 1px solid var(--bg) !important; box-shadow: none !important; font-size: 9px !important; animation: none !important; }
.pin[data-crowd] .mk { filter: none !important; }
.pin-duty { box-shadow: none !important; }

/* live vehicles */
.veh-icon { background: none !important; border: 0 !important; }
.veh { position: relative; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--c); color: #0F172A; border: 2px solid var(--bg); }
.veh svg { stroke-width: 1.75; }
.veh-dir { position: absolute; inset: -9px; pointer-events: none; }
.veh-dir::before { content: ""; position: absolute; left: 50%; top: 0; margin-left: -4px; border: 4px solid transparent; border-top: 0; border-bottom: 6px solid var(--c); }

/* ---------- Live City Transit hub ---------- */
.transit-hub { display: grid; gap: 12px; padding: var(--pad); border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.th-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.th-head h2 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.th-head p { font-size: 12px; color: var(--muted); margin-top: 2px; }
.th-live { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--accent); background: var(--accent-soft); }
.th-pills { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.th-pills::-webkit-scrollbar { display: none; }
.th-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface-2); font-size: 12px; font-weight: 500; color: var(--muted); }
.th-pill:hover { color: var(--text); }
.th-pill[aria-pressed="true"] { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.th-list { list-style: none; display: grid; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.th-row + .th-row { border-top: 1px solid var(--line); }
.th-main { width: 100%; display: grid; grid-template-columns: auto auto 1fr auto auto; align-items: center; gap: 10px; padding: 12px; text-align: left; background: var(--surface); transition: background-color .15s; }
.th-main:hover { background: var(--surface-2); }
.th-row.open .th-main { background: var(--surface-2); }
.th-mode { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; color: var(--c); background: transparent; background: color-mix(in srgb, var(--c) 14%, transparent); }
.th-badge { min-width: 42px; padding: 3px 6px; border-radius: 6px; text-align: center; font-size: 12px; font-weight: 700; color: #0F172A; background: var(--c); white-space: nowrap; }
.th-name { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.th-name b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-name small { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-live-dot { position: relative; width: 6px; height: 6px; flex: 0 0 auto; border-radius: 50%; background: var(--accent); }
.th-live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--accent); animation: liveDot 1.8s ease-out infinite; }
@keyframes liveDot { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.6); opacity: 0; } }
.th-eta { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.2; }
.th-eta b { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.th-eta small { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.th-chev { color: var(--muted); transition: transform .2s ease; }
.th-row.open .th-chev { transform: rotate(180deg); }
.th-detail { padding: 4px 12px 14px 54px; background: var(--surface-2); display: grid; gap: 10px; }
.th-sub { font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.tl { list-style: none; display: grid; gap: 0; position: relative; }
.tl li { position: relative; display: flex; align-items: center; gap: 10px; padding: 5px 0 5px 18px; font-size: 13px; }
.tl li::before { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 1.5px; background: var(--line); }
.tl li:first-child::before { top: 50%; } .tl li:last-child::before { bottom: 50%; }
.tl li i { position: absolute; left: 0; width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-strong); background: var(--surface-2); }
.tl li.tl-done { color: var(--muted); } .tl li.tl-done i { background: var(--line-strong); border-color: var(--line-strong); }
.tl li.tl-done::before { background: var(--line-strong); }
.tl li.tl-next { font-weight: 600; } .tl li.tl-next i { border-color: var(--accent); background: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.tl li em, .tl li small { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.tl li.tl-next em { color: var(--accent); font-weight: 600; }
.th-alert, .th-ok { display: flex; align-items: flex-start; gap: 8px; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.4; }
.th-alert { color: var(--text); background: transparent; background: color-mix(in srgb, var(--warn) 12%, transparent); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); }
.th-alert svg { color: var(--warn); margin-top: 1px; } .th-alert b { color: var(--warn); font-weight: 600; }
.th-ok { color: var(--muted); border: 1px solid var(--line); } .th-ok svg { color: var(--accent); }
.th-more { justify-self: center; padding: 6px 12px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--accent); }
.th-more:hover { background: var(--accent-soft); }
.th-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 11px; color: var(--muted); padding-top: 2px; }
.th-empty { padding: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.transit-hub[hidden] { display: none; }

/* ---------- vibrant depth layer ---------- */
.transit-hub { margin: 14px 0 6px; position: relative; overflow: hidden;
  background: linear-gradient(160deg, var(--glass-strong), var(--glass-strong) 55%) !important; background: linear-gradient(160deg, color-mix(in srgb, var(--accent) 10%, var(--glass-strong)), var(--glass-strong) 55%) !important;
  border: 1px solid var(--glass-border) !important; border-radius: 22px !important;
  box-shadow: 0 24px 50px -28px rgba(0, 0, 0, .75), inset 0 1px 0 var(--glass-shine); }
.transit-hub::before { content: ""; position: absolute; right: -70px; top: -70px; width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle, transparent, transparent 70%); background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%); pointer-events: none; }
.transit-hub h2 { margin: 0; font-size: 1.05rem !important; font-weight: 800 !important; letter-spacing: -.02em; }
.transit-hub p { margin: 0; }
.th-live { color: var(--accent); background: var(--accent-soft); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); border-radius: 999px !important; letter-spacing: .06em; }
.th-pill { border-radius: 999px !important; border: 1px solid var(--glass-border) !important; background: var(--glass) !important; color: var(--muted); font-weight: 700; font-size: .78rem; }
.th-pill[aria-pressed="true"] { color: #2A1E04 !important; border-color: transparent !important;
  background: linear-gradient(135deg, #F5DC8A, #D4AF37 55%, #A8862A) !important; box-shadow: 0 8px 18px -10px rgba(212, 175, 55, .8); }
[data-theme="light"] .th-pill[aria-pressed="true"] { color: #fff !important; }
.th-list { padding: 0; margin: 0; border-radius: 16px !important; border-color: var(--glass-border) !important; background: transparent; background: color-mix(in srgb, var(--bg) 35%, transparent); }
.th-row + .th-row { border-top-color: var(--glass-border) !important; }
.th-main { background: none; border: 0; color: inherit; cursor: pointer; text-align: left; font: inherit; }
.th-mode { border-radius: 12px !important; box-shadow: inset 0 0 0 1px transparent, 0 6px 14px -8px var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent), 0 6px 14px -8px var(--c); }
.th-badge { background: linear-gradient(135deg, var(--c), var(--c)) !important; background: linear-gradient(135deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)) !important; color: #0B1117 !important; border-radius: 8px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 10px -6px var(--c); }
.th-eta b { color: var(--text); }
.th-more { background: none; border: 0; cursor: pointer; font: inherit; }
.tl li.tl-next i { box-shadow: 0 0 0 4px var(--accent-soft), 0 0 12px var(--accent) !important; }
path.tr-line { filter: drop-shadow(0 0 4px currentColor); }
.veh { box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .6), 0 0 0 3px transparent, inset 0 1px 0 rgba(255, 255, 255, .5) !important; box-shadow: 0 6px 14px -4px rgba(0, 0, 0, .6), 0 0 0 3px color-mix(in srgb, var(--c) 30%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5) !important;
  background: linear-gradient(145deg, var(--c), var(--c) 60%) !important; background: linear-gradient(145deg, color-mix(in srgb, var(--c) 65%, #fff), var(--c) 60%) !important; color: #0B1117 !important; }
.veh-dir::before { border-bottom-color: var(--c) !important; }

/* ---------- PWA install chip ---------- */
.pwa-chip { position: fixed; z-index: 1300; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); width: min(420px, calc(100% - 28px));
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 10px; border-radius: 18px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--glass-strong); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .8); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .5s; }
.pwa-chip.in { transform: translate(-50%, 0); opacity: 1; }
.pwa-ico img { display: block; border-radius: 8px; }
.pwa-go { flex: 1; text-align: left; display: grid; gap: 1px; font-size: .86rem; }
.pwa-go small { color: var(--muted); font-size: .72rem; }
.pwa-chip[data-mode="prompt"] .pwa-go b { color: var(--gold); }
.pwa-x { width: 32px; height: 32px; border-radius: 10px; font-size: 1.2rem; color: var(--muted); }

/* ---------- real stops near the plaque (transit-stops.js) ---------- */
#transitHub .th-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
#transitHub .ts-count { min-width: 38px; padding: 6px 10px; border-radius: 12px; text-align: center; font-weight: 800; color: #1a1205;
  background: linear-gradient(135deg, #F5DC8A, #D4AF37 55%, #A8862A); box-shadow: 0 3px 0 #6b520c; }
.ts-list { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.ts-row { display: grid; grid-template-columns: 42px 1fr auto; align-items: center; gap: 12px; padding: 12px; border-radius: 16px;
  background: linear-gradient(180deg, var(--panel, #111a24), var(--panel, #111a24)); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, var(--panel, #111a24)), var(--panel, #111a24)); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
  box-shadow: 0 2px 0 #000, 0 12px 22px -14px rgba(0, 0, 0, .7); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 30%, #000), 0 12px 22px -14px rgba(0, 0, 0, .7); }
.ts-mode { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; color: #fff;
  background: linear-gradient(145deg, var(--c), var(--c)); background: linear-gradient(145deg, color-mix(in srgb, var(--c) 80%, #fff), color-mix(in srgb, var(--c) 80%, #000)); box-shadow: 0 3px 0 #000; box-shadow: 0 3px 0 color-mix(in srgb, var(--c) 45%, #000); }
.ts-main { display: grid; gap: 6px; min-width: 0; }
.ts-main b { font-size: .98rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ts-main small { color: var(--muted); font-size: .76rem; }
.ts-lines { display: flex; flex-wrap: wrap; gap: 4px; }
.ts-lines i { padding: 2px 7px; border-radius: 6px; font-family: inherit; font-size: .7rem; font-weight: 800; line-height: 1.35; font-style: normal; color: #fff; background: var(--l, #64748b); box-shadow: 0 2px 0 var(--l, #64748b); box-shadow: 0 2px 0 color-mix(in srgb, var(--l, #64748b) 55%, #000); }
.ts-lines i.more { background: transparent; background: color-mix(in srgb, var(--text, #fff) 18%, transparent); color: var(--text); box-shadow: none; }
.ts-act { display: flex; gap: 6px; }
.ts-act a { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--text); text-decoration: none;
  background: transparent; background: color-mix(in srgb, var(--text, #fff) 7%, transparent); border: 1px solid var(--line, rgba(255,255,255,.1)); }
.ts-act a:active { transform: translateY(2px); }
.ts-more { width: 100%; margin-top: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line, rgba(255,255,255,.1)); background: transparent; color: var(--gold, #D4AF37); font-weight: 700; cursor: pointer; }
.ts-none { padding: 18px; text-align: center; color: var(--muted); }
.ts-foot { margin: 12px 2px 0; color: var(--muted); font-size: .72rem; line-height: 1.45; }

/* styles/06-global.css */
/* sQReet · global engine – geo switch, walk plan, safe-link, weather, safety card, OSM fallback tiles
   (cascade order matters – files are linked in index.html in this order) */
/* ==========================================================
   sQReet – global layer (loaded last)
   3D elevation · black bezel in light mode · fixed-size blocks in all languages
   presets / search / radius / walk plan / Safe-Link / weather / reset / audio guide
   ========================================================== */

/* ---------- tier pin colours (Free slate · Eco emerald · Boost royal blue · Premier brushed gold) ---------- */
html[data-theme], html[data-theme="dark"], html[data-theme="light"] {
  --t-free: #64748B; --t-eco: #10B981; --t-boost: #2563EB; --t-premier: #D4AF37;
}
html[data-theme="dark"] { --t-free: #7C8BA1; }   /* a touch lighter so slate stays visible on dark tiles */
.sq-pin--premier { z-index: 9999 !important; }

/* ---------- 3D layered elevation + bevel tokens ---------- */
:root, html[data-theme="dark"] {
  --bevel: inset 0 1px 0 rgba(255, 255, 255, .09), inset 0 -1px 0 rgba(0, 0, 0, .45);
  --elev-1: 0 1px 1px rgba(0, 0, 0, .45), 0 3px 6px -1px rgba(0, 0, 0, .45), 0 10px 20px -10px rgba(0, 0, 0, .65);
  --elev-2: 0 1px 1px rgba(0, 0, 0, .5), 0 4px 8px -2px rgba(0, 0, 0, .5), 0 16px 32px -12px rgba(0, 0, 0, .75), 0 30px 60px -30px rgba(0, 0, 0, .8);
  --edge: rgba(255, 255, 255, .10);
}
html[data-theme="light"] {
  --bevel: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 -1px 0 rgba(15, 23, 42, .10);
  --elev-1: 0 1px 1px rgba(15, 23, 42, .08), 0 3px 6px -1px rgba(15, 23, 42, .10), 0 10px 20px -10px rgba(15, 23, 42, .22);
  --elev-2: 0 1px 1px rgba(15, 23, 42, .08), 0 4px 10px -2px rgba(15, 23, 42, .12), 0 18px 36px -14px rgba(15, 23, 42, .28), 0 34px 60px -32px rgba(15, 23, 42, .30);
  --edge: rgba(15, 23, 42, .12);
}
.glass, .pillar-panel, .transit-hub, .walk-card, .segmented, .city-search, .radius-toggle, .eco-badge, .aqi-chip,
.stat, .tgl, .al-row, .rp-row, .loc-card, .ride-card, .c-card, .poi-item, .poi-list > *, .th-list {
  box-shadow: var(--bevel), var(--elev-1) !important;
  border-color: var(--edge) !important;
}
.map-wrap, .sheet-panel, .modal-panel, .transport-bar, .transit-hub, .walk-card, .gl-card {
  box-shadow: var(--bevel), var(--elev-2) !important;
}
.map-wrap { border: 1px solid var(--edge); }
.pillar, .chip, .back-link, .lang-switch, .theme-toggle, .btn-soft, .reset-btn, .ag-btn, .th-pill, .qa {
  box-shadow: var(--bevel), var(--elev-1) !important;
}
.btn-primary, .tb-btn, .segmented button[aria-pressed="true"], .pillar[aria-pressed="true"], .radius-toggle button[aria-pressed="true"], .walkplan-btn {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 3px rgba(0, 0, 0, .25), 0 10px 22px -10px var(--accent) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), inset 0 -2px 0 rgba(0, 0, 0, .18), 0 2px 3px rgba(0, 0, 0, .25), 0 10px 22px -10px color-mix(in srgb, var(--accent) 70%, transparent) !important;
}
.sos-fab { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), inset 0 -2px 0 rgba(0, 0, 0, .25), 0 3px 6px rgba(0, 0, 0, .35), 0 14px 28px -10px rgba(220, 38, 38, .7) !important; }

/* ---------- black phone bezel in light mode (desktop / tablet frame) ---------- */
@media (min-width: 560px) {
  html[data-theme="light"] body {
    margin: 30px auto;
    border-color: #1E293B !important;
    box-shadow:
      0 0 0 10px #0F172A,
      0 0 0 11px #1E293B,
      0 0 0 12px #334155,
      0 2px 0 12px rgba(255, 255, 255, .5),
      0 30px 60px -10px rgba(15, 23, 42, .45),
      0 60px 120px -40px rgba(15, 23, 42, .55) !important;
  }
  html[data-theme="dark"] body {
    box-shadow: 0 0 0 10px #05080D, 0 0 0 11px #1E293B, 0 0 0 12px rgba(255, 255, 255, .06), 0 40px 100px -30px rgba(0, 0, 0, .85) !important;
  }
  body { padding-bottom: 0 !important; min-height: 0 !important; }
}

/* ---------- compact bottom: no empty void below the footer ---------- */
body, body.mode-default { padding-bottom: 0 !important; }
.app-footer { padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important; }
body.mode-default .app-footer { padding-bottom: calc(176px + env(safe-area-inset-bottom)) !important; }
@media (min-width: 560px) { .app-footer { border-radius: 0 0 36px 36px; } }

/* ---------- header: tools row (audio guide · reset) + weather pill ---------- */
.tools-row { display: grid; grid-template-columns: minmax(0, 1fr) 136px; gap: 8px; margin-top: 8px; height: 44px; }
.ag-btn {
  display: flex; align-items: center; gap: 10px; min-width: 0; height: 44px; padding: 0 12px; border-radius: 14px; text-align: left;
  background: var(--glass); border: 1px solid var(--edge); color: var(--text); cursor: pointer;
}
.ag-wave { display: inline-flex; align-items: center; gap: 2px; height: 20px; width: 26px; flex: none; }
.ag-wave i { display: block; width: 3px; height: 30%; border-radius: 2px; background: var(--accent); transition: height .3s; }
.ag-wave i:nth-child(2) { height: 60%; } .ag-wave i:nth-child(3) { height: 90%; } .ag-wave i:nth-child(4) { height: 55%; } .ag-wave i:nth-child(5) { height: 35%; }
.ag-btn.playing .ag-wave i { animation: agWave .9s ease-in-out infinite; }
.ag-btn.playing .ag-wave i:nth-child(2) { animation-delay: -.2s; } .ag-btn.playing .ag-wave i:nth-child(3) { animation-delay: -.45s; }
.ag-btn.playing .ag-wave i:nth-child(4) { animation-delay: -.65s; } .ag-btn.playing .ag-wave i:nth-child(5) { animation-delay: -.8s; }
@keyframes agWave { 0%, 100% { height: 20%; } 50% { height: 100%; } }
.ag-btn.playing { border-color: var(--accent) !important; border-color: color-mix(in srgb, var(--accent) 60%, transparent) !important; }
.ag-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.ag-txt b, .ag-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-txt b { font-size: .8rem; } .ag-txt small { font-size: .66rem; color: var(--muted); }
.reset-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; width: 100%; min-width: 0; padding: 0 10px; border-radius: 14px;
  font-size: .74rem; font-weight: 700; color: var(--muted); background: var(--glass); border: 1px solid var(--edge); cursor: pointer;
}
.reset-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.reset-btn:hover { color: var(--text); }
.auth-row { height: 36px; min-height: 36px; }
.aqi-chip .aq-temp { color: var(--gold); }
.header-top { height: 40px; }
.back-link { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
.brand-row { min-height: 64px; }
.eco-badge { width: 158px; min-height: 50px; }
.eco-text strong, .eco-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- geo-switch: presets · search · radius · walk plan (visible in both views) ---------- */
body.mode-default section.geo-switch, body.mode-scan section.geo-switch { display: grid !important; gap: 8px; }
.geo-switch .section-label { margin-bottom: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cityPresets { grid-template-columns: repeat(3, minmax(0, 1fr)); height: 58px; }
#cityPresets button { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1px; padding: 6px 4px; min-width: 0; }
#cityPresets .seg-title { font-size: .86rem; font-weight: 800; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#cityPresets .seg-sub { font-size: .68rem; font-weight: 700; opacity: .75; }
.city-search { position: relative; z-index: 60; display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 16px; color: var(--muted); }
.city-search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: .9rem; }
.city-search input::placeholder { color: var(--muted); }
.city-search:focus-within { border-color: var(--accent) !important; border-color: color-mix(in srgb, var(--accent) 60%, transparent) !important; }
.cs-results { position: absolute; z-index: 1200; left: 0; right: 0; top: calc(100% + 6px); padding: 6px; border-radius: 16px; display: grid; gap: 2px; max-height: 300px; overflow: auto;
  background: var(--bg) !important; }
.cs-results[hidden] { display: none; }
.cs-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; text-align: left; color: var(--text); background: none; border: 0; cursor: pointer; font: inherit; }
.cs-item:hover, .cs-item:focus-visible { background: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); outline: 0; }
.cs-item svg { color: var(--accent); flex: none; }
.cs-item b { display: block; font-size: .88rem; } .cs-item small { color: var(--muted); font-size: .72rem; }
.cs-msg { margin: 0; padding: 10px; color: var(--muted); font-size: .82rem; }
.geo-tools { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; height: 44px; }
.radius-toggle { display: grid; grid-template-columns: repeat(3, auto); gap: 3px; padding: 3px; border-radius: 14px; }
.radius-toggle button { padding: 0 10px; border-radius: 11px; font-weight: 800; font-size: .76rem; color: var(--muted); white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: inherit; }
.radius-toggle button[aria-pressed="true"] { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--gold))); }
.walkplan-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; padding: 0 12px; border-radius: 14px; border: 0; cursor: pointer;
  font: inherit; font-weight: 800; font-size: .78rem; color: var(--accent-ink);
  background: linear-gradient(180deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #F5DC8A, #D4AF37 50%, #A8862A);
}
.walkplan-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- 5 pillar tabs: always fit the viewport, fixed size in every language ---------- */
.pillars { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; overflow: visible !important; padding: 2px 0 10px !important; }
.pillar { flex-direction: column; justify-content: center; gap: 4px; height: 60px; min-width: 0; padding: 6px 3px !important; font-size: .64rem !important; text-align: center; }
.pillar span { display: block; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: -.01em; }
.pillar--main::after { display: none !important; }
.pp-head em { display: none; }

/* ---------- warm-weather banner ---------- */
.warm-banner { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 10px 10px 10px 12px; border-radius: 18px; margin-bottom: 10px;
  border-color: #F59E0B !important; border-color: color-mix(in srgb, #F59E0B 55%, transparent) !important; background: linear-gradient(135deg, rgba(245, 158, 11, .14), transparent 70%), var(--glass) !important; }
.warm-banner[hidden] { display: none; }
.wb-ico { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: #F59E0B; background: rgba(245, 158, 11, .16); }
.wb-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.wb-txt b { font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wb-txt small { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-go { padding: 8px 12px; border-radius: 12px; border: 0; font: inherit; font-weight: 800; font-size: .72rem; color: #2A1704; background: linear-gradient(135deg, #FCD34D, #F59E0B); cursor: pointer; white-space: nowrap; }
.wb-x { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: var(--muted); background: none; border: 0; cursor: pointer; }

/* ---------- Smart Walk Plan ---------- */
path.wp-glow { stroke: var(--gold); }
path.wp-line { stroke: var(--gold); }
.wp-stop { background: none; border: 0; }
.wp-num { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: .8rem; color: #0B1117;
  border: 2px solid #fff; box-shadow: 0 4px 10px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .6); }
.wp-landmark { background: linear-gradient(135deg, #C4B5FD, #8B5CF6); }
.wp-park { background: linear-gradient(135deg, #6EE7B7, #10B981); }
.wp-cafe { background: linear-gradient(135deg, #F5DC8A, #D4AF37); }
.walk-card { display: none; gap: 10px; padding: 14px; border-radius: 22px; margin-top: 12px; }
.walk-card.show { display: grid; animation: rise .45s var(--ease); }
.wc-head { display: flex; align-items: center; gap: 8px; color: var(--gold); }
.wc-head b { color: var(--text); font-size: .95rem; flex: 1; }
.wc-x { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--glass); border: 1px solid var(--edge); color: var(--muted); cursor: pointer; }
.wc-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.wc-stops li { display: flex; align-items: center; gap: 10px; min-height: 40px; }
.wc-stops li > span:last-child { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.wc-stops b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .wc-stops small { color: var(--muted); font-size: .7rem; }
.wc-stats { margin: 0; font-size: .8rem; font-weight: 700; }
.wc-src { margin: 0; font-size: .72rem; color: var(--muted); } .wc-src b { color: var(--gold); }

/* ---------- Family Safe-Link ---------- */
.safelink-btn { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border-radius: 18px; text-align: left; cursor: pointer; font: inherit;
  color: var(--text); background: linear-gradient(135deg, rgba(96, 165, 250, .14), transparent 70%), var(--glass); border: 1px solid transparent; border: 1px solid color-mix(in srgb, #60A5FA 45%, transparent);
  box-shadow: var(--bevel), var(--elev-1); }
.safelink-btn svg { color: #60A5FA; flex: none; }
.safelink-btn span { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.safelink-btn b { font-size: .88rem; } .safelink-btn small { font-size: .72rem; color: var(--muted); }
.sl-pin { background: none; border: 0; }
.sl-av { position: relative; z-index: 1; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; font-weight: 800; font-size: .78rem; color: #0B1117;
  background: var(--c, var(--gold)); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .45); }
.sl-you { background: linear-gradient(135deg, #F5DC8A, #D4AF37); }
.sl-ring { position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--c); opacity: 0; animation: slRing 2.4s ease-out infinite; }
@keyframes slRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
path.sl-zone { stroke: #60A5FA; stroke-dasharray: 4 6; fill: #60A5FA; fill-opacity: .05; }
.sl-chip { position: absolute; z-index: 600; top: 12px; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px;
  font: inherit; font-size: .74rem; color: var(--text); cursor: pointer; border: 1px solid #60A5FA !important; border: 1px solid color-mix(in srgb, #60A5FA 55%, transparent) !important; }
.sl-chip svg { color: #60A5FA; } .sl-chip small { color: var(--muted); font-variant-numeric: tabular-nums; }
.sl-dot { width: 8px; height: 8px; border-radius: 50%; background: #60A5FA; box-shadow: 0 0 0 3px rgba(96, 165, 250, .25); animation: slBlink 1.6s infinite; }
@keyframes slBlink { 50% { opacity: .35; } }
.sl-code { display: grid; justify-items: center; gap: 4px; padding: 16px; border-radius: 18px; background: var(--glass); background: color-mix(in srgb, #60A5FA 10%, var(--glass)); border: 1px dashed #60A5FA; border: 1px dashed color-mix(in srgb, #60A5FA 55%, transparent); }
.sl-code small { color: var(--muted); font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; }
.sl-code b { font-size: 1.9rem; letter-spacing: .12em; font-variant-numeric: tabular-nums; }
.sl-code span { color: var(--muted); font-size: .76rem; font-variant-numeric: tabular-nums; }
.sl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.sl-list li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 10px; min-height: 42px; padding: 4px 6px; border-radius: 12px; background: var(--glass); }
.sl-list small { color: var(--muted); font-size: .74rem; white-space: nowrap; }
.sl-find { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; border: 0; background: transparent; background: color-mix(in srgb, #60A5FA 16%, transparent); color: #60A5FA; cursor: pointer; }
.sl-join { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
.sl-join input { height: 42px; padding: 0 12px; border-radius: 12px; border: 1px solid var(--edge); background: var(--glass); color: var(--text); font: inherit; text-transform: uppercase; letter-spacing: .08em; }
.btn-soft.danger { color: #F87171; justify-content: center; }

/* ---------- generic dialog used by Safe-Link ---------- */
.gl-dialog { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: end center; background: rgba(4, 7, 12, .6); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.gl-dialog[hidden] { display: none; }
.gl-card { position: relative; width: min(100%, 480px); max-height: 92vh; overflow: auto; display: grid; gap: 12px; padding: 20px 18px calc(20px + env(safe-area-inset-bottom));
  border-radius: 28px 28px 0 0; background: var(--bg); border: 1px solid var(--edge); animation: rise .45s var(--ease); }
@media (min-width: 560px) { .gl-dialog { place-items: center; } .gl-card { border-radius: 28px; } }
.gl-head { display: flex; gap: 12px; align-items: center; color: #60A5FA; }
.gl-head h2 { margin: 0; font-size: 1.1rem; color: var(--text); } .gl-head p { margin: 2px 0 0; font-size: .78rem; color: var(--muted); }
.gl-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--edge); background: var(--glass); color: var(--muted); cursor: pointer; }
.gl-row { display: grid; }

/* ---------- SOS: offline card + share ---------- */
.sos-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.sos-tool { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 8px 10px; border-radius: 16px; cursor: pointer; font: inherit; font-weight: 700; font-size: .76rem; text-align: left; line-height: 1.2;
  color: var(--text); background: var(--glass); border: 1px solid var(--edge); box-shadow: var(--bevel), var(--elev-1); }
.sos-tool svg { flex: none; color: var(--gold); }
.share-row { margin-top: 10px; }

/* ---------- map badge: radius label ---------- */
.map-badge .mb-name { display: inline-block; max-width: 150px; vertical-align: bottom; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- fixed-size transport bar & hub rows in every language ---------- */
.transport-bar { height: 60px; }
.tb-btn span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.th-row .th-main { min-height: 58px; }
.th-name b, .th-name small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.chip { white-space: nowrap; }

@media (prefers-reduced-motion: reduce) { .ag-btn.playing .ag-wave i, .sl-ring, .sl-dot { animation: none !important; } }

/* ==========================================================
   5 curated palettes · synced with the website (localStorage 'sqreet.theme')
   Pin / tier colours and the matte black bezel stay identical in every palette.
   ========================================================== */
html[data-palette="alabaster"] { --bg: #FAFAFA; --card: #FFFFFF; --text: #0F172A; }
html[data-palette="nordic"] {
  --bg: #061A17; --card: #0D2B26; --accent: #34D399; --emerald: #34D399; --accent-ink: #022C22; --muted: #9CC9BC;
  --glass: rgba(13, 43, 38, .66); --glass-strong: rgba(10, 34, 30, .93); --glass-tint: rgba(13, 43, 38, .62);
  --border: rgba(52, 211, 153, .18); --sky1: #082320; --sky2: #10352F; --bldg: #0F2E28; --pin-core: #06201C;
}
html[data-palette="sapphire"] {
  --bg: #081226; --card: #10203F; --accent: #38BDF8; --emerald: #38BDF8; --accent-ink: #04223A; --muted: #9DB3D6;
  --glass: rgba(16, 32, 63, .66); --glass-strong: rgba(12, 25, 50, .93); --glass-tint: rgba(16, 32, 63, .62);
  --border: rgba(56, 189, 248, .18); --sky1: #0A1730; --sky2: #15284D; --bldg: #122546; --pin-core: #0A1630;
}
html[data-palette="sand"] {
  --bg: #F6F1EA; --card: #FFFDF9; --text: #1C1917; --muted: #6B6158; --accent: #C2410C; --emerald: #C2410C; --accent-ink: #FFFFFF;
  --glass: rgba(255, 253, 249, .78); --glass-strong: rgba(255, 253, 249, .96); --glass-tint: rgba(255, 253, 249, .74);
  --border: rgba(28, 25, 23, .1); --line: rgba(28, 25, 23, .1); --sky1: #F3ECE2; --sky2: #E7DACA; --bldg: #E9DFD2; --ink: #1C1917;
}
html[data-palette="nordic"] body, html[data-palette="sapphire"] body, html[data-palette="sand"] body { background-color: var(--bg); }
@media (min-width: 560px) {
  html[data-palette="nordic"], html[data-palette="sapphire"] { background: var(--bg); background: color-mix(in srgb, var(--bg) 70%, #000); }
  html[data-palette="sand"] { background: #E9DFD2; }
}

/* v11 – key-free OpenStreetMap fallback tiles: darkened for dark themes */
#map.sq-osm-dark .leaflet-tile-pane { filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88) saturate(.6); }

/* styles/07-shell.css */
/* sQReet · native phone shell – tabs, drawer, navigation HUD, rewards, me
   (cascade order matters – files are linked in index.html in this order) */
/* ==========================================================
   sQReet – shell.css · native phone shell + desktop phone stage
   ========================================================== */

/* ---------------- desktop stage: the app lives inside a real 390×844 phone ---------------- */
html.sq-stage, html.sq-stage body { height: 100%; margin: 0; overflow: hidden; }
html.sq-stage body:not(.stage-body) > * { display: none !important; }
html.sq-stage body { max-width: none !important; border: 0 !important; box-shadow: none !important; background: none !important; }
html.sq-stage body::before { display: none; }
.stg {
  --sbg: #0A0F14; --sac: #10B981; position: fixed; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center;
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif; color: #F1F5F9; overflow: hidden;
  background:
    radial-gradient(900px 600px at 78% 30%, transparent, transparent 62%),
    radial-gradient(700px 520px at 12% 88%, rgba(212, 175, 55, .14), transparent 60%),
    linear-gradient(160deg, var(--sbg), var(--sbg)); background:
    radial-gradient(900px 600px at 78% 30%, color-mix(in srgb, var(--sac) 22%, transparent), transparent 62%),
    radial-gradient(700px 520px at 12% 88%, rgba(212, 175, 55, .14), transparent 60%),
    linear-gradient(160deg, color-mix(in srgb, var(--sbg) 82%, #000), color-mix(in srgb, var(--sbg) 55%, #000));
  transition: background .5s;
}
html[data-palette="alabaster"] .stg, html[data-palette="sand"] .stg { color: #0F172A; }
.stg::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 46px 46px;
  -webkit-mask-image: radial-gradient(closest-side, #000, transparent); mask-image: radial-gradient(closest-side, #000, transparent); }
.stg-back { position: absolute; top: 22px; left: 26px; z-index: 2; display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 999px; font-weight: 700; font-size: .86rem; color: inherit; text-decoration: none; background: rgba(255, 255, 255, .06); border: 1px solid rgba(212, 175, 55, .45); backdrop-filter: blur(10px); }
.stg-back:hover { background: rgba(212, 175, 55, .14); }
.stg-copy { grid-column: 1; justify-self: end; max-width: 330px; margin-right: 56px; position: relative; z-index: 1; }
.stg-copy h1 { margin: 10px 0 4px; font-size: 3.4rem; letter-spacing: -.04em; line-height: 1; }
.stg-copy h1 span { background: linear-gradient(135deg, #F7E8B5, #D4AF37 45%, #9A781B); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stg-kick { margin: 10px 0 6px; font-weight: 800; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #D4AF37; }
.stg-sub { margin: 0 0 22px; opacity: .72; line-height: 1.5; font-size: .95rem; }
.stg-logo { width: 64px; height: 64px; }
.stg-qr { display: inline-grid; gap: 8px; justify-items: center; padding: 12px; border-radius: 20px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); }
.stg-qr > div { width: 132px; height: 132px; border-radius: 10px; overflow: hidden; }
.stg-qr svg { width: 100%; height: 100%; display: block; }
.stg-qr small { font-size: .74rem; font-weight: 700; opacity: .75; }
@media (max-width: 1080px) { .stg-copy { display: none; } .stg { grid-template-columns: 1fr; justify-items: center; } .stg-fit { grid-column: 1 !important; } }
.stg-fit { --s: 1; grid-column: 2; width: calc(430px * var(--s)); height: calc(884px * var(--s)); position: relative; z-index: 1; }
.phone-dv {
  position: absolute; left: 0; top: 0; width: 430px; height: 884px; transform: scale(var(--s)); transform-origin: 0 0;
  padding: 16px; border-radius: 70px; border: 4px solid transparent;
  /* natural-titanium band around a black glass bezel */
  background:
    linear-gradient(#030406, #030406) padding-box,
    linear-gradient(150deg, #c3c7cd 0%, #6e747c 10%, #eceef1 20%, #5b6168 34%, #9aa0a7 50%, #40454c 64%, #d2d6db 80%, #575d65 100%) border-box;
  box-shadow: inset 0 0 0 1.5px #000, inset 0 0 0 3px rgba(255, 255, 255, .05), 0 2px 0 rgba(255, 255, 255, .06),
    0 70px 120px -30px rgba(0, 0, 0, .9), 0 30px 50px -25px rgba(0, 0, 0, .8), 0 30px 60px -20px transparent; box-shadow: inset 0 0 0 1.5px #000, inset 0 0 0 3px rgba(255, 255, 255, .05), 0 2px 0 rgba(255, 255, 255, .06),
    0 70px 120px -30px rgba(0, 0, 0, .9), 0 30px 50px -25px rgba(0, 0, 0, .8), 0 30px 60px -20px color-mix(in srgb, var(--sac) 30%, transparent);
}
.phone-dv::after { content: ""; position: absolute; inset: 16px; border-radius: 52px; pointer-events: none; z-index: 6;
  background: linear-gradient(115deg, rgba(255, 255, 255, .10) 0%, rgba(255, 255, 255, .03) 20%, transparent 36%, transparent 72%, rgba(255, 255, 255, .04) 100%); mix-blend-mode: screen; }
.phone-dv .pb { position: absolute; width: 5px; border-radius: 2.5px; background: linear-gradient(90deg, #40454c, #d3d7dc 45%, #6e747c); box-shadow: 0 0 0 .5px rgba(0, 0, 0, .55), 0 2px 3px rgba(0, 0, 0, .4); }
.pb-a { left: -9px; top: 150px; height: 34px; } .pb-b { left: -9px; top: 214px; height: 64px; } .pb-c { left: -9px; top: 292px; height: 64px; } .pb-d { right: -9px; top: 246px; height: 100px; background: linear-gradient(270deg, #40454c, #d3d7dc 45%, #6e747c) !important; }
.phone-scr { position: relative; width: 390px; height: 844px; border-radius: 50px; overflow: hidden; background: #000; isolation: isolate; }
.phone-scr iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #0A0F14; }
.phone-sb { position: absolute; left: 0; right: 0; top: 0; height: 47px; z-index: 5; pointer-events: none; display: flex; align-items: center; justify-content: space-between; padding: 4px 30px 0 44px; color: #fff; mix-blend-mode: difference; }
.phone-sb > b { font: 700 15px/1 -apple-system, "SF Pro Text", Inter, sans-serif; letter-spacing: -.01em; }
.phone-ic { display: inline-flex; align-items: center; gap: 6px; } .phone-ic svg { fill: currentColor; } .phone-ic b { font: 700 12px/1 Inter, sans-serif; }
.phone-island { position: absolute; left: 50%; top: 11px; width: 124px; height: 36px; margin-left: -62px; border-radius: 20px; background: #000; mix-blend-mode: normal; box-shadow: 0 0 0 1px rgba(255, 255, 255, .04); }
.phone-island::after { content: ""; position: absolute; right: 13px; top: 11px; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #41537a 0 16%, #0e1526 42%, #000 72%); box-shadow: inset 0 0 0 1px rgba(90, 110, 150, .35); }
.phone-home { position: absolute; left: 50%; bottom: 8px; width: 134px; height: 5px; margin-left: -67px; border-radius: 3px; background: #fff; mix-blend-mode: difference; opacity: .85; z-index: 5; pointer-events: none; }

/* ---------------- native shell (phone viewport) ---------------- */
html.shell { --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --tabh: 64px; height: 100%; overflow: hidden; overscroll-behavior: none; }
html.shell.in-frame { --sat: 46px; --sab: 18px; }
html.shell body { height: 100%; margin: 0 !important; padding: 0 !important; overflow: hidden !important; max-width: none !important; border: 0 !important; box-shadow: none !important; border-radius: 0 !important; overscroll-behavior: none; }
html.shell .app-main, html.shell .app-footer, html.shell .tier-legend, html.shell .scan-fab, html.shell .header-top, html.shell .brand-row, html.shell .pwa-chip { display: none !important; }
.sh-app { position: fixed; inset: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; grid-template-columns: minmax(0, 1fr); background: var(--bg); color: var(--text); overflow: hidden; }

/* header: one compact row */
html.shell .app-header { position: relative !important; top: auto; z-index: 1200; padding: calc(var(--sat) + 6px) 12px 8px !important; margin: 0 !important; border-radius: 0 !important; background: var(--bg) !important; background: color-mix(in srgb, var(--bg) 86%, transparent) !important; border-bottom: 1px solid var(--line, rgba(255, 255, 255, .06)); }
.hd-row { display: flex; align-items: center; gap: 8px; height: 44px; }
.hd-brand { flex: 1; min-width: 0; display: flex; align-items: center; }
.hd-brand .logo-lockup { gap: 8px !important; }
.hd-brand .logo-lockup .logo { font-size: 1.36rem !important; white-space: nowrap; }
.hd-brand #appLogo, .hd-brand #appLogo > * { width: 36px !important; height: 36px !important; }
html.shell #ecoBadge { flex: none; width: auto !important; min-height: 0 !important; height: 38px; padding: 0 11px 0 7px !important; gap: 6px !important; border-radius: 999px !important; cursor: pointer; position: relative; overflow: visible; }
html.shell #ecoBadge .eco-leaf { font-size: 1rem; width: 24px; height: 24px; display: grid; place-items: center; }
html.shell #ecoBadge .eco-text small { display: none; }
html.shell #ecoBadge .eco-text strong { font-size: .8rem; white-space: nowrap; }
html.shell #ecoBadge .eco-text strong span[data-i18n] { display: none; }
html.shell #ecoBadge .eco-text strong::after { content: " pts"; font-weight: 700; opacity: .8; font-size: .72rem; }
html[data-ul="gr"].shell #ecoBadge .eco-text strong::after { content: " πόντοι"; } html[data-ul="sk"].shell #ecoBadge .eco-text strong::after { content: " b."; } html[data-ul="bg"].shell #ecoBadge .eco-text strong::after { content: " т."; }
.eco-fly { position: absolute; right: 8px; top: -4px; font: 800 .78rem/1 Inter, sans-serif; color: #10B981; pointer-events: none; animation: ecoFly 1.2s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes ecoFly { from { opacity: 0; transform: translateY(6px) scale(.8); } 20% { opacity: 1; } to { opacity: 0; transform: translateY(-26px) scale(1.15); } }
.hd-lang { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--edge, rgba(255, 255, 255, .12)); background: var(--glass); color: var(--text); font: 800 .72rem/1 Inter, sans-serif; letter-spacing: .04em; cursor: pointer; }
html.shell .theme-toggle { flex: none; width: 38px !important; height: 38px !important; }

/* panes */
.sh-panes { position: relative; overflow: hidden; overflow: clip; min-height: 0; min-width: 0; width: 100%; }
.sh-track { display: flex; width: 400%; height: 100%; transition: transform .46s cubic-bezier(.2, .85, .25, 1); will-change: transform; }
.sh-pane { position: relative; width: 25%; height: 100%; flex: none; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; padding: 14px 14px 28px; scrollbar-width: none; }
.sh-pane::-webkit-scrollbar { display: none; }
/* tabs that are off screen are not laid out or painted until they slide in */
.sh-pane:not(.sh-explore) { content-visibility: auto; contain-intrinsic-size: auto 800px; }
.sh-h { margin: 2px 2px 14px; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }

/* tab bar */
.sh-tabbar { position: relative; z-index: 1300; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: end; height: calc(var(--tabh) + var(--sab)); padding: 0 6px var(--sab);
  background: var(--bg); background: color-mix(in srgb, var(--bg) 82%, transparent); -webkit-backdrop-filter: blur(24px) saturate(1.6); backdrop-filter: blur(24px) saturate(1.6); border-top: 1px solid var(--line, rgba(255, 255, 255, .07)); }
.sh-tab { position: relative; height: var(--tabh); display: grid; place-items: center; align-content: center; gap: 3px; border: 0; background: none; color: var(--muted); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; transition: color .25s; }
.sh-tab small { font-size: .62rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 2px; }
.sh-tab svg { transition: transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.sh-tab:active svg { transform: scale(.86); }
.sh-tab[aria-selected="true"] { color: var(--text); }
.sh-tab[aria-selected="true"] svg { color: var(--accent); transform: translateY(-1px); }
.tab-dot { position: absolute; top: 6px; left: 50%; width: 22px; height: 3px; margin-left: -11px; border-radius: 3px; background: var(--accent); opacity: 0; transform: scaleX(.3); transition: opacity .25s, transform .35s cubic-bezier(.2, .9, .3, 1.4); }
.sh-tab[aria-selected="true"] .tab-dot { opacity: 1; transform: none; }
.sh-scan { position: relative; height: var(--tabh); border: 0; background: none; cursor: pointer; display: grid; justify-items: center; align-content: end; padding-bottom: 7px; gap: 3px; color: var(--text); font: inherit; -webkit-tap-highlight-color: transparent; }
.sh-scan small { font-size: .62rem; font-weight: 800; color: var(--gold); white-space: nowrap; }
.sc-ring { width: 58px; height: 58px; margin-top: -26px; display: grid; place-items: center; border-radius: 20px; color: #1F1500;
  background: linear-gradient(180deg, rgba(255, 255, 255, .45), rgba(255, 255, 255, 0) 55%), linear-gradient(135deg, #FFF3C4, #E9C35A 40%, #B8860B);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 4px var(--bg), 0 0 0 5px transparent, 0 14px 26px -8px rgba(184, 134, 11, .8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8), 0 0 0 4px var(--bg), 0 0 0 5px color-mix(in srgb, var(--gold) 40%, transparent), 0 14px 26px -8px rgba(184, 134, 11, .8);
  transition: transform .3s cubic-bezier(.2, .9, .3, 1.4); }
.sh-scan:active .sc-ring { transform: scale(.9) rotate(-6deg); }
.sc-ring::after { content: ""; position: absolute; width: 58px; height: 58px; border-radius: 20px; border: 2px solid var(--gold); animation: scRing 2.6s ease-out infinite; pointer-events: none; }
@keyframes scRing { 0% { opacity: .7; transform: scale(1); } 80%, 100% { opacity: 0; transform: scale(1.45); } }

/* ---------------- Explore: full-bleed map + drawer ---------------- */
.sh-explore { padding: 0 !important; overflow: hidden !important; --peek: 148px; --dk: 0; }
.ex-map { position: absolute; inset: 0; }
.ex-map .map-wrap { position: absolute !important; inset: 0; border-radius: 0 !important; border: 0 !important; margin: 0 !important; box-shadow: none !important; }
.ex-map .map-wrap::after { display: none; }
html.shell #map { height: 100% !important; min-height: 0 !important; max-height: none !important; border-radius: 0 !important; }
html.shell .map-wrap .leaflet-top.leaflet-left { margin-top: 186px; }
html.shell .map-wrap .leaflet-control-attribution { margin-bottom: calc(var(--peek) + 4px) !important; font-size: 9px; opacity: .75; }
html.shell .map-actions { top: 186px !important; left: auto !important; right: 12px !important; }
html.shell .sos-fab { top: auto !important; bottom: calc(var(--peek) + 14px) !important; right: 12px !important; left: auto !important; transform: scale(calc(1 - var(--dk) * .3)); opacity: calc(1 - var(--dk)); transition: opacity .2s; }
html.shell .map-badge { top: auto !important; bottom: calc(var(--peek) + 14px) !important; left: 12px !important; right: auto !important; max-width: calc(100% - 100px); opacity: calc(1 - var(--dk)); }
.ex-top { position: absolute; left: 0; right: 0; top: 0; z-index: 700; padding: 10px 10px 0; pointer-events: none;
  background: linear-gradient(180deg, var(--bg) 0, var(--bg) 70%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 92%, transparent) 0, color-mix(in srgb, var(--bg) 70%, transparent) 70%, transparent); }
.ex-top > * { pointer-events: auto; }
.ex-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.city-pill { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px 0 6px; border-radius: 999px; cursor: pointer; font: inherit; color: var(--text); text-align: left; border: 1px solid var(--edge, rgba(255, 255, 255, .12)); background: var(--glass-strong) !important; }
.city-pill b { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-pill small { flex: 1; font-size: .72rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.city-pill > svg { flex: none; color: var(--muted); transition: transform .3s; }
.city-pill[aria-expanded="true"] > svg { transform: rotate(180deg); }
.cp-ico { flex: none; width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: var(--accent); background: transparent; background: color-mix(in srgb, var(--accent) 16%, transparent); }
.cp-ico.on { color: #04120C; background: #10B981; box-shadow: 0 0 0 3px rgba(16, 185, 129, .25); }
@keyframes cpPing { 70%, 100% { box-shadow: 0 0 0 9px rgba(16, 185, 129, 0); } }
.ex-aqi { flex: none; display: grid; justify-items: center; align-content: center; min-width: 52px; height: 42px; padding: 0 10px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--edge, rgba(255, 255, 255, .12)); cursor: pointer; line-height: 1.05; }
.ex-aqi b { font-size: .86rem; } .ex-aqi small { font-size: .58rem; color: var(--muted); font-weight: 700; }
.ex-aqi[hidden] { display: none; }
html.shell .ex-top .pillars { padding: 0 0 6px !important; gap: 5px; }
html.shell .ex-top .pillar { height: 52px; border-radius: 14px; }
html.shell .ex-top .chips { padding: 0 0 8px; margin: 0 -10px; padding-left: 10px; padding-right: 10px; }

html.navigating .ex-top .pillars, html.navigating .ex-top .chips { display: none !important; }

.geo-pop { position: absolute; z-index: 900; left: 10px; right: 10px; top: 58px; max-height: calc(100% - 80px); overflow-y: auto; padding: 14px; border-radius: 24px; background: var(--glass-strong) !important; border: 1px solid var(--edge, rgba(255, 255, 255, .12)); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); transform-origin: 50% 0; animation: popIn .32s cubic-bezier(.2, .9, .3, 1.2); }
.geo-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.geo-pop .geo-switch { margin: 0 !important; padding: 0 !important; display: grid; gap: 10px; animation: none !important; }
.geo-pop .geo-tools { display: grid !important; grid-template-columns: 1fr; gap: 8px; }
.geo-pop .walkplan-btn { width: 100%; justify-content: center; }

.sh-drawer { position: absolute; left: 0; right: 0; bottom: 0; z-index: 800; display: flex; flex-direction: column; border-radius: 26px 26px 0 0; background: var(--bg);
  box-shadow: 0 -1px 0 var(--edge, rgba(255, 255, 255, .1)), 0 -24px 50px -18px rgba(0, 0, 0, .55); transition: transform .5s cubic-bezier(.2, .9, .25, 1); will-change: transform; }
.dr-grab { flex: none; position: relative; padding: 8px 16px 6px; cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none; }
.dr-grab:active { cursor: grabbing; }
.dr-handle { display: block; width: 40px; height: 5px; margin: 0 auto 8px; border-radius: 3px; background: transparent; background: color-mix(in srgb, var(--text) 26%, transparent); }
.dr-title { display: flex; align-items: baseline; gap: 8px; min-height: 26px; }
.dr-title b { font-size: 1.08rem; font-weight: 800; } .dr-title small { flex: 1; font-size: .74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-chev { color: var(--muted); transition: transform .35s; transform: rotate(180deg); align-self: center; }
.sh-drawer[data-snap="full"] .dr-chev { transform: none; }
.dr-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 4px 12px calc(28px + var(--peek)); display: grid; align-content: start; gap: 12px; scrollbar-width: none; }
.dr-body::-webkit-scrollbar { display: none; }
.sh-drawer[data-snap="full"] .dr-body { padding-bottom: 28px; }
.dr-body > * { min-width: 0; margin: 0 !important; }
html.shell .transport-bar { position: relative !important; left: auto !important; bottom: auto !important; transform: none !important; width: auto !important; animation: none !important; z-index: auto; order: -4; }
html.shell .dr-body .scan-badge { order: -3; }
html.shell .carousel-section { animation: none !important; }
html.shell .poi-section .section-title { display: none; }
html.shell .poi-item { min-height: 92px; }
html.shell .poi-item h3, html.shell .poi-item .poi-name, html.shell .poi-item strong:first-child { white-space: normal !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.shell .pulse, html.shell .warm-banner { border-radius: 20px; }

/* turn-by-turn HUD */
.nav-hud { position: absolute; z-index: 850; left: 10px; right: 10px; top: 60px; border-radius: 22px; overflow: hidden; color: #fff;
  background: linear-gradient(160deg, #065F46, #047857 55%, #0B3D2E); box-shadow: 0 24px 50px -16px rgba(4, 120, 87, .7), inset 0 1px 0 rgba(255, 255, 255, .2); animation: popIn .35s cubic-bezier(.2, .9, .3, 1.2); }
.nav-hud[hidden] { display: none; }
.nh-main, .nh-done { display: flex; align-items: center; gap: 12px; padding: 14px 14px 10px; }
.nh-ico { flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; background: rgba(255, 255, 255, .16); }
.nh-ico.ok { background: #fff; color: #047857; animation: okPop .5s cubic-bezier(.2, .9, .3, 1.6); }
@keyframes okPop { from { transform: scale(.4); } }
.nh-txt { min-width: 0; display: grid; } .nh-txt b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .nh-txt span { font-size: .86rem; opacity: .9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-foot { display: flex; align-items: center; gap: 10px; padding: 10px 14px 14px; background: rgba(0, 0, 0, .18); }
.nh-meta { flex: 1; min-width: 0; display: grid; } .nh-meta b { font-size: .95rem; } .nh-meta small { font-size: .72rem; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nh-x { flex: none; height: 36px; padding: 0 16px; border-radius: 999px; border: 0; background: #fff; color: #B91C1C; font: 800 .8rem/1 Inter, sans-serif; cursor: pointer; }
.nh-bar { position: absolute; left: 0; bottom: 0; height: 4px; width: var(--p); background: linear-gradient(90deg, #6EE7B7, #F5DC8A); transition: width .2s linear; }
.nh-pts { margin-left: auto; padding: 8px 14px; border-radius: 999px; font: 800 1rem/1 Inter, sans-serif; color: #2A1E04; background: linear-gradient(135deg, #F5DC8A, #D4AF37); animation: okPop .6s cubic-bezier(.2, .9, .3, 1.6) .15s backwards; }
.nav-hud.done .nh-done { padding: 16px 14px; }
.nav-line { stroke-dasharray: 2 12; stroke-linecap: round; animation: navDash 1s linear infinite; filter: drop-shadow(0 0 5px rgba(16, 185, 129, .9)); }
@keyframes navDash { to { stroke-dashoffset: -14; } }
.nav-walker { position: relative; }
.nav-walker .nw-dot { position: absolute; inset: 6px; border-radius: 50%; background: #10B981; border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, .45); }
.nav-walker .nw-pulse { position: absolute; inset: 0; border-radius: 50%; background: rgba(16, 185, 129, .35); animation: nwP 1.6s ease-out infinite; }
.nav-walker .nw-cone { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform: translate(-50%, -100%) rotate(var(--hd, 0deg)); transform-origin: 50% 100%; border-left: 9px solid transparent; border-right: 9px solid transparent; border-bottom: 22px solid rgba(16, 185, 129, .45); margin-top: -2px; }
@keyframes nwP { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
html.navigating .sh-drawer { transform: translate3d(0, calc(100% - 64px), 0) !important; }

/* pull to refresh */
.ptr { position: absolute; left: 50%; top: 0; z-index: 5; display: grid; justify-items: center; gap: 4px; transform: translate3d(-50%, -50px, 0); opacity: 0; pointer-events: none; }
.ptr span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--edge, rgba(255, 255, 255, .12)); color: var(--accent); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .5); }
.ptr small { font-size: .66rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.ptr.ready span { background: var(--accent); color: var(--accent-ink, #04120C); }
.ptr.spin { opacity: 1 !important; transform: translate3d(-50%, 14px, 0) !important; transition: transform .3s; }
.ptr.spin span svg { animation: ptrSpin .8s linear infinite; }
@keyframes ptrSpin { to { transform: rotate(360deg); } }
html.shell .sh-transit .transit-hub { margin: 0 !important; }

/* ---------------- Rewards ---------------- */
.rw-hero { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 16px; align-items: center; padding: 16px; border-radius: 26px; margin-bottom: 12px;
  background: radial-gradient(260px 160px at 0 0, transparent, transparent 70%), radial-gradient(240px 160px at 100% 100%, rgba(212, 175, 55, .22), transparent 70%), var(--card); background: radial-gradient(260px 160px at 0 0, color-mix(in srgb, #10B981 26%, transparent), transparent 70%), radial-gradient(240px 160px at 100% 100%, rgba(212, 175, 55, .22), transparent 70%), var(--card);
  border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--gold) 35%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 20px 40px -24px rgba(0, 0, 0, .6); }
.rw-ring { position: relative; width: 132px; height: 132px; }
.rw-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rr-bg { fill: none; stroke: transparent; stroke: color-mix(in srgb, var(--text) 10%, transparent); stroke-width: 10; }
.rr-fg { fill: none; stroke: url(#none); stroke: #10B981; stroke-width: 10; stroke-linecap: round; transition: stroke-dashoffset 1.2s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px rgba(16, 185, 129, .6)); }
.rw-ring.anim .rr-fg { animation: ringIn 1.2s cubic-bezier(.2, .8, .2, 1); }
@keyframes ringIn { from { stroke-dashoffset: 326.7; } }
.rr-in { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; }
.rr-in b { font-size: 2rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; } .rr-in small { font-size: .66rem; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.rw-lv { display: grid; gap: 4px; min-width: 0; justify-items: start; }
.rw-chip { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 999px; font: 800 .68rem/1 Inter, sans-serif; color: #2A1E04; background: linear-gradient(135deg, #F5DC8A, #D4AF37); }
.rw-lv > b { font-size: 1.2rem; line-height: 1.15; } .rw-lv > small { font-size: .76rem; color: var(--muted); }
.rw-streak { display: inline-flex; align-items: center; gap: 5px; margin-top: 4px; padding: 5px 10px; border-radius: 999px; font-size: .74rem; font-weight: 800; color: var(--muted); background: transparent; background: color-mix(in srgb, var(--text) 6%, transparent); }
.rw-streak.on { color: #F97316; background: rgba(249, 115, 22, .14); }
.rw-streak.on svg { animation: flick 1.2s ease-in-out infinite alternate; }
@keyframes flick { to { transform: scale(1.15) rotate(-5deg); } }
.rw-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 12px; }
.rw-stats > div { display: grid; gap: 2px; justify-items: start; padding: 12px; border-radius: 18px; background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); min-height: 104px; align-content: start; }
.rw-stats b { font-size: 1.25rem; font-variant-numeric: tabular-nums; } .rw-stats small { font-size: .66rem; color: var(--muted); line-height: 1.25; }
.st-ic { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 11px; margin-bottom: 4px; }
.st-ic.g { color: #10B981; background: rgba(16, 185, 129, .14); } .st-ic.b { color: #60A5FA; background: rgba(96, 165, 250, .14); } .st-ic.s { color: #38BDF8; background: rgba(56, 189, 248, .14); }
.rw-card { padding: 14px; border-radius: 22px; margin-bottom: 12px; background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); }
.rw-card > header { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.rw-card h3 { margin: 0; font-size: 1rem; font-weight: 800; } .rw-card > header small { font-size: .7rem; color: var(--muted); white-space: nowrap; }
.ch { display: grid; grid-template-columns: 36px minmax(0, 1fr) 76px; gap: 10px; align-items: center; min-height: 54px; padding: 6px 0; border-top: 1px solid var(--edge, rgba(255, 255, 255, .06)); }
.ch:first-of-type { border-top: 0; }
.ch-ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; color: var(--muted); background: transparent; background: color-mix(in srgb, var(--text) 6%, transparent); }
.ch.done .ch-ic { color: #04120C; background: #10B981; }
.ch-t { display: grid; gap: 6px; min-width: 0; } .ch-t b { font-size: .84rem; line-height: 1.2; }
.ch-bar { height: 6px; border-radius: 3px; background: transparent; background: color-mix(in srgb, var(--text) 9%, transparent); overflow: hidden; }
.ch-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #10B981, #6EE7B7); transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.ch-btn { height: 34px; border-radius: 999px; border: 0; font: 800 .74rem/1 Inter, sans-serif; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 4px; color: #2A1E04; background: linear-gradient(135deg, #F5DC8A, #D4AF37); box-shadow: 0 8px 18px -8px rgba(212, 175, 55, .9); }
.ch-btn:disabled { cursor: default; box-shadow: none; color: var(--muted); background: transparent; background: color-mix(in srgb, var(--text) 7%, transparent); }
.ch.done:not(.cl) .ch-btn { animation: claimP 1.4s ease-in-out infinite; }
@keyframes claimP { 50% { transform: scale(1.07); } }
.ch.cl .ch-btn { color: #10B981; }
.wk { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; height: 120px; align-items: end; }
.wk-c { display: grid; grid-template-rows: 16px minmax(0, 1fr) 16px; height: 100%; justify-items: center; gap: 2px; }
.wk-c i { align-self: end; width: 100%; max-width: 26px; height: var(--h); border-radius: 8px 8px 4px 4px; background: transparent; background: color-mix(in srgb, #10B981 35%, transparent); transition: height .9s cubic-bezier(.2, .8, .2, 1); }
.wk-c.t i { background: linear-gradient(180deg, #6EE7B7, #10B981); box-shadow: 0 0 14px rgba(16, 185, 129, .5); }
.wk-c small { font-size: .66rem; color: var(--muted); font-weight: 700; } .wk-c.t small { color: var(--text); }
.wk-v { font-size: .58rem; color: var(--muted); font-weight: 700; white-space: nowrap; }
.rw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.rw-item { position: relative; display: grid; align-content: start; justify-items: start; gap: 3px; min-height: 146px; padding: 12px; border-radius: 18px; cursor: pointer; font: inherit; text-align: left; color: var(--text); background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); transition: transform .2s; }
.rw-item:active { transform: scale(.97); }
.rw-item.ok { border-color: var(--gold); border-color: color-mix(in srgb, var(--gold) 55%, transparent); background: linear-gradient(160deg, rgba(212, 175, 55, .14), transparent 60%), transparent; background: linear-gradient(160deg, rgba(212, 175, 55, .14), transparent 60%), color-mix(in srgb, var(--text) 3%, transparent); }
.ri-ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; margin-bottom: 4px; color: var(--gold); background: rgba(212, 175, 55, .14); }
.rw-item b { font-size: .84rem; line-height: 1.2; } .rw-item small { font-size: .68rem; color: var(--muted); }
.ri-cost { margin-top: auto; padding-top: 6px; font: 800 .72rem/1 Inter, sans-serif; color: var(--gold); }
.ri-need { position: absolute; top: 10px; right: 10px; font-size: .6rem; font-weight: 800; padding: 3px 7px; border-radius: 999px; color: var(--muted); background: transparent; background: color-mix(in srgb, var(--text) 8%, transparent); }
.rw-item.shake { animation: shake .45s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.bd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 8px; }
.bd { display: grid; justify-items: center; align-content: start; gap: 3px; padding: 12px 6px; border-radius: 18px; text-align: center; background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--muted); min-height: 112px; }
.bd span { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: transparent; background: color-mix(in srgb, var(--text) 7%, transparent); margin-bottom: 4px; }
.bd b { font-size: .72rem; line-height: 1.2; color: var(--text); } .bd small { font-size: .6rem; line-height: 1.2; }
.bd.on span { color: #2A1E04; background: radial-gradient(circle at 35% 30%, #FFF3C4, #D4AF37 60%, #9A781B); box-shadow: 0 0 0 3px rgba(212, 175, 55, .25), 0 10px 20px -8px rgba(212, 175, 55, .8); }
.bd:not(.on) { opacity: .65; }

/* coupon */
.sh-cp { position: fixed; inset: 0; z-index: 3500; display: grid; place-items: center; padding: 20px; background: rgba(2, 6, 12, .6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .3s; }
.sh-cp.in { opacity: 1; }
.cp-card { width: min(330px, 100%); display: grid; justify-items: center; gap: 4px; padding: 20px 18px 16px; border-radius: 28px; text-align: center; color: var(--text); background: var(--card); border: 1px solid var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .7); transform: translateY(20px) scale(.96); transition: transform .45s cubic-bezier(.2, .9, .3, 1.3); }
.sh-cp.in .cp-card { transform: none; }
.cp-ic { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 16px; color: #2A1E04; background: linear-gradient(135deg, #F5DC8A, #D4AF37); }
.cp-n { font-size: 1.15rem; margin-top: 6px; } .cp-p { color: var(--muted); font-size: .78rem; }
.cp-qr { width: 176px; height: 176px; margin: 12px 0 6px; padding: 8px; border-radius: 16px; background: #fff; }
.cp-qr svg { width: 100%; height: 100%; display: block; }
.cp-code { font: 800 1rem/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; padding: 8px 12px; border-radius: 10px; border: 1px dashed var(--gold); border: 1px dashed color-mix(in srgb, var(--gold) 60%, transparent); }
.cp-hint { margin: 6px 0 4px; font-size: .74rem; color: var(--muted); }
.cp-tm { position: relative; width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 10px 12px 14px; border-radius: 14px; background: transparent; background: color-mix(in srgb, var(--text) 5%, transparent); overflow: hidden; }
.cp-tm small { font-size: .72rem; color: var(--muted); } .cp-tm b { font-variant-numeric: tabular-nums; font-size: 1rem; color: #10B981; }
.cp-bar { position: absolute; left: 0; bottom: 0; height: 4px; background: #10B981; transition: width 1s linear; }
.cp-done { width: 100%; height: 46px; margin-top: 8px; border: 0; border-radius: 999px; font: 800 .9rem/1 Inter, sans-serif; color: #2A1E04; background: linear-gradient(135deg, #F5DC8A, #D4AF37); cursor: pointer; }
.sh-confetti { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 4000; pointer-events: none; }

/* ---------------- Me ---------------- */
.me-card { padding: 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); }
.me-prof .auth-row { margin: 0 !important; display: grid !important; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.me-prof .aqi-chip { justify-self: start; position: static !important; transform: none !important; margin: 0 !important; }
.me-sec { margin-top: 18px; }
.me-sec h3 { margin: 0 2px 8px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.me-pal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.me-pal button { display: grid; justify-items: center; gap: 6px; padding: 10px 2px 8px; border-radius: 16px; cursor: pointer; font: inherit; color: var(--text); background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); }
.me-pal button[aria-pressed="true"] { border-color: var(--gold); box-shadow: 0 0 0 2px transparent; box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 35%, transparent); }
.me-pal i { width: 34px; height: 34px; border-radius: 50%; background: conic-gradient(var(--b) 0 33%, var(--c) 0 50%, var(--a) 0); box-shadow: inset 0 0 0 1px rgba(128, 128, 128, .35), 0 4px 10px -4px rgba(0, 0, 0, .5); }
.me-pal small { font-size: .6rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.me-sec .lang-switch { display: grid !important; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100% !important; height: 46px; }
.me-sec .lang-switch button { height: 100%; }
.me-tools .tools-row { margin: 0 !important; height: auto !important; grid-template-columns: minmax(0, 1fr) !important; gap: 8px !important; }
.me-tools .tools-row > * { height: 52px !important; }
.me-about { display: grid; gap: 8px; }
.me-about small { font-size: .66rem; color: var(--muted); line-height: 1.45; }
.me-about .slogan { margin: 0; font-weight: 700; }
.me-back { display: flex !important; align-items: center; justify-content: center; height: 46px; border-radius: 999px; border: 1px solid var(--gold); border: 1px solid color-mix(in srgb, var(--gold) 50%, transparent); color: var(--gold) !important; font-weight: 800; text-decoration: none; }

/* overlays sit above the tab bar */
html.shell .toast { bottom: calc(var(--tabh) + var(--sab) + 14px) !important; z-index: 3600; max-width: calc(100% - 28px) !important; }
html.shell .sheet, html.shell .modal, html.shell .gl-dialog { z-index: 3000; }
html.shell .sheet-panel, html.shell .modal-panel { max-height: calc(100% - var(--sat) - 12px) !important; }
html.shell .scan-overlay { z-index: 3400; }

@media (prefers-reduced-motion: reduce) { .sh-track, .sh-drawer { transition-duration: .01s !important; } .sc-ring::after, .cp-ico.on { animation: none; } }

/* ==========================================================
   150+ Feature hub · convenience integrations · tool cards · studio entry
   ========================================================== */
.stg-bar { position: absolute; top: 22px; right: 26px; z-index: 3; display: flex; gap: 8px; }
.stg-bar .lx-pill { height: 40px; padding: 0 14px 0 10px; }
.hub-btn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 42px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: 800 .78rem/1 Inter, sans-serif; white-space: nowrap; color: #2A1E04; border: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, .35), transparent 60%), linear-gradient(135deg, #F5DC8A, #D4AF37); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 8px 18px -8px rgba(212, 175, 55, .9); }
.hub-btn:active { transform: scale(.95); }
.hub { position: fixed; inset: 0; z-index: 2800; display: flex; flex-direction: column; background: var(--bg); background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); opacity: 0; transition: opacity .3s; }
.hub[hidden] { display: none; }
.hub.in { opacity: 1; }
.hub-in { flex: 1; min-height: 0; display: flex; flex-direction: column; margin-top: calc(var(--sat, 0px) + 8px); border-radius: 28px 28px 0 0; background: var(--bg); border-top: 1px solid transparent; border-top: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); box-shadow: 0 -30px 60px -20px rgba(0, 0, 0, .6); transform: translateY(30px); transition: transform .45s cubic-bezier(.2, .9, .25, 1); overflow: hidden; }
.hub.in .hub-in { transform: none; }
.hub-h { flex: none; display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; }
.hub-ic { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; color: #2A1E04; background: linear-gradient(135deg, #F5DC8A, #D4AF37); box-shadow: 0 10px 20px -10px rgba(212, 175, 55, .9); flex: none; }
.hub-h > div { flex: 1; min-width: 0; display: grid; } .hub-h b { font-size: 1.2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hub-h small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.hub-x { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: var(--text); background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .1)); }
.hub-s { flex: none; display: flex; align-items: center; gap: 8px; height: 46px; margin: 0 14px 10px; padding: 0 14px; border-radius: 16px; color: var(--muted); background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .1)); }
.hub-s input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: var(--text); font: 600 .9rem/1 Inter, system-ui, sans-serif; }
.hub-tabs { flex: none; display: flex; gap: 6px; padding: 0 14px 10px; overflow-x: auto; scrollbar-width: none; }
.hub-tabs button { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 36px; width: 128px; padding: 0 10px 0 12px; border-radius: 999px; cursor: pointer; font: 700 .76rem/1 Inter, system-ui, sans-serif; white-space: nowrap; color: var(--text); background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .1)); }
.hub-tabs button span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; text-align: left; }
.hub-tabs button em { font-style: normal; font-size: .64rem; min-width: 26px; height: 20px; display: grid; place-items: center; border-radius: 999px; background: transparent; background: color-mix(in srgb, var(--pc) 22%, transparent); color: var(--pc); }
.hub-tabs button[aria-selected="true"] { background: var(--pc); border-color: transparent; color: #0B1015; }
.hub-tabs button[aria-selected="true"] em { background: rgba(0, 0, 0, .18); color: #0B1015; }
.hub-grid { flex: 1; min-height: 0; overflow-y: auto; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: 104px; gap: 8px; padding: 2px 14px calc(var(--sab, 0px) + 20px); align-content: start; scrollbar-width: none; overscroll-behavior: contain; }
.hub-t { position: relative; display: grid; grid-template-rows: 40px minmax(0, 1fr); justify-items: start; gap: 6px; height: 104px; padding: 10px; border-radius: 18px; text-align: left; cursor: pointer; font: inherit; color: var(--text); overflow: hidden;
  background: linear-gradient(160deg, transparent, transparent 55%), var(--card); background: linear-gradient(160deg, color-mix(in srgb, var(--pc) 10%, transparent), transparent 55%), var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05); transition: transform .18s; }
.hub-t:active { transform: scale(.95); }
.ht-ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; color: var(--pc); background: transparent; background: color-mix(in srgb, var(--pc) 15%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 6px 12px -8px var(--pc); }
.hub-t b { font-size: .72rem; line-height: 1.22; font-weight: 700; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; align-self: start; }
.hub-none { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.cv-box { display: grid; gap: 8px; padding: 12px; border-radius: 20px; background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); }
.cv-box header { display: grid; gap: 2px; } .cv-box header b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .cv-box header small { font-size: .68rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cv-rail { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.cv-rail.compact { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px 2px; }
.cv { flex: none; width: 72px; height: 76px; display: grid; justify-items: center; align-content: center; gap: 6px; border-radius: 16px; text-decoration: none; color: var(--text); background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); }
.cv-rail:not(.compact) .cv { width: auto; }
.cv-m { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; color: #0B1015; background: linear-gradient(145deg, var(--b), var(--b)); background: linear-gradient(145deg, color-mix(in srgb, var(--b) 80%, #fff), var(--b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5); }
.cv b { font-size: .6rem; font-weight: 800; max-width: 64px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.modal--tool .mod-wrap.tool { display: grid; gap: 12px; }
.tool-head { display: flex; align-items: center; gap: 12px; padding-right: 40px; }
.tool-ico { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 16px; color: var(--pc); background: transparent; background: color-mix(in srgb, var(--pc) 16%, transparent); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .12), 0 10px 20px -12px var(--pc); }
.tool-head > div { min-width: 0; } .tool-head small { font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--pc); }
.tool-head h2 { margin: 2px 0 0; font-size: 1.15rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tool-sub { margin: 0; font-size: .82rem; color: var(--muted); }
.tool-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.tool-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 56px; padding: 8px 10px; border-radius: 14px; background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); border: 1px solid var(--edge, rgba(255, 255, 255, .06)); }
.tool-list.phr li { grid-template-columns: minmax(0, 1fr); }
.tl-dot { width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .08); box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 0%, rgba(255, 255, 255, .08)); }
.tl-t { min-width: 0; display: grid; } .tl-t b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .tl-t small { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-go { display: inline-flex; align-items: center; gap: 5px; height: 34px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer; font: 800 .72rem/1 Inter, system-ui, sans-serif; white-space: nowrap; color: #04120C; background: #10B981; }
.tl-min { font-size: .86rem; color: var(--accent); white-space: nowrap; }
.tool-meter { display: grid; grid-template-columns: 128px minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px; border-radius: 20px; background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); }
.tm-ring { position: relative; width: 128px; height: 128px; } .tm-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.tm-bg { fill: none; stroke: transparent; stroke: color-mix(in srgb, var(--text) 10%, transparent); stroke-width: 10; }
.tm-fg { fill: none; stroke: var(--mc); stroke-width: 10; stroke-linecap: round; stroke-dasharray: 314.16; stroke-dashoffset: calc(314.16 - 314.16 * var(--mp) / 100); animation: tmIn 1s cubic-bezier(.2, .8, .2, 1); filter: drop-shadow(0 0 6px var(--mc)); }
@keyframes tmIn { from { stroke-dashoffset: 314.16; } }
.tm-ring > div { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.05; } .tm-ring b { font-size: 2rem; font-variant-numeric: tabular-nums; } .tm-ring small { font-size: .72rem; color: var(--muted); font-weight: 700; }
.tm-side { min-width: 0; display: grid; gap: 6px; justify-items: start; }
.tm-lvl { padding: 6px 12px; border-radius: 999px; font-weight: 800; font-size: .86rem; color: #fff; background: var(--mc); }
.tm-side small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.tool-demo { display: inline-block; font-size: .62rem; font-weight: 800; letter-spacing: .06em; padding: 3px 8px; border-radius: 999px; color: var(--muted); border: 1px dashed transparent; border: 1px dashed color-mix(in srgb, var(--text) 30%, transparent); }
.tool-badges { display: grid; gap: 6px; } .tool-badges span { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: 12px; font-size: .82rem; font-weight: 700; background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); color: var(--text); }
.tool-badges svg { color: var(--pc); flex: none; }
.cc { display: grid; gap: 8px; }
.cc-log { height: 230px; overflow-y: auto; display: grid; align-content: start; gap: 8px; padding: 10px; border-radius: 18px; background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); scrollbar-width: thin; }
.cc-m { display: grid; justify-items: start; gap: 6px; max-width: 86%; } .cc-m span { padding: 9px 12px; border-radius: 16px 16px 16px 4px; font-size: .82rem; line-height: 1.35; background: var(--card); border: 1px solid var(--edge, rgba(255, 255, 255, .08)); }
.cc-m.me { justify-self: end; justify-items: end; } .cc-m.me span { border-radius: 16px 16px 4px 16px; color: #04120C; background: #10B981; border: 0; }
.cc-q { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.cc-q button { flex: none; height: 32px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: 700 .72rem/1 Inter, system-ui, sans-serif; white-space: nowrap; color: var(--text); background: var(--card); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--gold) 40%, transparent); }
.cc-in { display: flex; gap: 6px; } .cc-in input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--edge, rgba(255, 255, 255, .12)); background: var(--card); color: var(--text); font: 600 .84rem/1 Inter, system-ui, sans-serif; }
.cc-in button { width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer; color: #04120C; background: #10B981; display: grid; place-items: center; }
.st-tool { display: grid; gap: 10px; } .st-l { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .84rem; font-weight: 700; }
.st-l input[type=number] { width: 110px; height: 40px; border-radius: 12px; border: 1px solid var(--edge, rgba(255, 255, 255, .12)); background: var(--card); color: var(--text); text-align: center; font: 700 1rem/1 Inter, system-ui, sans-serif; }
.st-tool input[type=range] { width: 100%; accent-color: #10B981; }
.st-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .st-g.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.st-g > div { display: grid; gap: 2px; height: 74px; align-content: center; padding: 0 12px; border-radius: 14px; background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); }
.st-g b { font-size: 1.25rem; font-variant-numeric: tabular-nums; } .st-g small { font-size: .66rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-big { display: grid; justify-items: center; padding: 14px; border-radius: 18px; background: transparent; background: color-mix(in srgb, var(--text) 4%, transparent); } .st-big b { font-size: 2.2rem; color: var(--accent); } .st-big small { color: var(--muted); }

.me-lx { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; margin-top: 8px; align-items: center; }
.me-studio { display: flex; align-items: center; justify-content: center; gap: 8px; height: 46px; border-radius: 999px; border: 0; cursor: pointer; font: 800 .84rem/1 Inter, system-ui, sans-serif; white-space: nowrap; color: #2A1E04; background: linear-gradient(135deg, #F5DC8A, #D4AF37); box-shadow: 0 10px 20px -10px rgba(212, 175, 55, .8); overflow: hidden; }
.me-studio span { overflow: hidden; text-overflow: ellipsis; }
.me-lx .lx-pill { height: 46px; }
.me-pal { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-rows: 74px; }

/* zero-shift: fixed heights + clamps for every repeating block, pill and tab in the app */
.sh-tab small, .sh-scan small, .chip, .pillar, .cp-ico + b, .th-modes button, .lang-switch button, .hub-tabs button, .cc-q button, .tl-go, .ch-btn, .ri-cost, .rw-chip, .nh-x { white-space: nowrap; }
html.shell .pillar span, html.shell .pillar small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
html.shell .chip { height: 34px; flex: none; }
html.shell .poi-item { height: 104px; min-height: 104px; overflow: hidden; }
html.shell .poi-item p, html.shell .poi-item small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rw-lv > b, .rw-lv > small, .rw-streak, .ch-t b, .rw-item b, .rw-item small, .bd b, .bd small { overflow: hidden; text-overflow: ellipsis; }
.rw-lv > b, .rw-streak, .rw-item small { white-space: nowrap; max-width: 100%; }
.ch-t b, .rw-item b, .bd b, .bd small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rw-lv > small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; height: 2.5em; }
.rw-hero { height: 170px; } .rw-card > header h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.sh-h, .me-sec h3 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dr-title b { white-space: nowrap; }
html.shell .transport-bar { height: 72px; overflow: hidden; }
html.shell .tb-btn span, html.shell .tb-btn em, html.shell .tb-txt b, html.shell .tb-txt small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .th-head h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .th-head > div { min-width: 0; }
.rw-stats > div { height: 118px; min-height: 0; overflow: hidden; }
.rw-stats small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bd { height: 120px; min-height: 0; overflow: hidden; }

/* ==========================================================
   ZERO-SHIFT LOCKS (app) — every block keeps the same box in EN / GR / SK / BG
   ========================================================== */
html.shell .poi-item { display: grid !important; grid-template-columns: auto minmax(0, 1fr) 96px; align-items: center; }
html.shell .poi-body { min-width: 0; width: 100%; height: 84px; display: grid !important; align-content: center; justify-items: start; gap: 3px; overflow: hidden; }
html.shell .poi-body strong { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; width: 100%; line-height: 1.2; white-space: normal !important; }
html.shell .poi-body small { display: block; width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .poi-body > span { max-width: 100%; overflow: hidden; white-space: nowrap; }
html.shell .poi-go { width: 96px; padding-left: 6px !important; padding-right: 6px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-content: center; }
html.shell .chip { width: 118px; justify-content: center; overflow: hidden; text-overflow: ellipsis; }
html.shell .chip[data-cat="all"] { width: 64px; }
html.shell .pulse-body { height: 76px; overflow: hidden; }
html.shell .pulse-body * { overflow: hidden; text-overflow: ellipsis; }
html.shell .sb-exit { width: 116px; justify-content: center; overflow: hidden; white-space: nowrap; }
html.shell .sb-exit span { overflow: hidden; text-overflow: ellipsis; }
html.shell .wb-go { width: 116px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.shell .tb-btn { width: 200px; flex: none; overflow: hidden; }
.ptr { width: 160px; }
.ptr small { max-width: 160px; overflow: hidden; text-overflow: ellipsis; }
html.shell .transit-hub { width: 100%; min-width: 0; max-width: 100%; overflow: hidden; }
html.shell .th-head > div { flex: 1; min-width: 0; }
html.shell .th-head h2, html.shell .th-head p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .th-pills { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap !important; }
html.shell .th-pill { width: 104px; flex: none; justify-content: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.shell .th-pill[data-mode="all"] { width: 104px; }
html.shell .th-name { flex: 1; min-width: 0; }
html.shell .th-name b, html.shell .th-name small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .th-eta { width: 84px; flex: none; text-align: right; overflow: hidden; }
html.shell .th-eta b, html.shell .th-eta small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .th-more { width: 170px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-streak { width: 150px; justify-content: flex-start; }
.me-prof .sqa-btn { width: 100%; justify-content: center; }
.me-prof .sqa-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.shell .ag-txt { flex: 1; min-width: 0; }
html.shell .ag-txt b, html.shell .ag-txt small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .transit-hub { grid-template-columns: minmax(0, 1fr); }
html.shell .transit-hub > * { min-width: 0; max-width: 100%; }
html.shell .city-pill b, html.shell .city-pill small { flex: 1 1 0; min-width: 0; }
html.shell .pillar > span, html.shell .pillar > small { display: block; width: 100%; text-align: center; }
.sh-tab small, .sh-scan small { display: block; width: 100%; text-align: center; }
html.shell .th-eta { display: grid !important; justify-items: stretch !important; }
html.shell .th-eta > * { width: 100%; text-align: right; }
html.shell .th-name > * { width: 100%; }
html.shell .th-foot > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rr-in > * { width: 112px; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rw-lv > b, .rw-lv > small { width: 100%; }
.me-prof .sqa-btn span, html.shell .reset-btn span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-studio span { width: calc(100% - 52px); text-align: center; }
html.shell #ecoBadge { width: 112px !important; justify-content: flex-start; overflow: hidden; }
html.shell #ecoBadge .eco-text { min-width: 0; overflow: hidden; }
html.shell #ecoBadge .eco-text strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.shell #ecoBadge .eco-text { flex: 1; } html.shell #ecoBadge .eco-text strong { width: 100%; }
html.shell .pulse-live { width: 92px; flex: none; justify-content: center; overflow: hidden; white-space: nowrap; }
html.shell .th-live { width: 100px; flex: none; justify-content: center; overflow: hidden; white-space: nowrap; }
.rw-item { height: 150px; min-height: 0 !important; overflow: hidden; }
.me-brand .slogan { height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; line-height: 1.3; }
html.shell .pulse { position: relative; display: grid !important; grid-template-columns: 92px 30px minmax(0, 1fr); align-items: center; gap: 8px; }
html.shell .pulse .pulse-tag { position: absolute; right: 10px; top: 6px; max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.shell .pulse .pulse-dots { position: absolute; right: 12px; bottom: 6px; }
html.shell .pulse-body { width: 100%; }
html.shell .pulse { min-height: 96px; height: 96px; }
html.shell .pulse .pulse-name { display: none; }
html.shell .pulse-body { gap: 2px; justify-content: center; padding-right: 4px; }
html.shell .pulse-body b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .pulse-body small { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
html.shell .pulse .pulse-tag { top: auto; bottom: 6px; right: 40px; max-width: 52%; font-size: .6rem; padding: 2px 8px; }
html.shell .pulse:has(.pulse-tag) .pulse-body small { -webkit-line-clamp: 1; }

/* zero-shift: place sheet (title, chips, pickup button, contact row, coupon) */
html.shell .sheet-head .sheet-cat { display: flex; width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell #sheetTitle { height: 2.4em; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.shell .sheet-head > p { height: 2.8em; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 0; }
html.shell .sheet .chip-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
html.shell .sheet .chip-s { width: 100%; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; justify-content: flex-start; }
html.shell .sheet .btn-primary[data-pickup] { display: grid !important; grid-template-columns: 24px minmax(0, 1fr) 96px; align-items: center; height: 58px; }
html.shell .sheet .btn-primary[data-pickup] > span, html.shell .sheet .btn-primary[data-pickup] > small { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .sheet .btn-row { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); height: 52px; }
html.shell .sheet .btn-row > * { min-width: 0; height: 52px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .sheet .coupon { display: grid !important; grid-template-columns: minmax(0, 1fr) 132px; align-items: center; gap: 10px; height: 128px; }
html.shell .sheet .coupon > div { min-width: 0; display: grid; gap: 4px; }
html.shell .sheet .coupon-off, html.shell .sheet .coupon-code { display: block; height: 24px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .sheet .coupon-txt { height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.shell .sheet .coupon .btn-gold { width: 132px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
html.shell .sheet .btn-primary[data-pickup] { grid-template-columns: 24px minmax(0, 1fr) 88px; height: 64px; }
html.shell .sheet .btn-primary[data-pickup] > span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; font-size: .9rem; text-align: left; }
html.shell .sheet .btn-primary[data-pickup] > small { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; text-align: right; }
html.shell .sheet .coupon { grid-template-columns: minmax(0, 1fr) 140px; }
html.shell .sheet .coupon .btn-gold { width: 140px; height: 54px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.15; padding: 0 10px; display: grid; place-items: center; text-align: center; }
html.shell .sheet .coupon-off { font-size: 1.15rem; line-height: 24px; }
html.shell .sheet .btn-primary[data-pickup] > small { height: 2.3em; display: -webkit-box; align-content: center; }

/* map credits (core/map.js · compactAttribution): 'credits' mode hides them on the map, 'corner' mode = ⓘ bottom-left */
.leaflet-control-attribution.sq-attr-off { display: none !important; }
.leaflet-control-attribution.sq-attr { position: relative; cursor: pointer; display: block; min-height: 22px; padding: 2px 8px 2px 26px !important;
  border-radius: 11px; line-height: 18px; white-space: nowrap; transition: opacity .3s ease; -webkit-tap-highlight-color: transparent; }
.leaflet-control-attribution.sq-attr::before { content: 'i'; position: absolute; left: 5px; top: 50%; width: 14px; height: 14px; margin-top: -7px; border-radius: 50%;
  border: 1.5px solid var(--muted); color: var(--muted); font: italic 700 10px/11px Georgia, 'Times New Roman', serif; text-align: center; box-sizing: border-box; }
.leaflet-control-attribution.sq-attr:not(.open) { width: 24px; padding: 0 !important; font-size: 0 !important; overflow: hidden; opacity: .8; }
.leaflet-control-attribution.sq-attr:not(.open) a { display: none; }
.leaflet-control-attribution.sq-attr:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.leaflet-bottom.leaflet-left .leaflet-control-attribution.sq-attr { margin-left: 8px !important; }

/* ---------- every phone: tiny screens, foldables, tablets, landscape ---------- */
.hd-brand { overflow: hidden; }
.rw-streak { max-width: 100%; }
/* the wordmark only fits next to the points pill and three buttons from ~420px; below that the logo mark stays alone */
@media (max-width: 419px) { .hd-brand .logo-lockup .logo { display: none; } }
@media (max-width: 359px) {
  .hd-row { gap: 6px; }
  .rw-hero { grid-template-columns: 92px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .rw-ring { width: 92px; height: 92px; }
  .rw-ring .rr-in b { font-size: 1.3rem; }
}
@media (min-width: 700px) {
  .sh-pane:not(.sh-explore) { padding-inline: max(14px, calc((100vw - 720px) / 2)); }
  .sh-drawer { max-width: 720px; margin-inline: auto; }
}
@media (orientation: landscape) and (max-height: 500px) {
  html.shell { --tabh: 50px; }
  .hd-row { height: 36px; }
  html.shell .app-header { padding-top: calc(var(--sat) + 3px) !important; padding-bottom: 4px !important; }
  .sh-tab small { display: none; }
  html.shell .app-header, .sh-tabbar { padding-left: max(12px, env(safe-area-inset-left)) !important; padding-right: max(12px, env(safe-area-inset-right)) !important; }
}

/* src/features/voice-guide/voice-guide.css */
/* sQReet · Voice guide – spoken briefing lines (current line lights up · tap a line to hear it again) */
.modal--voice .vg-lines { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; max-height: 36vh; overflow-y: auto; overscroll-behavior: contain; }
.vg-lines li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--glass); border: 1px solid var(--glass-border);
  font-size: .84rem; line-height: 1.45; color: var(--text); cursor: pointer; transition: background .25s var(--ease, ease), border-color .25s var(--ease, ease); }
.vg-lines li span { flex: 1; min-width: 0; }
.vg-lines li.on { border-color: var(--accent); background: var(--glass); background: color-mix(in srgb, var(--accent) 16%, var(--glass)); }
.vg-walk { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 11px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  border: 1px solid var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); background: transparent; color: var(--accent); font-family: Inter, system-ui, sans-serif; font-size: .72rem; font-weight: 700; }
.vg-walk:hover, .vg-walk:focus-visible { background: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* src/features/navigation/navigation.css */
/* sQReet · Navigation HUD – voice on / off button */
.nh-main .nh-txt { flex: 1; }
.nh-voice { flex: none; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .16); color: inherit; transition: opacity .2s, background .2s; }
.nh-voice:hover, .nh-voice:focus-visible { background: rgba(255, 255, 255, .26); }
.nh-voice.off { opacity: .55; }

/* src/features/accessibility/accessibility.css */
/* sQReet · Accessibility mode (features/accessibility) – active when <html class="a11y"> */
html.a11y { --muted: color-mix(in srgb, var(--text) 86%, var(--bg)); }
html.a11y body { letter-spacing: .005em; }
html.a11y .poi-list, html.a11y .vg-lines li, html.a11y .transcript, html.a11y .modal-panel p, html.a11y .sheet p { font-size: 1.08em; }
html.a11y .nh-txt b { font-size: 1.75rem; }
html.a11y .nh-txt span, html.a11y .nh-meta small { font-size: .95rem; opacity: 1; }
html.a11y button:focus-visible, html.a11y a:focus-visible, html.a11y [tabindex]:focus-visible { outline: 3px solid var(--accent) !important; outline-offset: 2px; }
html.a11y .chip, html.a11y .poi-go, html.a11y .vg-walk { border-width: 2px; }

/* the switch (Me → Tools) */
.a11y-tgl { display: flex; align-items: center; gap: 12px; width: 100%; min-width: 0; height: 64px; padding: 0 14px; border-radius: 14px; text-align: left; cursor: pointer;
  background: var(--glass); border: 1px solid var(--edge, var(--glass-border)); color: var(--text); font-family: Inter, system-ui, sans-serif; }
.a11y-ico { flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: var(--accent);
  background: transparent; background: color-mix(in srgb, var(--accent) 14%, transparent); }
.a11y-txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.a11y-txt b { font-size: .88rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.a11y-txt small { font-size: .68rem; line-height: 1.25; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.a11y-sw { flex: none; position: relative; width: 44px; height: 26px; border-radius: 13px; background: transparent; background: color-mix(in srgb, var(--text) 18%, transparent); transition: background .25s; }
.a11y-sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); transition: transform .25s cubic-bezier(.2, .9, .3, 1.2); }
.a11y-tgl[aria-checked="true"] .a11y-sw { background: var(--accent); }
.a11y-tgl[aria-checked="true"] .a11y-sw i { transform: translateX(18px); }
.me-tools .tools-row > .a11y-tgl { height: 64px !important; }
.me-tools > .a11y-tgl { margin-top: 8px; }

/* styles/08-polish.css */
/* sQReet · polish layer – light, depth & motion on top of every theme (app)
   Rule: nothing here changes a size (only transforms, shadows, masks, filters,
   animations), so fixed-size blocks never shift between languages.
   (cascade order matters – files are linked in index.html in this order) */

/* tab bar: the active tab glows in the theme accent, a lit line sits on top of the bar */
.sh-tab[aria-selected="true"] svg { filter: drop-shadow(0 0 7px var(--accent)); filter: drop-shadow(0 0 7px color-mix(in srgb, var(--accent) 70%, transparent)); }
.sh-tabbar { box-shadow: inset 0 1px 0 transparent, 0 -18px 40px -18px rgba(0, 0, 0, .55); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold) 22%, transparent), 0 -18px 40px -18px rgba(0, 0, 0, .55); }

/* drawer handle: theme gradient, a hint that it can be dragged */
.dr-handle { background: linear-gradient(90deg, var(--accent), var(--gold)); background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 70%, transparent), color-mix(in srgb, var(--gold) 80%, transparent)); box-shadow: 0 0 10px transparent; box-shadow: 0 0 10px color-mix(in srgb, var(--accent) 35%, transparent); }

/* horizontal rows fade out at the right edge → "there is more, swipe" */
#chips, #pillarTabs, .hub-tabs, .th-modes {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
          mask-image: linear-gradient(90deg, #000 calc(100% - 34px), transparent);
}

/* tactile press feedback on every tappable control */
.chip, .pillar, .qa, .poi-go, .vg-walk, .btn-primary, .btn-soft, .a11y-tgl, .ag-btn, .city-pill, .me-tools button, .rw-chip, .tl-go, .ch-btn, .nh-voice, .nh-x {
  transition: transform .14s cubic-bezier(.2, .9, .3, 1.2), filter .2s, background-color .25s, border-color .25s, box-shadow .25s, color .25s;
}
.chip:active, .pillar:active, .qa:active, .poi-go:active, .vg-walk:active, .btn-primary:active, .btn-soft:active, .a11y-tgl:active, .ag-btn:active,
.city-pill:active, .me-tools button:active, .rw-chip:active, .tl-go:active, .ch-btn:active, .nh-voice:active, .nh-x:active { transform: scale(.965); filter: brightness(1.08); }

/* tab change: the content of the new tab rises in, one block after another */
.sh-pane[aria-hidden="false"] :is(#rwRoot, #meRoot) > *,
.sh-pane[aria-hidden="false"].sh-transit > :not(.ptr) { animation: sqRise .55s cubic-bezier(.2, .8, .2, 1) both; }
.sh-pane[aria-hidden="false"] :is(#rwRoot, #meRoot) > :nth-child(2) { animation-delay: .05s; }
.sh-pane[aria-hidden="false"] :is(#rwRoot, #meRoot) > :nth-child(3) { animation-delay: .1s; }
.sh-pane[aria-hidden="false"] :is(#rwRoot, #meRoot) > :nth-child(4) { animation-delay: .15s; }
.sh-pane[aria-hidden="false"] :is(#rwRoot, #meRoot) > :nth-child(n+5) { animation-delay: .2s; }
@keyframes sqRise { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .sh-pane[aria-hidden="false"] :is(#rwRoot, #meRoot) > *, .sh-pane[aria-hidden="false"].sh-transit > * { animation: none !important; }
}

/* light themes (Alabaster, Mediterranean Sand): glows re-tuned so the same details stay visible */
html[data-theme="light"] .sh-tab[aria-selected="true"] svg { filter: drop-shadow(0 2px 5px var(--accent)); filter: drop-shadow(0 2px 5px color-mix(in srgb, var(--accent) 55%, transparent)); }
html[data-theme="light"] .sh-tabbar { box-shadow: inset 0 1px 0 transparent, 0 -14px 34px -18px rgba(15, 23, 42, .28); box-shadow: inset 0 1px 0 color-mix(in srgb, var(--gold) 45%, transparent), 0 -14px 34px -18px rgba(15, 23, 42, .28); }
html[data-theme="light"] .dr-handle { box-shadow: none; }

/* Me → profile: the weather chip sits under the sign-in button instead of over the next heading */
.me-prof .auth-row { height: auto !important; min-height: 0 !important; }

/* ---------- weather: wind + rain chance (Environment pillar) and rain / wind banners ---------- */
.wx-card { display: grid; gap: 8px; margin-top: 8px; padding: 10px 12px; border-radius: 16px; background: var(--card, rgba(255, 255, 255, .04)); border: 1px solid var(--border, rgba(255, 255, 255, .08)); }
.wx-row { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 10px; row-gap: 5px; align-items: center; }
.wx-ico { grid-row: 1 / 3; width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; color: #38BDF8; background: rgba(56, 189, 248, .14); }
.wx-ico.rain { color: #60A5FA; background: rgba(96, 165, 250, .14); }
.wx-t { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; min-width: 0; }
.wx-t small { font-size: .7rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wx-t b { font-size: .82rem; white-space: nowrap; } .wx-t b em { font-style: normal; font-weight: 600; color: var(--muted); font-size: .72rem; }
.wx-bar { display: block; height: 5px; border-radius: 5px; background: rgba(148, 163, 184, .18); position: relative; overflow: hidden; }
.wx-bar::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--p); border-radius: inherit; background: linear-gradient(90deg, #38BDF8, #0EA5E9); }
.wx-bar.rain::after { background: linear-gradient(90deg, #93C5FD, #2563EB); }
#warmBanner[data-kind="rain"] .wb-ico { color: #60A5FA; background: rgba(96, 165, 250, .16); }
#warmBanner[data-kind="rain"] .wb-go { color: #fff; background: linear-gradient(135deg, #60A5FA, #2563EB); }
#warmBanner[data-kind="wind"] .wb-ico { color: #38BDF8; background: rgba(56, 189, 248, .16); }
#warmBanner[data-kind="wind"] .wb-go { color: #04263A; background: linear-gradient(135deg, #7DD3FC, #0EA5E9); }

/* taxi hand-off (features/ride) */
.modal--taxi .mod-sub { margin: -4px 0 14px; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.modal--taxi .ride-est { display: grid; gap: 4px; margin: 14px 0; padding: 14px 16px; border-radius: 14px; background: transparent; background: color-mix(in srgb, var(--gold, #D4AF37) 8%, transparent); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--gold, #D4AF37) 28%, transparent); }
.modal--taxi .ride-est b { font-size: 1.5rem; letter-spacing: -.02em; }
.modal--taxi .ride-est small { color: var(--muted); font-size: .76rem; line-height: 1.4; }
.modal--taxi a.btn-primary, .modal--taxi a.btn-soft { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 10px; text-decoration: none; text-align: center; }
.modal--taxi a.btn-primary small, .modal--taxi a.btn-soft small { flex-basis: 100%; font-size: .72rem; opacity: .8; }
.modal--taxi a.btn-soft { margin-top: 10px; }

/* real camera scanner (features/scan) */
#scanOverlay .sc-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; opacity: 0; transition: opacity .4s; }
#scanOverlay.live .sc-video { opacity: 1; }
#scanOverlay .sc-status small { display: block; margin-top: 6px; opacity: .75; word-break: break-all; }
#scanOverlay .sc-status > b { font-size: .92rem; line-height: 1.5; font-weight: 600; }
#scanOverlay .sc-pick { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 4px 8px; width: 100%; margin-top: 14px; padding: 13px 16px; border: 0; border-radius: 14px; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 750; line-height: 1.2; color: #1a1205; background: linear-gradient(135deg, #F5DC8A, #D4AF37 55%, #A8862A); box-shadow: 0 3px 0 #6b520c, 0 10px 20px -8px rgba(0, 0, 0, .6); }
#scanOverlay .sc-pick small { flex-basis: 100%; margin: 0; font-size: .74rem; font-weight: 600; color: #3b2a06; opacity: .85; word-break: normal; }

/* src/features/real-places/real-places.css */
/* ==========================================================
   sQReet · Real places – free-space badge on parking pins, info card + real contact buttons
   ========================================================== */

/* Smart Parking: live free spaces on the pin */
.pin-free {
  position: absolute; z-index: 3; top: -8px; right: -10px; min-width: 22px; height: 18px; padding: 0 5px;
  display: inline-flex; align-items: center; justify-content: center; border-radius: 999px;
  font: 800 10.5px/1 'Plus Jakarta Sans', Inter, system-ui, sans-serif; font-variant-numeric: tabular-nums; color: #fff;
  background: #16A34A; box-shadow: 0 2px 6px rgba(0, 0, 0, .35), 0 0 0 1.5px #fff; pointer-events: none;
}
.pin-free--mid { background: #D97706; }
.pin-free--low { background: #DC2626; }

/* info card under the place title */
.rp-info { display: grid; gap: 10px; margin: 2px 0 4px; }
.rp-rows { display: grid; gap: 6px; margin: 0; padding: 10px 12px; border-radius: 16px;
  background: transparent; background: color-mix(in srgb, var(--c, #10B981) 9%, transparent); border: 1px solid transparent; border: 1px solid color-mix(in srgb, var(--c, #10B981) 24%, transparent); }
.rp-rows > div { display: grid; grid-template-columns: minmax(84px, auto) 1fr; gap: 10px; align-items: baseline; }
.rp-rows > div:has(> dd:only-child) { grid-template-columns: 1fr; }
.rp-rows dt { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; color: var(--muted, #64748B); text-transform: uppercase; }
.rp-rows dd { margin: 0; font-size: 13.5px; font-weight: 600; line-height: 1.35; color: var(--text, inherit); overflow-wrap: anywhere; }
.rp-src { margin: 0; font-size: 10.5px; color: var(--muted, #64748B); opacity: .85; }

/* free spaces meter */
.rp-park { padding: 12px 14px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #2563EB, #1E40AF); box-shadow: 0 10px 24px -12px rgba(37, 99, 235, .8), inset 0 1px 0 rgba(255, 255, 255, .25); }
.rp-park-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; }
.rp-park-top b { font-size: 13px; white-space: nowrap; }
.rp-free { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.rp-park-top small { font-size: 12px; opacity: .85; font-weight: 700; }
.rp-bar { height: 8px; margin: 8px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .22); overflow: hidden; }
.rp-bar i { display: block; height: 100%; border-radius: inherit; background: #4ADE80; transition: width .8s var(--ease, ease); }
.rp-park--mid .rp-bar i { background: #FBBF24; }
.rp-park--low .rp-bar i { background: #F87171; }
.rp-est { font-size: 11px; opacity: .9; }

/* real contact channels */
.btn-soft.rp-ig { color: #fff; background: linear-gradient(135deg, #F58529, #DD2A7B 50%, #8134AF); border-color: transparent; }
.btn-soft.rp-fb { color: #fff; background: #1877F2; border-color: transparent; }
.btn-soft.rp-web { color: var(--text, inherit); }
.btn-soft.rp-dir { color: #fff; background: linear-gradient(135deg, #0EA5E9, #0369A1); border-color: transparent; }
.btn-soft.rp-ig svg, .btn-soft.rp-fb svg, .btn-soft.rp-dir svg { color: #fff; }

/* light themes keep the same depth */
html[data-theme="light"] .rp-rows { background: #fff; background: color-mix(in srgb, var(--c, #10B981) 7%, #fff); }
html[data-theme="light"] .pin-free { box-shadow: 0 2px 6px rgba(15, 23, 42, .25), 0 0 0 1.5px #fff; }

/* real contact channels can be 2–5 buttons: wrap into two columns instead of squeezing one row */
.sheet .btn-row:has(.rp-dir),
html.shell .sheet .btn-row:has(.rp-dir) { display: grid !important; grid-auto-flow: row !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; height: auto !important; }
.sheet .btn-row:has(.rp-dir) > :last-child:nth-child(odd) { grid-column: 1 / -1; }

/* src/features/custom-radius/custom-radius.css */
/* sQReet · Custom geo-radius (features/custom-radius) */
.radius-toggle { grid-template-columns: repeat(4, auto) !important; }
.rc-btn { padding: 0 10px; border-radius: 11px; font-weight: 800; font-size: .76rem; color: var(--muted); white-space: nowrap; background: none; border: 0; cursor: pointer; font-family: inherit; }
.rc-btn[aria-pressed="true"] { color: var(--accent-ink); background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--gold))); }
.rc-btn[aria-expanded="true"] { box-shadow: inset 0 0 0 1.5px var(--accent); }
.rc-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 8px; margin-top: 8px; padding: 6px 6px 6px 12px; border-radius: 14px; }
.rc-row[hidden] { display: none; }
.rc-row input { min-width: 0; height: 36px; border: 0; background: transparent; color: var(--text); font: 800 1rem Inter, system-ui, sans-serif; outline: none; }
.rc-unit { color: var(--muted); font-size: .8rem; font-weight: 700; }
.rc-ok { height: 36px; padding: 0 16px; border-radius: 11px; border: 0; cursor: pointer; font: 800 .8rem Inter, system-ui, sans-serif; color: var(--accent-ink);
  background: linear-gradient(135deg, var(--accent), var(--accent)); background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, var(--gold))); }
.rc-hint { grid-column: 1 / -1; color: var(--muted); font-size: .66rem; }
.rc-row.bad { animation: rcShake .35s; box-shadow: inset 0 0 0 1.5px #EF4444; }
@keyframes rcShake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* src/features/app-glow/app-glow.css */
/* ==========================================================
   sQReet · app glow — design layer (uses only theme variables, works in every palette)
   ========================================================== */

/* greeting + live clock */
.ag-greet { display: flex; align-items: center; gap: 7px; margin: 0 2px 8px; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; }
.ag-greet b { color: var(--text); font-weight: 700; letter-spacing: .01em; }
.ag-greet .ag-date { overflow: hidden; text-overflow: ellipsis; text-transform: capitalize; }
.ag-greet time { margin-left: auto; padding: 2px 8px; border-radius: 99px; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--text);
  background: transparent; background: color-mix(in srgb, var(--text) 7%, transparent); border: 1px solid var(--glass-border, rgba(255,255,255,.1)); }
.ag-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; box-shadow: 0 0 10px currentColor; }
.ag-morning { color: #FBBF24; background: radial-gradient(circle at 35% 35%, #FDE68A, #F59E0B); }
.ag-afternoon { color: #F59E0B; background: radial-gradient(circle at 35% 35%, #FEF3C7, #F59E0B); }
.ag-evening { color: #FB7185; background: radial-gradient(circle at 35% 35%, #FDBA74, #E11D48); }
.ag-night { color: #93C5FD; background: radial-gradient(circle at 35% 35%, #E0E7FF, #6366F1); }

/* time-of-day ambience behind the header */
html.shell body::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 240px; pointer-events: none; z-index: 0; opacity: .55; transition: background 1.2s;
  background: radial-gradient(70% 100% at 80% -10%, var(--ag-amb, rgba(212,175,55,.18)), transparent 70%); }
html[data-daypart="morning"] { --ag-amb: rgba(251, 191, 36, .20); }
html[data-daypart="afternoon"] { --ag-amb: rgba(16, 185, 129, .18); }
html[data-daypart="evening"] { --ag-amb: rgba(244, 114, 182, .20); }
html[data-daypart="night"] { --ag-amb: rgba(99, 102, 241, .22); }

/* pillar tabs: labels always fit */
#pillarTabs .pillar span { font-size: .64rem !important; letter-spacing: 0; overflow: visible !important; text-overflow: clip !important; white-space: nowrap; }

/* place sheet: save + share */
.ag-acts { display: flex; gap: 8px; margin-top: 12px; }
.ag-btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 99px; font: inherit; font-size: .82rem; font-weight: 700; cursor: pointer;
  color: var(--text); background: transparent; background: color-mix(in srgb, var(--text) 6%, transparent); border: 1px solid var(--glass-border, rgba(255,255,255,.12)); transition: transform .15s var(--spring, ease), background .2s; }
.ag-btn:active { transform: scale(.95); }
.ag-btn.on { color: #fff; background: linear-gradient(135deg, #FB7185, #E11D48); border-color: transparent; box-shadow: 0 6px 18px -8px #E11D48; }
.ag-btn.on svg { animation: agPop .45s var(--spring, ease); }
@keyframes agPop { 0% { transform: scale(.6); } 60% { transform: scale(1.25); } 100% { transform: scale(1); } }

/* Me: saved + recent */
.ag-me h3 { display: flex; align-items: center; gap: 8px; }
.ag-me h3 small { color: var(--gold); font-weight: 800; }
.ag-list { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.ag-list li { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }
.ag-list li > button:first-child { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px; background: none; border: 0; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.ag-list b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ag-ico { display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 10px; color: var(--accent-ink, #1a1205); background: linear-gradient(135deg, var(--t-premier-hi, #F5DC8A), var(--gold)); }
.ag-x { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; border: 0; background: none; color: #FB7185; cursor: pointer; }
.ag-clear { margin-left: auto; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--border); background: none; color: var(--muted); font: inherit; font-size: .72rem; cursor: pointer; }
.ag-empty { margin: 0 0 14px; padding: 14px; border-radius: 16px; border: 1px dashed var(--border); color: var(--muted); font-size: .85rem; text-align: center; }

/* offline notice */
.ag-net { position: fixed; left: 12px; right: 12px; top: calc(env(safe-area-inset-top, 0px) + 10px); z-index: 9999; padding: 10px 14px; border-radius: 14px; font-size: .8rem; font-weight: 600;
  color: #1a1205; background: linear-gradient(135deg, #FDE68A, #F59E0B); box-shadow: 0 10px 30px -10px rgba(0,0,0,.6); transform: translateY(-140%); transition: transform .4s var(--spring, ease); }
.ag-net.in { transform: none; }

/* bottom bar: glowing active tab */
html.shell .sh-tab { position: relative; transition: color .25s; }
html.shell .sh-tab[aria-selected="true"]::after { content: ""; position: absolute; left: 50%; bottom: 4px; width: 22px; height: 3px; border-radius: 3px; transform: translateX(-50%);
  background: var(--gold); box-shadow: 0 0 12px var(--gold); animation: agBar .35s var(--spring, ease); }
@keyframes agBar { from { width: 0; opacity: 0; } to { width: 22px; opacity: 1; } }

/* scan button: soft breathing halo */
html.shell .sh-scan .sc-ring { position: relative; }
html.shell .sh-scan .sc-ring::after { content: ""; position: absolute; inset: -6px; border-radius: inherit; border: 2px solid var(--gold); opacity: 0; animation: agHalo 2.8s ease-out infinite; pointer-events: none; }
@keyframes agHalo { 0% { transform: scale(.9); opacity: .55; } 70%, 100% { transform: scale(1.25); opacity: 0; } }

/* lists glide in */
.poi-list > li, .ts-row, .ag-list li, .me-card, .rw-card { animation: agIn .5s var(--spring, cubic-bezier(.2,.8,.2,1)) both; }
.poi-list > li:nth-child(2), .ts-row:nth-child(2) { animation-delay: .04s; } .poi-list > li:nth-child(3), .ts-row:nth-child(3) { animation-delay: .08s; }
.poi-list > li:nth-child(4), .ts-row:nth-child(4) { animation-delay: .12s; } .poi-list > li:nth-child(5), .ts-row:nth-child(5) { animation-delay: .16s; }
@keyframes agIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  .poi-list > li, .ts-row, .ag-list li, .me-card, .rw-card, html.shell .sh-scan .sc-ring::after, html.shell .sh-tab[aria-selected="true"]::after { animation: none !important; }
}
html[data-theme="light"].shell body::before { opacity: .35; }

/* src/features/social/social.css */
/* ==========================================================
   sQReet Social — full-screen luxury sheet (theme variables only)
   ========================================================== */
.so-btn { position: relative; flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; cursor: pointer; color: var(--text);
  background: var(--glass); border: 1px solid var(--edge, rgba(255, 255, 255, .12)); }
.so-btn .so-dot { position: absolute; top: 4px; right: 4px; width: 9px; height: 9px; border-radius: 50%; background: #F43F5E; box-shadow: 0 0 0 2px var(--bg), 0 0 10px #F43F5E; }

.soc { position: fixed; inset: 0; z-index: 9000; display: flex; align-items: flex-end; pointer-events: none; }
.soc::before { content: ""; position: absolute; inset: 0; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; backdrop-filter: blur(4px); }
.soc.in { pointer-events: auto; } .soc.in::before { opacity: 1; }
.so-panel { position: relative; width: 100%; height: 100%; display: flex; flex-direction: column; color: var(--text);
  background: radial-gradient(120% 60% at 100% 0%, transparent, transparent 60%), radial-gradient(90% 50% at 0% 100%, transparent, transparent 60%), var(--bg); background: radial-gradient(120% 60% at 100% 0%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 60%), radial-gradient(90% 50% at 0% 100%, color-mix(in srgb, #10B981 10%, transparent), transparent 60%), var(--bg);
  transform: translateY(100%); transition: transform .45s var(--spring, cubic-bezier(.2, .9, .2, 1)); }
.soc.in .so-panel { transform: none; }
.so-head { display: flex; align-items: center; gap: 10px; padding: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px) 14px 10px; border-bottom: 1px solid var(--border); }
.so-head h2 { flex: 1; margin: 0; font-size: 1.05rem; font-weight: 800; letter-spacing: -.01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-logo { font-weight: 900; font-size: 1.05rem; } .so-logo b { color: var(--gold); }
.so-ic { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 13px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; }
.so-ic.so-sm { width: 30px; height: 30px; border-radius: 10px; margin-left: 4px; }
.so-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 14px 14px 20px; -webkit-overflow-scrolling: touch; }
.so-tabs { display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px 8px calc(var(--sab, env(safe-area-inset-bottom, 0px)) + 8px); border-top: 1px solid var(--border); background: var(--bg); background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(14px); }
.so-tabs button { position: relative; display: grid; justify-items: center; gap: 3px; padding: 7px 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; }
.so-tabs small { font-size: .66rem; font-weight: 700; }
.so-tabs [aria-selected="true"] { color: var(--gold); } .so-tabs [aria-selected="true"] svg { filter: drop-shadow(0 0 8px var(--gold)); }
.so-badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #F43F5E; color: #fff; font: 800 .62rem/17px Inter, sans-serif; font-style: normal; }
.so-spin { width: 34px; height: 34px; margin: 40px auto; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--gold); animation: soSpin .8s linear infinite; }
@keyframes soSpin { to { transform: rotate(1turn); } }
.so-empty { margin: 26px 8px; text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.5; list-style: none; }

/* welcome */
.so-hello { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 28px 8px; }
.so-hello h3 { margin: 6px 0 0; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.02em; }
.so-hello p { margin: 0; color: var(--muted); line-height: 1.55; font-size: .93rem; }
.so-hello small { color: var(--muted); font-size: .72rem; line-height: 1.5; max-width: 300px; }
.so-orbs { position: relative; width: 150px; height: 110px; }
.so-orbs i { position: absolute; width: 64px; height: 64px; border-radius: 50%; border: 3px solid var(--bg); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .6); animation: soFloat 5s ease-in-out infinite; }
.so-orbs i:nth-child(1) { left: 0; top: 30px; background: radial-gradient(circle at 35% 30%, #FDE68A, #D4AF37 60%, #8a6d1e); }
.so-orbs i:nth-child(2) { left: 43px; top: 0; width: 72px; height: 72px; background: radial-gradient(circle at 35% 30%, #6EE7B7, #10B981 60%, #065f46); animation-delay: -1.6s; }
.so-orbs i:nth-child(3) { right: 0; top: 34px; background: radial-gradient(circle at 35% 30%, #93C5FD, #3B82F6 60%, #1e3a8a); animation-delay: -3.2s; }
@keyframes soFloat { 50% { transform: translateY(-8px); } }
.so-google { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px; padding: 13px 22px; border-radius: 99px; border: 0; cursor: pointer; font: inherit; font-weight: 800;
  color: #1f2937; background: #fff; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5), 0 3px 0 #cbd5e1; }

/* buttons */
.so-primary, .so-ghostbtn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 11px 18px; border-radius: 14px; font: inherit; font-weight: 800; font-size: .88rem; cursor: pointer; }
.so-primary { border: 0; color: var(--accent-ink, #1a1205); background: linear-gradient(135deg, var(--t-premier-hi, #F5DC8A), var(--gold) 55%, var(--t-premier-lo, #A8862A)); box-shadow: 0 3px 0 var(--gold); box-shadow: 0 3px 0 color-mix(in srgb, var(--gold) 55%, #000); }
.so-primary:disabled { opacity: .6; }
.so-ghostbtn { border: 1px solid var(--border); background: var(--card); color: var(--text); }
.so-sm2 { padding: 7px 12px; font-size: .78rem; border-radius: 11px; flex: none; }
.so-seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin-bottom: 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); }
.so-seg button { padding: 9px; border: 0; border-radius: 10px; background: none; color: var(--muted); font: inherit; font-weight: 700; cursor: pointer; }
.so-seg [aria-pressed="true"] { background: var(--glass-strong, rgba(255, 255, 255, .08)); color: var(--text); box-shadow: inset 0 0 0 1px var(--border); }
.so-new { width: 100%; display: flex; align-items: center; gap: 10px; padding: 14px 16px; margin-bottom: 14px; border-radius: 18px; cursor: pointer; font: inherit; font-weight: 800; color: var(--text);
  border: 1px dashed var(--gold); border: 1px dashed color-mix(in srgb, var(--gold) 55%, transparent); background: var(--card); background: color-mix(in srgb, var(--gold) 7%, var(--card)); }
.so-new span { flex: 1; text-align: left; } .so-new svg:first-child { color: var(--gold); }

/* avatars */
.so-av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; object-fit: cover; background: var(--card); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px var(--gold); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--gold) 70%, transparent); }
.so-av--i { color: var(--accent-ink, #1a1205); font-weight: 900; background: linear-gradient(135deg, var(--t-premier-hi, #F5DC8A), var(--gold)); }
.so-who { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; padding: 0; border: 0; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.so-who span { display: grid; min-width: 0; } .so-who b { font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-who small { color: var(--muted); font-size: .74rem; display: flex; align-items: center; gap: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* posts */
.so-feed { display: grid; gap: 16px; }
.so-post { border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--border); box-shadow: 0 18px 40px -26px rgba(0, 0, 0, .8); animation: soIn .45s var(--spring, ease) both; }
@keyframes soIn { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.so-post header { display: flex; align-items: center; gap: 8px; padding: 10px 12px; }
.so-post time { color: var(--muted); font-size: .72rem; flex: none; }
.so-img { display: block; width: 100%; max-height: 520px; object-fit: cover; background: #000; }
.so-acts { display: flex; gap: 6px; padding: 8px 8px 0; }
.so-acts button { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 0; border-radius: 12px; background: none; color: var(--text); font: inherit; font-weight: 800; font-size: .85rem; cursor: pointer; }
.so-like[aria-pressed="true"] { color: #F43F5E; } .so-like[aria-pressed="true"] svg { fill: currentColor; }
.so-like.pop svg { animation: soPop .45s var(--spring, ease); }
@keyframes soPop { 40% { transform: scale(1.35); } }
.so-cap { margin: 4px 14px 14px; font-size: .9rem; line-height: 1.45; } .so-cap b { margin-right: 4px; }

/* compose / forms */
.so-compose { display: grid; gap: 12px; }
.so-compose img { width: 100%; border-radius: 18px; max-height: 420px; object-fit: cover; }
.so-compose label { display: grid; gap: 6px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.so-compose input, .so-compose textarea, .so-bar input, .so-search input { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card); color: var(--text); font: inherit; font-size: .95rem; resize: none; }
.so-compose input:focus, .so-compose textarea:focus, .so-bar input:focus, .so-search input:focus { outline: 2px solid var(--gold); outline: 2px solid color-mix(in srgb, var(--gold) 60%, transparent); outline-offset: 1px; }
.so-check { display: flex !important; grid-template-columns: none; align-items: center; gap: 8px !important; color: var(--text) !important; font-weight: 600 !important; }
.so-avedit { position: relative; justify-self: center; padding: 0; border: 0; background: none; cursor: pointer; }
.so-avedit i { position: absolute; right: -2px; bottom: 2px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--gold); color: var(--accent-ink, #1a1205); box-shadow: 0 0 0 3px var(--bg); }

/* profile */
.so-prof { display: grid; justify-items: center; gap: 6px; text-align: center; padding: 8px 0 14px; }
.so-prof h3 { margin: 8px 0 0; font-size: 1.3rem; } .so-prof > small { color: var(--muted); }
.so-prof p { margin: 4px 0 0; max-width: 320px; line-height: 1.45; font-size: .9rem; }
.so-stats { display: grid; grid-template-columns: repeat(3, 1fr); width: 100%; margin: 12px 0 6px; padding: 12px 0; border-radius: 18px; background: var(--card); border: 1px solid var(--border); }
.so-stats span { display: grid; font-size: .72rem; color: var(--muted); } .so-stats b { font-size: 1.15rem; color: var(--text); }
.so-row { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; width: 100%; margin-top: 6px; }
.so-row > .so-primary, .so-row > .so-ghostbtn { flex: 1; }
.so-mini button { padding: 6px 12px; border-radius: 10px; border: 1px solid var(--border); background: none; color: var(--muted); font: inherit; font-size: .75rem; cursor: pointer; }
.so-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; margin: 6px -14px 14px; }
.so-grid button { padding: 0; border: 0; aspect-ratio: 1; background: #000; cursor: pointer; }
.so-grid img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* friends */
.so-search { margin-bottom: 10px; }
.so-share { display: flex; align-items: center; gap: 12px; padding: 14px; margin: 12px 0 6px; border-radius: 18px; cursor: pointer; background: var(--card); border: 1px solid var(--border); }
.so-share.on { border-color: #10B981; border-color: color-mix(in srgb, #10B981 60%, transparent); background: var(--card); background: color-mix(in srgb, #10B981 10%, var(--card)); }
.so-share span { flex: 1; display: grid; gap: 3px; } .so-share b { font-size: .9rem; } .so-share small { color: var(--muted); font-size: .75rem; line-height: 1.4; }
.so-share input { position: absolute; opacity: 0; pointer-events: none; }
.so-share i { position: relative; flex: none; width: 46px; height: 28px; border-radius: 99px; background: var(--border); transition: background .25s; }
.so-share i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring, ease); }
.so-share.on i { background: #10B981; } .so-share.on i::after { transform: translateX(18px); }
.so-note { display: flex; align-items: center; gap: 6px; margin: 0 4px 10px; color: var(--muted); font-size: .76rem; }
.so-body h4 { margin: 16px 2px 8px; font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.so-friends { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.so-friends li { display: flex; align-items: center; gap: 8px; padding: 10px; border-radius: 16px; background: var(--card); border: 1px solid var(--border); }

/* chats */
.so-chats { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.so-chats button { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px; border: 0; border-radius: 16px; background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.so-chats button:active { background: var(--card); }
.so-chats span { flex: 1; display: grid; min-width: 0; } .so-chats small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-chats time { color: var(--muted); font-size: .72rem; }
.so-chats .unseen b, .so-chats .unseen small { color: var(--text); font-weight: 800; }
.so-chats .unseen time { color: var(--gold); font-weight: 800; }
.so-msgs, .so-thread { display: flex; flex-direction: column; gap: 6px; min-height: calc(100% - 70px); padding-bottom: 10px; }
.so-msg { max-width: 78%; align-self: flex-start; display: grid; gap: 2px; }
.so-msg > div { padding: 9px 13px; border-radius: 18px 18px 18px 6px; background: var(--card); border: 1px solid var(--border); font-size: .92rem; line-height: 1.4; overflow-wrap: anywhere; }
.so-msg.me { align-self: flex-end; } .so-msg.me > div { border-radius: 18px 18px 6px 18px; border: 0; color: var(--accent-ink, #1a1205); background: linear-gradient(135deg, var(--t-premier-hi, #F5DC8A), var(--gold)); }
.so-msg time { font-size: .64rem; color: var(--muted); padding: 0 6px; } .so-msg.me time { text-align: right; }
.so-msg img { display: block; max-width: 100%; border-radius: 12px; margin: -4px -8px; width: calc(100% + 16px); }
.so-loc { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; } .so-loc span { display: grid; } .so-loc small { opacity: .75; font-size: .72rem; }
.so-bar { position: sticky; bottom: -20px; display: flex; gap: 6px; align-items: center; margin: 0 -14px -20px; padding: 10px 12px calc(env(safe-area-inset-bottom, 0px) + 10px); background: var(--bg); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); border-top: 1px solid var(--border); }
.so-bar input { flex: 1; border-radius: 99px; padding: 11px 16px; }
.so-go { color: var(--accent-ink, #1a1205); background: var(--gold); border: 0; border-radius: 50%; }
.so-cmt { display: flex; gap: 10px; align-items: flex-start; } .so-cmt p { margin: 0; font-size: .9rem; line-height: 1.4; } .so-cmt small { display: block; color: var(--muted); font-size: .7rem; margin-top: 2px; }

/* friends on the main map */
.so-pin { background: none; border: 0; }
.so-pin-in { display: block; padding: 3px; border-radius: 50%; background: linear-gradient(135deg, #F5DC8A, #D4AF37); box-shadow: 0 8px 18px -6px rgba(0, 0, 0, .7); animation: soBob 3s ease-in-out infinite; }
.so-pin-in .so-av { box-shadow: none; }
.so-pin > i { position: absolute; left: 50%; bottom: 0; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #D4AF37; box-shadow: 0 0 0 4px rgba(212, 175, 55, .3); animation: soPing 2s ease-out infinite; }
@keyframes soBob { 50% { transform: translateY(-3px); } }
@keyframes soPing { 70%, 100% { box-shadow: 0 0 0 12px rgba(212, 175, 55, 0); } }
html.so-open { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .so-panel, .so-post, .so-pin-in, .so-pin > i, .so-orbs i { animation: none !important; transition: none !important; } }

/* ---------- sharing options, per-friend privacy ---------- */
.so-opts { display: grid; gap: 8px; margin-bottom: 8px; }
.so-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.so-chips small { color: var(--muted); font-size: .74rem; margin-right: 2px; }
.so-chips button { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--border); background: var(--card); color: var(--muted); font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
.so-chips [aria-pressed="true"] { color: var(--accent-ink, #1a1205); background: var(--gold); border-color: var(--gold); }
.so-tg { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--border); cursor: pointer; font-size: .85rem; font-weight: 600; }
.so-tg span { display: flex; align-items: center; gap: 6px; }
.so-tg input { position: absolute; opacity: 0; pointer-events: none; }
.so-tg i { position: relative; flex: none; width: 40px; height: 24px; border-radius: 99px; background: var(--border); transition: background .25s; }
.so-tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .25s var(--spring, ease); }
.so-tg input:checked + i { background: #10B981; } .so-tg input:checked + i::after { transform: translateX(16px); }
.so-friends li.so-fr { display: grid; gap: 8px; }
.so-fr-top, .so-fr-bot { display: flex; align-items: center; gap: 6px; }
.so-fr-bot { padding-left: 52px; flex-wrap: wrap; }
.so-who em, .so-status { color: var(--gold); font-style: normal; font-size: .76rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-vis { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 11px; border: 1px solid var(--border); background: none; color: var(--muted); font: inherit; font-size: .74rem; cursor: pointer; }
.so-vis b { color: var(--text); }
.so-vis[data-lvl="approx"] { border-color: var(--gold); border-color: color-mix(in srgb, var(--gold) 60%, transparent); color: var(--gold); }
.so-vis[data-lvl="hidden"] { border-color: #F43F5E; border-color: color-mix(in srgb, #F43F5E 55%, transparent); color: #F43F5E; }
.so-pin--approx .so-pin-in { opacity: .85; filter: saturate(.7); }
.so-pin-st { position: absolute; left: 50%; bottom: 56px; transform: translateX(-50%); max-width: 140px; padding: 3px 8px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font: 700 .66rem/1.3 Inter, sans-serif; color: #1a1205; background: #fff; box-shadow: 0 6px 14px -6px rgba(0, 0, 0, .6); }

/* ---------- stories ---------- */
.so-stories { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -14px 12px; padding: 2px 14px 4px; }
.so-stories::-webkit-scrollbar { display: none; }
.so-st { flex: none; display: grid; justify-items: center; gap: 4px; width: 68px; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.so-st > span { position: relative; padding: 3px; border-radius: 50%; background: var(--border); }
.so-st.new > span { background: conic-gradient(from 200deg, #F5DC8A, #D4AF37, #F43F5E, #A855F7, #F5DC8A); }
.so-st .so-av { box-shadow: 0 0 0 2.5px var(--bg); }
.so-st small { font-size: .68rem; max-width: 68px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.so-st--add i { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #1a1205; box-shadow: 0 0 0 2.5px var(--bg); }
.so-sv { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; background: #000; animation: soIn .3s ease both; }
.so-sv img { max-width: 100%; max-height: 100%; object-fit: contain; }
.so-sv header { position: absolute; top: calc(var(--sat, env(safe-area-inset-top, 0px)) + 22px); left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; color: #fff; z-index: 2; }
.so-sv header b { font-size: .9rem; } .so-sv header time { flex: 1; font-size: .74rem; opacity: .75; }
.so-sv p { position: absolute; left: 16px; right: 16px; bottom: calc(env(safe-area-inset-bottom, 0px) + 28px); margin: 0; padding: 10px 14px; border-radius: 14px; color: #fff; background: rgba(0, 0, 0, .45); backdrop-filter: blur(8px); text-align: center; }
.so-sv-bars { position: absolute; top: calc(var(--sat, env(safe-area-inset-top, 0px)) + 10px); left: 10px; right: 10px; display: flex; gap: 4px; z-index: 2; }
.so-sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .3); overflow: hidden; position: relative; }
.so-sv-bars i.done { background: #fff; }
.so-sv-bars i.run::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: soBar 5s linear forwards; }
@keyframes soBar { from { transform: scaleX(0); } }
.so-sv-prev, .so-sv-next { position: absolute; top: 80px; bottom: 80px; width: 40%; border: 0; background: none; cursor: pointer; }
.so-sv-prev { left: 0; } .so-sv-next { right: 0; }
.so-seen { display: block; text-align: right; color: var(--gold); font-size: .64rem; font-weight: 800; padding: 0 6px; }

/* ---------- email + password ---------- */
.so-or { display: flex; align-items: center; gap: 10px; width: 100%; max-width: 320px; margin: 6px 0 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
.so-or::before, .so-or::after { content: ''; flex: 1; height: 1px; background: var(--glass-border, rgba(255, 255, 255, .14)); }
.so-mail { display: grid; gap: 8px; width: 100%; max-width: 320px; }
.so-mail input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; font: inherit; font-size: 16px; color: var(--text);
  background: var(--glass, rgba(255, 255, 255, .06)); border: 1px solid var(--glass-border, rgba(255, 255, 255, .14)); }
.so-mail input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.so-mailgo { min-height: 46px; border-radius: 99px; border: 0; cursor: pointer; font: inherit; font-weight: 800; color: var(--accent-ink, #0A0F14); background: var(--accent); }
.so-mailgo:disabled { opacity: .6; cursor: progress; }
.so-merr { margin: 0; padding: 8px 12px; border-radius: 12px; font-size: .76rem; text-align: left; color: #F87171; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .35); }
.so-mlinks { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.so-mlinks button { padding: 4px 2px; border: 0; background: none; cursor: pointer; font: inherit; font-size: .74rem; font-weight: 700; color: var(--accent); text-align: left; }

