/* MPK Ride — design system v2. No framework, no build step. */
:root {
  --brand: #e0140b;
  --brand-600: #c20f07;
  --brand-700: #9f0c05;
  --brand-50: #fff2f1;
  --brand-100: #ffe1de;
  --ink: #0b1220;
  --ink-2: #2a3446;
  --muted: #667085;
  --line: #e7e9ef;
  --bg: #f7f7f9;
  --card: #ffffff;
  --success: #12a150;
  --success-50: #e9f8ef;
  --warning: #c77700;
  --warning-50: #fff5e5;
  --info: #e0140b;
  --info-50: #fff2f1;
  --danger: #d92d20;
  --danger-50: #fef1f0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-xs: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 8px 24px -6px rgba(16, 24, 40, .08);
  --shadow-lg: 0 24px 48px -12px rgba(16, 24, 40, .22);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Poppins", "Inter", system-ui, sans-serif;
  --nav-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg);
  font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .4em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 4.2vw, 3.1rem); font-weight: 800; }
h2 { font-size: clamp(1.25rem, 2.4vw, 1.75rem); }
h3 { font-size: 1.06rem; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-100); }
:focus-visible { outline: 3px solid rgba(224, 20, 11, .35); outline-offset: 2px; }
.icon { width: 20px; height: 20px; flex-shrink: 0; }
.icon-sm { width: 16px; height: 16px; flex-shrink: 0; }
.icon-lg { width: 28px; height: 28px; flex-shrink: 0; }
.muted { color: var(--muted); }
.small { font-size: .86rem; }
.bold { font-weight: 700; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .container { padding: 0 24px; } }
.stack > * + * { margin-top: 14px; }
.row { display: flex; align-items: center; gap: 12px; }
.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.text-right { text-align: right; }
.text-center { text-align: center; }
.brand-text { color: var(--brand); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--brand); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(231,233,239,.8);
}
.site-header .container { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.brand-logo { height: 48px; width: auto; }
@media (min-width: 900px) { .brand-logo { height: 52px; } }
.logo-mark {
  display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 11px;
  background: linear-gradient(135deg, #ff4b3a, var(--brand-600)); color: #fff; font-weight: 800; font-family: var(--font-head);
}
.main-nav { display: none; gap: 2px; }
.main-nav a { position: relative; padding: 8px 14px; border-radius: 10px; font-weight: 600; color: var(--ink-2); font-size: .94rem; transition: color .15s, background .15s; }
.main-nav a:hover { color: var(--ink); background: #f2f3f6; }
.main-nav a.active { color: var(--brand); }
.main-nav a.active::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s;
}
.icon-btn:hover { border-color: #d0d5dd; box-shadow: var(--shadow-xs); }
.count-dot {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--brand); color: #fff; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff;
}
.location-chip { display: none; align-items: center; gap: 6px; height: 42px; padding: 0 14px; border-radius: 12px; background: #f2f3f6; color: var(--ink-2); font-weight: 600; font-size: .88rem; }
.location-chip .icon { color: var(--brand); }
@media (max-width: 599px) { .header-actions .btn-dark { display: none; } }
.avatar { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--ink); color: #fff; font-weight: 700; font-family: var(--font-head); }

/* ---------- Bottom nav (mobile) ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom); background: rgba(255,255,255,.96); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr);
}
.bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 600; color: #8a93a6; }
.bottom-nav a.active { color: var(--brand); }
.bottom-nav a.active .icon { stroke-width: 2.4; }
.has-bottom-nav { padding-bottom: calc(var(--nav-h) + 16px); }
@media (min-width: 900px) {
  .main-nav { display: flex; }
  .location-chip { display: inline-flex; }
  .bottom-nav { display: none; }
  .has-bottom-nav { padding-bottom: 0; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px;
  border-radius: 12px; border: 1px solid transparent; font-weight: 600; cursor: pointer; white-space: nowrap; font-size: .95rem;
  transition: transform .08s ease, background .15s ease, box-shadow .15s ease, border-color .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.08), inset 0 -2px 0 rgba(0,0,0,.12); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #1d2939; }
.btn-light { background: #fff; border-color: var(--line); color: var(--ink); box-shadow: var(--shadow-xs); }
.btn-light:hover { border-color: #d0d5dd; background: #fcfcfd; }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: rgba(16,24,40,.05); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { background: #f2f3f6; }
.btn-danger { background: var(--danger-50); color: var(--danger); }
.btn-sm { height: 40px; padding: 0 16px; border-radius: 10px; font-size: .88rem; }
.btn-xs { height: 30px; padding: 0 10px; border-radius: 8px; font-size: .8rem; }
.btn-lg { height: 56px; padding: 0 28px; border-radius: 14px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; pointer-events: none; box-shadow: none; }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.card-body { padding: 20px; }
.card-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.card-title h2, .card-title h3 { margin: 0; }
.link { color: var(--brand); font-weight: 600; font-size: .92rem; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { color: var(--brand-600); }
.section { margin-top: 56px; }
@media (min-width: 900px) { .section { margin-top: 80px; } }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 6px 0 0; color: var(--muted); }

/* ---------- Home hero ---------- */
.hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 100% 0%, var(--brand-50), transparent 60%),
              radial-gradient(600px 400px at 0% 100%, #fff7ed, transparent 60%);
}
.hero-grid { position: relative; display: grid; gap: 36px; padding-top: 28px; padding-bottom: 36px; }
@media (min-width: 980px) { .hero-grid { grid-template-columns: 1.05fr .95fr; align-items: center; padding-top: 64px; padding-bottom: 72px; gap: 56px; } }
@media (max-width: 639px) { .hero .lead { font-size: 1rem; } .booker-tabs button { height: 52px; } }
.hero h1 { margin: 14px 0 16px; max-width: 15ch; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .18em; background: var(--brand-100); z-index: -1; border-radius: 4px; }
.hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 48ch; }

.booker { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 560px; }
.booker-tabs { display: grid; grid-template-columns: repeat(3, 1fr); border-bottom: 1px solid var(--line); }
.booker-tabs button { display: flex; align-items: center; justify-content: center; gap: 8px; height: 56px; border: 0; background: #fafafb; font-weight: 600; color: var(--muted); cursor: pointer; position: relative; }
.booker-tabs button + button { border-left: 1px solid var(--line); }
.booker-tabs button[aria-selected="true"] { background: #fff; color: var(--ink); }
.booker-tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--brand); }
.booker-tabs button[aria-selected="true"] .icon { color: var(--brand); }
.booker form { padding: 18px; display: grid; gap: 12px; }
.booker .route-box select, .booker .input { height: 52px; }

.hero-visual { position: relative; min-height: 360px; }
.hero-photo { position: absolute; inset: 0 0 0 8%; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow-lg); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(11,18,32,.35)); }
@media (min-width: 980px) { .hero-visual { min-height: 520px; } }
.float-card {
  position: absolute; z-index: 2; background: #fff; border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; font-size: .86rem; animation: floaty 6s ease-in-out infinite;
}
.float-card b { display: block; font-size: .92rem; }
.float-card .list-icon { width: 40px; height: 40px; }
.float-card.one { left: 0; top: 12%; }
.float-card.two { right: -6px; bottom: 14%; animation-delay: -3s; }
.float-card.three { left: 12%; bottom: -14px; animation-delay: -1.5s; }
.float-card .thumb-sm { width: 40px; height: 40px; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
@media (max-width: 979px) { .hero-visual { display: none; } }

.trust { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; margin-top: 28px; max-width: 560px; }
@media (min-width: 640px) { .trust { grid-template-columns: repeat(4, auto); } }
.trust div { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.trust .icon { color: var(--success); }

/* Inner page hero (rides / parcels / food) */
.page-hero { position: relative; color: #fff; overflow: hidden; background: var(--ink); }
.page-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .55; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11,18,32,.92) 0%, rgba(11,18,32,.6) 55%, rgba(11,18,32,.2) 100%); }
.page-hero .container { position: relative; z-index: 1; padding-top: 44px; padding-bottom: 96px; }
.page-hero h1 { margin: 10px 0 8px; max-width: 18ch; }
.page-hero p { color: #d0d5dd; max-width: 52ch; font-size: 1.05rem; }
.page-hero .eyebrow { color: #ffb4ac; }
.overlap { position: relative; z-index: 2; margin-top: -64px; }

/* ---------- Service cards ---------- */
.services-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .services-grid { grid-template-columns: repeat(3, 1fr); } }
.service-card { position: relative; display: block; border-radius: 22px; overflow: hidden; min-height: 300px; color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.service-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(11,18,32,0) 25%, rgba(11,18,32,.85) 100%); }
.service-card:hover img { transform: scale(1.05); }
.service-card .inner { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px; }
.service-card .tag { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); backdrop-filter: blur(8px); border: 1px solid rgba(255,255,255,.25); padding: 5px 10px; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.service-card h3 { font-size: 1.45rem; margin: 12px 0 4px; font-weight: 700; }
.service-card p { color: #e4e7ec; margin: 0 0 14px; font-size: .94rem; }
.service-card .go { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.service-card .go .icon { transition: transform .2s; }
.service-card:hover .go .icon { transform: translateX(4px); }

/* ---------- Categories ---------- */
.scroller { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 10px; scroll-snap-type: x proximity; }
.scroller::-webkit-scrollbar { display: none; }
.cat { flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 92px; font-size: .84rem; font-weight: 600; color: var(--ink-2); scroll-snap-align: start; }
.cat .ph { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: #eee; display: grid; place-items: center; font-size: 1.8rem; border: 3px solid #fff; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.cat .ph img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .ph { transform: translateY(-3px); }
.cat.active .ph { border-color: var(--brand); }
.cat.active { color: var(--brand); }
.chip {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 16px; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; cursor: pointer; white-space: nowrap;
}
.chip:hover { border-color: #d0d5dd; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ---------- Restaurant cards ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: 1fr; }
.grid-3, .grid-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } }

.rest-card { display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; transition: transform .2s ease; }
.rest-card:hover { transform: translateY(-4px); }
.rest-cover { position: relative; aspect-ratio: 16 / 10; border-radius: var(--radius); overflow: hidden; display: grid; place-items: center; font-size: 3.4rem; background: linear-gradient(135deg, #fff1f1, #ffe4d6); }
.rest-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.rest-card:hover .rest-cover img { transform: scale(1.04); }
.rest-cover .badge { position: absolute; top: 12px; left: 12px; box-shadow: var(--shadow-xs); }
.rest-cover .eta { position: absolute; bottom: 12px; left: 12px; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .78rem; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; box-shadow: var(--shadow); }
.rest-cover .promo { position: absolute; top: 12px; right: 12px; background: var(--brand); color: #fff; border-radius: 8px; padding: 3px 8px; font-size: .74rem; font-weight: 700; }
.rest-card.closed .rest-cover img { filter: grayscale(1); opacity: .6; }
.rest-card.closed .rest-cover::after { content: "Closed now"; position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-weight: 700; font-family: var(--font-head); background: rgba(11,18,32,.45); font-size: 1rem; }
.rest-info { padding: 12px 4px 4px; }
.rest-info h3 { margin: 0; font-size: 1.05rem; }
.rating { display: inline-flex; align-items: center; gap: 4px; color: var(--ink); font-weight: 700; font-size: .86rem; }
.rating .icon-sm { fill: #f5a524; color: #f5a524; }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; color: var(--muted); font-size: .85rem; margin-top: 4px; }
.meta span { display: inline-flex; align-items: center; gap: 4px; }
.dot-sep::before { content: "•"; margin-right: 8px; color: #c0c5d0; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-50); color: var(--success); }
.badge-warning { background: var(--warning-50); color: var(--warning); }
.badge-info { background: var(--info-50); color: var(--info); }
.badge-danger { background: var(--danger-50); color: var(--danger); }
.badge-muted { background: #f2f4f7; color: var(--muted); }
.badge-muted::before { display: none; }
.badge-open { background: #fff; color: var(--success); }
.badge-busy { background: #fff; color: var(--warning); }
.badge-closed { background: #fff; color: var(--danger); }

/* ---------- Deals ---------- */
.deals { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .deals { grid-template-columns: repeat(3, 1fr); } }
.deal { position: relative; overflow: hidden; color: #fff; border-radius: 20px; padding: 22px; min-height: 180px; background: var(--brand); isolation: isolate; display: flex; flex-direction: column; }
.deal img { position: absolute; right: -40px; bottom: -40px; width: 200px; height: 200px; object-fit: cover; border-radius: 50%; z-index: -1; border: 6px solid rgba(255,255,255,.18); }
.deal:nth-child(2) { background: var(--ink); }
.deal:nth-child(3) { background: #f97316; }
.deal small { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; opacity: .85; }
.deal h3 { font-size: 1.9rem; font-weight: 800; margin: 6px 0 2px; max-width: 9ch; line-height: 1.05; }
.deal p { opacity: .9; margin: 4px 0 14px; font-size: .9rem; max-width: 22ch; }
.deal .code { margin-top: auto; align-self: flex-start; background: #fff; color: var(--ink); border-radius: 10px; padding: 6px 12px; font-weight: 800; letter-spacing: .08em; font-size: .85rem; }
.deal .code span { color: var(--muted); font-weight: 600; letter-spacing: 0; margin-right: 6px; }

/* ---------- Steps / features ---------- */
.steps { display: grid; gap: 16px; grid-template-columns: 1fr; counter-reset: s; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { padding: 24px; position: relative; }
.step .num { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; }
.step p { color: var(--muted); margin: 0; font-size: .94rem; }

.split { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .split { grid-template-columns: 1fr 1fr; } }
.promo-card { position: relative; overflow: hidden; border-radius: 22px; min-height: 260px; color: #fff; padding: 28px; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.promo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.promo-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,18,32,.9), rgba(11,18,32,.35)); }
.promo-card h3 { font-size: 1.6rem; margin: 8px 0 6px; max-width: 16ch; }
.promo-card p { color: #d0d5dd; max-width: 36ch; }
.promo-card .eyebrow { color: #ffb4ac; }

.cta-band { border-radius: 24px; background: var(--ink); color: #fff; padding: 32px; display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: radial-gradient(circle, rgba(224,20,11,.55), transparent 70%); }
.cta-band h2 { margin: 0 0 6px; }
.cta-band p { color: #98a2b3; margin: 0; }
.cta-band > * { position: relative; }

/* ---------- Lists ---------- */
.list-item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover b { color: var(--brand); }
.list-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f2f4f7; color: var(--ink-2); flex-shrink: 0; font-weight: 700; font-family: var(--font-head); }
.list-icon.red { background: var(--brand-50); color: var(--brand); }
.list-icon.blue { background: var(--info-50); color: var(--info); }
.list-icon.green { background: var(--success-50); color: var(--success); }
.list-icon.amber { background: var(--warning-50); color: var(--warning); }

/* ---------- Forms ---------- */
.field { display: block; }
.field > span { display: block; font-size: .84rem; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field > span.row { display: flex; }
.field small { display: block; color: var(--muted); margin-top: 4px; font-size: .8rem; font-weight: 400; }
.input, .field input, .field select, .field textarea {
  width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #d0d5dd; background: #fff; outline: none;
  transition: border-color .15s ease, box-shadow .15s ease; box-shadow: var(--shadow-xs);
}
.field select, select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23667085' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; padding-right: 40px; }
.field textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(224, 20, 11, .12); }
.field input[type=file] { height: auto; padding: 10px; }
.field input[type=checkbox] { width: auto; height: auto; }
.check { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: span 2; } }

.route-box { position: relative; display: grid; gap: 10px; }
.route-box::before { content: ""; position: absolute; left: 20px; top: 52px; bottom: 26px; border-left: 2px dashed #d0d5dd; z-index: 1; pointer-events: none; }
.route-box .dot { position: absolute; left: 15px; width: 12px; height: 12px; border-radius: 50%; z-index: 2; pointer-events: none; border: 3px solid #fff; box-shadow: 0 0 0 1px currentColor; }
.route-box .dot.a { top: 42px; background: var(--success); color: var(--success); }
.route-box .dot.b { bottom: 18px; background: var(--brand); color: var(--brand); border-radius: 3px; }
.route-box select { padding-left: 42px; }
.booker .route-box::before { top: 42px; bottom: 26px; }
.booker .route-box .dot.a { top: 20px; }
.booker .route-box .dot.b { bottom: 20px; }

.options { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .options.cols-4 { grid-template-columns: repeat(4, 1fr); } .options.cols-3 { grid-template-columns: repeat(3, 1fr); } }
.option { position: relative; cursor: pointer; }
.option input { position: absolute; opacity: 0; }
.option .box { display: flex; flex-direction: column; gap: 2px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; height: 100%; transition: border-color .15s, background .15s, box-shadow .15s; }
.option .box .vic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: #f2f4f7; color: var(--ink-2); margin-bottom: 8px; }
.option .box .vic .icon { width: 24px; height: 24px; }
.option .box b { font-size: .95rem; }
.option .box .price { font-weight: 700; color: var(--ink); margin-top: 6px; font-size: 1.02rem; }
.option:hover .box { border-color: #d0d5dd; }
.option input:checked + .box { border-color: var(--brand); background: var(--brand-50); box-shadow: 0 0 0 3px rgba(224,20,11,.08); }
.option input:checked + .box .vic { background: var(--brand); color: #fff; }
.option input:focus-visible + .box { box-shadow: 0 0 0 4px rgba(224, 20, 11, .15); }
.fare-out { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: #f7f7f9; border: 1px dashed #d0d5dd; }
.fare-out b { font-family: var(--font-head); font-size: 1.35rem; }

/* ---------- Alerts / toast ---------- */
.alert { padding: 12px 14px; border-radius: 12px; font-weight: 500; font-size: .92rem; display: flex; gap: 10px; align-items: start; border: 1px solid transparent; }
.alert-success { background: var(--success-50); color: #0b6b37; border-color: #c4ecd5; }
.alert-danger { background: var(--danger-50); color: #a1261b; border-color: #fbd0cc; }
.alert-info { background: var(--brand-50); color: #b10f08; border-color: #ffd0cc; }
.alert-warning { background: var(--warning-50); color: #8a5300; border-color: #fde3b5; }
.flashes { position: fixed; top: 80px; left: 50%; transform: translateX(-50%); z-index: 100; width: min(92vw, 440px); display: grid; gap: 8px; }
.flashes .alert { box-shadow: var(--shadow-lg); animation: drop .3s ease; }
@keyframes drop { from { opacity: 0; transform: translateY(-10px); } }

/* ---------- Restaurant page ---------- */
.rest-hero { position: relative; color: #fff; background: var(--ink); overflow: hidden; }
.rest-hero .banner { position: absolute; inset: 0; }
.rest-hero .banner img { width: 100%; height: 100%; object-fit: cover; opacity: .6; }
.rest-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11,18,32,.2), rgba(11,18,32,.88)); }
.rest-hero .info { position: relative; z-index: 1; padding: 90px 0 26px; }
@media (min-width: 900px) { .rest-hero .info { padding-top: 150px; } }
.rest-hero h1 { margin: 6px 0 6px; }
.rest-hero .muted, .rest-hero .meta { color: #d0d5dd; }
.rest-hero .rating { color: #fff; }
.rest-hero .back { display: inline-flex; align-items: center; gap: 4px; color: #e4e7ec; font-size: .9rem; font-weight: 500; }
.rest-hero .btn-light { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.25); backdrop-filter: blur(8px); box-shadow: none; }
.menu-nav { position: sticky; top: 68px; z-index: 30; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.menu-nav .scroller { padding: 10px 0; }
.menu-layout { display: grid; gap: 24px; grid-template-columns: 1fr; margin-top: 24px; }
@media (min-width: 980px) { .menu-layout { grid-template-columns: 1fr 370px; align-items: start; } .cart-side { position: sticky; top: 140px; } }
.menu-section { scroll-margin-top: 140px; }
.menu-section h2 { margin: 28px 0 12px; font-size: 1.3rem; }
.menu-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 700px) { .menu-grid { grid-template-columns: 1fr 1fr; } }
.menu-item { display: flex; gap: 14px; padding: 14px; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 16px; transition: box-shadow .15s, border-color .15s; }
.menu-item:hover { border-color: #d0d5dd; box-shadow: var(--shadow); }
.menu-item .grow { display: flex; flex-direction: column; }
.menu-item p { margin: 4px 0 8px; color: var(--muted); font-size: .85rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.menu-item .price { margin-top: auto; }
.menu-item .media { position: relative; width: 112px; height: 112px; flex-shrink: 0; }
.menu-item .thumb { width: 100%; height: 100%; border-radius: 12px; background: #f2f4f7; display: grid; place-items: center; font-size: 1.8rem; overflow: hidden; }
.menu-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.menu-item .media .add-btn, .menu-item .media .qty { position: absolute; right: 6px; bottom: 6px; }
.price { font-weight: 700; }
.qty { display: inline-flex; align-items: center; gap: 2px; background: #fff; border-radius: 12px; padding: 3px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.qty button { width: 30px; height: 30px; border-radius: 9px; border: 0; background: transparent; display: grid; place-items: center; cursor: pointer; color: var(--brand); }
.qty button:hover { background: var(--brand-50); }
.qty span { min-width: 22px; text-align: center; font-weight: 700; font-size: .9rem; }
.add-btn { width: 36px; height: 36px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--brand); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); transition: background .15s, color .15s; }
.add-btn:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.add-btn:disabled { color: #98a2b3; cursor: not-allowed; }
.pop-card { min-width: 210px; max-width: 230px; overflow: hidden; }
.pop-card .ph { position: relative; height: 130px; background: #f2f4f7; }
.pop-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.pop-card .ph .add-btn, .pop-card .ph .qty { position: absolute; right: 8px; bottom: 8px; }
.sticky-cart {
  position: fixed; left: 12px; right: 12px; bottom: calc(var(--nav-h) + 10px + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; justify-content: space-between; padding: 0 18px; height: 58px; border-radius: 16px;
  background: var(--brand); color: #fff; font-weight: 700; box-shadow: var(--shadow-lg);
}
@media (min-width: 980px) { .sticky-cart { display: none; } }
.summary-line { display: flex; justify-content: space-between; padding: 6px 0; color: var(--ink-2); font-size: .94rem; }
.summary-line.total { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 12px; color: var(--ink); font-weight: 700; font-size: 1.1rem; font-family: var(--font-head); }
.summary-line.discount { color: var(--success); }

/* ---------- Tracking ---------- */
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 22px 38px; color: var(--muted); font-weight: 500; }
.timeline li::before { content: ""; position: absolute; left: 11px; top: 26px; bottom: 0; width: 2px; background: var(--line); }
.timeline li:last-child::before { display: none; }
.timeline li .tdot { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; }
.timeline li.done { color: var(--ink); }
.timeline li.done .tdot { background: var(--success); border-color: var(--success); color: #fff; }
.timeline li.done::before { background: var(--success); }
.timeline li.current { color: var(--ink); font-weight: 700; }
.timeline li.current .tdot { border-color: var(--brand); box-shadow: 0 0 0 5px rgba(224, 20, 11, .12); }
.timeline li.current .tdot::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.4s infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .6; } }
.track-hero { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.track-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(224,20,11,.5), transparent 70%); }
.track-hero .big { font-size: 1.5rem; font-weight: 700; font-family: var(--font-head); }
.route-line { display: flex; align-items: center; gap: 10px; margin-top: 16px; color: #d0d5dd; font-size: .9rem; }
.route-line .bar { flex: 1; height: 6px; border-radius: 3px; background: rgba(255,255,255,.14); position: relative; overflow: hidden; }
.route-line .bar i { position: absolute; inset: 0; width: var(--p, 10%); background: linear-gradient(90deg, #ff4b3a, var(--brand)); border-radius: 3px; transition: width .6s ease; }

/* ---------- Auth ---------- */
.auth-page {
  position: relative; min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 40px 16px; overflow-x: hidden;
  background: radial-gradient(1200px 700px at 15% 10%, #ff3b2f 0%, transparent 55%),
              radial-gradient(900px 600px at 90% 90%, #7a0a05 0%, transparent 60%),
              linear-gradient(135deg, #c90f07 0%, #6d0b07 45%, #0b1220 100%);
}
.auth-bg { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.auth-bg::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.14) 1px, transparent 1.2px); background-size: 26px 26px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.auth-bg .routes { position: absolute; inset: 0; width: 100%; height: 100%; }
.auth-bg .blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; animation: drift 16s ease-in-out infinite alternate; }
.auth-bg .b1 { width: 420px; height: 420px; left: -120px; top: -100px; background: #ff5a3c; }
.auth-bg .b2 { width: 360px; height: 360px; right: -80px; top: 30%; background: #ff2d55; animation-delay: -5s; opacity: .35; }
.auth-bg .b3 { width: 480px; height: 480px; left: 30%; bottom: -220px; background: #1d2b4f; animation-delay: -9s; opacity: .7; }
@keyframes drift { to { transform: translate(60px, 40px) scale(1.12); } }
.auth-shell { position: relative; z-index: 1; }
.auth-page .auth-foot { color: rgba(255,255,255,.65); }
.auth-page .auth-foot a:hover { color: #fff; }
.auth-page .auth-card { border: 0; box-shadow: 0 30px 80px -20px rgba(0,0,0,.55), 0 0 0 1px rgba(255,255,255,.08); }
.auth-logo img { filter: drop-shadow(0 6px 18px rgba(0,0,0,.25)); }
.auth-shell { width: 100%; max-width: 420px; position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.auth-logo { display: inline-block; padding: 10px 22px; border-radius: 22px; background: rgba(11,18,32,.88); box-shadow: 0 12px 30px -10px rgba(0,0,0,.5), inset 0 0 0 1px rgba(255,255,255,.08); }
.auth-logo img { height: 72px; width: auto; filter: none; }
.auth-card { width: 100%; margin-top: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px 28px; box-shadow: 0 1px 2px rgba(16,24,40,.04), 0 20px 40px -16px rgba(16,24,40,.16); }
@media (max-width: 479px) { .auth-card { padding: 26px 20px; } }
.auth-card h1 { font-size: 1.6rem; margin: 0 0 6px; text-align: center; }
.auth-card .sub { color: var(--muted); text-align: center; margin: 0 0 26px; font-size: .95rem; }
.auth-card .field input { height: 50px; }
.input-wrap { position: relative; }
.input-wrap > .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #98a2b3; pointer-events: none; }
.input-wrap input { padding-left: 44px !important; }
.input-wrap .pass-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 10px; background: transparent; color: #98a2b3; cursor: pointer; transition: color .15s, background .15s; }
.input-wrap .pass-toggle span { display: grid; }
.input-wrap .pass-toggle[aria-pressed="true"] { color: var(--brand); }
.input-wrap .pass-toggle:hover { background: #f2f4f7; color: var(--ink); }
.input-wrap:has(.pass-toggle) input { padding-right: 50px !important; }
.auth-card .btn-primary { height: 50px; font-size: 1rem; }
.auth-switch { text-align: center; margin: 22px 0 0; color: var(--muted); font-size: .92rem; }
.auth-foot { margin-top: 24px; color: #98a2b3; font-size: .82rem; }
.auth-foot a:hover { color: var(--ink); }
.brand-lg { display: inline-flex; align-items: center; gap: 10px; }
.brand-lg img { height: 72px; width: auto; }
.auth-page > .auth-card { max-width: 420px; }

/* ---------- Tabs ---------- */
.tabs { display: flex; gap: 4px; background: #eceef2; padding: 4px; border-radius: 14px; overflow-x: auto; }
.tabs a { flex: 1; text-align: center; padding: 9px 14px; border-radius: 10px; font-weight: 600; font-size: .9rem; color: var(--muted); white-space: nowrap; }
.tabs a.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-xs); }

.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .em { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 20px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); font-size: 2rem; }
.empty .em .icon { width: 32px; height: 32px; }
.empty b, .empty h2 { color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 80px; background: var(--ink); color: #98a2b3; padding: 56px 0 28px; font-size: .92rem; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; font-weight: 600; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; gap: 28px; grid-template-columns: 1fr 1fr; }
.site-footer .cols > :first-child { grid-column: 1 / -1; }
@media (min-width: 800px) { .site-footer .cols { grid-template-columns: 2fr 1fr 1fr 1fr; } .site-footer .cols > :first-child { grid-column: auto; } }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.site-footer .copy { border-top: 1px solid #1d2939; margin-top: 40px; padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: .85rem; }
.socials { display: flex; gap: 8px; margin-top: 16px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: #1d2939; color: #d0d5dd; }
.socials a:hover { background: var(--brand); color: #fff; }

.feature { display: flex; gap: 12px; align-items: start; }
.feature .list-icon { width: 40px; height: 40px; }

.page-head { padding: 28px 0 8px; }
.page-head h1 { font-size: clamp(1.5rem, 3.5vw, 2.1rem); margin: 0; }
.page-head p { color: var(--muted); margin: 4px 0 0; }

/* ---------- Admin ---------- */
.admin { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: #cbd5e1; padding: 18px 14px; position: fixed; inset: 0 auto 0 0; width: 250px; transform: translateX(-100%); transition: transform .2s ease; z-index: 60; overflow-y: auto; }
.admin-side.open { transform: none; box-shadow: var(--shadow-lg); }
.admin-side .brand { color: #fff; padding: 4px 8px 18px; }
.admin-side nav { display: grid; gap: 2px; }
.admin-side nav a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-weight: 500; font-size: .92rem; }
.admin-side nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.admin-side nav a.active { background: var(--brand); color: #fff; }
.admin-side nav .sep { font-size: .7rem; text-transform: uppercase; letter-spacing: .1em; color: #667085; padding: 16px 12px 6px; font-weight: 700; }
.admin-main { min-width: 0; }
.admin-top { position: sticky; top: 0; z-index: 30; background: #fff; border-bottom: 1px solid var(--line); height: 60px; display: flex; align-items: center; gap: 12px; padding: 0 16px; }
.admin-top h1 { font-size: 1.1rem; margin: 0; }
.admin-content { padding: 20px 16px 40px; max-width: 1280px; }
.backdrop { display: none; position: fixed; inset: 0; background: rgba(11,18,32,.4); z-index: 55; }
.backdrop.show { display: block; }
@media (min-width: 1000px) {
  .admin { grid-template-columns: 250px 1fr; }
  .admin-side { position: sticky; top: 0; height: 100vh; transform: none; }
  .admin-top .menu-toggle { display: none; }
  .admin-content { padding: 28px; }
}
.stats { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .stats { grid-template-columns: repeat(4, 1fr); } }
.stat { padding: 18px; }
.stat .label { color: var(--muted); font-size: .82rem; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .value { font-size: 1.6rem; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; font-family: var(--font-head); }
.stat .sub { font-size: .8rem; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.table th { text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; border-bottom: 1px solid var(--line); background: #fafbfc; white-space: nowrap; font-weight: 600; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #fafbfc; }
.inline-form { display: inline-flex; gap: 6px; align-items: center; }
.inline-form select { height: 32px; border-radius: 8px; border: 1px solid var(--line); padding: 0 8px; background: #fff; font-size: .85rem; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.toolbar form { display: flex; gap: 8px; flex-wrap: wrap; }
.toolbar .input { height: 40px; width: auto; }
.thumb-sm { width: 44px; height: 44px; border-radius: 10px; background: #f2f4f7; display: grid; place-items: center; font-size: 1.3rem; overflow: hidden; flex-shrink: 0; }
.thumb-sm img { width: 100%; height: 100%; object-fit: cover; }
.bar-chart { display: flex; align-items: end; gap: 8px; height: 160px; padding-top: 10px; }
.bar-chart .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; height: 100%; justify-content: end; }
.bar-chart .b i { width: 100%; max-width: 36px; background: var(--brand); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bar-chart .b span { font-size: .72rem; color: var(--muted); }
.bar-chart .b em { font-style: normal; font-size: .7rem; font-weight: 700; color: var(--ink-2); }
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
.pagination a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: .85rem; padding: 0 10px; }
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

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

/* ---------- Black header ---------- */
.site-header { background: rgba(8, 10, 16, .96); border-bottom: 1px solid rgba(255,255,255,.06); }
.site-header .main-nav a { color: #c7ccd6; }
.site-header .main-nav a:hover { color: #fff; background: rgba(255,255,255,.07); }
.site-header .main-nav a.active { color: #fff; background: transparent; }
.site-header .main-nav a.active::after { bottom: -16px; }
.site-header .icon-btn { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); color: #fff; }
.site-header .icon-btn:hover { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.2); box-shadow: none; }
.site-header .count-dot { border-color: #0b0d13; }
.site-header .location-chip { background: rgba(255,255,255,.07); color: #e4e7ec; }
.site-header .btn-dark { background: #fff; color: var(--ink); }
.site-header .btn-dark:hover { background: #e9ebf0; }
.site-header .avatar { background: var(--brand); }

/* "Ride" wordmark next to the MPK emblem — italic, slanted, red like the emblem */
.brand { gap: 2px; }
.brand-ride {
  font-family: var(--font-head); font-weight: 800; font-style: italic; font-size: 1.75rem; line-height: 1;
  letter-spacing: -.02em; transform: skewX(-8deg); display: inline-block; margin-left: 4px; padding-right: 4px;
  background: linear-gradient(180deg, #ff4b3a 0%, #e0140b 55%, #a30d06 100%); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0,0,0,.35));
}
@media (min-width: 900px) { .brand-ride { font-size: 2rem; } }
.auth-logo { display: inline-flex; align-items: center; }

/* Header nav: centred on laptop, red on hover/active, underline right under the text */
@media (min-width: 900px) {
  .site-header .container { display: grid; grid-template-columns: auto 1fr auto 1fr; }
  .site-header .brand { justify-self: start; }
  .site-header .main-nav { justify-self: center; }
  .site-header .header-actions { justify-self: end; margin-left: 0; }
}
.site-header .main-nav a { padding: 8px 14px; transition: color .15s; }
.site-header .main-nav a:hover { color: var(--brand); background: transparent; }
.site-header .main-nav a.active { color: var(--brand); }
.site-header .main-nav a.active::after { left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; }
.site-header .main-nav a:hover::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 2px; border-radius: 2px; background: var(--brand); }
.menu-nav { top: 64px; }
.bottom-nav a:hover { color: var(--brand); }
.site-header .main-nav a:not(.active):not(:hover) { color: #ffffff; }

/* Google sign-in */
.g-wrap { display: flex; justify-content: center; min-height: 44px; }
.btn-google { background: #fff; color: var(--ink); border: 1px solid #d0d5dd; gap: 10px; font-weight: 600; height: 48px; }
.btn-google:hover { background: #f9fafb; }
.auth-or { display: flex; align-items: center; gap: 12px; margin: 20px 0 18px; color: #98a2b3; font-size: .82rem; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* Auth pages: black background (red only as subtle accent glow) */
.auth-page {
  background: radial-gradient(900px 500px at 15% 0%, rgba(224,20,11,.22), transparent 60%),
              radial-gradient(700px 500px at 100% 100%, rgba(224,20,11,.14), transparent 60%),
              linear-gradient(160deg, #111318 0%, #07080b 100%);
}
.auth-bg .b1 { background: #e0140b; opacity: .18; }
.auth-bg .b2 { background: #ff4b3a; opacity: .12; }
.auth-bg .b3 { background: #1d2433; opacity: .6; }
.auth-bg::before { background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1.2px); }
.auth-logo { background: transparent; box-shadow: none; padding: 0; }

/* ---------- Maps ---------- */
.map-box { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #eef0f4; }
.map-box .map { height: 300px; width: 100%; z-index: 0; }
@media (min-width: 900px) { .map-box .map { height: 340px; } }
.map-tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px; background: #fff; border-bottom: 1px solid var(--line); }
.map-tools .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.map-hint { font-size: .82rem; color: var(--muted); padding: 8px 12px; background: #fff; border-top: 1px solid var(--line); }
.track-map { height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); z-index: 0; }
.mpk-pin span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); color: #fff; font-weight: 800; font-size: 12px; box-shadow: 0 4px 10px rgba(0,0,0,.3); border: 2px solid #fff; }
.mpk-pin span::first-line { }
.mpk-rider span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: #fff; font-size: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.35); border: 3px solid var(--brand); }
.leaflet-container { font-family: var(--font); }
.mpk-pin span b { transform: rotate(45deg); }

/* ---------- Rider app ---------- */
.rider-app { background: #f4f5f8; }
.rider-app .site-header .container { display: flex !important; }
.rider-status { border-left: 4px solid #98a2b3; }
.rider-status.on { border-left-color: var(--success); background: linear-gradient(90deg, var(--success-50), #fff 60%); }
.switch { position: relative; width: 58px; height: 32px; border-radius: 999px; border: 0; background: #d0d5dd; cursor: pointer; transition: background .2s; }
.switch span { position: absolute; top: 4px; left: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: left .2s; }
.switch.on { background: var(--success); }
.switch.on span { left: 30px; }
.job-card { transition: box-shadow .15s; }
.job-card.offered { border: 2px solid var(--success); box-shadow: 0 10px 30px -12px rgba(18,161,80,.45); }
.active-job { border: 2px solid var(--brand); }
.avatar-lg { width: 72px; height: 72px; border-radius: 20px; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 700; font-family: var(--font-head); overflow: hidden; flex-shrink: 0; }
.avatar-lg img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Chat ---------- */
.chat-log { max-height: 320px; overflow-y: auto; padding: 4px 16px 12px; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 80%; }
.msg span { background: #f2f4f7; padding: 8px 12px; border-radius: 14px 14px 14px 4px; font-size: .92rem; word-break: break-word; }
.msg small { color: var(--muted); font-size: .7rem; margin-top: 2px; }
.msg.me { align-self: flex-end; align-items: flex-end; }
.msg.me span { background: var(--brand); color: #fff; border-radius: 14px 14px 4px 14px; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.chat-form .input { height: 44px; }

/* ---------- Notifications ---------- */
.notif button { all: unset; box-sizing: border-box; display: flex; gap: 12px; align-items: center; width: 100%; padding: 14px 18px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notif button:hover { background: #fafbfc; }
.notif.unread button { background: var(--brand-50); }
.notif.unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 6px; vertical-align: middle; }

/* ---------- Stars / rating ---------- */
.stars { display: inline-flex; gap: 1px; color: #d0d5dd; vertical-align: middle; }
.stars .on { color: #f5a524; }
.stars .icon-sm { fill: currentColor; }
.rate-input { display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.rate-input input { position: absolute; opacity: 0; }
.rate-input label { cursor: pointer; color: #d0d5dd; }
.rate-input label .icon { width: 34px; height: 34px; fill: currentColor; }
.rate-input input:checked ~ label, .rate-input label:hover, .rate-input label:hover ~ label { color: #f5a524; }

/* ---------- Banners ---------- */
.banners { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .banners { grid-template-columns: repeat(2, 1fr); } }
.banner-card { position: relative; overflow: hidden; border-radius: 22px; min-height: 190px; padding: 26px; color: #fff; display: flex; flex-direction: column; justify-content: flex-end; isolation: isolate; }
.banner-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.banner-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11,18,32,.88), rgba(11,18,32,.2)); }
.banner-card h3 { font-size: 1.5rem; margin: 0 0 4px; }
.banner-card p { color: #e4e7ec; max-width: 34ch; margin: 0 0 12px; }

/* ---------- Item options modal ---------- */
.modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: end center; background: rgba(11,18,32,.55); padding: 0; }
@media (min-width: 640px) { .modal { place-items: center; padding: 20px; } }
.modal-card { background: #fff; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; border-radius: 22px 22px 0 0; }
@media (min-width: 640px) { .modal-card { border-radius: 22px; } }
.modal-card .ph { height: 180px; background: #f2f4f7; }
.modal-card .ph img { width: 100%; height: 100%; object-fit: cover; }
.opt-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt-row input { width: 20px; height: 20px; accent-color: var(--brand); }
.wish-btn { position: absolute; top: 6px; left: 6px; width: 32px; height: 32px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); display: grid; place-items: center; cursor: pointer; color: #98a2b3; box-shadow: var(--shadow-xs); }
.wish-btn.on { color: var(--brand); }
.wish-btn.on .icon-sm { fill: currentColor; }
.code-box { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px; margin-bottom: 14px; border: 2px dashed var(--brand); border-radius: 14px; background: var(--brand-50); text-align: center; }
.code-box b { font-family: var(--font-head); font-size: 2rem; letter-spacing: .35em; color: var(--brand); }
.quick-links { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }
.quick-links a { display: flex; flex-direction: column; gap: 4px; }
.quick-links a .icon { color: var(--brand); width: 24px; height: 24px; margin-bottom: 4px; }
.quick-links a:hover { border-color: #d0d5dd; box-shadow: var(--shadow); }
.avatar-upload label { position: relative; display: block; cursor: pointer; }
.avatar-upload .cam { position: absolute; right: -4px; bottom: -4px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }
.otp-input { height: 60px !important; font-size: 1.8rem; letter-spacing: .5em; text-align: center; font-family: var(--font-head); }
.avatar { overflow: hidden; } .avatar img { width: 100%; height: 100%; object-fit: cover; }
/* Prevent horizontal scroll: grid children may shrink below their content width */
.menu-layout { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 980px) { .menu-layout { grid-template-columns: minmax(0, 1fr) 370px; } }
.menu-layout > *, .grid > *, .split > *, .hero-grid > * { min-width: 0; }
.form-grid > *, .stack > *, .card > * { min-width: 0; }

/* ---------- Floating live chat ---------- */
.cw { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 16px + env(safe-area-inset-bottom)); z-index: 90; }
@media (min-width: 900px) { .cw { right: 24px; bottom: 24px; } }
.cw-btn { position: relative; width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 12px 30px -6px rgba(224,20,11,.6); transition: transform .15s; }
.cw-btn:hover { transform: scale(1.06); }
.cw-btn .icon { width: 26px; height: 26px; }
.cw-btn b { position: absolute; top: -2px; right: -2px; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--ink); color: #fff; font-size: 12px; display: grid; place-items: center; border: 2px solid #fff; }
.cw.open .cw-btn { display: none; }
.cw-panel { position: absolute; right: 0; bottom: 0; width: min(370px, calc(100vw - 32px)); height: min(540px, calc(100vh - 160px)); background: #fff; border-radius: 20px; box-shadow: 0 30px 80px -10px rgba(11,18,32,.45); display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); animation: drop .2s ease; }
.cw-panel[hidden] { display: none !important; }
.cw-head { display: flex; align-items: center; gap: 10px; padding: 14px 16px; background: var(--ink); color: #fff; }
.cw-head img { border-radius: 10px; }
.cw-head b { display: block; font-size: .95rem; }
.cw-head span { font-size: .75rem; color: #98a2b3; }
.cw-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: 4px; }
.cw-x { width: 34px; height: 34px; border-radius: 10px; border: 0; background: rgba(255,255,255,.1); color: #fff; display: grid; place-items: center; cursor: pointer; }
.cw-log { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 8px; background: #f7f7f9; }
.cw-quick { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; }
.cw-quick .chip { height: 32px; font-size: .8rem; }
.cw-quick[hidden] { display: none !important; }
@media (max-width: 979px) { body:has(.sticky-cart:not([hidden])) .cw { bottom: calc(var(--nav-h) + 84px + env(safe-area-inset-bottom)); } }
.vic.pay-jazzcash { background: #fff4e5 !important; color: #c2410c !important; font-weight: 800; }
.vic.pay-easypaisa { background: #e8f8ee !important; color: #12a150 !important; font-weight: 800; }
.option input:checked + .box .vic.pay-jazzcash, .option input:checked + .box .vic.pay-easypaisa { background: var(--brand) !important; color: #fff !important; }
.pay-status { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; margin-bottom: 12px; }

/* ---------- Home hero (v2, light) ---------- */
.home-hero { position: relative; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); isolation: isolate; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(760px 460px at 100% 0%, var(--brand-50), transparent 62%),
              radial-gradient(520px 360px at 0% 100%, #f8fafc, transparent 60%); }
.hh-grid { display: grid; gap: 30px; padding-top: 30px; padding-bottom: 38px; }
@media (min-width: 980px) { .hh-grid { grid-template-columns: 1.05fr .95fr; align-items: center; gap: 56px; padding-top: 64px; padding-bottom: 72px; } }
.hh-grid > * { min-width: 0; }
.hh-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); box-shadow: 0 2px 8px -4px rgba(16,24,40,.15); font-size: .8rem; font-weight: 600; color: var(--ink-2); }
.hh-live { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,.6); animation: hhLive 2s infinite; }
@keyframes hhLive { 70% { box-shadow: 0 0 0 8px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.home-hero h1 { margin: 18px 0 14px; max-width: 16ch; font-size: clamp(2.1rem, 5vw, 3.5rem); line-height: 1.06; letter-spacing: -.025em; }
.home-hero h1 em { font-style: normal; color: var(--brand); }
.home-hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 50ch; margin: 0; }
.home-hero .booker { margin-top: 26px; }
.hh-trust { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.hh-trust li { display: flex; align-items: center; gap: 8px; font-size: .86rem; font-weight: 600; color: var(--ink-2); }
.hh-trust .icon { color: var(--success); }
.hh-side { display: grid; gap: 14px; }
.hh-mosaic { display: grid; grid-template-columns: 1.25fr 1fr; grid-template-rows: 1fr 1fr; gap: 12px; height: 420px; }
.hh-mosaic figure { position: relative; margin: 0; border-radius: 22px; overflow: hidden; box-shadow: 0 20px 45px -22px rgba(16,24,40,.45); background: #f2f4f7; }
.hh-mosaic .m1 { grid-row: 1 / 3; }
.hh-mosaic img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hh-mosaic figure:hover img { transform: scale(1.04); }
.hh-mosaic figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(11,18,32,.45)); pointer-events: none; }
.hh-mosaic figcaption { position: absolute; left: 12px; bottom: 12px; z-index: 1; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: rgba(255,255,255,.95); color: var(--ink); font-size: .8rem; font-weight: 700; box-shadow: 0 6px 16px -8px rgba(0,0,0,.4); }
.hh-mosaic figcaption .icon { color: var(--brand); }
.hh-services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.hh-services a { display: grid; gap: 2px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; transition: .2s; box-shadow: 0 2px 8px -6px rgba(16,24,40,.2); }
.hh-services a:hover { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgba(227,20,27,.45); }
.hh-services span { width: 38px; height: 38px; border-radius: 11px; background: var(--brand-50); display: grid; place-items: center; margin-bottom: 8px; }
.hh-services span .icon { width: 20px; height: 20px; color: var(--brand); }
.hh-services b { font-size: .95rem; }
.hh-services small { color: var(--muted); font-size: .76rem; }
.hh-stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); padding-top: 14px; }
.hh-stats div { display: grid; padding: 0 10px; }
.hh-stats div + div { border-left: 1px solid var(--line); }
.hh-stats b { font-size: 1.35rem; letter-spacing: -.02em; color: var(--ink); }
.hh-stats span { color: var(--muted); font-size: .74rem; }
@media (min-width: 980px) { .hh-side .hh-services { display: none; } }
@media (max-width: 979px) { .hh-mosaic { height: 260px; } .hh-stats { display: none; } }
@media (max-width: 639px) { .hh-mosaic { height: 210px; gap: 8px; } .hh-mosaic figure { border-radius: 16px; } .home-hero .lead { font-size: 1rem; } .hh-trust { gap: 8px 16px; } .hh-trust li { font-size: .8rem; } }.hh-photo { position: relative; margin: 0; border-radius: 26px; overflow: hidden; height: 440px; box-shadow: 0 24px 50px -24px rgba(16,24,40,.5); background: #f2f4f7; }
.hh-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 979px) { .hh-photo { height: 240px; border-radius: 20px; } }
@media (max-width: 639px) { .hh-photo { height: 200px; } }

/* ---------- Auth: back link + role tabs ---------- */
.auth-back { position: fixed; top: 18px; left: 18px; z-index: 5; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px 9px 10px; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); color: #fff; font-size: .86rem; font-weight: 600; text-decoration: none; backdrop-filter: blur(6px); transition: background .15s; }
.auth-back:hover { background: rgba(255,255,255,.2); color: #fff; }
@media (max-width: 479px) { .auth-back { position: static; justify-self: start; align-self: start; margin: 0 0 4px; } }
.role-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: -6px 0 22px; background: #f2f4f7; border-radius: 14px; }
.role-tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; height: 42px; border-radius: 11px; font-weight: 600; font-size: .92rem; color: var(--muted); text-decoration: none; transition: .15s; }
.role-tabs a:hover { color: var(--ink); }
.role-tabs a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(16,24,40,.12); }
.role-tabs a.on .icon { color: var(--brand); }.auth-back { display: none; }
.auth-back-btn { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; height: 46px; margin-top: 10px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; color: var(--ink-2); font-weight: 600; font-size: .92rem; text-decoration: none; transition: .15s; }
.auth-back-btn:hover { border-color: var(--ink); color: var(--ink); background: #f9fafb; }
.auth-switch + .auth-back-btn { margin-top: 16px; }

/* ---------- Customer side menu (drawer) ---------- */
.site-header .avatar { border: 0; padding: 0; cursor: pointer; font: inherit; }
.dw-scrim { position: fixed; inset: 0; z-index: 140; background: rgba(16,24,40,.45); opacity: 0; transition: opacity .25s; }
.dw-scrim.show { opacity: 1; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; z-index: 150; width: min(320px, 86vw); background: #fff; display: flex; flex-direction: column; box-shadow: 20px 0 50px -20px rgba(16,24,40,.35); transform: translateX(-105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); overflow: hidden; }
.drawer.open { transform: none; }
.dw-head { position: relative; background: var(--brand); color: #fff; padding: 26px 22px 30px; border-bottom-right-radius: 44px; flex: none; }
.dw-head small { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.dw-brand { display: block; font-family: Poppins, Inter, sans-serif; font-size: 1.55rem; font-weight: 800; letter-spacing: .01em; line-height: 1.2; }
.dw-x { position: absolute; top: 18px; right: 16px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; }
.dw-x:hover { background: rgba(255,255,255,.15); }
.dw-user { display: flex; align-items: center; gap: 12px; margin-top: 18px; color: #fff; text-decoration: none; }
.dw-user b { display: block; font-size: .98rem; }
.dw-user small { text-transform: none; letter-spacing: 0; font-weight: 500; font-size: .76rem; opacity: .9; }
.dw-av { width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; font-weight: 600; font-size: 1rem; overflow: hidden; flex: none; border: 2px solid rgba(255,255,255,.6); }
.dw-av img { width: 100%; height: 100%; object-fit: cover; }
.dw-guest { display: flex; gap: 8px; margin-top: 16px; }
.btn-outline-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.7); }
.btn-outline-white:hover { background: rgba(255,255,255,.12); color: #fff; }
.dw-body { flex: 1; overflow-y: auto; padding: 8px 0 20px; }
.dw-label { padding: 18px 24px 8px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #98a2b3; border-top: 1px solid #f2f4f7; }
.dw-label:first-child { border-top: 0; }
.dw-item { display: flex; align-items: center; gap: 14px; padding: 12px 24px; color: #344054; font-weight: 600; font-size: .98rem; text-decoration: none; transition: background .15s, color .15s; }
.dw-item .icon { width: 21px; height: 21px; color: #475467; flex: none; }
.dw-item:hover, .dw-item.on { background: var(--brand-50); color: var(--brand); }
.dw-item:hover .icon, .dw-item.on .icon { color: var(--brand); }
.dw-item span { flex: 1; }
.dw-live { font-style: normal; font-size: .68rem; font-weight: 700; color: #fff; background: #22c55e; padding: 2px 8px; border-radius: 99px; }
.dw-out { margin-top: 6px; border-top: 1px solid #f2f4f7; padding-top: 16px; color: var(--brand); }
.dw-out .icon { color: var(--brand); }
body.dw-lock { overflow: hidden; }

/* Three-line menu toggle (left of the logo) */
.menu-toggle { flex: none; width: 42px; height: 42px; margin-right: -10px; border: 0; border-radius: 12px; background: transparent; cursor: pointer; display: grid; place-content: center; gap: 5px; transition: background .15s; }
.menu-toggle span { display: block; width: 22px; height: 2.5px; border-radius: 2px; background: #fff; transition: transform .25s, opacity .2s, width .2s; }
.menu-toggle span:nth-child(2) { width: 16px; }
.menu-toggle:hover { background: rgba(255,255,255,.1); }
.menu-toggle:hover span:nth-child(2) { width: 22px; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }
@media (max-width: 639px) { .site-header .container { gap: 12px; } }
.dw-head > small { position: relative; z-index: 0; padding-right: 48px; }
.dw-x { z-index: 5; width: 44px; height: 44px; top: 14px; right: 12px; }
.dw-x .icon { width: 24px; height: 24px; }
.dw-logo { display: block; height: 56px; width: auto; margin: 6px 0 2px -4px; filter: drop-shadow(0 4px 10px rgba(0,0,0,.18)); }
.dw-logo-chip { display: inline-block; margin-top: 8px; padding: 6px 12px; background: #fff; border-radius: 14px; box-shadow: 0 6px 16px -8px rgba(0,0,0,.35); }
.dw-logo-chip .dw-logo { height: 44px; margin: 0; filter: none; }
button.dw-item { width: 100%; border: 0; background: transparent; font: inherit; font-weight: 600; text-align: left; cursor: pointer; }
.dw-status { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,.18); font-size: .74rem; font-weight: 700; }
.dw-status i { width: 8px; height: 8px; border-radius: 50%; background: #d0d5dd; }
.dw-status.on i { background: #4ade80; box-shadow: 0 0 0 3px rgba(74,222,128,.3); }

/* ---------- Food page: hero slider + compact search ---------- */
.food-hero { padding: 18px 0 6px; }
.fh-slider { position: relative; border-radius: 24px; overflow: hidden; height: 300px; background: #f2f4f7; box-shadow: 0 20px 45px -25px rgba(16,24,40,.5); }
@media (min-width: 900px) { .fh-slider { height: 380px; } }
@media (max-width: 639px) { .fh-slider { height: 210px; border-radius: 18px; } }
.fh-track { position: absolute; inset: 0; }
.fh-slide { position: absolute; inset: 0; display: block; color: #fff; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .7s ease, visibility .7s; }
.fh-slide.on { opacity: 1; visibility: visible; }
.fh-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform 4s ease-out; }
.fh-slide.on img { transform: scale(1); }
.fh-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(160,8,8,.88) 0%, rgba(200,16,16,.55) 42%, rgba(0,0,0,0) 75%); }
.fh-copy { position: absolute; left: 0; bottom: 0; top: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 0 56px; max-width: 560px; }
@media (max-width: 639px) { .fh-copy { padding: 0 20px 18px; justify-content: flex-end; max-width: 92%; gap: 5px; } }
.fh-copy h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 4vw, 2.6rem); line-height: 1.1; }
.fh-copy p { margin: 0; color: rgba(255,255,255,.92); font-size: 1rem; max-width: 42ch; }
@media (max-width: 639px) { .fh-copy p { font-size: .82rem; } .fh-copy .btn { display: none; } }
.fh-copy .btn { align-self: flex-start; margin-top: 6px; }
.fh-tag { align-self: flex-start; display: inline-flex; gap: 6px; align-items: center; background: rgba(255,255,255,.2); padding: 4px 10px; border-radius: 99px; font-size: .78rem; font-weight: 700; }
.fh-nav { position: absolute; top: 50%; z-index: 2; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.9); color: var(--ink); display: grid; place-items: center; cursor: pointer; opacity: 0; transition: opacity .2s; }
.fh-slider:hover .fh-nav { opacity: 1; }
.fh-nav.prev { left: 12px; } .fh-nav.next { right: 12px; }
@media (hover: none) { .fh-nav { display: none; } }
.fh-dots { position: absolute; z-index: 2; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 6px; }
.fh-dots button { width: 8px; height: 8px; border-radius: 99px; border: 0; padding: 0; background: rgba(255,255,255,.55); cursor: pointer; transition: width .3s, background .3s; }
.fh-dots button.on { width: 24px; background: #fff; }
@media (max-width: 639px) { .fh-dots { left: auto; right: 14px; transform: none; bottom: 12px; } }
.fh-search { display: flex; align-items: center; gap: 10px; max-width: 560px; margin: 18px auto 0; padding: 6px 6px 6px 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 99px; box-shadow: 0 10px 24px -16px rgba(16,24,40,.35); }
.fh-search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(227,20,27,.1); }
.fh-search > .icon { color: var(--muted); flex: none; }
.fh-search input { flex: 1; min-width: 0; border: 0; outline: 0; height: 40px; background: transparent; font-size: .95rem; }
.fh-search .btn { border-radius: 99px; height: 40px; padding: 0 18px; }
/* ---------- Red header (client: red + white, no black) ---------- */
.site-header { background: var(--brand) !important; border-bottom: 0 !important; box-shadow: 0 6px 18px -10px rgba(160,8,8,.6); }
.site-header .main-nav a, .site-header .main-nav a:not(.active):not(:hover) { color: rgba(255,255,255,.9); }
.site-header .main-nav a:hover, .site-header .main-nav a.active { color: #fff !important; background: transparent; }
.site-header .main-nav a.active::after, .site-header .main-nav a:hover::after { background: #fff !important; }
.site-header .icon-btn { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.site-header .icon-btn:hover { background: rgba(255,255,255,.24); }
.site-header .count-dot { background: #fff; color: var(--brand); border-color: var(--brand); }
.site-header .location-chip { background: rgba(255,255,255,.16); color: #fff; }
.site-header .location-chip .icon { color: #fff; }
.site-header .avatar { background: #fff; color: var(--brand); box-shadow: 0 0 0 2px rgba(255,255,255,.5); }
.site-header .btn-primary { background: #fff; color: var(--brand); border-color: #fff; }
.site-header .btn-primary:hover { background: #fff1f0; color: var(--brand); }
.site-header .btn-dark { background: #fff; color: var(--brand); }
.site-header .brand { background: #fff; border-radius: 14px; padding: 3px 10px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); }
.site-header .brand-logo { height: 42px; }
@media (min-width: 900px) { .site-header .brand-logo { height: 46px; } }
.site-header .badge-muted { background: var(--brand-50); color: var(--brand); }

/* ---------- Splash (first visit) ---------- */
#splash { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; background: radial-gradient(circle at 50% 42%, #ff3b30 0%, var(--brand) 45%, #b90d0d 100%); transition: opacity .55s ease, visibility .55s; }
#splash.out { opacity: 0; visibility: hidden; }
.no-splash #splash { display: none; }
#splash .sp-circle { position: relative; z-index: 1; width: 168px; height: 168px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 24px 60px -18px rgba(0,0,0,.45); animation: spPop .8s cubic-bezier(.2,1.4,.4,1) both, spBeat 1.6s ease-in-out .9s infinite; }
#splash .sp-circle img { width: 120px; height: auto; animation: spLogo .9s ease .25s both; }
#splash .sp-ring { position: absolute; width: 168px; height: 168px; top: 50%; left: 50%; margin: -95px 0 0 -84px; }
#splash .sp-ring span { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(255,255,255,.7); animation: spWave 2s ease-out infinite; }
#splash .sp-ring span + span { animation-delay: 1s; }
#splash .sp-circle::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid transparent; border-top-color: #fff; border-right-color: rgba(255,255,255,.5); animation: spSpin 1.1s linear infinite; }
#splash .sp-text { color: #fff; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; font-size: .78rem; opacity: 0; animation: spFade .6s ease .6s forwards; }
@keyframes spPop { from { transform: scale(.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spLogo { from { transform: translateY(8px) scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spBeat { 50% { transform: scale(1.05); } }
@keyframes spWave { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.9); opacity: 0; } }
@keyframes spSpin { to { transform: rotate(360deg); } }
@keyframes spFade { to { opacity: .9; } }
@media (prefers-reduced-motion: reduce) { #splash *, #splash *::before { animation-duration: .01s !important; animation-iteration-count: 1 !important; } }

/* =====================================================================
   Red + white theme (client: no black anywhere on the public site).
   Admin panel (body.adm) keeps its own look.
   ===================================================================== */
body:not(.adm) .btn-dark { background: var(--brand); color: #fff; border-color: var(--brand); }
body:not(.adm) .btn-dark:hover { background: #c40f08; color: #fff; }
body:not(.adm) .avatar, body:not(.adm) .avatar-lg { background: var(--brand); color: #fff; }
body:not(.adm) .chip.active, body:not(.adm) .map-tools .chip.active, body:not(.adm) .pagination a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
body:not(.adm) .page-hero { background: var(--brand); }
body:not(.adm) .page-hero::after { background: linear-gradient(90deg, rgba(170,10,6,.92) 0%, rgba(224,20,11,.62) 55%, rgba(224,20,11,.15) 100%); }
body:not(.adm) .service-card::after { background: linear-gradient(180deg, rgba(224,20,11,0) 30%, rgba(170,10,6,.88) 100%); }
body:not(.adm) .promo-card::after, body:not(.adm) .banner-card::after { background: linear-gradient(90deg, rgba(170,10,6,.9), rgba(224,20,11,.3)); }
body:not(.adm) .hero-photo::after, body:not(.adm) .hh-mosaic figure::after { background: linear-gradient(180deg, transparent 55%, rgba(170,10,6,.4)); }
body:not(.adm) .deal:nth-child(2) { background: #b80d07; }
body:not(.adm) .cta-band { background: var(--brand); }
body:not(.adm) .cta-band .btn-white { color: var(--brand); }
body:not(.adm) .track-hero { background: linear-gradient(135deg, #e0140b 0%, #b80d07 100%); }
body:not(.adm) .track-hero .small[style*="#fca5a5"] { color: #ffe1de !important; }
body:not(.adm) .rest-card.closed .rest-cover::after { background: rgba(170,10,6,.55); }
body:not(.adm) .backdrop, body:not(.adm) .modal { background: rgba(120,10,6,.45); }
body:not(.adm) .dw-scrim { background: rgba(120,10,6,.35); }
body:not(.adm) .cw-head { background: var(--brand); }
body:not(.adm) .cw-btn b { background: #fff; color: var(--brand); border-color: var(--brand); }
body:not(.adm) .ol-av { background: var(--brand); }
body:not(.adm) .fh-nav { color: var(--brand); }
/* footer: red */
body:not(.adm) .site-footer { background: var(--brand); color: rgba(255,255,255,.85); }
body:not(.adm) .site-footer a { color: rgba(255,255,255,.9); }
body:not(.adm) .site-footer a:hover { color: #fff; }
body:not(.adm) .site-footer h4, body:not(.adm) .site-footer h3, body:not(.adm) .site-footer b { color: #fff; }
body:not(.adm) .site-footer .socials a { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.25); }
body:not(.adm) .site-footer .brand img { background: #fff; border-radius: 14px; padding: 4px 10px; }
body:not(.adm) .site-footer * { border-color: rgba(255,255,255,.18); }
/* pay boxes */
body:not(.adm) .pm-amt, body:not(.adm) .olp .to { background: var(--brand) !important; }
body:not(.adm) .pm-amt em { background: #fff !important; color: var(--brand); }
body:not(.adm) .olp .cp { border-color: rgba(255,255,255,.5); }
/* auth pages: red + white only */
.auth-page { background: radial-gradient(1100px 650px at 15% 10%, #ff4a3d 0%, transparent 55%), linear-gradient(135deg, #e0140b 0%, #c40f08 55%, #a50c06 100%) !important; }
.auth-bg .b3 { background: #ff6b5e; opacity: .35; }
.auth-logo { background: #fff !important; }

.fh-count { position: absolute; z-index: 2; right: 16px; bottom: 16px; background: rgba(255,255,255,.92); color: var(--brand); font-size: .78rem; font-weight: 700; padding: 4px 10px; border-radius: 99px; }
.fh-count b { font-size: .9rem; }
.fh-progress { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 4px; background: rgba(255,255,255,.25); }
.fh-progress i { display: block; height: 100%; background: #fff; transition: width .6s ease; }
.cat-head { margin: 26px 0 12px; }
.cat-strip { scroll-behavior: auto !important; scroll-snap-type: none !important; padding-bottom: 6px; }
.cat-strip .cat.active .ph { box-shadow: 0 0 0 3px var(--brand); }

/* ---------- Restaurant page: compact red hero, info bar, red menu tabs, 2 items per row ---------- */
body:not(.adm) .rest-hero { background: var(--brand); }
body:not(.adm) .rest-hero .banner img { opacity: 1; }
body:not(.adm) .rest-hero::after { background: linear-gradient(90deg, rgba(170,10,6,.9) 0%, rgba(224,20,11,.6) 50%, rgba(224,20,11,.15) 100%); }
.rest-hero .info { padding-top: 22px !important; padding-bottom: 22px !important; }
@media (min-width: 900px) { .rest-hero .info { padding-top: 34px !important; padding-bottom: 30px !important; } }
.rest-hero h1 { margin: 10px 0 4px; font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
.rest-hero .sub { color: rgba(255,255,255,.92); font-weight: 600; }
.rest-hero .back { color: rgba(255,255,255,.92); }
.rest-bar { background: #fff; border-bottom: 1px solid var(--line); }
.rest-bar .container { padding-top: 12px; padding-bottom: 12px; gap: 10px; }
.rest-bar .meta { margin: 0; color: var(--muted); }
.rest-bar .rating { color: #b45309; }
/* menu section tabs: red when active / on hover */
.menu-nav .chip:hover { border-color: var(--brand); color: var(--brand); }
.menu-nav .chip.active, body:not(.adm) .menu-nav .chip.active { background: var(--brand); color: #fff; border-color: var(--brand); }
/* two items per row on phones too */
@media (max-width: 699px) {
  .menu-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .menu-item { flex-direction: column-reverse; gap: 8px; padding: 8px; border-radius: 14px; }
  .menu-item .media { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .menu-item .grow b { font-size: .9rem; line-height: 1.25; }
  .menu-item p { font-size: .76rem; margin: 2px 0 6px; }
  .menu-item .price { font-size: .92rem; }
}.rest-hero .info { padding-left: 16px !important; padding-right: 16px !important; }
@media (min-width: 640px) { .rest-hero .info { padding-left: 24px !important; padding-right: 24px !important; } }
@media (max-width: 699px) {
  .menu-item .media { aspect-ratio: auto; height: 118px; }
  .menu-item .thumb { height: 118px; }
}
@media (max-width: 699px) {
  .rest-grid .rest-cover .badge, .rest-grid .rest-cover .promo { top: 8px; font-size: .64rem; padding: 2px 7px; }
  .rest-grid .rest-cover .badge { left: 8px; }
  .rest-grid .rest-cover .promo { right: 8px; }
  .rest-grid .rest-cover .eta { bottom: 8px; left: 8px; font-size: .68rem; padding: 3px 8px; }
  .rest-grid .rest-info { padding: 8px 2px 2px; }
  .rest-grid .rest-info h3 { font-size: .92rem; }
}

/* Food hero: keep photos clear (no red wash), soft shade only behind the text */
.fh-slide::after { background: linear-gradient(0deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.18) 38%, rgba(0,0,0,0) 62%) !important; }
.fh-copy { justify-content: flex-end !important; padding-bottom: 34px !important; }
.fh-copy h2, .fh-copy p { text-shadow: 0 2px 10px rgba(0,0,0,.45); }
@media (max-width: 639px) { .fh-copy { padding-bottom: 20px !important; } }

/* Restaurants: 2 per row on phones */
@media (max-width: 699px) {
  .rest-grid { grid-template-columns: 1fr 1fr !important; gap: 12px !important; }
  .rest-grid .rest-card h3 { font-size: .95rem; }
  .rest-grid .rest-card .meta { font-size: .74rem; flex-wrap: wrap; gap: 2px 6px; }
  .rest-grid .rest-card p { font-size: .76rem; }
}

/* Restaurant hero: clear photo, soft shade only behind the text */
body:not(.adm) .rest-hero::after { background: linear-gradient(0deg, rgba(0,0,0,.6) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,.05) 100%) !important; }
.rest-hero h1, .rest-hero .sub, .rest-hero .back { text-shadow: 0 2px 10px rgba(0,0,0,.45); }
/* menu tabs: keep the first chip off the screen edge */
.menu-nav .scroller { padding-left: 16px !important; padding-right: 16px !important; scroll-padding-left: 16px; }
@media (min-width: 640px) { .menu-nav .scroller { padding-left: 24px !important; padding-right: 24px !important; } }

/* Side menu: compact so everything fits without scrolling */
.dw-head { padding: 16px 18px 18px !important; border-bottom-right-radius: 34px !important; }
.dw-head > small { font-size: .64rem; }
.dw-logo-chip { margin-top: 4px; padding: 4px 10px; border-radius: 12px; }
.dw-logo-chip .dw-logo { height: 32px; }
.dw-user { margin-top: 10px; gap: 10px; }
.dw-av { width: 38px; height: 38px; font-size: .88rem; }
.dw-user b { font-size: .9rem; }
.dw-user small { font-size: .7rem; }
.dw-status { margin-top: 6px; padding: 3px 9px; font-size: .68rem; }
.dw-x { top: 8px !important; right: 6px !important; }
.dw-body { padding: 2px 0 10px; }
.dw-label { padding: 10px 20px 4px; font-size: .62rem; }
.dw-item { padding: 8px 20px; gap: 12px; font-size: .88rem; }
.dw-item .icon { width: 18px; height: 18px; }
.dw-out { margin-top: 2px; padding-top: 10px; }
.dw-coins { font-style: normal; font-size: .66rem; font-weight: 800; color: #7a4a00; background: linear-gradient(145deg,#ffe08a,#f5b301); padding: 2px 8px; border-radius: 99px; }
@media (max-height: 640px) { .dw-item { padding: 6px 20px; } .dw-label { padding: 6px 20px 2px; } }

/* Rides / Parcels page hero: clear photo, soft shade only behind the text */
body:not(.adm) .page-hero { background: #f2f4f7; }
body:not(.adm) .page-hero img.bg { opacity: 1; }
body:not(.adm) .page-hero::after { background: linear-gradient(90deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.28) 45%, rgba(0,0,0,0) 75%) !important; }
.page-hero h1, .page-hero p, .page-hero .eyebrow { text-shadow: 0 2px 12px rgba(0,0,0,.45); }
.page-hero p { color: #fff !important; }
.page-hero .eyebrow { color: #fff !important; }

/* Category strip: edge to edge (no side padding cutting the circles) */
.cat-strip { width: 100%; margin: 0; padding-left: 10px !important; padding-right: 10px !important; box-sizing: border-box; }

/* Food hero slider: full width */
.food-hero { padding-top: 0 !important; }
.food-hero > .container { max-width: none; padding-left: 0; padding-right: 0; }
.food-hero .fh-slider { border-radius: 0 !important; box-shadow: none; }
@media (min-width: 900px) { .food-hero .fh-slider { height: 440px; } }
.food-hero .fh-copy { left: max(16px, calc((100vw - 1200px) / 2 + 24px)); padding-left: 0 !important; }
@media (max-width: 639px) { .food-hero .fh-copy { left: 16px; } }
.food-hero .fh-search { margin-left: 16px; margin-right: 16px; }
@media (min-width: 600px) { .food-hero .fh-search { margin-left: auto; margin-right: auto; } }
body { overflow-x: hidden; }

/* Side menu backdrop: soft white blur instead of red */
body:not(.adm) .dw-scrim, .dw-scrim { background: rgba(255,255,255,.55) !important; backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); }

/* Drawer: WhatsApp support + Join Community (one compact row, keeps the drawer scroll-free) */
.dw-wa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px 20px 8px; }
.dw-wa, .dw-comm { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 9px 8px; border-radius: 12px; font-weight: 700; font-size: .8rem; text-decoration: none; white-space: nowrap; transition: transform .15s, box-shadow .15s; }
.dw-wa .icon, .dw-comm .icon { width: 17px; height: 17px; flex: none; }
.dw-wa { background: linear-gradient(145deg, #2fe36f, #128c7e); color: #fff; box-shadow: 0 6px 14px -6px rgba(18,140,126,.6); }
.dw-comm { background: var(--brand-50); color: var(--brand); border: 1px solid currentColor; }
.dw-wa:hover, .dw-comm:hover { transform: translateY(-1px); }
@media (max-height: 640px) { .dw-wa-row { padding: 4px 20px 6px; } .dw-wa, .dw-comm { padding: 7px 6px; } }
/* Compact rows on shorter phones so the full logged-in menu fits without scrolling */
@media (max-height: 780px) {
  .dw-item { padding: 6px 20px; }
  .dw-label { padding: 7px 20px 2px; }
  .dw-wa-row { padding: 4px 20px 6px; }
  .dw-wa, .dw-comm { padding: 7px 6px; }
  .dw-out { padding-top: 8px; }
}

/* Route fields without map: typed address + area per leg */
.route-quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.route-quick [data-route-hint]:empty { display: none; }
.route-leg { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; align-items: end; }
.route-box .route-leg input { padding-left: 42px; }
.route-box .route-area select { padding-left: 14px; }
@media (max-width: 640px) {
  .route-leg { grid-template-columns: 1fr; gap: 8px; }
  .route-leg + .route-leg { margin-top: 6px; padding-top: 12px; border-top: 1px dashed #e4e7ec; }
  .route-box::before, .route-box .dot { display: none; }
  .route-box .route-leg input { padding-left: 14px; }
}

/* Typeable location field with suggestions */
.loc-wrap { position: relative; }
.loc-input { width: 100%; height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 14px; font: inherit; background: #fff; }
.loc-input:focus { outline: 0; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(224,20,11,.1); }
.loc-list { position: absolute; z-index: 40; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(16,24,40,.35); max-height: 280px; overflow-y: auto; }
.loc-list li { padding: 9px 10px 9px 34px; border-radius: 10px; cursor: pointer; position: relative; }
.loc-list li::before { content: ""; position: absolute; left: 11px; top: 13px; width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--brand); box-sizing: border-box; }
.loc-list li.is-area::before { border-color: #98a2b3; }
.loc-list li:hover, .loc-list li.on { background: var(--brand-50); }
.loc-list b { display: block; font-size: .92rem; font-weight: 600; }
.loc-list small { color: var(--muted); font-size: .74rem; }
.loc-note { display: block; margin-top: 4px; color: var(--muted); font-size: .74rem; }

/* Route fields: one field per row on every screen (pickup block, then drop-off block) */
.route-box .route-leg { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; align-items: stretch; padding: 14px; border: 1px solid var(--line); border-radius: 16px; position: relative; }
.route-box .route-leg + .route-leg { margin-top: 0; padding-top: 14px; border-top: 1px solid var(--line); }
.route-box .route-leg[data-leg="a"] { border-left: 4px solid var(--success); }
.route-box .route-leg[data-leg="b"] { border-left: 4px solid var(--brand); }
.route-box::before, .route-box .dot { display: none !important; }
.route-box .route-leg input, .route-box .loc-input { padding-left: 14px !important; }
.route-box .route-leg > *, .loc-field, .loc-wrap { min-width: 0; }
.vform, .ride-forms, .menu-layout > * { min-width: 0; }

/* Drawer: shortcut to the admin / rider panel */
.dw-panel { display: flex; align-items: center; gap: 12px; margin: 4px 0 8px; padding: 13px 14px; border-radius: 14px; background: var(--brand); color: #fff !important; font-weight: 700; text-decoration: none; box-shadow: 0 8px 20px rgba(224,20,11,.25); }
.dw-panel .icon { width: 20px; height: 20px; }
.dw-panel span { flex: 1; }

/* Auth pages: WhatsApp support under the card (instead of the floating button) */
.auth-support { margin-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.auth-support > span { font-size: .85rem; color: #98a2b3; }
.auth-page .auth-support > span { color: rgba(255,255,255,.8); }
.auth-wa { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: #fff; color: #128c4a !important; font-weight: 700; font-size: .9rem; text-decoration: none; border: 1px solid #d1f2df; box-shadow: 0 6px 18px rgba(16,24,40,.12); transition: transform .15s, box-shadow .15s; }
.auth-wa .icon { width: 18px; height: 18px; color: #25d366; }
.auth-wa:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(16,24,40,.18); }

/* Drawer: links to the Play Store app (hidden inside the app itself) */
.dw-logo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.dw-getapp { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.45); color: #fff !important; font-size: .8rem; font-weight: 700; text-decoration: none; }
.dw-getapp .icon { width: 16px; height: 16px; }
.dw-play { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 12px; margin: 10px 4px 6px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); color: var(--ink) !important; text-decoration: none; box-shadow: 0 6px 18px -10px rgba(16,24,40,.35); }
.dw-play svg { grid-row: span 2; }
.dw-play span { display: flex; flex-direction: column; line-height: 1.1; }
.dw-play small { font-size: .62rem; font-weight: 700; letter-spacing: .08em; color: var(--muted); }
.dw-play b { font-size: 1.05rem; }
.dw-play em { grid-column: 2; font-style: normal; font-size: .76rem; color: var(--muted); margin-top: 2px; }

/* Header: Google Play shortcut next to the logo (website only) */
.hdr-getapp { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 7px 11px; border-radius: 999px; background: #fff; color: var(--brand) !important; font-size: .78rem; font-weight: 800; white-space: nowrap; text-decoration: none; box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); flex: none; }
.hdr-getapp:hover { transform: translateY(-1px); }
@media (max-width: 400px) { .hdr-getapp span { display: none; } .hdr-getapp { padding: 9px; margin-left: 6px; } }

/* Food page: small gap between the red header and the banner slider */
.food-hero { padding-top: 12px !important; }
.header-actions .hdr-getapp { margin-left: 0; box-shadow: none; border: 1px solid rgba(255,255,255,.6); }

/* Restaurant closed by opening hours */
.rest-closed-tag { position: absolute; left: 10px; top: 10px; z-index: 2; background: #fff; color: var(--brand); font-size: .74rem; font-weight: 800; padding: 5px 10px; border-radius: 999px; box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); }

/* Shop menu: category tabs */
.cat-tabs .chip { border-radius: 12px; padding: 10px 18px; font-weight: 700; background: #f2f4f7; border: 0; color: var(--ink); }
.cat-tabs .chip.active { background: var(--brand); color: #fff; }

/* Food search: matching items from all shops */
.search-items { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.search-items .menu-item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px; }
.si-shop { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: .8rem; font-weight: 700; color: var(--brand) !important; text-decoration: none; }.site-header .avatar { overflow: hidden; background: #e4e6ea; border: 2px solid #fff; padding: 0; }

/* ===== Inside the Android app: native app feel ===== */
.in-app { -webkit-tap-highlight-color: transparent; overscroll-behavior: none; }
.in-app body, .in-app { -webkit-user-select: none; user-select: none; }
.in-app input, .in-app textarea, .in-app [contenteditable] { -webkit-user-select: text; user-select: text; }
.in-app img { -webkit-user-drag: none; -webkit-touch-callout: none; }
.in-app .site-footer, .in-app .hdr-getapp, .in-app .dw-play, .in-app .dw-getapp, .in-app .main-nav, .in-app .location-chip, .in-app .auth-back-btn { display: none !important; }
.in-app .site-header { position: sticky; top: 0; box-shadow: 0 2px 10px rgba(0,0,0,.12); }
.in-app .site-header .container { min-height: 58px; }
.in-app .brand-logo { height: 40px; width: auto; }
.in-app a, .in-app button { -webkit-touch-callout: none; }
.in-app .btn:active, .in-app .chip:active, .in-app .menu-item:active, .in-app .rest-card:active, .in-app .bottom-nav a:active { transform: scale(.97); transition: transform .08s; }
.in-app main, .in-app #main { padding-bottom: calc(var(--nav-h, 64px) + 16px); }
.in-app .bottom-nav { box-shadow: 0 -4px 16px rgba(16,24,40,.08); padding-bottom: env(safe-area-inset-bottom); }
.in-app .page-head h1 { font-size: 1.5rem; }
/* App: step-by-step booking */
.wz-bar { display: grid; gap: 8px; }
.wz-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.wz-top b { font-size: 1.1rem; }
.wz-top span { font-size: .8rem; color: var(--muted); white-space: nowrap; }
.wz-track { height: 6px; border-radius: 99px; background: #f2f4f7; overflow: hidden; }
.wz-track i { display: block; height: 100%; background: var(--brand); border-radius: 99px; transition: width .25s; }
.wz-nav { display: flex; gap: 10px; }
.wz-nav .btn { height: 50px; font-size: 1rem; }
.wz-miss { border-color: var(--brand) !important; box-shadow: 0 0 0 3px rgba(224,20,11,.12) !important; }
.in-app .route-box .dot { display: none; }
.in-app .vf-head + .wz-bar { margin-top: 4px; }
/* Profile (app-style) */
.pf-head { display: flex; align-items: center; gap: 14px; padding: 18px 0 14px; }
.pf-av label { position: relative; width: 74px; height: 74px; border-radius: 50%; background: #ffd35c; display: grid; place-items: center; cursor: pointer; flex: none; }
.pf-av img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.pf-av .icon { width: 34px; height: 34px; color: #3b2a14; }
.pf-ok { position: absolute; right: -2px; bottom: 2px; width: 24px; height: 24px; border-radius: 50%; background: #16a34a; color: #fff; display: grid; place-items: center; border: 2px solid #fff; }
.pf-ok .icon { width: 13px; height: 13px; color: #fff; }
.pf-hi { color: var(--muted); font-size: .9rem; }
.pf-head h1 { font-size: 1.6rem; margin: 2px 0; line-height: 1.15; }
.pf-head p { margin: 0; color: var(--muted); font-size: .9rem; overflow: hidden; text-overflow: ellipsis; }
.pf-gear { width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink); flex: none; background: #fff; }
.pf-coins { display: flex; align-items: center; gap: 14px; border: 1px solid #f3c7c4; border-radius: 18px; overflow: hidden; background: #fff7f6; text-decoration: none; color: var(--ink); }
.pf-coins-l { background: var(--brand); color: #fff; padding: 16px 18px; display: grid; text-align: center; align-self: stretch; place-content: center; }
.pf-coins-l b { font-size: 1.5rem; line-height: 1; }
.pf-coins-l small { font-size: .62rem; letter-spacing: .12em; font-weight: 800; }
.pf-coins .grow { display: grid; gap: 2px; font-weight: 700; padding: 10px 0; }
.pf-num { font-size: 1.8rem; font-weight: 800; margin-right: 4px; }
.pf-coins small { font-weight: 400; color: var(--muted); font-size: .8rem; }
.pf-go { width: 44px; height: 44px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; margin-right: 14px; flex: none; }
.pf-stats { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 14px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.pf-stats div { text-align: center; padding: 14px 6px; display: grid; gap: 2px; }
.pf-stats div + div { border-left: 1px solid var(--line); }
.pf-stats b { font-size: 1.2rem; }
.pf-stats small { color: var(--muted); }
.pf-h { font-size: 1.25rem; margin: 22px 0 10px; }
.pf-list { border: 1px solid var(--line); border-radius: 18px; background: #fff; overflow: hidden; }
.pf-row { display: flex; align-items: center; gap: 14px; padding: 16px; text-decoration: none; color: var(--ink); }
.pf-row + .pf-row { border-top: 1px solid var(--line); }
.pf-row .grow { display: grid; gap: 2px; min-width: 0; }
.pf-row b { font-size: 1rem; }
.pf-row small { color: var(--muted); font-size: .84rem; }
.pf-row > .icon { color: var(--muted); }
.pf-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.pf-ic .icon { width: 22px; height: 22px; }
.pf-ic.grey { background: #f2f4f7; color: #344054; } .pf-ic.peach { background: #fff1ea; color: #c2410c; } .pf-ic.green { background: #ecfdf3; color: #067647; }
.pf-ic.pink { background: #fdf2f8; color: #c11574; } .pf-ic.blue { background: #eff4ff; color: #3538cd; }
.pf-out { all: unset; box-sizing: border-box; width: 100%; display: flex; justify-content: center; align-items: center; gap: 8px; padding: 14px; border-radius: 14px; border: 1px solid #f3c7c4; color: var(--brand); font-weight: 700; cursor: pointer; background: #fff; }
/* Cart (all shops in one) */
.ct-shop { display: flex; align-items: center; gap: 12px; }
.ct-shop h2 { display: grid; font-size: 1.1rem; margin: 0; }
.ct-shop h2 small { font-size: .8rem; color: var(--muted); font-weight: 400; }
.ct-logo { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: #fff1f0; color: var(--brand); display: grid; place-items: center; flex: none; }
.ct-logo img, .ct-thumb img { width: 100%; height: 100%; object-fit: cover; }
.ct-item { gap: 12px; align-items: center; }
.ct-thumb { width: 64px; height: 64px; border-radius: 14px; overflow: hidden; background: #f7f7f8; color: var(--muted); display: grid; place-items: center; flex: none; }
.in-app .ct-item { flex-wrap: wrap; }
.in-app .ct-item .grow { flex: 1 1 calc(100% - 80px); }
.in-app .ct-item .qty { margin-left: 76px; }
.in-app .ct-item > b.nowrap { margin-left: auto; }
