/* nightcap customer app. Builds on /shared/base.css tokens. */
html { background: #fff; }
body { min-height: 100vh; overflow-x: hidden; }
.shell { max-width: 440px; margin: 0 auto; min-height: 100vh; background: #fff; }
.view { display: flex; flex-direction: column; gap: 18px; padding: 12px 16px 32px; outline: none; }
body.has-nav .view { padding-bottom: calc(96px + env(safe-area-inset-bottom)); }
.pad-b { padding-bottom: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.section-title { font-size: 18px; font-weight: 800; }
.label { display: block; margin-bottom: 8px; }
.link-btn { background: none; border: 0; color: var(--green); font-weight: 700; cursor: pointer; min-height: 44px; padding: 0 4px; align-self: center; }
.link-btn:hover { color: var(--green-dark); }
.span-all { grid-column: 1 / -1; }
.tap { min-height: 44px; }
.icon-btn.plain { border-color: transparent; background: transparent; }
.icon-btn.plain:hover { background: var(--surface); }
.card { border-radius: 18px; }

/* Header bars */
.topbar { display: flex; align-items: center; gap: 12px; min-height: 48px; }
.topbar-title { font-size: 19px; font-weight: 800; flex: 1; min-width: 0; }
.topbar .grow .topbar-title { flex: none; }
.topbar-right { display: flex; gap: 8px; align-items: center; }
.page-head { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.page-head.row { flex-direction: row; align-items: center; }
.home-head { display: flex; align-items: flex-start; gap: 12px; padding-top: 6px; }
.addr-select { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; max-width: 100%; color: var(--ink); font-weight: 500; font-size: 13.5px; }
.addr-select strong { font-weight: 700; }
.addr-select:hover { color: var(--ink); }
.addr-select > svg:last-child { flex: none; color: var(--muted); }
.unread-dot { position: absolute; top: 9px; right: 10px; width: 10px; height: 10px; border-radius: 999px; background: var(--red); border: 2px solid #fff; }

/* Search pill */
.search { height: 50px; }
.search input::-webkit-search-cancel-button { cursor: pointer; }

/* Hero */
.hero { position: relative; display: flex; align-items: center; background: linear-gradient(120deg, #DDF3C8 0%, #EEF9E2 55%, #F7FCF1 100%); border-radius: 24px; padding: 22px 0 22px 20px; min-height: 196px; isolation: isolate; }
.hero-copy { position: relative; z-index: 2; flex: 0 0 52%; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.hero h1 { font-size: 24px; line-height: 1.08; max-width: 9.5em; letter-spacing: -0.03em; }
.hero-sub { font-size: 14px; font-weight: 600; color: var(--ink); }
.hero-btn { margin-top: 6px; min-height: 44px; padding: 0 18px; box-shadow: 0 6px 14px rgba(30, 139, 44, .28); }
.hero-art { position: absolute; z-index: 1; right: -4px; bottom: 0; width: 52%; pointer-events: none; }
.hero-art img { display: block; width: 100%; height: auto; mix-blend-mode: multiply; -webkit-mask-image: radial-gradient(ellipse 58% 56% at 52% 54%, #000 72%, transparent 100%); mask-image: radial-gradient(ellipse 58% 56% at 52% 54%, #000 72%, transparent 100%); }
@media (max-width: 360px) { .hero h1 { font-size: 22px; } .hero-art { width: 50%; } }
.cluster { display: flex; align-items: flex-end; }
.cl { filter: drop-shadow(0 6px 8px rgba(18, 26, 58, .16)); }
.cl-1 { margin-right: -14px; transform: rotate(-6deg); z-index: 1; }
.cl-2 { z-index: 2; }
.cl-3 { margin-left: -12px; transform: rotate(7deg); z-index: 1; }
.cl svg { display: block; }

/* Categories */
.cats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.cat-tile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; min-height: 72px; padding: 8px 2px; border-radius: 16px; border: 0; background: var(--surface); color: var(--ink); font-size: 11.5px; font-weight: 700; cursor: pointer; }
.cat-tile:hover { background: var(--tint); }
.cat-ico { color: var(--green); display: flex; }

/* Store cards */
.store-card { display: flex; align-items: center; gap: 12px; padding: 14px; color: var(--ink); font-weight: 500; }
.store-card:hover { color: var(--ink); border-color: #D5DCD0; }
.store-card h3 { font-size: 15.5px; }
.store-card.is-blocked .store-ico { background: var(--surface); color: var(--muted); }
.store-ico { width: 48px; height: 48px; border-radius: 14px; background: var(--tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.store-ico.sm { width: 40px; height: 40px; border-radius: 12px; }
.reason-line { color: #8A5A00; display: flex; gap: 5px; align-items: flex-start; }
.reason-line svg { flex: none; margin-top: 2px; }
.store-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.store-chips .badge { padding: 5px 10px; font-size: 12px; }
.reason-list { margin: 4px 0 0; padding-left: 18px; }
.reason-list li + li { margin-top: 2px; }
.banner > svg { flex: none; margin-top: 1px; }
.banner a { color: inherit; text-decoration: underline; }
.banner .btn { text-decoration: none; color: #fff; }

/* Product tiles */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 9px; }
.ptile { display: flex; flex-direction: column; overflow: hidden; padding: 6px; gap: 6px; border-radius: 18px; }
.ptile .art { border-radius: 13px; }
.ptile-link { display: block; }
.ptile-body { display: flex; flex-direction: column; gap: 5px; padding: 0 4px 2px; flex: 1; }
.ptile-name { color: var(--ink); font-weight: 700; font-size: 14px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.ptile-name:hover { color: var(--green-dark); }
.ptile.mini .ptile-name { font-size: 12.5px; }
.size-badge { align-self: flex-start; background: var(--tint); color: var(--green-dark); font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ptile-foot { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-top: auto; min-height: 36px; }
.price { font-weight: 800; font-size: 15px; letter-spacing: -0.01em; }
.ptile.mini .price { font-size: 13px; }
.price-lg { font-size: 26px; }
.add-btn { position: relative; width: 36px; height: 36px; border-radius: 999px; border: 0; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; box-shadow: 0 3px 8px rgba(30, 139, 44, .3); }
.add-btn::before { content: ''; position: absolute; inset: -5px; }
.add-btn:hover { background: var(--green-dark); }
.add-btn[aria-disabled="true"] { background: #C9CFD6; box-shadow: none; }
.ptile.mini .add-btn { width: 32px; height: 32px; }
.ptile.mini .add-btn::before { inset: -6px; }
.add-qty { position: absolute; top: -6px; right: -6px; min-width: 17px; height: 17px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; display: flex; align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }

/* Quantity stepper */
.stepper { display: inline-flex; align-items: center; background: var(--surface); border-radius: 999px; height: 48px; padding: 0 2px; flex: none; }
.step-btn { width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: var(--green); display: flex; align-items: center; justify-content: center; cursor: pointer; }
.step-btn:hover { background: #fff; }
.step-qty { min-width: 22px; text-align: center; font-weight: 800; }
.stepper.sm { height: 36px; background: var(--tint); }
.stepper.sm .step-btn { width: 32px; height: 36px; position: relative; }
.stepper.sm .step-btn::before { content: ''; position: absolute; inset: -4px -2px; }
.stepper.sm .step-qty { min-width: 18px; font-size: 14px; }

/* Cart bar */
.cart-bar-wrap { position: fixed; left: 0; right: 0; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 50; pointer-events: none; }
.cart-bar { pointer-events: auto; display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 408px; margin: 0 auto; min-height: 56px; padding: 0 20px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; box-shadow: 0 10px 24px rgba(30, 139, 44, .35); }
.cart-bar:hover { color: #fff; background: var(--green-dark); }
.cart-bar.is-other { background: var(--ink); box-shadow: var(--shadow-lg); }
@media (max-width: 440px) { .cart-bar { margin: 0 16px; } }
body.has-nav .grid-2 { margin-bottom: 64px; }

/* Bottom nav */
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.nav-inner { max-width: 440px; margin: 0 auto; display: grid; grid-template-columns: repeat(5, 1fr); height: 68px; }
.nav-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11.5px; font-weight: 600; }
.nav-item:hover { color: var(--ink); }
.nav-item.is-on { color: var(--green); font-weight: 800; }
.nav-ico { position: relative; display: flex; }
.nav-badge { position: absolute; top: -6px; right: -10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--red); color: #fff; font-size: 10.5px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }

/* Trust strip */
.trust { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; background: var(--tint); border-radius: 18px; padding: 14px; }
.trust-item { display: flex; gap: 9px; align-items: center; }
.trust-item strong { display: block; font-size: 13px; line-height: 1.2; }
.trust-item .tiny { display: block; line-height: 1.3; }
.trust-ico { width: 36px; height: 36px; border-radius: 12px; background: #fff; color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }

/* Empty / error states */
.state-card { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.state-card .btn { margin-top: 6px; }
.state-icon { width: 56px; height: 56px; border-radius: 18px; background: var(--tint); color: var(--green); display: flex; align-items: center; justify-content: center; }
.state-icon.red-bg { background: var(--red-tint); color: var(--red); }

/* Welcome */
.welcome { min-height: calc(100vh - 44px); display: flex; flex-direction: column; justify-content: space-between; gap: 20px; padding-top: 16px; }
.welcome-top { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.welcome-tag { font-weight: 700; color: var(--ink-2); letter-spacing: .01em; }
.welcome-art { position: relative; display: flex; align-items: center; justify-content: center; }
.welcome-art img { display: block; width: 100%; max-width: 340px; height: auto; max-height: 38vh; object-fit: contain; }
.lime-circle { position: absolute; width: 240px; height: 240px; border-radius: 999px; background: var(--tint); left: 50%; top: 50%; transform: translate(-50%, -50%); }
.welcome-art .cluster { position: relative; transform: scale(1.35); transform-origin: bottom center; margin-bottom: 18px; }
.welcome-copy { text-align: center; display: flex; flex-direction: column; gap: 8px; }
.welcome-copy h1 { font-size: 30px; }

/* Auth forms */
.auth { display: flex; flex-direction: column; gap: 16px; }
.auth h1 { font-size: 27px; }
.otp { font-size: 26px; letter-spacing: .4em; text-align: center; font-weight: 800; }

/* Address */
.addr-map { height: 250px; }
.spots .chip { min-height: 44px; }
.coverage { display: flex; gap: 8px; align-items: center; font-weight: 700; font-size: 14px; color: var(--ink-2); background: var(--surface); padding: 12px 14px; border-radius: 14px; }
.coverage.is-ok { color: var(--green-dark); background: var(--tint); }
.coverage.is-bad { color: #B42318; background: var(--red-tint); }
.coverage svg { flex: none; }
.chip-radio { position: relative; }
.chip-radio input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-radio span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 14px; }
.chip-radio input:checked + span { background: var(--green); color: #fff; }
.chip-radio input:focus-visible + span { outline: 3px solid rgba(30, 139, 44, .45); outline-offset: 2px; }
.addr-row { display: flex; align-items: center; gap: 12px; padding: 12px; }
.addr-row.is-current { border-color: var(--green); }
.addr-ico { width: 40px; height: 40px; border-radius: 12px; background: var(--tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.addr-mini { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.addr-mini a { min-height: 44px; display: flex; align-items: center; }

/* Product page */
.product-hero .art { border-radius: 24px; }
.product-info h1 { font-size: 26px; }
.buy-bar { position: sticky; bottom: 0; display: flex; gap: 10px; align-items: center; background: #fff; padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line-2); margin: 0 -16px -32px; padding-left: 16px; padding-right: 16px; }
.buy-bar .btn { padding: 0 14px; }

/* Cart */
.cart-store { display: flex; align-items: center; gap: 12px; padding: 12px 14px; color: var(--ink); font-weight: 500; }
.cart-store:hover { color: var(--ink); }
.cart-store > .small { color: var(--green); font-weight: 700; }
.cart-line { display: flex; gap: 12px; padding: 12px; align-items: flex-start; }
.thumb { width: 64px; flex: none; }
.thumb .art { border-radius: 12px; }
.thumb.sm { width: 44px; }
.thumb.sm .art { border-radius: 10px; padding: 3px !important; }
.totals { display: flex; flex-direction: column; gap: 8px; }
.total { font-weight: 800; font-size: 17px; }
.sticky-cta { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: linear-gradient(to top, #fff 75%, rgba(255,255,255,0)); padding: 14px 0 4px; display: flex; flex-direction: column; gap: 6px; z-index: 5; }
body:not(.has-nav) .sticky-cta { bottom: 0; padding-bottom: calc(12px + env(safe-area-inset-bottom)); }

/* Checkout */
.id-card { display: flex; gap: 12px; align-items: flex-start; background: var(--tint); color: var(--green-dark); border-radius: 18px; padding: 16px; }
.id-card svg { flex: none; }
.id-card strong { color: var(--ink); }
.id-card p { color: var(--ink-2); margin-top: 2px; }
.pay-methods { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 12px; padding: 14px; cursor: pointer; min-height: 60px; color: var(--ink-2); }
.pay-opt strong { display: block; color: var(--ink); }
.pay-opt .tiny { display: block; }
.pay-opt input { width: 20px; height: 20px; accent-color: var(--green); margin: 0; flex: none; }
.pay-opt:has(input:checked) { border-color: var(--green); background: var(--tint-2); }

/* Order tracking */
.track-map { height: 260px; }
.status-card { display: flex; flex-direction: column; gap: 12px; }
.status-title { font-size: 22px; }
.eta { font-weight: 700; color: var(--green-dark); font-size: 14px; }
.pin-card { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--green); color: #fff; border-radius: 20px; padding: 16px 18px; box-shadow: 0 8px 20px rgba(30, 139, 44, .28); }
.pin { font-size: 40px; font-weight: 800; letter-spacing: .18em; line-height: 1.05; }
.pin-note { display: flex; gap: 6px; align-items: center; max-width: 150px; font-weight: 600; opacity: .95; }
.pin-note svg { flex: none; }
.driver-card { display: flex; align-items: center; gap: 12px; }
.avatar { width: 48px; height: 48px; border-radius: 999px; background: var(--ink); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 18px; flex: none; }
.avatar.lg { width: 60px; height: 60px; font-size: 22px; background: var(--green); }
.reg { font-weight: 700; color: var(--ink); background: var(--surface); padding: 1px 6px; border-radius: 6px; font-size: 12px; }
.icon-btn.call { background: var(--green); color: #fff; border-color: var(--green); }
.stars { display: flex; gap: 4px; }
.star { width: 48px; height: 48px; border: 0; background: var(--surface); border-radius: 14px; color: #C9CFD6; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.star.is-on { color: #E8A317; background: #FFF6DD; }
.star.is-on svg, .stars-static .is-on svg { fill: currentColor; }
.stars-static { display: flex; gap: 2px; color: #C9CFD6; }
.stars-static .is-on { color: #E8A317; }

/* Orders list */
.active-order { display: flex; flex-direction: column; gap: 10px; padding: 14px; color: var(--ink); font-weight: 500; }
.active-order:hover { color: var(--ink); }
.track-row { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 999px; background: var(--green); color: #fff; font-weight: 700; }
.order-row { display: flex; align-items: center; gap: 10px; padding: 14px; color: var(--ink); font-weight: 500; min-height: 64px; }
.order-row:hover { color: var(--ink); background: var(--tint-2); }

/* Notifications */
.notif { display: flex; gap: 10px; padding: 14px; color: var(--ink); font-weight: 500; }
.notif:hover { color: var(--ink); }
.notif-dot { width: 8px; height: 8px; border-radius: 999px; background: transparent; margin-top: 7px; flex: none; }
.notif.is-unread { background: var(--tint-2); }
.notif.is-unread .notif-dot { background: var(--green); }
.card > .notif:first-child, .card > .order-row:first-child { border-radius: 18px 18px 0 0; }
.card > .notif:last-child, .card > .order-row:last-child { border-radius: 0 0 18px 18px; }

/* Profile */
.profile-head { display: flex; align-items: center; gap: 14px; }
.list-card { overflow: hidden; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; width: 100%; background: none; border: 0; text-align: left; color: var(--ink); font-weight: 500; cursor: pointer; }
a.list-row:hover, button.list-row:hover { background: var(--tint-2); color: var(--ink); }
.list-row > svg:last-child { color: var(--muted); flex: none; }
.row-ico { width: 36px; height: 36px; border-radius: 11px; background: var(--surface); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.sheet h2 { font-size: 20px; }

/* Toasts sit at the top so they never cover the cart bar or checkout button. */
.toasts { top: calc(12px + env(safe-area-inset-top)); bottom: auto; }
.reg { white-space: nowrap; }
.or-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; font-weight: 600; }
.or-divider::before, .or-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.gsi-slot { min-height: 48px; display: flex; flex-direction: column; }
.gsi-slot .btn { gap: 10px; }
.tap-link { min-height: 44px; display: inline-flex; align-items: center; }
/* Show at most the two newest toasts. */
.toasts .toast:nth-last-child(n+3) { display: none; }

/* Launch splash */
.splash { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: space-between; overflow: hidden;
  padding: max(56px, 9vh) 24px calc(28px + env(safe-area-inset-bottom)); background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 38%, #F1FAE8 70%, #E3F5D2 100%); transition: opacity .4s ease, visibility .4s; cursor: pointer; }
.splash.is-out { opacity: 0; visibility: hidden; }
.splash-top { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; position: relative; z-index: 2; animation: splash-up .6s ease both; }
.splash-tag { font-weight: 700; font-size: 17px; color: var(--ink); letter-spacing: .01em; }
.splash-art { position: relative; z-index: 2; width: 100%; max-width: 360px; flex: 1 1 auto; display: flex; align-items: center; justify-content: center; min-height: 0; margin: 18px 0 8px; animation: splash-pop .7s .1s ease both; }
.splash-art picture { display: contents; }
.splash-art img { display: block; width: 100%; height: auto; max-height: 52vh; object-fit: contain; mix-blend-mode: multiply;
  -webkit-mask-image: radial-gradient(ellipse 60% 58% at 50% 52%, #000 74%, transparent 100%); mask-image: radial-gradient(ellipse 60% 58% at 50% 52%, #000 74%, transparent 100%); }
.splash-dots { position: relative; z-index: 2; display: flex; gap: 10px; margin-bottom: 6px; }
.splash-dots i { width: 9px; height: 9px; border-radius: 99px; background: #9FD77A; animation: splash-dot 1.2s ease-in-out infinite; }
.splash-dots i:nth-child(2) { animation-delay: .2s; }
.splash-dots i:nth-child(3) { animation-delay: .4s; }
.splash-wave { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34vh; z-index: 1; }
@keyframes splash-up { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes splash-pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }
@keyframes splash-dot { 0%, 100% { background: #9FD77A; transform: scale(1); } 40% { background: var(--green); transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { .splash-top, .splash-art, .splash-dots i { animation: none; } }

/* ---------- Home page, matched to the home mockup ---------- */
.home-btn { width: 48px; height: 48px; border: 0; background: #fff; box-shadow: 0 4px 14px rgba(18, 26, 58, .10); }
.avatar-btn { color: var(--ink); background: #EEF1F8; }
.count-badge { position: absolute; top: -3px; right: -3px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: #E5293F; color: #fff; font-size: 11px; font-weight: 800; display: flex; align-items: center; justify-content: center; border: 2px solid #fff; }
#q.search { background: #EEF1F8; height: 52px; padding-right: 6px; }
.search-filter { width: 40px; height: 40px; border-radius: 999px; background: var(--tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }
.search-filter:hover { background: #D7F2BE; color: var(--green-dark); }
.cats .home-cat { background: #F1F3FA; min-height: 84px; gap: 6px; font-size: 12px; border-radius: 18px; box-shadow: inset 0 0 0 1px #E6E9F3; }
.cats .home-cat:hover { background: #E8F6DC; }
.view-all { display: inline-flex; align-items: center; gap: 4px; color: var(--green); font-weight: 700; font-size: 14px; }
.view-all:hover { color: var(--green-dark); }
.section-title { font-size: 20px; letter-spacing: -0.02em; }

.hstore { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 8px; color: var(--ink); font-weight: 500; border-radius: 20px; box-shadow: 0 4px 16px rgba(18, 26, 58, .06); }
.hstore:hover { color: var(--ink); }
.hstore-art { position: relative; flex: 0 0 104px; height: 84px; border-radius: 14px; overflow: hidden; }
.hstore-art svg { display: block; width: 100%; height: 100%; }
.hstore-pill { box-shadow: 0 2px 6px rgba(0,0,0,.25); position: absolute; top: 6px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: var(--green); color: #fff; font-size: 9.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; }
.hstore-pill.is-closed { background: #B42318; }
.hstore-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.hstore-body h3 { font-size: 15px; font-weight: 800; }
.hstore .demo-tag { font-size: 9.5px; padding: 1px 5px; flex: none; }
.hstore-line { display: flex; align-items: center; gap: 5px; font-size: 12.5px; white-space: nowrap; color: var(--ink-2); min-width: 0; }
.hstore-line svg { flex: none; color: var(--ink); }
.hstore.is-blocked .hstore-art { filter: grayscale(.7); }
.hstore-go { width: 34px; height: 34px; border-radius: 999px; background: var(--tint); color: var(--green); display: flex; align-items: center; justify-content: center; flex: none; }

.ptile.home { padding: 8px; border-radius: 18px; box-shadow: 0 4px 14px rgba(18, 26, 58, .06); }
.ptile.home .ptile-link { position: relative; }
.ptile.home .art { background: #fff !important; }
.size-pill { position: absolute; top: 4px; right: 4px; background: #DDF3C8; color: var(--green-dark); font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.ptile.home .ptile-name { font-weight: 600; font-size: 12.5px; min-height: 2.5em; }
.ptile.home .price { font-size: 13.5px; font-weight: 800; letter-spacing: -0.02em; }
.ptile.home .ptile-foot { gap: 2px; }
.ptile.home .add-btn { width: 30px; height: 30px; flex: none; box-shadow: 0 4px 10px rgba(30, 139, 44, .3); }

.promise { position: relative; display: flex; align-items: center; gap: 8px; background: linear-gradient(100deg, #E3F5D2, #F1FAE8); border-radius: 18px; padding: 12px 14px 12px 6px; overflow: hidden; }
.promise .scooter { width: 62px; height: 40px; flex: none; }
.promise-item { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.promise-item strong { font-size: 12px; line-height: 1.2; font-weight: 800; }
.promise-item span { font-size: 10.5px; color: var(--ink-2); line-height: 1.25; }
.promise-item:first-of-type { flex: 1 1 auto; }
.promise-safe { flex: 0 0 auto; flex-direction: row; align-items: center; gap: 7px; }
.promise-safe > div { display: flex; flex-direction: column; gap: 2px; }
.promise-shield { flex: none; display: flex; }
.promise-div { width: 2px; align-self: stretch; margin: 4px 2px; background: var(--green); opacity: .5; border-radius: 2px; flex: none; }
@media (max-width: 370px) { .promise .scooter { width: 48px; } .promise-item strong { font-size: 11.5px; } }

/* Bottom nav: active bar */
.nav-item { position: relative; border: 0; background: none; cursor: pointer; font-family: inherit; }
.nav-item.is-on::after { content: ''; position: absolute; bottom: 4px; left: 50%; transform: translateX(-50%); width: 46px; height: 3px; border-radius: 3px; background: var(--green); }

/* ---------- Same look on every customer screen ---------- */
.page-head h1, .auth h1 { font-size: 27px; letter-spacing: -0.03em; }
.topbar-title { font-size: 20px; letter-spacing: -0.02em; }
.cats-scroll { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; padding: 2px 2px 4px; margin: 0 -2px; }
.cats-scroll::-webkit-scrollbar { display: none; }
.cats-scroll .home-cat { flex: 0 0 76px; }
.grid-2 .ptile.home.full { padding: 8px; }
.ptile.home.full .ptile-name { font-size: 13.5px; }
.ptile.home.full .price { font-size: 15.5px; }
.ptile.home.full .add-btn { width: 36px; height: 36px; }
.ptile.home.full .size-pill { font-size: 11px; padding: 3px 9px; top: 6px; right: 6px; }

/* Store page banner */
.store-banner { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 22px; background: linear-gradient(120deg, #DDF3C8 0%, #EEF9E2 60%, #F7FCF1 100%); }
.store-banner-art { flex: 0 0 116px; height: 88px; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 16px rgba(18, 26, 58, .18); }
.store-banner-art svg { display: block; width: 100%; height: 100%; }
.store-banner-copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; align-items: flex-start; }
.store-banner-copy .hstore-pill { position: static; transform: none; font-size: 11.5px; padding: 3px 10px; }
.store-banner-line { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink); min-width: 0; max-width: 100%; }
.store-banner-line svg { flex: none; }

/* Lists, rows and summaries */
.row-ico { background: #E8F6DC; color: var(--green); border-radius: 12px; }
.cart-bar { background: linear-gradient(180deg, #26A036, #1E8B2C); }
.product-hero .art { background: linear-gradient(135deg, #DDF3C8 0%, #F1FAE8 70%, #FFFFFF 100%) !important; box-shadow: inset 0 0 0 1px #E6F2DA; }

/* Sign-in screens: soft lime wave at the foot, like the splash */
.auth, .welcome { position: relative; }
.shell:has(.auth), .shell:has(.welcome) { background: linear-gradient(180deg, #FFFFFF 0%, #FFFFFF 55%, #F1FAE8 82%, #E3F5D2 100%); }
.state-icon:not(.red-bg) { width: 76px; height: 76px; border-radius: 999px; background: radial-gradient(circle at 35% 30%, #F1FAE8, #CDEDB0); box-shadow: 0 8px 20px rgba(30, 139, 44, .15); }
.state-card h3 { font-size: 18px; }

/* Near me + real bottle stores */
.loc-row { display: flex; align-items: center; gap: 8px; min-width: 0; }
.loc-row .addr-select { flex: 1 1 auto; min-width: 0; }
.near-btn { flex: none; display: inline-flex; align-items: center; gap: 5px; height: 30px; padding: 0 10px; border-radius: 999px; border: 0; background: var(--surface); color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.near-btn:hover { background: #E8F6DC; }
.near-btn.is-on { background: #DDF3C8; color: var(--green-dark); }
.near-btn[disabled] { opacity: .7; cursor: progress; }
.osm-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.osm-ico { width: 42px; height: 42px; border-radius: 12px; background: #F1F3FA; display: flex; align-items: center; justify-content: center; flex: none; }
.osm-name { font-weight: 700; font-size: 14px; }
.osm-row .btn { flex: none; }
.min0 { min-width: 0; }
.green { color: var(--green); }

/* ---------- trust, savings, habit, responsible ---------- */
body.has-nav .view { padding-bottom: 12px; }
.legal-foot { margin: 0; padding: 10px 16px 18px; text-align: center; font-size: 11.5px; font-weight: 600; color: var(--muted); }
body.has-nav .legal-foot { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
body.has-nav .grid-2 { margin-bottom: 8px; }
.mini-badge { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; background: var(--surface); color: var(--ink); }
.mini-badge.mb-green { background: var(--tint); color: var(--green-dark); }
.mini-badge.mb-star svg { color: #E8A317; fill: #F5B82E; }
.proof-line { margin: -6px 0 0; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--green-dark); }
.credit-chip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: var(--r); background: linear-gradient(135deg, #121A3A, #23306A); color: #fff; font-size: 13.5px; text-decoration: none; }
.credit-chip span { flex: 1; }
.credit-chip strong { color: #C6F36B; }
.again { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.again-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--tint); color: var(--green-dark); flex: none; }
.promises { display: flex; flex-direction: column; gap: 12px; }
.promise-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.promise-card { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--r); background: var(--tint-2); border: 1px solid var(--line-2); }
.promise-card svg { color: var(--green); margin-bottom: 2px; }
.promise-card strong { font-size: 14px; }
.promise-card span { font-size: 12px; color: var(--ink-2); line-height: 1.4; }
.kits { display: flex; flex-direction: column; gap: 10px; }
.kit-row { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 2px 16px 6px; }
.kit-row::-webkit-scrollbar { display: none; }
.kit { flex: 0 0 220px; display: flex; flex-direction: column; gap: 6px; padding: 14px; }
.fav-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: #fff; display: grid; place-items: center; color: var(--muted); cursor: pointer; }
.fav-btn.is-on { color: #E5293F; border-color: #F8C9CF; background: #FFF1F3; }
.fav-btn.is-on svg { fill: #E5293F; }
.pm-link { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; color: var(--green); font-weight: 700; }
.banner-soft { background: var(--surface); color: var(--ink); }
.promise-line { margin: 8px 0 0; display: flex; align-items: center; gap: 6px; color: var(--green-dark); font-weight: 600; }
.pack-row { width: 100%; border: 0; cursor: pointer; font: inherit; color: inherit; }
.pack-thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; flex: none; }
.issue-item { padding: 8px 0; border-bottom: 1px solid var(--line-2); }
.issue-item input[type=checkbox] { width: 20px; height: 20px; accent-color: var(--green); }
.input-sm { height: 36px; width: 64px; padding: 0 8px; }
.wallet { background: linear-gradient(135deg, #121A3A, #23306A); color: #fff; }
.wallet-k { color: rgba(255,255,255,.72); font-weight: 600; margin: 0; }
.wallet-v { font-size: 28px; font-weight: 800; color: #C6F36B; letter-spacing: -.02em; }
.wallet-s { font-size: 20px; font-weight: 800; }
.code-box { text-align: center; font-size: 30px; font-weight: 800; letter-spacing: .14em; padding: 16px; border-radius: var(--r); background: var(--tint); color: var(--green-dark); }
.amber { color: var(--amber); }
.rewards-list { padding: 4px 0; }
.reward-row { padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.reward-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface); color: var(--ink); font-weight: 800; font-size: 13px; flex: none; }
.reward-row .tiny svg { vertical-align: -2px; color: var(--green); }
/* ---------- parcels ---------- */
.parcel-cta { display: flex; align-items: center; gap: 12px; padding: 14px; text-decoration: none; color: inherit; }
.parcel-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: #EAF1FF; color: #2C5CC5; flex: none; }
.ptypes, .psizes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ptype { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 12px 10px; border-radius: 14px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; }
.ptype input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.ptype strong { font-size: 14px; }
.ptype span { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.ptype.is-on { border-color: var(--green); background: var(--tint-2); box-shadow: 0 0 0 1px var(--green) inset; }
.ptype:focus-within { outline: 3px solid rgba(30, 139, 44, .35); outline-offset: 2px; }
.parcel-map { height: 200px; border-radius: 14px; }
.form-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-2); }
.check-row input { width: 20px; height: 20px; flex: none; margin-top: 1px; accent-color: var(--green); }
.stack.gap-10 { gap: 10px; }
.proute { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: start; }
.proute-arrow { color: var(--muted); padding-top: 18px; }
.pend { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pend strong, .pend span { overflow-wrap: anywhere; }
.parcel-quote .reason-list { margin: 4px 0 0; padding-left: 18px; }
/* ---------- hidden earning features ---------- */
.beta-tag { font-size: 11px; font-weight: 800; color: #2C5CC5; background: #EAF1FF; padding: 2px 8px; border-radius: 999px; vertical-align: middle; margin-left: 6px; }
.sponsored-pill { position: absolute; left: 8px; top: 8px; font-size: 10px; font-weight: 800; letter-spacing: .02em; color: #5B4500; background: #FFF1BF; padding: 2px 7px; border-radius: 999px; }
.ptile-link { position: relative; }
.ev-ico { background: #FFF1E8; color: #C2410C; }
.pass-hero { display: flex; flex-direction: column; align-items: flex-start; padding: 18px; border-radius: var(--r); background: linear-gradient(135deg, #121A3A, #23306A); color: #fff; }
.pass-hero strong { font-size: 30px; color: #C6F36B; line-height: 1.05; }
.pass-hero span { font-size: 13px; opacity: .85; }
.pass-list { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.pass-list li { display: flex; gap: 8px; align-items: flex-start; }
.pass-list svg { color: var(--green); flex: none; margin-top: 2px; }
.pass-offer { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: var(--r); border: 1.5px dashed #2C5CC5; background: #F4F7FF; color: var(--ink); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.pass-offer span { flex: 1; }
.pass-offer svg:first-child { color: #2C5CC5; }
.chip-check { position: relative; }
.chip-check input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.chip-check span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; background: var(--surface); font-weight: 700; font-size: 13px; }
.chip-check input:checked + span { background: var(--green); color: #fff; }
.chip-check input:focus-visible + span { outline: 3px solid rgba(30, 139, 44, .45); outline-offset: 2px; }
.stack.gap-6 { gap: 6px; }
.hk-ico { background: #F3EAFE; color: #7C3AED; }
.flav-row { padding: 2px 0; }
.stepper.sm .step-btn { width: 32px; height: 32px; }
.stepper.sm { height: 36px; }
.refund-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: var(--tint); color: var(--green-dark); font-size: 13.5px; border: 1.5px solid #BFE5A6; }
.refund-note svg { flex: none; margin-top: 1px; }
.refund-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; background: var(--tint); color: var(--green-dark); font-weight: 700; font-size: 12px; }
/* ---------- kits grid ---------- */
.kit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kit-grid .kit { flex: none; cursor: pointer; padding: 12px; gap: 4px; }
.kit-grid .kit:focus-visible { outline: 3px solid rgba(30, 139, 44, .45); outline-offset: 2px; }
.kit-art { display: flex; justify-content: center; align-items: flex-end; gap: 2px; height: 60px; margin-bottom: 4px; background: var(--tint-2); border-radius: 12px; overflow: hidden; }
.kit-art svg { height: 54px; width: auto; }
.kit-group-tag { align-self: flex-start; font-size: 10.5px; font-weight: 800; color: var(--green-dark); background: var(--tint); padding: 2px 8px; border-radius: 999px; }
.kit-foot { margin-top: auto; padding-top: 6px; }
.kit-more { align-self: center; color: var(--green); font-weight: 700; }
/* ---------- tobacco: plain listings ---------- */
.tob-art { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 100%; border-radius: 14px; background: #EEF0F3; color: #5B616B; }
.tob-art span { font-weight: 800; font-size: 18px; }
.tob-art small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tob-warn { padding: 12px 14px; border-radius: 12px; background: #1F2430; color: #fff; font-size: 13px; line-height: 1.4; }

/* Drinks search results (Browse) */
.srow { display: flex; align-items: center; gap: 12px; padding: 8px 10px 8px 8px; border-radius: 16px; }
.srow-art { flex: 0 0 64px; width: 64px; }
.srow-art .art, .srow-art .tob-art { border-radius: 12px; }
.srow-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.srow-name { font-weight: 700; color: inherit; text-decoration: none; }
.srow-meta { align-items: baseline; }
.srow-body .badge { align-self: flex-start; margin-top: 2px; }
.srow-ctrl { flex: 0 0 auto; }
/* Drinks search: filter by type */
.chips-scroll { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -2px; padding: 2px; }
.chips-scroll:empty { display: none; }
.chips-scroll::-webkit-scrollbar { display: none; }
.chips-scroll .chip { flex: 0 0 auto; display: inline-flex; align-items: center; height: 38px; padding: 0 16px; border-radius: 999px; border: 0; background: var(--surface); color: inherit; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
.chips-scroll .chip.is-on { background: var(--green); color: #fff; }
.chips-scroll .chip:focus-visible { outline: 3px solid rgba(30, 139, 44, .45); outline-offset: 2px; }
