:root {
  /* Elevate design language: cream + violet, playful & vibrant */
  --bg: #FFFBF5;         /* cream */
  --bg2: #ffffff;
  --card: #ffffff;
  --card-solid: #ffffff;
  --glass: rgba(255, 255, 255, 0.75);
  --line: rgba(30, 27, 46, 0.07);
  --line-2: rgba(30, 27, 46, 0.13);
  --ink: #1E1B2E;
  --muted: #6B6580;
  --brand: #7C3AED;      /* primary violet */
  --brand-dark: #6D28D9;
  --brand-2: #14B8A6;    /* teal */
  --coral: #FF6B6B;
  --gblue: #1a73e8;      /* Google-Maps blue for live location & routes */
  --accent: #FCC419;     /* sun */
  --danger: #F94E4E;
  --radius: 22px;
  --grad: linear-gradient(120deg, #7C3AED, #FF6B6B 50%, #14B8A6);
  --shadow: 0 10px 40px -12px rgba(124, 58, 237, 0.25);
  --shadow-lg: 0 18px 50px -12px rgba(30, 27, 46, 0.28);
  --glow: 0 10px 30px -8px rgba(124, 58, 237, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---- native app feel ---- */
body { -webkit-tap-highlight-color: transparent; }
button, .nav-btn, .bnav-btn, .spot-card, .chip, .role-card, .pay-method, .tag { -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
.btn, .bnav-btn, .nav-btn, .spot-card, .role-card, .pay-method, .chip { user-select: none; -webkit-user-select: none; }
input, textarea, select { -webkit-user-select: text; user-select: text; }
/* installed app: lock like a native app — no rubber-band, no accidental text select, no overscroll */
body.standalone-app { overscroll-behavior: none; overflow: hidden; }
body.standalone-app #appShell { height: 100vh; height: 100dvh; display: flex; flex-direction: column; }
body.standalone-app #main { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.btn:active, .spot-card:active, .bnav-btn:active, .role-card:active, .pay-method:active, .card-actions .btn:active { transform: scale(.97); }

/* ---- splash / launch screen ---- */
#splash {
  position: fixed; inset: 0; z-index: 5000; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 20px;
  background: linear-gradient(150deg, #7C3AED, #6D28D9 55%, #14B8A6);
  color: #fff; transition: opacity .5s ease; padding-bottom: 40px;
}
#splash.hide { opacity: 0; pointer-events: none; }
.splash-inner { display: flex; flex-direction: column; align-items: center; gap: 14px; animation: splashPop .6s cubic-bezier(.2,1.5,.4,1); }
.splash-logo { font-size: 64px; filter: drop-shadow(0 8px 20px rgba(0,0,0,.3)); }
.splash-name { font-family: 'Poppins'; font-size: 30px; font-weight: 700; color: #fff; letter-spacing: -.5px; }
.splash-name b { font-weight: 800; }
.splash-spin { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(255,255,255,.3); border-top-color: #fff; animation: spin .8s linear infinite; margin-top: 6px; }
.splash-tag { position: absolute; bottom: 46px; color: rgba(255,255,255,.85); font-size: 13.5px; font-weight: 500; letter-spacing: .3px; }
@keyframes splashPop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
h1, h2, h3, .brand-name, .hero-title { font-family: 'Poppins', sans-serif; }
b { font-weight: 700; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
img { max-width: 100%; }

.grad {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}

/* scroll progress */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: var(--grad); z-index: 2000;
  transition: width .05s linear;
}

/* ---------------- Buttons (Elevate pill style) ---------------- */
.btn { border: none; border-radius: 999px; padding: 11px 22px; font-size: 14.5px; font-weight: 600; color: var(--ink);
  font-family: 'Poppins', sans-serif;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  transition: transform .15s ease, box-shadow .2s, background .2s, border-color .2s; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--brand); color: #fff; font-weight: 600; box-shadow: var(--shadow); }
.btn-primary:hover { background: var(--brand-dark); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.btn-outline { background: rgba(255,255,255,.7); border: 2px solid rgba(30,27,46,.1); color: var(--ink); }
.btn-outline:hover { border-color: #B794FF; color: var(--brand-dark); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: rgba(30,27,46,.06); }
.btn-danger { background: #FFECEC; color: var(--danger); }
.btn-block { width: 100%; display: flex; margin-top: 10px; }
.btn-sm { padding: 7px 15px; font-size: 13px; }
.btn-lg { padding: 15px 30px; font-size: 16px; }

.glass {
  background: var(--glass);
  border: 1px solid rgba(30, 27, 46, 0.07);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
}

/* ================= LANDING ================= */
#landing { position: relative; }

.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, #F5F0FF 0%, #FFFBF5 40%, #FFF6EE 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.b1 { width: 520px; height: 520px; background: #D6C2FF; top: -120px; left: -80px; animation: drift1 18s ease-in-out infinite; }
.b2 { width: 460px; height: 460px; background: #FFD6D6; top: 30%; right: -120px; animation: drift2 22s ease-in-out infinite; }
.b3 { width: 400px; height: 400px; background: #BDF0E7; bottom: -140px; left: 30%; opacity: .45; animation: drift1 26s ease-in-out infinite reverse; }
@keyframes drift1 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(60px,50px)} }
@keyframes drift2 { 0%,100%{transform:translate(0,0)} 50%{transform:translate(-50px,40px)} }

/* landing nav */
.lnav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  display: flex; align-items: center; gap: 24px; padding: 18px 6vw;
  transition: background .3s, padding .3s, border-color .3s, box-shadow .3s;
  border-bottom: 1px solid transparent;
}
.lnav.scrolled {
  background: rgba(255,255,255,.85); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line); padding: 12px 6vw; box-shadow: 0 6px 24px rgba(30,27,46,.06);
}
.brand { display: flex; align-items: center; gap: 9px; cursor: pointer; }
.logo { font-size: 24px; }
.brand-name { font-size: 21px; font-weight: 700; color: var(--brand); letter-spacing: -.4px; }
.brand-name b { color: var(--ink); }
.lnav-links { display: flex; gap: 26px; margin-left: 12px; }
.lnav-link { color: var(--muted); font-size: 14.5px; font-weight: 500; transition: color .2s; }
.lnav-link:hover { color: var(--brand); }
.lnav-cta { margin-left: auto; display: flex; gap: 10px; }

/* HERO */
.hero {
  min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding: 140px 6vw 60px; position: relative;
}
.badge {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--brand-dark);
  background: #F5F0FF; border: 1px solid #D6C2FF; padding: 7px 14px; border-radius: 30px; font-weight: 600;
}
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 0 rgba(124,58,237,.5); animation: pulse 1.8s infinite; }
@keyframes pulse { 0%{box-shadow:0 0 0 0 rgba(124,58,237,.5)} 70%{box-shadow:0 0 0 12px rgba(124,58,237,0)} 100%{box-shadow:0 0 0 0 rgba(124,58,237,0)} }
.hero-title { font-size: clamp(38px, 5.4vw, 66px); line-height: 1.05; font-weight: 800; letter-spacing: -1.5px; margin: 22px 0 20px; color: var(--ink); }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 560px; }
.hero-actions { display: flex; gap: 14px; margin: 30px 0 34px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 40px; }
.hero-trust > div { display: flex; flex-direction: column; }
.hero-trust b { font-size: 30px; font-family: 'Poppins'; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.hero-trust span { font-size: 13px; color: var(--muted); }

/* hero visual / mockup */
.hero-visual { position: relative; height: 560px; display: grid; place-items: center; }
.phone {
  width: 320px; height: 500px; border-radius: 40px; padding: 14px;
  background: #fff; border: 1px solid var(--line);
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
  will-change: transform;
}
.phone-map { position: relative; height: 340px; border-radius: 28px; overflow: hidden;
  background: linear-gradient(135deg, #F5F0FF, #FFF1EC 70%); }
.map-grid { position: absolute; inset: 0;
  background-image: linear-gradient(rgba(30,27,46,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(30,27,46,.05) 1px, transparent 1px);
  background-size: 34px 34px; }
.pin { position: absolute; background: var(--brand); color: #fff; font-weight: 700; font-size: 12px; padding: 4px 9px;
  border-radius: 20px; box-shadow: 0 6px 16px rgba(124,58,237,.35); animation: bob 3s ease-in-out infinite; }
.pin.p1 { top: 60px; left: 40px; } .pin.p2 { top: 130px; right: 40px; animation-delay:.4s; background: var(--coral); }
.pin.p3 { bottom: 70px; left: 70px; background: var(--brand-2); animation-delay:.8s; } .pin.p4 { top: 40px; right: 90px; animation-delay:1.2s; }
@keyframes bob { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-7px)} }
.me-dot { position: absolute; top: 50%; left: 50%; width: 16px; height: 16px; border-radius: 50%; background: var(--gblue);
  border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(26,115,232,.2), 0 2px 8px rgba(0,0,0,.25); transform: translate(-50%,-50%); }
.phone-card { margin-top: 12px; background: #FAF8FF; border: 1px solid var(--line); border-radius: 22px; padding: 14px; }
.pc-row { display: flex; justify-content: space-between; align-items: center; font-size: 14px; }
.pc-price { color: var(--brand); font-weight: 700; }
.pc-sub { color: var(--muted); font-size: 12.5px; margin: 6px 0 12px; }
.pc-btn { text-align: center; background: var(--brand); color: #fff; font-weight: 600; font-family: 'Poppins'; padding: 10px; border-radius: 999px; font-size: 13.5px; }

.float-chip { position: absolute; padding: 10px 18px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  box-shadow: var(--shadow); background: #fff; border: 1px solid var(--line); will-change: transform; }
.fc1 { top: 40px; left: 0; color: var(--brand-2); } .fc2 { bottom: 90px; right: 0; color: var(--coral); } .fc3 { bottom: 20px; left: 40px; color: var(--brand); }

/* marquee — solid playful colors (Elevate style), fully readable */
.marquee { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 22px 0; background: #fff; }
.marquee-track { display: flex; gap: 30px; align-items: center; white-space: nowrap; animation: scrollx 28s linear infinite; }
.marquee-track span { font-family: 'Poppins'; font-size: 28px; font-weight: 800; letter-spacing: 1px; }
.marquee-track span:nth-of-type(4n+1) { color: #9B6BFF; }   /* violet */
.marquee-track span:nth-of-type(4n+2) { color: #FF6B6B; }   /* coral */
.marquee-track span:nth-of-type(4n+3) { color: #14B8A6; }   /* teal */
.marquee-track span:nth-of-type(4n+4) { color: #F5A623; }   /* sun (darkened for contrast) */
.marquee-track i { color: rgba(30,27,46,.25); font-style: normal; font-size: 20px; }
@keyframes scrollx { to { transform: translateX(-50%); } }

/* PIN horizontal section */
.pin-section { position: relative; height: 320vh; }
.pin-sticky { position: sticky; top: 0; height: 100vh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; padding: 0 6vw; }
.pin-head { margin-bottom: 40px; }
.eyebrow { color: var(--brand); font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; }
.pin-head h2, .section-head h2 { font-size: clamp(30px, 4vw, 50px); font-weight: 800; letter-spacing: -1px; margin-top: 10px; color: var(--ink); }
.pin-track { display: flex; gap: 28px; will-change: transform; }
.step-card { min-width: 400px; max-width: 400px; border-radius: 32px; padding: 36px; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.step-card.accent { border-color: #FFE3A3; background: linear-gradient(160deg, #FFF8E6, #ffffff); }
.step-n { font-family: 'Poppins'; font-size: 46px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.step-card.accent .step-n { -webkit-text-fill-color: initial; }
.step-card h3 { font-size: 25px; margin: 14px 0 12px; }
.step-card p { color: var(--muted); font-size: 15.5px; line-height: 1.6; }
.step-emoji { font-size: 60px; margin-top: 26px; }

/* FEATURES */
.features { padding: 110px 6vw; }
.section-head { text-align: center; margin-bottom: 70px; }
.feature-row { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; margin-bottom: 110px; }
.feature-row.rev .feature-text { order: 2; }
.fnum { color: var(--brand); font-family: 'Poppins'; font-weight: 800; font-size: 15px; letter-spacing: 2px; }
.feature-text h3 { font-size: clamp(26px, 3vw, 38px); font-weight: 800; letter-spacing: -.6px; margin: 12px 0 16px; color: var(--ink); }
.feature-text p { color: var(--muted); font-size: 17px; line-height: 1.65; max-width: 460px; }
.feature-art { height: 320px; border-radius: 32px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.art-map { position: absolute; inset: 0; background:
  linear-gradient(135deg, #F5F0FF, #FFF1EC 70%),
  linear-gradient(rgba(30,27,46,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(30,27,46,.04) 1px, transparent 1px);
  background-size: cover, 40px 40px, 40px 40px; }
.ap { position: absolute; width: 40px; height: 40px; border-radius: 50%; background: rgba(124,58,237,.14); }
.ap::after { content:''; position:absolute; inset: 14px; border-radius: 50%; background: var(--brand); box-shadow: 0 4px 12px rgba(124,58,237,.4); }
.ap.p1 { top: 30%; left: 30%; animation: bob 3s infinite; } .ap.p2 { top: 55%; left: 60%; animation: bob 3s .5s infinite; } .ap.p3 { top: 25%; left: 65%; animation: bob 3s 1s infinite; }
.split-viz { display: flex; gap: 16px; width: 76%; }
.split { flex-direction: column; border-radius: 22px; padding: 26px 20px; text-align: center; display: flex; align-items: center; gap: 4px; }
.split b { font-size: 44px; font-family: 'Poppins'; } .split span { color: var(--muted); font-size: 14px; }
.split.host { flex: 85; background: #F5F0FF; border: 1px solid #D6C2FF; } .split.host b { color: var(--brand); }
.split.plat { flex: 15; background: #FFF8E6; border: 1px solid #FFE3A3; } .split.plat b { color: #F5A623; font-size: 30px; }
.wallet-viz { width: 74%; }
.wv-label { color: var(--muted); font-size: 14px; } .wv-amt { display: block; font-family: 'Poppins'; font-size: 46px; font-weight: 800; margin: 6px 0 18px; }
.wv-bar { height: 12px; border-radius: 8px; background: #F3EFFB; overflow: hidden; } .wv-bar i { display: block; height: 100%; width: 70%; background: var(--grad); border-radius: 8px; }

/* HOST CTA */
.host-cta { padding: 40px 6vw 110px; }
.host-inner { border-radius: 40px; padding: 64px 40px; text-align: center; position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.host-stat { margin-bottom: 22px; }
.host-stat b { font-size: clamp(44px, 6vw, 72px); font-family: 'Poppins'; font-weight: 800; display: block; }
.host-stat span { color: var(--muted); font-size: 15px; }
.host-inner h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -1px; line-height: 1.12; color: var(--ink); }
.host-inner p { color: var(--muted); font-size: 18px; margin: 16px 0 28px; }
.host-inner small { display: block; margin-top: 16px; color: var(--muted); font-size: 12px; opacity: .7; }

/* FINAL CTA */
.final-cta { text-align: center; padding: 90px 6vw 120px; }
.final-cta h2 { font-size: clamp(36px, 6vw, 72px); font-weight: 800; letter-spacing: -1.5px; margin-bottom: 30px; }

.lfoot { border-top: 1px solid var(--line); padding: 30px 6vw; display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13.5px; flex-wrap: wrap; gap: 12px; background: #fff; }

/* reveal animation */
[data-reveal] { opacity: 0; transform: translateY(40px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
[data-reveal].in { opacity: 1; transform: none; }
[data-dir="left"] { transform: translateX(-50px); } [data-dir="right"] { transform: translateX(50px); }
[data-dir].in { transform: none; }

/* ================= APP ================= */
.topbar {
  display: flex; align-items: center; gap: 18px; padding: 0 20px; height: 62px;
  background: rgba(255,255,255,.92); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 500;
}
.nav { display: flex; gap: 4px; margin-left: 10px; }
.nav-btn { background: none; border: none; padding: 8px 16px; border-radius: 999px; color: var(--muted); font-size: 14.5px; font-weight: 500; font-family: 'Poppins'; }
.nav-btn:hover { background: rgba(30,27,46,.05); color: var(--ink); }
.nav-btn.active { background: #F5F0FF; color: var(--brand); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 10px; position: relative; }
.wallet-chip { background: #FFF8E6; color: #B8860B; font-weight: 700; font-size: 13.5px; padding: 7px 14px; border-radius: 20px; cursor: pointer; border: 1px solid #FFE3A3; }
.user-chip { display: flex; align-items: center; gap: 8px; cursor: pointer; padding: 4px 6px; border-radius: 999px; }
.user-chip:hover { background: rgba(30,27,46,.05); }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
#userName { font-size: 14px; font-weight: 500; }
.user-menu { position: absolute; top: 52px; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 8px; min-width: 200px; }
.menu-email { font-size: 12.5px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; word-break: break-all; }
.user-menu button { width: 100%; text-align: left; padding: 9px 10px; border: none; background: none; border-radius: 10px; font-size: 14px; color: var(--danger); }
.user-menu button:hover { background: #FFECEC; }

#main { min-height: calc(100vh - 62px); }
.container { max-width: 1180px; margin: 0 auto; padding: 28px 20px 70px; }
.page-title { font-size: 26px; font-weight: 800; letter-spacing: -.5px; margin-bottom: 4px; font-family: 'Poppins'; color: var(--ink); }
.page-sub { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; }

/* explore */
.explore-wrap { display: grid; grid-template-columns: 1fr 430px; height: calc(100vh - 62px); }
.map-holder { position: relative; height: 100%; }
#map { height: 100%; width: 100%; background: #F2EFE9; }
.locate-btn {
  position: absolute; right: 14px; bottom: 24px; z-index: 450;
  width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--gblue); font-size: 22px; font-weight: 700;
  box-shadow: var(--shadow); transition: transform .15s;
}
.locate-btn:hover { transform: scale(1.08); }
.list-panel { border-left: 1px solid var(--line); background: #fff; overflow-y: auto; }
.search-row { position: sticky; top: 0; background: #fff; padding: 16px; border-bottom: 1px solid var(--line); z-index: 5; }
.search-row input { width: 100%; padding: 12px 16px; border: 2px solid rgba(30,27,46,.09); border-radius: 999px; font-size: 14px; background: #fff; color: var(--ink); }
.search-row input::placeholder { color: #A9A3BC; }
.search-row input:focus { outline: none; border-color: #B794FF; box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
.list-head { padding: 14px 16px 4px; font-size: 12px; color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: 1px; }

.spot-card { padding: 16px; border-bottom: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.spot-card:hover { background: #FAF8FF; }
.spot-card.active { background: #F5F0FF; }
.spot-card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.spot-title { font-weight: 600; font-size: 15.5px; font-family: 'Poppins'; }
.spot-price { color: var(--brand); font-weight: 700; font-size: 15px; white-space: nowrap; }
.spot-price small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.spot-addr { color: var(--muted); font-size: 13px; margin-top: 4px; }
.spot-tags { display: flex; gap: 6px; margin-top: 10px; align-items: center; flex-wrap: wrap; }
.tag { font-size: 11.5px; padding: 3px 10px; border-radius: 20px; background: #F3EFFB; color: var(--muted); font-weight: 600; }
.tag.covered { background: #E3F0FE; color: #1662C4; }
.tag.open { background: #FFF3DF; color: #B8860B; }
.tag.dist { background: #E5F8F5; color: #0D9488; }
.spot-card .btn { margin-top: 12px; }
.empty { padding: 44px 20px; text-align: center; color: var(--muted); font-size: 14px; }

/* leaflet light tweaks */
.leaflet-container { background: #F2EFE9; font-family: 'Inter', sans-serif; }
.leaflet-popup-content-wrapper { background: #fff; color: var(--ink); border-radius: 16px; box-shadow: var(--shadow-lg); }
.leaflet-popup-tip { background: #fff; }
.leaflet-bar a { background: #fff; color: var(--ink); border-color: rgba(30,27,46,.1); }
.leaflet-bar a:hover { background: #F5F0FF; }

/* live blue dot (Google-Maps style) */
.me-pin { background: none; border: none; }
.me-dot-live { width: 22px; height: 22px; position: relative; }
.me-dot-live span {
  position: absolute; inset: 3px; border-radius: 50%; background: var(--gblue);
  border: 3px solid #fff; box-shadow: 0 1px 6px rgba(0,0,0,.35);
}
.me-dot-live::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  background: rgba(26,115,232,.25); animation: mepulse 2s ease-out infinite;
}
@keyframes mepulse { 0%{transform:scale(.6);opacity:.9} 100%{transform:scale(1.8);opacity:0} }

/* navigation view */
.nav-wrap { display: flex; flex-direction: column; height: calc(100vh - 62px); }
.nav-banner {
  display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 14px 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.nav-eta { font-family: 'Poppins'; font-size: 26px; font-weight: 800; color: var(--brand); }
.nav-dist { font-size: 13.5px; color: var(--muted); }
.nav-dest { display: flex; flex-direction: column; text-align: right; }
.nav-dest b { font-size: 15px; font-family: 'Poppins'; }
.nav-dest span { font-size: 12.5px; color: var(--muted); }
.nav-map-holder { position: relative; flex: 1; min-height: 300px; }
#navMap { position: absolute; inset: 0; }
.nav-actions {
  display: flex; gap: 12px; padding: 14px 20px calc(14px + env(safe-area-inset-bottom));
  background: #fff; border-top: 1px solid var(--line);
}
.nav-actions .btn { flex: 1; }
.car-pin { background: none; border: none; }
.car-pin-el { font-size: 26px; filter: drop-shadow(0 3px 5px rgba(0,0,0,.35)); }
.dest-pin { background: none; border: none; }
.dest-pin-el {
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 18px;
  background: var(--brand); border-radius: 50% 50% 50% 4px;
  box-shadow: 0 6px 16px rgba(124,58,237,.45); border: 2px solid #fff;
}

/* grids/cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.card h4 { font-size: 16px; margin-bottom: 4px; font-family: 'Poppins'; }
.card .muted { color: var(--muted); font-size: 13.5px; }
.card-row { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; font-size: 14px; }
.card-actions { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.stat-strip { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px; min-width: 160px; box-shadow: var(--shadow); }
.stat .n { font-size: 24px; font-weight: 800; font-family: 'Poppins'; background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.pill { font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.pill.active { background: #E5F8F5; color: #0D9488; }
.pill.completed { background: #F3EFFB; color: var(--muted); }
.pill.cancelled { background: #FFECEC; color: var(--danger); }

/* forms */
.form-card { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 24px; box-shadow: var(--shadow); }
label { display: block; font-size: 13px; font-weight: 600; margin: 14px 0 6px; color: #3A3452; }
input, select, textarea { width: 100%; padding: 12px 15px; border: 2px solid rgba(30,27,46,.09); border-radius: 16px; font-size: 14px; background: #fff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #A9A3BC; }
input:focus, select:focus, textarea:focus { outline: none; border-color: #B794FF; box-shadow: 0 0 0 4px rgba(124,58,237,.12); }
textarea { resize: vertical; min-height: 74px; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mini-map { height: 260px; border-radius: 20px; overflow: hidden; margin-top: 8px; border: 1px solid var(--line); }
.map-hint { font-size: 12.5px; color: var(--muted); margin-top: 8px; }

/* modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(30,27,46,.45); backdrop-filter: blur(5px); display: grid; place-items: center; z-index: 1500; padding: 20px; }
.modal { border-radius: 32px; padding: 28px; width: 100%; max-width: 410px; position: relative; box-shadow: var(--shadow-lg); }
.glass-modal { background: #fff; border: 1px solid var(--line); }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; font-size: 26px; color: var(--muted); line-height: 1; }
.modal h3 { font-size: 20px; margin-bottom: 6px; font-family: 'Poppins'; }
.auth-tabs { display: flex; gap: 6px; background: #F3EFFB; padding: 4px; border-radius: 999px; margin-bottom: 8px; }
.auth-tab { flex: 1; padding: 10px; border: none; background: none; border-radius: 999px; font-weight: 600; font-size: 14px; color: var(--muted); font-family: 'Poppins'; }
.auth-tab.active { background: var(--brand); color: #fff; }
.auth-error { color: var(--danger); font-size: 13px; margin: 10px 0 0; min-height: 16px; }
.auth-hint { font-size: 12px; color: var(--muted); margin-top: 14px; text-align: center; }
.book-spot-meta { color: var(--muted); font-size: 13.5px; margin-bottom: 6px; }
.fare-box { background: #FAF8FF; border: 1px solid var(--line); border-radius: 20px; padding: 15px; margin-top: 16px; font-size: 14px; }
.fare-box .row { display: flex; justify-content: space-between; margin-bottom: 6px; }
.fare-box .total { font-weight: 700; font-size: 16px; color: var(--brand); border-top: 1px dashed rgba(30,27,46,.15); padding-top: 8px; margin-top: 4px; }

/* toast */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: #1E1B2E; color: #fff; padding: 13px 22px; border-radius: 999px; font-size: 14px; z-index: 3000; box-shadow: var(--shadow-lg); max-width: 90vw; }
.toast.err { background: #E03131; }

/* ---------- search + filters ---------- */
.search-box { display: flex; gap: 8px; }
.search-box input { flex: 1; }
.search-go {
  width: 46px; border: 2px solid rgba(30,27,46,.09); border-radius: 50%; background: #F5F0FF;
  color: var(--brand); font-size: 16px; transition: background .2s, border-color .2s;
}
.search-go:hover { background: #EBE0FF; border-color: #B794FF; }
.filter-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; align-items: center; }
.chip {
  border: 1.5px solid rgba(30,27,46,.12); background: #fff; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  transition: all .18s;
}
.chip:hover { border-color: #C9BFE3; color: var(--ink); }
.chip.on { background: #F5F0FF; border-color: var(--brand); color: var(--brand); }
.chip-select {
  width: auto; border: 1.5px solid rgba(30,27,46,.12); background: #fff; color: var(--muted);
  padding: 7px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer;
}
.chip-select:focus { border-color: var(--brand); color: var(--ink); box-shadow: none; }

/* smart badges */
.badge-row { margin-bottom: 8px; }
.smart-badge {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .4px; font-family: 'Poppins';
  background: var(--brand); color: #fff; padding: 4px 12px; border-radius: 20px;
  box-shadow: 0 4px 14px rgba(124,58,237,.3);
}
.tag.rating { background: #FFF3DF; color: #B8860B; }
.tag.rating i { font-style: normal; opacity: .7; font-weight: 500; }

/* map pins */
.price-pin { background: none; border: none; }
.pin-el {
  background: #fff; border: 2px solid var(--brand); color: var(--brand);
  padding: 3px 9px; border-radius: 16px; font-size: 12px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 3px 10px rgba(30,27,46,.25); transition: transform .15s;
}
.pin-el:hover { transform: scale(1.12); }
.pin-best { background: var(--brand); color: #fff; border: 2px solid #fff; box-shadow: 0 4px 16px rgba(124,58,237,.5); }

/* skeleton loaders */
.skel-card { padding: 18px 16px; border-bottom: 1px solid var(--line); }
.skel-line { height: 13px; border-radius: 8px; margin-bottom: 10px;
  background: linear-gradient(90deg, #F3EFFB 25%, #E9E2F7 50%, #F3EFFB 75%);
  background-size: 200% 100%; animation: shimmer 1.4s infinite; }
.skel-line.w60 { width: 60%; } .skel-line.w90 { width: 90%; } .skel-line.w40 { width: 40%; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- payment sheet ---------- */
.pay-sheet { max-width: 430px; }
.pay-head { text-align: center; margin-bottom: 18px; }
.pay-secure { font-size: 11.5px; color: var(--brand-2); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.pay-head h3 { margin-top: 8px; }
.pay-amount { font-family: 'Poppins'; font-size: 38px; font-weight: 800; margin-top: 4px;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.pay-method-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.pay-methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 6px; }
.pay-method {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 12px 6px;
  background: #fff; border: 2px solid rgba(30,27,46,.09); border-radius: 18px; color: var(--ink);
  transition: all .18s;
}
.pay-method:hover { border-color: #C9BFE3; }
.pay-method.active { border-color: var(--brand); background: #F5F0FF; }
.pm-icon { font-size: 20px; }
.pm-name { font-size: 13px; font-weight: 700; }
.pm-sub { font-size: 10px; color: var(--muted); }
.pay-spinner {
  width: 54px; height: 54px; margin: 26px auto 18px; border-radius: 50%;
  border: 4px solid rgba(124,58,237,.15); border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.pay-status { text-align: center; color: var(--muted); font-size: 14px; padding-bottom: 16px; }
.pay-check {
  width: 64px; height: 64px; margin: 22px auto 16px; border-radius: 50%; background: var(--brand-2);
  color: #fff; font-size: 34px; font-weight: 800; display: grid; place-items: center;
  animation: pop .4s cubic-bezier(.2,1.6,.4,1);
}
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.pay-src { border-top: 1px dashed rgba(30,27,46,.15); padding-top: 8px; margin-top: 4px; color: var(--muted); }
.pay-history-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; flex-wrap: wrap; }
.pay-history-row:last-child { border-bottom: none; }

/* ---------- rating stars ---------- */
.stars { display: flex; justify-content: center; gap: 8px; margin: 18px 0 22px; }
.stars button { background: none; border: none; font-size: 38px; color: #E6E1F0; transition: color .15s, transform .15s; }
.stars button:hover { transform: scale(1.15); }
.stars button.lit { color: #F5A623; text-shadow: 0 2px 10px rgba(252,196,25,.35); }

/* ---------- host extras ---------- */
.amenity-row { display: flex; gap: 8px; flex-wrap: wrap; }
.map-toolbar { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }

/* ---------- signup wizard ---------- */
.auth-modal { max-width: 460px; }
.wiz-progress { display: flex; gap: 8px; justify-content: center; margin: 6px 0 18px; }
.wiz-dot { width: 34px; height: 5px; border-radius: 4px; background: #E9E2F7; transition: background .3s; }
.wiz-dot.on { background: var(--brand); }
.wiz-title { font-size: 19px; margin-bottom: 6px; text-align: center; font-family: 'Poppins'; }
.wiz-sub { color: var(--muted); font-size: 13px; text-align: center; margin-bottom: 12px; line-height: 1.5; }
.role-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.role-card {
  display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 22px 12px;
  background: #fff; border: 2px solid rgba(30,27,46,.09); border-radius: 24px; color: var(--ink);
  transition: all .18s; text-align: center;
}
.role-card:hover { border-color: #C9BFE3; transform: translateY(-2px); }
.role-card.picked { border-color: var(--brand); background: #F5F0FF; }
.role-card .role-icon { font-size: 34px; }
.role-card b { font-size: 14.5px; font-family: 'Poppins'; }
.role-card span:not(.role-icon) { font-size: 12px; color: var(--muted); }
.role-cards.mini { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 4px; }
.role-card.mini { padding: 12px 6px; border-radius: 18px; }
.role-card.mini .role-icon { font-size: 22px; }
.role-card.mini b { font-size: 12px; }
.wiz-nav { display: flex; gap: 10px; margin-top: 18px; }
.wiz-nav .btn { flex: 1; }
.opt { font-weight: 400; color: var(--muted); font-size: 11.5px; }
.phone-field { display: flex; align-items: stretch; }
.phone-cc {
  display: grid; place-items: center; padding: 0 13px; background: #F3EFFB;
  border: 2px solid rgba(30,27,46,.09); border-right: none; border-radius: 16px 0 0 16px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.phone-field input { border-radius: 0 16px 16px 0; }

/* ---------- OTP ---------- */
.otp-icon { font-size: 42px; margin: 4px 0 8px; }
.otp-input {
  text-align: center; font-size: 26px; letter-spacing: 12px; font-weight: 700; font-family: 'Poppins';
  margin: 12px 0 4px; padding: 14px;
}
.demo-otp {
  margin-top: 10px; padding: 10px 14px; border-radius: 16px; font-size: 13px;
  background: #FFF8E6; border: 1px dashed #F2C063; color: #B8860B;
}
.demo-otp b { font-size: 16px; letter-spacing: 2px; }

/* ---------- verified / role badges ---------- */
.v-badge {
  display: inline-grid; place-items: center; width: 15px; height: 15px; border-radius: 50%;
  background: var(--brand-2); color: #fff; font-size: 10px; font-style: normal; font-weight: 800;
  vertical-align: 1px; margin-left: 3px;
}
.menu-role { font-size: 11.5px; color: var(--brand); margin-top: 4px; }
.verify-chip {
  background: #FFF8E6; color: #B8860B; border: 1px solid #F2C063;
  font-weight: 700; font-size: 12.5px; padding: 7px 13px; border-radius: 20px; cursor: pointer;
  animation: pulse-w 2s infinite;
}
@keyframes pulse-w { 0%,100%{box-shadow:0 0 0 0 rgba(252,196,25,.3)} 50%{box-shadow:0 0 0 6px rgba(252,196,25,0)} }
.warn-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: #FFF8E6; border: 1px solid #F2C063; color: #B8860B;
  border-radius: 20px; padding: 13px 16px; font-size: 14px; font-weight: 600; margin-bottom: 18px;
}

/* ---------- Get the App / install ---------- */
.install-steps { display: flex; flex-direction: column; gap: 10px; margin: 16px 0 6px; }
.install-step {
  display: flex; flex-direction: column; gap: 3px; padding: 13px 16px;
  background: #FAF8FF; border: 1px solid var(--line); border-radius: 18px;
}
.install-step b { font-size: 13.5px; font-family: 'Poppins'; }
.install-step span { font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.install-step span b { font-size: 12.5px; color: var(--ink); font-family: 'Inter'; }

/* ---------- host dashboard ---------- */
.stat.big { min-width: 210px; }
.stat.big .n { font-size: 32px; }
.dash-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }

/* ---------- bottom tab bar (native app feel) ---------- */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 600;
  background: rgba(255,255,255,.97); backdrop-filter: blur(16px); border-top: 1px solid var(--line);
  padding: 8px 6px calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -6px 20px rgba(30,27,46,.06);
}
.bnav-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px;
  background: none; border: none; color: var(--muted); font-size: 10.5px; font-weight: 600; padding: 7px 2px;
  border-radius: 14px; transition: color .15s, background .15s;
}
.bnav-btn span { font-size: 21px; transition: transform .15s; }
.bnav-btn.active { color: var(--brand); }
.bnav-btn.active span { transform: translateY(-1px) scale(1.08); }
.bnav-btn.active { background: #F5F0FF; }

/* app header adapts in the installed app (no website chrome) */
body.standalone-app .topbar { padding-top: calc(env(safe-area-inset-top)); height: calc(58px + env(safe-area-inset-top)); }
body.standalone-app .topbar .nav { display: none; }
body.standalone-app .hide-mobile { display: none; }
body.standalone-app .bottom-nav { display: flex; }

/* ---------- installed-app sign-in gate ---------- */
.gate-head { display: none; text-align: center; margin-bottom: 16px; }
.gate-head .gate-logo { font-size: 46px; display: block; line-height: 1; }
.gate-head .brand-name { font-size: 24px; font-weight: 700; color: var(--brand); }
.gate-head .brand-name b { color: var(--ink); }
.gate-head p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
#authModal.gate .gate-head { display: block; }
#authModal.gate .modal-close { display: none; }
.modal-overlay.gate { padding: 0; }
.modal-overlay.gate .modal {
  min-height: 100vh; min-height: 100dvh; max-width: 480px; width: 100%;
  border-radius: 0; display: flex; flex-direction: column; justify-content: center;
  box-shadow: none;
}
body.standalone-app .bottom-nav { display: flex; }
body.standalone-app #main { padding-bottom: 78px; }

/* all modals scroll on short screens */
.modal { max-height: 94vh; max-height: 94dvh; overflow-y: auto; }

.hidden, [hidden] { display: none !important; }

/* ---------- small-screen responsive pass ---------- */
@media (max-width: 600px) {
  .container { padding: 20px 14px 86px; }
  .topbar { padding: 0 12px; gap: 8px; height: 58px; }
  #main { min-height: calc(100vh - 58px); }
  .brand-name { font-size: 18px; }
  .page-title { font-size: 21px; }
  .page-sub { font-size: 13.5px; }
  .grid { grid-template-columns: 1fr; }
  .stat { min-width: 0; flex: 1 1 calc(50% - 8px); }
  .stat .n { font-size: 21px; }
  .stat.big { min-width: 0; }
  .stat.big .n { font-size: 26px; }
  .modal { padding: 24px 18px; border-radius: 26px; }
  .pay-methods { gap: 6px; }
  .pay-method { padding: 10px 3px; }
  .pm-sub { display: none; }
  .nav-eta { font-size: 22px; }
  .nav-banner { padding: 12px 16px; }
  .dash-actions .btn { flex: 1 1 100%; }
  .explore-wrap { grid-template-columns: 1fr; }
  .map-holder { height: 300px; }
  .two-col { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
  /* phone header = logo + ONE compact button; extras live in the hero instead */
  .lnav { padding: 10px 16px; gap: 8px; }
  .lnav-cta { gap: 8px; }
  .lnav-cta .btn-ghost, .lnav-cta .install-btn { display: none; }
  .lnav-cta .btn-primary { padding: 9px 15px; font-size: 13.5px; white-space: nowrap; }
  .logo { font-size: 22px; }
}
@media (max-width: 380px) {
  .brand-name { font-size: 16px; }
  .wallet-chip { padding: 6px 10px; font-size: 12px; }
  .verify-chip { padding: 6px 9px; font-size: 11.5px; }
  .avatar { width: 27px; height: 27px; }
  .btn { padding: 10px 16px; }
  .btn-sm { padding: 6px 11px; font-size: 12.5px; }
  .role-cards { grid-template-columns: 1fr; }
  .otp-input { letter-spacing: 8px; font-size: 22px; }
  .pay-methods { grid-template-columns: 1fr; }
  .pay-method { flex-direction: row; justify-content: center; gap: 8px; padding: 12px; }
}

/* respect reduced motion (Elevate convention) */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* responsive */
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 120px; }
  .hero-sub { margin: 0 auto; } .hero-actions, .hero-trust { justify-content: center; }
  .hero-visual { height: 480px; margin-top: 30px; }
  .lnav-links { display: none; }
  .feature-row, .feature-row.rev .feature-text { grid-template-columns: 1fr; order: 0; }
  .feature-text p { margin: 0 auto; }
  .pin-section { height: auto; } .pin-sticky { position: static; height: auto; padding: 80px 6vw; }
  .pin-track { flex-direction: column; transform: none !important; } .step-card { min-width: 0; max-width: none; }
  .explore-wrap { grid-template-columns: 1fr; height: auto; }
  .map-holder { height: 340px; } .list-panel { border-left: none; border-top: 1px solid var(--line); }
  .nav { display: none; } .two-col { grid-template-columns: 1fr; }
  .bottom-nav { display: flex; }
  #main { padding-bottom: 76px; }
  .hide-mobile { display: none; }
  .role-cards.mini { grid-template-columns: repeat(2, 1fr); }
  .toast { bottom: 86px; }
  .nav-wrap { height: calc(100vh - 62px - 70px); }
  .nav-actions { flex-direction: column; }
  .nav-dest { text-align: left; }
}
