body { padding-bottom: calc(90px + var(--safe-b)); }
header#top { position: sticky; top: 0; z-index: 50; background: rgba(14,14,14,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px; border-bottom: 1px solid var(--line); }
.brand img { height: 46px; display: block; }
.iconbtn { background: var(--k3); color: var(--t); width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; }
main { max-width: 720px; margin: 0 auto; padding: 14px 16px; }
.center { text-align: center; }

.install { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; padding: 12px; }
.install img { width: 46px; height: 46px; border-radius: 12px; }
.closed { border-color: rgba(229,72,77,.5); margin-bottom: 12px; }

.live { padding: 14px; margin-bottom: 14px; }
.live h3 { font-size: 18px; color: var(--y); }
.map { height: 190px; border-radius: 12px; margin: 10px 0; overflow: hidden; border: 1px solid var(--line); }
.map.tall { height: 280px; }
.zones { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.zones::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 8px 12px; border-radius: 99px; background: var(--k3); color: var(--t2); font-weight: 600; font-size: 13px; border: 1.5px solid transparent; }
.chip.on { border-color: var(--y); color: var(--y); }
.eta { margin-top: 8px; font-size: 14px; color: var(--t2); }
.eta b { color: var(--t); }

.search input { background: var(--k2); border-radius: 14px; }
.cats { position: sticky; top: calc(63px + env(safe-area-inset-top, 0px)); z-index: 40; display: flex; gap: 8px; overflow-x: auto; padding: 10px 0; margin: 0 -16px; padding-left: 16px; background: var(--k); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cats a { flex: none; text-decoration: none; padding: 8px 14px; border-radius: 99px; background: var(--y); color: var(--k); font-weight: 800; font-size: 13px; }
.cats a:last-child { margin-right: 16px; }

.sect { margin: 18px 0 6px; }
.sect-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.sect-head img { width: 64px; height: 64px; border-radius: 50%; object-fit: cover; border: 3px solid var(--k); outline: 2px solid var(--y); flex: none; }
.sect-head h2 { font-size: 22px; color: var(--y); }
.items { background: var(--k2); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-height: 62px; }
.item:last-child { border-bottom: 0; }
.item.off { opacity: .55; }
.ithumb { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.iname { font-weight: 700; }
.iprice { color: var(--y); font-weight: 700; font-size: 14px; }
.add { width: 40px; height: 40px; border-radius: 12px; background: var(--y); color: var(--k); font-size: 24px; font-weight: 800; line-height: 1; }
.stepper { display: flex; align-items: center; gap: 4px; background: var(--y); border-radius: 12px; padding: 3px; }
.stepper button { width: 34px; height: 34px; border-radius: 9px; background: var(--k); color: var(--y); font-size: 20px; font-weight: 800; }
.stepper b { min-width: 24px; text-align: center; color: var(--k); }
.foot { text-align: center; padding: 26px 0 10px; }

#cartBar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + var(--safe-b)); max-width: 696px; margin: 0 auto; z-index: 60; display: flex; align-items: center; gap: 12px; background: var(--y); color: var(--k); padding: 15px 18px; border-radius: 16px; font-weight: 800; font-size: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
#cartBar .count { background: var(--k); color: var(--y); min-width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-size: 14px; }

.page h1 { font-size: 26px; margin: 6px 0 14px; }
.back { display: inline-block; color: var(--t2); text-decoration: none; font-weight: 600; margin-bottom: 4px; }
.lines { padding: 0; overflow: hidden; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--k2); border: 1px solid var(--line); padding: 5px; border-radius: 14px; margin-top: 16px; }
.seg button { padding: 12px; border-radius: 10px; background: none; color: var(--t2); font-weight: 700; }
.seg button.on { background: var(--y); color: var(--k); }
.zonelist, .paylist { display: grid; gap: 8px; }
.zone, .pay { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 14px; border-radius: 14px; background: var(--k2); color: var(--t); border: 1.5px solid var(--line); }
.zone.on, .pay.on { border-color: var(--y); background: rgba(255,194,26,.07); }
.zone > div { flex: 1; }
.pin { margin: 8px 0 6px; }
.pickup { margin-top: 14px; }
.mpesa, .cash { flex: none; width: 56px; height: 36px; border-radius: 8px; display: grid; place-items: center; font: 800 11px var(--body); }
.mpesa { background: #4CAF50; color: #fff; }
.cash { background: var(--k4); color: var(--y); }
.totals { margin: 16px 0 12px; display: grid; gap: 6px; }
.total { border-top: 1px solid var(--line); padding-top: 8px; margin-top: 4px; font-size: 17px; }
.warn { background: rgba(229,72,77,.12); color: #FF9A9D; border-radius: 12px; padding: 12px; margin-bottom: 12px; font-size: 14px; }

.track .card { margin: 12px 0; }
.track .card > .row { padding: 3px 0; }
.bigeta { font-size: 18px; color: var(--t2); margin-bottom: 8px; }
.bigeta b { font-family: var(--head); font-size: 34px; color: var(--y); font-weight: 400; }
.progress { list-style: none; padding: 0; margin: 16px 0; display: grid; gap: 0; }
.progress li { position: relative; padding: 0 0 18px 34px; color: var(--t3); font-weight: 600; }
.progress li span { position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--k4); background: var(--k); }
.progress li::after { content: ''; position: absolute; left: 9px; top: 22px; bottom: 0; width: 2px; background: var(--k4); }
.progress li:last-child::after { display: none; }
.progress li.done { color: var(--t2); }
.progress li.done span { background: var(--y); border-color: var(--y); }
.progress li.done::after { background: var(--y); }
.progress li.now { color: var(--y); font-size: 17px; }
.progress li.now span { border-color: var(--y); box-shadow: 0 0 0 5px rgba(255,194,26,.2); animation: sfpulse 1.6s infinite; }
.rider .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--k3); display: grid; place-items: center; font-size: 22px; }
.paycard { border-color: var(--y); }
.olist { display: block; text-decoration: none; color: var(--t); margin-bottom: 10px; }
.olist > * { margin: 4px 0; }

.empty, .loading { text-align: center; padding: 70px 20px; }
.empty h2 { margin-bottom: 8px; }
.empty .btn { margin-top: 16px; }
.spin { width: 36px; height: 36px; border: 4px solid var(--k4); border-top-color: var(--y); border-radius: 50%; animation: spin .8s linear infinite; margin: 0 auto; flex: none; }
.spin.sm { width: 26px; height: 26px; border-width: 3px; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }

.sheet { position: fixed; inset: 0; z-index: 100; }
.sheet-bg { position: absolute; inset: 0; background: rgba(0,0,0,.65); }
.sheet-body { position: absolute; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: var(--k2); border-radius: 22px 22px 0 0; padding: 26px 20px calc(26px + var(--safe-b)); max-height: 90vh; overflow: auto; animation: up .22s ease-out; }
.sheet-body h2 { font-size: 22px; margin-bottom: 8px; padding-right: 30px; }
.sheet-x { position: absolute; right: 14px; top: 14px; width: 34px; height: 34px; border-radius: 50%; background: var(--k3); color: var(--t); }
.steps { padding-left: 20px; line-height: 1.7; }
.ios-share { display: inline-block; background: var(--k3); padding: 0 6px; border-radius: 6px; color: var(--blue); }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
