:root {
  --bg: #050507;
  --bg-2: #0b0b10;
  --card: rgba(16, 16, 22, 0.72);
  --card-solid: #121218;
  --line: rgba(255, 255, 255, 0.1);
  --text: #f7f7fb;
  --muted: #9b9ba8;
  --teal: #2ef0c8;
  --teal-dim: #0c8f77;
  --orange: #ff8a3d;
  --violet: #8b7cff;
  --danger: #ff6b7a;
  --nav-h: 66px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-top: env(safe-area-inset-top, 0px);
  --font: Inter, "SF Pro Display", "Segoe UI", sans-serif;
  --display: Syne, Inter, sans-serif;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.45;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; }
a { color: var(--teal); }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.05em; }

#app { height: 100%; }

/* ----- Splash ----- */
#splash {
  position: fixed; inset: 0; z-index: 80;
  display: flex; flex-direction: column; justify-content: flex-end;
  overflow: hidden;
  background: #050507;
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease);
}
#splash.go {
  opacity: 0; transform: scale(1.04);
  pointer-events: none;
}
#splash.gone { display: none; }
.mesh, .mesh span {
  position: absolute; inset: -20%;
  pointer-events: none;
}
.mesh span {
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: floatBlob 14s var(--ease) infinite alternate;
}
.mesh .b1 { width: 80vmax; height: 80vmax; left: -25%; top: -30%; background: radial-gradient(circle, rgba(46,240,200,.42), transparent 62%); }
.mesh .b2 { width: 70vmax; height: 70vmax; right: -25%; top: -10%; left: auto; background: radial-gradient(circle, rgba(255,138,61,.36), transparent 62%); animation-delay: -4s; }
.mesh .b3 { width: 75vmax; height: 75vmax; left: 10%; bottom: -35%; top: auto; background: radial-gradient(circle, rgba(139,124,255,.38), transparent 64%); animation-delay: -7s; }
@keyframes floatBlob {
  from { transform: translate3d(0,0,0) scale(1); }
  to { transform: translate3d(4%, 6%, 0) scale(1.12); }
}
.splash-inner {
  position: relative; z-index: 2;
  padding: calc(20px + var(--safe-top)) 20px calc(28px + var(--safe-bottom));
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid; gap: 16px;
}
.brand-mark {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; letter-spacing: -0.05em; font-size: 1.05rem;
  font-family: var(--display);
}
.brand-mark img { width: 36px; height: 36px; border-radius: 0; object-fit: contain; }
.splash-logo { margin: 0 0 6px; }
.splash-logo img { width: min(220px, 62vw); height: auto; display: block; }
.admin-page .brand { margin: 0 0 18px; }
.admin-page .brand img { height: 80px; width: auto; display: block; }
#splash h1 {
  margin: 0;
  font-size: clamp(2.35rem, 11vw, 4.1rem);
  line-height: 0.95;
  font-weight: 800;
  max-width: 11ch;
}
#splash h1 em {
  font-style: normal;
  background: linear-gradient(105deg, var(--teal), #fff 42%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
#splash .sub { margin: 0; color: #c6c6d1; font-size: 1rem; max-width: 28ch; }
.phone-stage {
  height: 220px; perspective: 900px; margin: 4px 0 8px;
  display: grid; place-items: center;
}
.phone {
  width: 168px; height: 210px;
  border-radius: 28px;
  background: linear-gradient(180deg, #1a1a22, #0a0a0e);
  border: 2px solid rgba(255,255,255,0.16);
  box-shadow: 0 30px 50px rgba(0,0,0,0.45), inset 0 0 0 3px #050507;
  transform: rotateX(12deg) rotateY(-18deg) rotateZ(6deg);
  animation: floatPhone 5.5s ease-in-out infinite;
  overflow: hidden; position: relative;
}
.phone .notch {
  width: 42px; height: 6px; border-radius: 99px; background: #000;
  margin: 8px auto 0;
}
.mini-map {
  position: absolute; inset: 18px 8px 8px;
  border-radius: 16px;
  background:
    radial-gradient(circle at 30% 40%, rgba(46,240,200,.2), transparent 40%),
    linear-gradient(180deg, #151820, #0c0d12);
  overflow: hidden;
}
.mini-map::before {
  content: ""; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 22px 22px;
  transform: rotate(12deg) scale(1.4);
}
.pulse-pin {
  position: absolute; width: 14px; height: 14px; border-radius: 50%;
  background: var(--orange); box-shadow: 0 0 0 0 rgba(255,138,61,.6);
  animation: ping 2.2s ease-out infinite;
}
.pulse-pin.t { background: var(--teal); box-shadow: 0 0 0 0 rgba(46,240,200,.6); animation-delay: .4s; }
.pulse-pin.v { background: var(--violet); animation-delay: .9s; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 currentColor, 0 0 0 0 rgba(255,255,255,0.4); }
  100% { box-shadow: 0 0 0 14px transparent; }
}
@keyframes floatPhone {
  0%, 100% { transform: rotateX(12deg) rotateY(-18deg) rotateZ(6deg) translateY(0); }
  50% { transform: rotateX(10deg) rotateY(-12deg) rotateZ(4deg) translateY(-8px); }
}
.btn {
  border-radius: 999px; font-weight: 700; padding: 12px 16px;
  transition: transform .18s var(--ease), filter .18s var(--ease), background .18s;
}
.btn:active { transform: scale(0.97); }
.btn-primary {
  background: linear-gradient(180deg, #ff9a55, var(--orange));
  color: #2a1404; box-shadow: 0 10px 28px rgba(255,138,61,0.28);
}
.btn-primary:disabled { opacity: 0.6; cursor: wait; }
.btn-ghost { background: rgba(255,255,255,0.06); color: var(--text); border: 1px solid var(--line); }
.btn-block { width: 100%; }
.btn-danger { background: #3a1518; color: #ffb4b8; }
.btn-lg { padding: 16px 18px; font-size: 1.02rem; }
.splash-cta { display: grid; gap: 8px; }
.skip { color: #9b9ba8; font-size: 0.85rem; font-weight: 600; text-align: center; }

/* ----- App chrome ----- */
.views { height: 100%; }
.view { display: none; height: 100%; overflow: hidden; position: relative; }
.view.active { display: block; }
.view.scroll { overflow: auto; -webkit-overflow-scrolling: touch; padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px); }

.tabbar {
  position: fixed; left: 10px; right: 10px; bottom: calc(8px + var(--safe-bottom)); z-index: 40;
  height: var(--nav-h);
  padding: 6px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: rgba(10, 10, 14, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.tab {
  color: #7c7c88;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; font-size: 0.64rem; font-weight: 700; border-radius: 18px;
}
.tab svg { width: 22px; height: 22px; }
.tab.active { color: var(--text); background: rgba(255,255,255,0.06); }
.tab.active svg { color: var(--teal); }

/* ----- Map ----- */
#view-map { background: #07070b; overflow: hidden; }
body.navigating #view-map { overflow: hidden; }
#map { position: absolute; inset: 0; z-index: 1; isolation: isolate; }
.leaflet-container { background: #07070b; font-family: var(--font); }
.leaflet-control-attribution {
  background: rgba(0,0,0,0.5) !important; color: #aaa !important;
  font-size: 10px; margin: 0 8px 380px !important;
}
.leaflet-control-zoom { border: 0 !important; margin: 0 10px 380px 0 !important; }
.leaflet-control-zoom a {
  background: rgba(16,16,22,0.9) !important; color: #fff !important;
  border: 1px solid var(--line) !important; width: 34px !important; height: 34px !important;
  line-height: 34px !important;
}

.map-top {
  position: absolute; left: 14px; right: 14px; top: calc(12px + var(--safe-top));
  z-index: 20; display: grid; gap: 10px; pointer-events: none;
}
.map-top > * { pointer-events: auto; }
.brand-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.loc-chip {
  background: var(--card); backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 999px;
  padding: 7px 12px; font-size: 0.75rem; font-weight: 650; color: var(--muted);
  max-width: 46vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.search-pill {
  display: flex; align-items: center; gap: 10px;
  background: rgba(16,16,22,0.86); backdrop-filter: blur(18px);
  border: 1px solid var(--line);
  border-radius: 18px; padding: 12px 14px;
  box-shadow: var(--shadow);
}
.search-pill input {
  flex: 1; background: transparent; border: 0; outline: none;
  font-size: 1rem; font-weight: 650;
}
.search-pill input::placeholder { color: #7a7a86; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto;
  background: rgba(16,16,22,0.88); border: 1px solid var(--line);
  color: var(--text); border-radius: 999px;
  padding: 8px 12px; font-size: 0.78rem; font-weight: 650;
  backdrop-filter: blur(12px);
  display: flex; align-items: center; gap: 6px;
}
.chip.active { background: #fff; color: #111; border-color: #fff; }

.sheet {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 21;
  height: 78vh;
  transform: translate3d(0, calc(78vh - 430px), 0);
  background: rgba(10, 10, 14, 0.94);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-top: 1px solid var(--line);
  border-radius: 26px 26px 0 0;
  padding: 0 12px calc(var(--nav-h) + var(--safe-bottom) + 16px);
  display: flex; flex-direction: column;
  box-shadow: 0 -16px 50px rgba(0,0,0,0.45);
  touch-action: none;
}
.sheet.anim { transition: transform 0.4s var(--ease); }
.sheet-handle-area { flex: 0 0 auto; padding: 10px 0 6px; cursor: grab; }
.sheet-handle {
  width: 44px; height: 5px; border-radius: 99px; background: #3f3f4a;
  margin: 0 auto;
}
.sheet-head { display: flex; align-items: baseline; justify-content: space-between; padding: 0 4px 8px; }
.sheet-head h2 { margin: 0; font-size: 1.15rem; }
.sheet-head span { color: var(--muted); font-size: 0.78rem; }
.sheet-list { overflow: auto; display: grid; gap: 10px; padding-bottom: 6px; touch-action: pan-y; }

.place, .feature-card {
  display: grid; grid-template-columns: 88px 1fr auto; gap: 12px; align-items: center;
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 20px; padding: 8px; text-align: left; width: 100%;
  color: inherit; animation: rise 0.4s var(--ease) both;
  transition: transform .18s var(--ease);
}
.place:active, .feature-card:active { transform: scale(0.985); }
.thumb, .feature-art {
  width: 88px; height: 88px; border-radius: 16px;
  display: grid; place-items: center;
  font-size: 1.8rem; position: relative; overflow: hidden;
}
.thumb span, .feature-art span { position: relative; z-index: 1; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); }
.art-restaurants { background: linear-gradient(145deg, #ff8a3d, #7a1d1d 80%); }
.art-salons { background: linear-gradient(145deg, #ff7ab2, #5b1d5a 80%); }
.art-fashion { background: linear-gradient(145deg, #8b7cff, #2a1458 80%); }
.art-pharmacy { background: linear-gradient(145deg, #2ef0c8, #0a4a55 80%); }
.art-supermarkets { background: linear-gradient(145deg, #7dff9a, #14532d 80%); }
.art-hotels { background: linear-gradient(145deg, #ffd27a, #6a3a10 80%); }
.art-bars { background: linear-gradient(145deg, #ff4d8d, #3a0d2e 80%); }
.art-auto { background: linear-gradient(145deg, #7aa0ff, #122047 80%); }
.art-electronics { background: linear-gradient(145deg, #4de4ff, #083344 80%); }
.art-banks { background: linear-gradient(145deg, #c6ff4d, #27500c 80%); }
.art-hospitals { background: linear-gradient(145deg, #ff6b6b, #4a1018 80%); }
.art-gyms { background: linear-gradient(145deg, #b6ff3d, #1d3b0a 80%); }
.art-events { background: linear-gradient(145deg, #c07aff, #2a1060 80%); }
.art-realestate { background: linear-gradient(145deg, #e7c38a, #3c2a12 80%); }
.art-services { background: linear-gradient(145deg, #6aa7ff, #10233f 80%); }
.art-worship { background: linear-gradient(145deg, #ffe08a, #3d2a08 70%, #1a1030); }
.art-other { background: linear-gradient(145deg, #9a9ab0, #222230 80%); }
.meta h3 { margin: 0 0 2px; font-size: 0.98rem; font-family: var(--display); }
.meta p { margin: 0; color: var(--muted); font-size: 0.76rem; }
.badges { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.badge {
  font-size: 0.64rem; font-weight: 800; letter-spacing: 0.04em;
  padding: 3px 7px; border-radius: 999px; text-transform: uppercase;
}
.badge.demo { background: rgba(255,138,61,0.16); color: #ffb070; }
.badge.open { background: rgba(46,240,200,0.14); color: var(--teal); }
.badge.new { background: rgba(139,124,255,0.18); color: #c8bfff; }
.eta { text-align: right; font-weight: 800; letter-spacing: -0.03em; font-size: 0.95rem; }
.eta small { display: block; color: var(--muted); font-weight: 600; font-size: 0.66rem; }
.place-actions { grid-column: 1 / -1; display: flex; gap: 8px; }
.place-actions .btn { flex: 1; text-align: center; text-decoration: none; }

.demo-banner, .notice, .status {
  border-radius: 14px; padding: 10px 12px; font-size: 0.84rem; font-weight: 600;
}
.demo-banner {
  background: rgba(255,138,61,0.1); color: #ffd2a1; border: 1px solid rgba(255,138,61,0.22);
  margin: 0 0 10px;
}
.status { display: none; }
.status.show { display: block; }
.status.ok { background: rgba(46,240,200,0.12); color: var(--teal); }
.status.err { background: rgba(255,107,122,0.12); color: var(--danger); }

.user-dot {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal); border: 3px solid #fff;
  box-shadow: 0 0 0 0 rgba(46,240,200,0.55);
  animation: youPulse 1.8s ease-out infinite;
}
@keyframes youPulse {
  70%, 100% { box-shadow: 0 0 0 14px transparent; }
}
.pin-wrap { position: relative; width: 36px; height: 44px; }
.pin-glow {
  position: absolute; left: 50%; top: 10px; width: 22px; height: 22px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--pin, var(--orange));
  opacity: 0.45; filter: blur(6px);
  animation: pinGlow 1.8s ease-in-out infinite;
}
.pin-body {
  width: 26px; height: 26px; margin: 2px auto 0;
  border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--pin, var(--orange));
  border: 2px solid #fff;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
}
.pin-wrap i {
  position: absolute; left: 50%; top: 7px; transform: translateX(-50%);
  font-style: normal; font-size: 11px; line-height: 1; pointer-events: none;
}
@keyframes pinGlow {
  50% { opacity: 0.8; transform: translateX(-50%) scale(1.25); }
}
.cluster-wrap { background: none; }
.cluster {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #fff, var(--teal) 40%, #0c8f77);
  color: #041410; font-weight: 800; font-size: 0.85rem;
  box-shadow: 0 0 0 6px rgba(46,240,200,0.22), 0 8px 18px rgba(0,0,0,0.4);
}

/* ----- Explore ----- */
#view-explore { background: var(--bg); }
.explore-hero {
  padding: calc(18px + var(--safe-top)) 16px 8px;
  position: relative; overflow: hidden;
}
.explore-hero::before {
  content: ""; position: absolute; right: -40px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, rgba(139,124,255,.28), transparent 70%);
  pointer-events: none;
}
.explore-hero h1 { margin: 8px 0 6px; font-size: clamp(1.7rem, 8vw, 2.3rem); font-weight: 800; }
.explore-hero p { margin: 0 0 12px; color: var(--muted); }
.section { padding: 4px 0 18px; }
.section h2 { margin: 0 16px 12px; font-size: 1.1rem; }
.h-row { display: flex; gap: 12px; overflow-x: auto; padding: 0 16px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.h-row::-webkit-scrollbar { display: none; }
.feature-card {
  flex: 0 0 78%; max-width: 300px; scroll-snap-align: start;
  grid-template-columns: 1fr; padding: 0; overflow: hidden;
  background: rgba(16,16,22,0.8);
}
.feature-art { width: 100%; height: 128px; border-radius: 0; }
.feature-card .body { padding: 12px 14px 14px; display: grid; gap: 2px; }
.feature-card .place-actions, .feature-card .eta { margin-top: 8px; }
.grid { display: grid; gap: 10px; padding: 0 16px; }

/* ----- Nova ----- */
#view-ai { display: none; flex-direction: column; height: 100%; background: var(--bg); }
#view-ai.active { display: flex; }
.ai-head {
  padding: calc(16px + var(--safe-top)) 16px 8px;
  display: flex; align-items: center; gap: 12px;
}
.ai-head h1 { margin: 0; font-size: 1.55rem; }
.ai-head p { margin: 2px 0 0; color: var(--muted); font-size: 0.86rem; }
.nova-orb {
  width: 52px; height: 52px; position: relative; flex: 0 0 auto;
}
.nova-orb .core {
  position: absolute; inset: 10px; border-radius: 50%;
  background: conic-gradient(from 120deg, var(--teal), var(--orange), var(--violet), var(--teal));
  animation: orbSpin 6s linear infinite;
  box-shadow: 0 0 22px rgba(46,240,200,0.45), 0 0 36px rgba(139,124,255,0.28);
}
.nova-orb .ring, .nova-orb .ring2 {
  position: absolute; inset: 2px; border-radius: 50%;
  border: 1px solid rgba(46,240,200,0.35);
  animation: orbPulse 2.2s ease-out infinite;
}
.nova-orb .ring2 { inset: -4px; animation-delay: .7s; border-color: rgba(139,124,255,0.3); }
@keyframes orbSpin { to { transform: rotate(360deg); } }
@keyframes orbPulse {
  0% { transform: scale(0.86); opacity: 0.9; }
  100% { transform: scale(1.2); opacity: 0; }
}
.messages { flex: 1; overflow: auto; padding: 8px 16px 12px; display: grid; gap: 10px; align-content: start; }
.msg {
  max-width: 92%; border-radius: 18px; padding: 10px 12px; font-size: 0.92rem;
  animation: rise 0.25s var(--ease) both;
}
.msg.bot { background: rgba(18,18,24,0.9); border: 1px solid var(--line); }
.msg.user {
  background: linear-gradient(180deg, #18b89a, var(--teal-dim));
  color: #effffb; margin-left: auto;
}
.typing { display: flex; gap: 5px; padding: 6px 2px; }
.typing i {
  width: 7px; height: 7px; border-radius: 50%; background: #c6c6d1;
  animation: typ 1s ease-in-out infinite;
  font-style: normal;
}
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes typ { 0%, 80%, 100% { transform: translateY(0); opacity: .4; } 40% { transform: translateY(-4px); opacity: 1; } }
.ai-composer {
  padding: 8px 12px calc(18px + var(--nav-h) + var(--safe-bottom));
  display: grid; gap: 8px;
}
.suggest { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.suggest button {
  flex: 0 0 auto; background: rgba(255,255,255,0.05); border: 1px solid var(--line);
  border-radius: 999px; padding: 8px 12px; font-size: 0.78rem; font-weight: 650;
}
.composer-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.composer-row input {
  background: #14141b; border: 1px solid var(--line); border-radius: 16px;
  padding: 12px 14px; outline: none;
}

/* ----- List ----- */
#view-list { background: var(--bg); }
.list-wrap { width: min(680px, 100%); margin: 0 auto; padding: calc(16px + var(--safe-top)) 16px 40px; }
.free-banner {
  position: relative; overflow: hidden;
  border-radius: 24px; padding: 18px 18px 16px; margin-bottom: 14px;
  background: linear-gradient(135deg, #0d3d36 0%, #1a1430 50%, #4a2a12 100%);
  border: 1px solid rgba(255,255,255,0.1);
}
.free-banner::after {
  content: ""; position: absolute; right: -20px; top: -30px; width: 140px; height: 140px;
  border-radius: 50%; background: radial-gradient(circle, rgba(255,138,61,.35), transparent 70%);
}
.free-banner .kicker {
  display: inline-block; font-weight: 800; letter-spacing: 0.08em; font-size: 0.72rem;
  color: #041410; background: var(--teal); border-radius: 999px; padding: 4px 8px;
}
.free-banner h1 { margin: 10px 0 6px; font-size: clamp(1.7rem, 8vw, 2.4rem); }
.free-banner p { margin: 0; color: #d5d5de; }
.benefits { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 18px; }
.benefit {
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 12px; font-size: 0.82rem; font-weight: 650;
  backdrop-filter: blur(12px);
}
.benefit b { display: block; font-family: var(--display); font-size: 0.95rem; margin-bottom: 2px; }
.steps { display: flex; gap: 8px; align-items: center; margin: 0 0 16px; }
.steps .dot {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.75rem; font-weight: 800;
  background: #1a1a22; border: 1px solid var(--line); color: var(--muted);
}
.steps .dot.on, .steps .dot.done { background: var(--teal); color: #041410; border-color: var(--teal); }
.steps .line { flex: 1; height: 2px; background: #22222c; }
.step { display: none; grid-gap: 14px; }
.step.on { display: grid; animation: rise 0.3s var(--ease); }
.row { display: grid; gap: 14px; }
label, .label { display: grid; gap: 6px; font-size: 0.86rem; font-weight: 700; }
label[hidden], .label[hidden], [hidden] { display: none !important; }
input, select, textarea {
  width: 100%; background: #14141b; border: 1px solid var(--line);
  border-radius: 14px; padding: 12px 14px; outline: none;
}
textarea { min-height: 100px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--teal-dim); box-shadow: 0 0 0 3px rgba(46,240,200,0.14); }
.hint { font-weight: 500; color: var(--muted); font-size: 0.78rem; }
.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.photo-note, .loc { background: #14141b; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.loc { display: grid; gap: 10px; }
.step-nav { display: flex; gap: 8px; }
.step-nav .btn { flex: 1; }

/* Admin */
.admin-page { overflow: auto; height: 100%; background: var(--bg); }
.admin-wrap { width: min(900px, calc(100% - 28px)); margin: 0 auto; padding: 24px 0 80px; }
.listing-admin {
  background: var(--card-solid); border: 1px solid var(--line);
  border-radius: 16px; padding: 14px; margin-top: 12px;
}
.listing-admin h3 { margin: 0 0 4px; }
.listing-admin dl { display: grid; grid-template-columns: 110px 1fr; gap: 4px 10px; margin: 10px 0; font-size: 0.9rem; }
.listing-admin dt { color: var(--muted); }
.listing-admin dd { margin: 0; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 720px) {
  .row.two { grid-template-columns: 1fr 1fr; }
  .row.three { grid-template-columns: 1.1fr 0.9fr 0.9fr; }
  .feature-card { flex-basis: 280px; }
  .phone-stage { height: 260px; }
  .phone { width: 190px; height: 240px; }
}
@media (max-width: 360px) {
  #splash h1 { font-size: 2.15rem; }
  .benefits { grid-template-columns: 1fr; }
  .tab { font-size: 0.6rem; }
  .thumb { width: 76px; height: 76px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .sheet.anim { transition: none; }
}


/* ----- In-app navigation (MapLibre 3D) ----- */
body.navigating .map-top,
body.navigating .sheet,
body.navigating .tabbar { opacity: 0; pointer-events: none; visibility: hidden; }
#nav-ui { position: fixed; inset: 0; z-index: 50; font-family: Inter, Roboto, "Segoe UI", sans-serif; }
#nav-ui[hidden] { display: none; }
#navmap { position: absolute; inset: 0; background: #e8eaed; }
#nav-ui.fallback #navmap { display: none; }
#nav-ui.fallback { pointer-events: none; }
#nav-ui.fallback > *:not(#navmap) { pointer-events: auto; }
.nv-top { position: absolute; left: 10px; right: 10px; top: calc(10px + var(--safe-top)); z-index: 3; }
.nv-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px 16px; background: #0b7d43; color: #fff; border-radius: 16px; box-shadow: 0 6px 18px rgba(0,0,0,.28); }
.nv-arrow { width: 56px; height: 56px; flex: 0 0 auto; }
.nv-arrow svg { width: 100%; height: 100%; }
.nv-btext { min-width: 0; }
.nv-tdist { font-size: 2rem; font-weight: 700; line-height: 1.05; letter-spacing: -0.02em; }
.nv-street { font-size: 1.12rem; font-weight: 600; line-height: 1.25; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nv-then { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 14px 8px 12px; background: #075c31; color: #fff; border-radius: 12px; font-size: .92rem; box-shadow: 0 4px 12px rgba(0,0,0,.22); }
.nv-then[hidden] { display: none; }
.nv-then span { opacity: .85; font-weight: 500; }
.nv-then i { width: 22px; height: 22px; display: inline-block; }
.nv-then i svg { width: 100%; height: 100%; }
.nv-then b { font-weight: 600; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nv-recenter { position: absolute; left: 12px; bottom: calc(196px + var(--safe-bottom)); z-index: 3; display: inline-flex; align-items: center; gap: 6px; padding: 10px 16px; border: 0; border-radius: 999px; background: #fff; color: #1A73E8; font: 600 .95rem Inter, Roboto, sans-serif; box-shadow: 0 3px 10px rgba(0,0,0,.25); cursor: pointer; }
.nv-recenter[hidden] { display: none; }
.nv-panel { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 16px 18px calc(14px + var(--safe-bottom)); background: #fff; color: #202124; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,.18); }
.nv-panel[hidden] { display: none; }
.nv-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nv-row2 { margin-top: 12px; justify-content: flex-start; }
.nv-eta { color: #188038; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.nv-eta span { font-size: 1.25rem; font-weight: 600; }
.nv-sub { color: #5f6368; font-size: 1rem; margin-top: 6px; font-weight: 500; }
.nv-end { border: 0; border-radius: 999px; padding: 12px 26px; background: #d93025; color: #fff; font: 700 1rem Inter, Roboto, sans-serif; cursor: pointer; }
.nv-modes { display: inline-flex; background: #f1f3f4; border-radius: 999px; padding: 3px; }
.nv-mode { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #3c4043; padding: 8px 14px; border-radius: 999px; font: 600 .9rem Inter, Roboto, sans-serif; cursor: pointer; }
.nv-mode.on { background: #fff; color: #1A73E8; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.nv-chip { border: 1px solid #dadce0; background: #fff; color: #3c4043; border-radius: 999px; padding: 8px 14px; font: 600 .9rem Inter, Roboto, sans-serif; cursor: pointer; display: inline-flex; align-items: center; }
.nv-more { padding: 8px 10px; }
.nv-dest { margin: 10px 0 0; color: #5f6368; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-more-wrap { position: relative; margin-left: auto; }
.nav-menu { position: absolute; right: 0; bottom: calc(100% + 8px); min-width: 190px; padding: 6px; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.nav-menu a { display: block; padding: 10px 12px; color: #202124; text-decoration: none; border-radius: 8px; font-size: .92rem; }
.nav-menu a:hover { background: #f1f3f4; }
.nav-arrived { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: 22px 18px calc(18px + var(--safe-bottom)); background: #fff; color: #202124; border-radius: 20px 20px 0 0; text-align: center; box-shadow: 0 -4px 20px rgba(0,0,0,.18); }
.nav-arrived[hidden] { display: none; }
.nav-arrived-badge { font-size: 1.4rem; font-weight: 700; color: #188038; }
.nav-arrived p { margin: 8px 0 16px; color: #5f6368; font-weight: 500; }
.nav-arrived .btn { width: 100%; background: #1A73E8; color: #fff; }
.nv-me { position: relative; width: 64px; height: 64px; pointer-events: none; }
.nv-me .nv-halo { position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgba(26,115,232,.16); border: 1px solid rgba(26,115,232,.25); }
.nv-me svg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); filter: drop-shadow(0 2px 3px rgba(0,0,0,.35)); }
.nv-dest-pin { width: 44px; height: 56px; position: relative; filter: drop-shadow(0 3px 4px rgba(0,0,0,.35)); }
.nv-dest-pin svg { position: absolute; inset: 0; }
.nv-dest-pin .nv-dp-in { position: absolute; left: 7px; top: 6px; width: 30px; height: 30px; border-radius: 50%; background: #fff; overflow: hidden; display: grid; place-items: center; font: 800 13px Inter, sans-serif; color: #c5221f; }
.nv-dest-pin .nv-dp-in img { width: 100%; height: 100%; object-fit: cover; }
.maplibregl-ctrl-attrib { font-size: 10px; }
#nav-ui .maplibregl-ctrl-bottom-right, #nav-ui .maplibregl-ctrl-bottom-left { bottom: calc(176px + var(--safe-bottom)); }

.you-mark { position: relative; width: 36px; height: 36px; }
.you-mark .user-dot {
  position: absolute; left: 50%; top: 50%; width: 18px; height: 18px;
  transform: translate(-50%, -50%);
}
.you-heading {
  position: absolute; left: 50%; top: 1px; width: 0; height: 0;
  border-left: 6px solid transparent; border-right: 6px solid transparent;
  border-bottom: 12px solid var(--teal);
  transform-origin: 50% 17px;
  filter: drop-shadow(0 0 6px rgba(46,240,200,0.7));
  margin-left: -6px;
}


.leaflet-overlay-pane .route-glow { stroke-linecap: round; stroke-linejoin: round; filter: blur(2.5px); }

/* ---------- Business profile ---------- */
.badge.closed { background: rgba(255,107,122,0.14); color: #ff9aa5; }
.biz {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg); transform: translateY(100%); transition: transform .32s var(--ease);
  padding-bottom: calc(110px + var(--safe-bottom));
}
.biz.on { transform: none; }
.biz-cover { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; }
.biz-cover-icon { font-size: 92px; filter: drop-shadow(0 18px 30px rgba(0,0,0,.45)); transform: rotate(-8deg); }
.biz-cover-fade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,5,7,0) 35%, var(--bg) 100%); }
.biz-close {
  position: absolute; top: calc(14px + var(--safe-top)); left: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(10,10,14,.7); color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(12px); cursor: pointer;
}
.biz-body { padding: 0 18px; margin-top: -46px; position: relative; }
.biz-head { display: flex; gap: 14px; align-items: flex-end; }
.biz-logo {
  flex: 0 0 auto; width: 84px; height: 84px; border-radius: 24px; position: relative; overflow: hidden;
  background: linear-gradient(145deg, var(--logo), #101016 120%); border: 3px solid var(--bg);
  box-shadow: 0 14px 30px rgba(0,0,0,.45); display: grid; place-items: center;
}
.biz-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 2; background: #fff; }
.biz-initials { font-family: var(--display); font-weight: 800; font-size: 1.9rem; color: #050507; letter-spacing: -0.04em; }
.biz-title { min-width: 0; padding-bottom: 2px; }
.biz-title h1 { margin: 0; font-family: var(--display); font-size: 1.55rem; line-height: 1.1; letter-spacing: -0.03em; }
.biz-title p { margin: 4px 0 0; color: var(--muted); font-size: .9rem; }
.biz-norating { font-size: .74rem; color: var(--muted); }
.biz-etas { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 4px; }
.biz-eta { background: var(--card-solid); border: 1px solid var(--line); border-radius: 16px; padding: 10px; display: grid; justify-items: center; gap: 1px; }
.biz-eta span { font-size: 1.2rem; }
.biz-eta b { font-size: 1rem; }
.biz-eta small { color: var(--muted); font-size: .72rem; }
.biz-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.biz-act {
  display: grid; justify-items: center; gap: 4px; padding: 12px 6px; border-radius: 16px; font: inherit; font-weight: 700; font-size: .82rem;
  background: rgba(46,240,200,0.10); color: var(--teal); border: 1px solid rgba(46,240,200,.22); text-decoration: none; cursor: pointer;
}
.biz-act span { font-size: 1.15rem; }
.biz-act.off { background: var(--card-solid); color: var(--muted); border-color: var(--line); }
.biz-desc { color: #d5d5de; margin: 6px 0 12px; font-size: .93rem; }
.biz-info { background: var(--card-solid); border: 1px solid var(--line); border-radius: 18px; padding: 4px 14px; }
.biz-info > div { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.biz-info > div:last-child { border-bottom: 0; }
.biz-info b { font-size: .8rem; color: var(--muted); font-weight: 600; }
.biz-info p { margin: 1px 0 0; font-size: .93rem; word-break: break-word; }
.biz-info a { color: var(--teal); text-decoration: none; }
.biz-h2 { font-family: var(--display); font-size: 1.15rem; margin: 22px 0 10px; letter-spacing: -0.02em; }
.biz-items { list-style: none; margin: 0; padding: 0; background: var(--card-solid); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.biz-items li { display: flex; justify-content: space-between; gap: 12px; padding: 13px 14px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.biz-items li:last-child { border-bottom: 0; }
.biz-items li b { color: var(--teal); white-space: nowrap; }
.biz-items em { color: var(--muted); font-style: normal; font-size: .75rem; }
.biz-fine { color: var(--muted); font-size: .75rem; margin: 8px 2px 0; }
.biz-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; padding: 12px 16px calc(14px + var(--safe-bottom));
  background: linear-gradient(180deg, rgba(5,5,7,0), rgba(5,5,7,.92) 35%);
}
.biz:not(.on) .biz-cta { display: none; }

/* ---------- Animated traveller on route ---------- */
.traveller { position: relative; width: 46px; height: 46px; display: grid; place-items: center; }
.traveller i { position: absolute; inset: 0; border-radius: 50%; background: rgba(46,240,200,.28); animation: travPulse 1.4s ease-out infinite; }
.traveller span {
  position: relative; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: #fff; border: 3px solid var(--teal); box-shadow: 0 8px 18px rgba(0,0,0,.45);
}
.traveller.flip span { transform: scaleX(-1); }
@keyframes travPulse { from { transform: scale(.7); opacity: .9; } to { transform: scale(1.6); opacity: 0; } }

/* ---------- Sign-up items editor ---------- */
.items-block { margin: 6px 0 14px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--card-solid); }
.items-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 10px; }
.items-head select { width: auto; min-width: 90px; }
.item-row { display: grid; grid-template-columns: 1fr 110px 36px; gap: 8px; margin-bottom: 8px; }
.item-del { border: 1px solid var(--line); background: transparent; color: var(--muted); border-radius: 10px; font-size: 1.2rem; cursor: pointer; }
.art-garden { background: linear-gradient(145deg, #5fe08a, #0f3a1e 80%); }
.biz-cover-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.biz-items li { align-items: center; }
.biz-items li > span { flex: 1; }
.biz-item-img { width: 46px; height: 46px; border-radius: 12px; object-fit: cover; flex: 0 0 auto; background: #1a1a22; }
.biz-items li b.ask { color: var(--muted); font-weight: 600; font-size: .8rem; }
.biz-more { margin-top: 12px; text-align: center; }

/* real business photo + logo on cards */
.thumb.has-photo .card-icon, .feature-art.has-photo .card-icon { display: none; }
.card-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* Find my business location (v11) */
.loc-search { display: flex; gap: 8px; }
.loc-search input { flex: 1; min-width: 0; }
.loc-search .btn { flex: none; }
.loc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.loc-actions .btn { flex: 1 1 160px; }
.loc-results { display: grid; gap: 8px; }
.loc-result { background: var(--card-solid); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; display: grid; gap: 6px; }
.loc-result.sel { border-color: var(--teal-dim); box-shadow: 0 0 0 2px rgba(46,240,200,0.16); }
.loc-result b { font-size: 0.95rem; }
.loc-result .addr { color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.row-btns, .loc-result .row-btns { display: flex; gap: 6px; flex-wrap: wrap; }
.loc-result .btn { padding: 8px 12px; font-size: 0.82rem; }
.loc-result .src { font-size: 0.7rem; color: var(--teal); font-weight: 700; }
.loc-map { height: 260px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.loc-confirm { display: grid; gap: 8px; font-size: 0.85rem; color: var(--muted); }
.loc-ok { color: var(--teal); font-weight: 700; font-size: 0.85rem; }
.loc-manual-num summary { cursor: pointer; }
.loc-manual-num .row { margin-top: 8px; }
.msg .loc-result { margin-top: 8px; }

/* Full, uncropped logo on cream (v11) */
.thumb.has-logo, .feature-art.has-logo { background: #fdfaf3 !important; }
.card-logo-full,
.thumb.has-logo img.card-logo-full,
.feature-art.has-logo img.card-logo-full {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain !important; object-position: center;
  padding: 8px; box-sizing: border-box; z-index: 0; background: #fdfaf3;
}
.feature-art.has-logo img.card-logo-full,
.feature-art .card-logo-full { padding: 12px; }
.biz-logo { background: #fdfaf3; }
.biz-logo img { object-fit: contain !important; background: #fdfaf3; }
.badge.online { background: rgba(90,184,255,0.14); color: #8fd0ff; }

/* splash fit fix: never cut the logo off at the top */
#splash { justify-content: safe flex-end; overflow-y: auto; }
.splash-inner { min-height: min-content; }
.splash-logo img { width: auto; max-width: min(170px, 46vw); max-height: 17vh; }
@media (max-height: 760px) { .splash-logo img { max-height: 13vh; } }

/* Nova uses the SpotzNear pin logo */
.nova-orb .nova-logo { position: absolute; inset: 6px; width: 40px; height: 40px; object-fit: contain; filter: drop-shadow(0 0 10px rgba(255,59,31,.45)); }
.nova-orb .ring { border-color: rgba(255,59,31,0.35); }
.nova-orb .ring2 { border-color: rgba(255,138,61,0.25); }
