/* COVA look. Colours are the group's brand colours; see design section 8. */
:root {
  --navy: #030130;
  --purple: #6D00F5;
  --violet: #A52BFF;
  --orange: #F63514;
  --golden: #FF9B00;
  --white: #FFFFFF;
  --bg: #F4F5FA;
  --grey: #AEB4CB;        /* on navy, borders, placeholders, inactive icons */
  --text-grey: #5F6685;   /* grey text on white */
  --line: #E4E6EF;
  --error: #B3260E;       /* a darker orange, readable as small text */
  --radius: 16px;
  --shadow: 0 2px 10px rgba(3, 1, 48, .08);
  --shadow-lg: 0 12px 32px rgba(3, 1, 48, .22);
  --head: 'Poppins', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --body: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --hero: linear-gradient(135deg, #030130 0%, #22066f 55%, #6D00F5 100%);
  color-scheme: light;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--navy);
  font: 15px/1.5 var(--body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3, .btn, .brand, .tab span, .chip, .section-title { font-family: var(--head); }
h1 { font-size: 22px; line-height: 1.25; font-weight: 800; margin: 0 0 8px; }
h2 { font-size: 17px; line-height: 1.3; font-weight: 600; margin: 0 0 8px; }
h3 { font-size: 15px; line-height: 1.35; font-weight: 600; margin: 0 0 4px; }
p { margin: 0 0 10px; }
a { color: var(--purple); }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--golden); outline-offset: 2px; }
#app:focus { outline: none; }
.muted { color: var(--text-grey); }
.small { font-size: 13px; }
.center { text-align: center; }
.sr-only {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.stack > * + * { margin-top: 12px; }
.m0 { margin: 0; }
.mt { margin-top: 14px; }
.mt-lg { margin-top: 18px; }
.section-title.first { margin-top: 4px; }
.list-note { margin: 0; padding: 14px 16px; }
.link-tap { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; font-weight: 600; }
.row { display: flex; align-items: center; gap: 12px; }
.grow { flex: 1 1 auto; min-width: 0; }
.noscript { padding: 24px; text-align: center; }

/* ---------- the phone (the whole screen on a phone; a frame on a laptop) ---------- */
.stage-side { display: none; }
.phone {
  position: relative;
  display: flex;
  flex-direction: column;
  height: var(--app-h, 100vh);
  overflow: hidden;
  background: var(--bg);
}
@supports (height: 100dvh) { .phone { height: 100dvh; } }
#app {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.screen-body { flex: 1 0 auto; padding: 16px 16px 28px; }
.screen-body.bare { padding: 0; display: flex; flex-direction: column; }
.screen-body.flush-top { padding-top: 0; }

/* ---------- top bar and hero band ---------- */
.topbar {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; gap: 4px;
  min-height: 56px; padding: 6px 16px 6px 4px;
  padding-top: max(6px, env(safe-area-inset-top));
  background: var(--hero); color: #fff;
}
.topbar h1 { font-size: 17px; font-weight: 600; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn {
  flex: 0 0 auto; width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: inherit; cursor: pointer;
}
.icon-btn:active { background: rgba(255, 255, 255, .12); }
.hero {
  background: var(--hero); color: #fff;
  margin: 0 -16px 16px; padding: 16px 16px 22px;
  padding-top: calc(16px + env(safe-area-inset-top));
  border-radius: 0 0 24px 24px;
}
.hero .muted, .on-navy .muted { color: var(--grey); }
.brand { font-weight: 800; font-size: 22px; letter-spacing: .5px; color: #fff; margin: 0; line-height: 1.2; }
.brand i { color: var(--orange); font-style: normal; }
.brand-xl { font-size: 44px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px;
  border: 0; border-radius: 999px;
  background: var(--purple); color: #fff;
  font: 600 15px/1.2 var(--head); text-align: center; text-decoration: none;
  cursor: pointer; transition: transform .08s, opacity .15s;
}
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-block { display: flex; width: 100%; }
/* Money actions. White on this orange is clear only at a large size, so the text is large. */
.btn-pay { background: var(--orange); font-size: 19px; font-weight: 600; min-height: 54px; }
.btn-outline { background: #fff; color: var(--purple); box-shadow: inset 0 0 0 2px var(--purple); }
.btn-light { background: #fff; color: var(--navy); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .75); }
.btn-text { background: transparent; color: var(--purple); padding: 0 8px; }
.btn-text-light { background: transparent; color: #fff; padding: 0 8px; text-decoration: underline; text-underline-offset: 3px; }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }

/* ---------- cards, lists and tags ---------- */
.card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 12px;
}
.card-purple { background: linear-gradient(135deg, var(--purple), var(--violet)); color: #fff; }
.card-purple .muted { color: rgba(255, 255, 255, .85); }
.section-title {
  font-size: 13px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
  color: var(--text-grey); margin: 20px 4px 8px;
}
.list {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  margin-bottom: 16px; overflow: hidden;
}
.list-item {
  display: flex; align-items: center; gap: 14px;
  width: 100%; min-height: 56px; padding: 10px 16px;
  border: 0; background: none; color: inherit; text-align: left; text-decoration: none;
  font: inherit; cursor: pointer;
}
.list-item + .list-item { border-top: 1px solid var(--line); }
.list-item:active { background: var(--bg); }
.list-item > .ic:first-child { color: var(--purple); flex: 0 0 auto; }
.list-item .chev { color: var(--grey); flex: 0 0 auto; width: 20px; height: 20px; }
.list-item .sub { display: block; color: var(--text-grey); font-size: 13px; }
.tag-sample {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: var(--golden); color: var(--navy);
  font: 700 10px/1.7 var(--head); letter-spacing: .6px; text-transform: uppercase;
  vertical-align: middle;
}
.badge {
  display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--orange); color: #fff; font: 700 12px/20px var(--head); text-align: center;
}
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 44px; padding: 0 16px; margin: 0 6px 8px 0;
  border: 1.5px solid #D9DCE8; border-radius: 999px;
  background: #fff; color: var(--navy); font-size: 14px; font-weight: 400; cursor: pointer;
}
.chip[aria-pressed="true"], .chip.on { background: var(--purple); border-color: var(--purple); color: #fff; }

/* Picture tiles: rounded, with a navy fade at the bottom so the white label reads clearly. */
.tile { position: relative; display: block; height: 0; padding-top: 128%; border-radius: var(--radius); overflow: hidden; background: var(--navy); color: #fff; text-decoration: none; }
.tile img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: linear-gradient(rgba(3, 1, 48, 0), rgba(3, 1, 48, .9)); }
.tile .tile-label { position: absolute; left: 10px; right: 8px; bottom: 9px; z-index: 1; font: 600 13px/1.25 var(--head); }

/* ---------- forms ---------- */
.field { margin-bottom: 16px; }
.field > label, .label { display: block; font: 600 14px/1.4 var(--head); margin-bottom: 6px; }
.input {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1.5px solid #D9DCE8; border-radius: 12px; background: #fff; color: var(--navy);
  font: 16px/1.35 var(--body);
}
textarea.input { min-height: 96px; resize: vertical; }
.input::placeholder { color: var(--grey); }
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109, 0, 245, .18); }
.tel { display: flex; }
.tel .prefix {
  display: flex; align-items: center; padding: 0 12px;
  border: 1.5px solid #D9DCE8; border-right: 0; border-radius: 12px 0 0 12px;
  background: var(--bg); font-weight: 600;
}
.tel .input { border-radius: 0 12px 12px 0; }
.code-input { letter-spacing: 12px; font-size: 24px; text-align: center; font-weight: 600; }
.error { color: var(--error); font-size: 14px; margin: 8px 0 0; }
.error:empty { display: none; }
.hint { color: var(--text-grey); font-size: 13px; margin: 6px 0 0; }

/* ---------- tab bar ---------- */
.tabbar {
  flex: 0 0 auto; display: flex;
  background: #fff; border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
}
.tabbar[hidden] { display: none; }
.tab {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-height: 58px; padding: 6px 0 4px; color: var(--grey); text-decoration: none;
}
.tab span { font-size: 11px; font-weight: 600; color: var(--text-grey); }
.tab[aria-current="page"], .tab[aria-current="page"] span { color: var(--violet); }

/* ---------- toast and bottom sheet ---------- */
.toast {
  position: absolute; left: 50%; bottom: 86px; z-index: 60;
  max-width: calc(100% - 32px); padding: 12px 18px;
  border-radius: 12px; background: var(--navy); color: #fff; font-size: 14px;
  box-shadow: var(--shadow-lg);
  opacity: 0; pointer-events: none; transform: translate(-50%, 16px);
  transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.update-toast {
  position: absolute; left: 50%; bottom: 140px; z-index: 61; transform: translateX(-50%);
  min-height: 44px; max-width: calc(100% - 32px); padding: 12px 20px;
  border: 0; border-radius: 12px; background: var(--purple); color: #fff;
  font: inherit; font-size: 14px; font-weight: 600; white-space: nowrap;
  box-shadow: var(--shadow-lg); cursor: pointer;
}
.update-toast:disabled { opacity: .75; cursor: default; }
.sheet-wrap { position: absolute; top: 0; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; flex-direction: column; justify-content: flex-end; }
.scrim { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(3, 1, 48, .55); animation: cova-fade .2s ease; }
.sheet {
  position: relative; max-height: 90%; overflow-y: auto;
  background: #fff; border-radius: 24px 24px 0 0;
  padding: 6px 16px calc(20px + env(safe-area-inset-bottom));
  box-shadow: var(--shadow-lg); animation: cova-up .22s ease;
}
.sheet:focus { outline: none; }
.sheet-grab { width: 40px; height: 5px; border-radius: 3px; background: #D9DCE8; margin: 6px auto 14px; }
.sheet h2 { font-size: 19px; }
@keyframes cova-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes cova-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- welcome ---------- */
.welcome {
  flex: 1 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 28px 24px calc(24px + env(safe-area-inset-bottom));
  background: radial-gradient(120% 60% at 50% 0%, #22066f 0%, rgba(3, 1, 48, 0) 70%), var(--navy);
  color: #fff; text-align: center;
}
.welcome-logo { width: 200px; height: 200px; border-radius: 32px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); margin-bottom: 22px; }
.welcome h1 { font-size: 21px; font-weight: 600; max-width: 300px; }
.welcome-sub { color: var(--grey); max-width: 300px; margin-bottom: 24px; }
.welcome .stack { width: 100%; max-width: 320px; }
.welcome-note { margin: 22px 0 6px; font-size: 13px; color: var(--grey); }
.welcome-note .tag-sample { margin-right: 6px; }
.welcome-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 12px; }
.welcome-links a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 6px; color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* ---------- me, help, about ---------- */
.avatar {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .16); color: #fff; font: 800 20px/1 var(--head);
}
.faq details { background: #fff; border-radius: 14px; box-shadow: var(--shadow); margin-bottom: 10px; }
.faq summary {
  position: relative; min-height: 52px; padding: 14px 48px 14px 16px;
  font: 600 15px/1.4 var(--head); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 11px; font-size: 22px; line-height: 1; color: var(--purple); }
.faq details[open] summary::after { content: '\2212'; }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--text-grey); }
.chat { display: flex; flex-direction: column; gap: 8px; min-height: 140px; margin-bottom: 12px; }
.bubble { max-width: 85%; padding: 10px 14px; border-radius: 16px; font-size: 14px; overflow-wrap: anywhere; }
.bubble.them { align-self: flex-start; background: var(--bg); border-bottom-left-radius: 4px; }
.bubble.me { align-self: flex-end; background: var(--purple); color: #fff; border-bottom-right-radius: 4px; }
.about-logo { width: 88px; height: 88px; border-radius: 20px; margin: 4px auto 14px; }
.version { text-align: center; color: var(--text-grey); font-size: 13px; margin-top: 18px; }

/* ---------- shared bits for the shop, food and pharmacy screens ---------- */
.topbar.root { padding-left: 16px; }
.sub { display: block; color: var(--text-grey); font-size: 13px; font-weight: 400; }
.card-purple .sub { color: rgba(255, 255, 255, .88); }
.chev { flex: 0 0 auto; width: 20px; height: 20px; color: var(--grey); }
.ic.big { display: block; width: 48px; height: 48px; margin: 0 auto 10px; color: var(--grey); }
.ic.ok { color: var(--purple); }
.rating { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--navy); }
.rating .ic { width: 14px; height: 14px; fill: var(--golden); color: #B36B00; }
.meta { display: block; margin-top: 2px; color: var(--text-grey); font-size: 13px; }
.meta .ic { width: 15px; height: 15px; vertical-align: -2px; }
.pad { padding: 16px 16px 28px; }
.rule { border: 0; border-top: 1px solid var(--line); margin: 10px 0; }
.spinner {
  display: inline-block; flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid rgba(109, 0, 245, .2); border-top-color: var(--purple); animation: cova-spin .8s linear infinite;
}
.spinner.big { display: block; width: 48px; height: 48px; border-width: 4px; margin: 6px auto 12px; }
@keyframes cova-spin { to { transform: rotate(360deg); } }
.empty { padding: 32px 20px; }

/* ---------- home ---------- */
.home-hero .icon-btn:active { background: rgba(255, 255, 255, .12); }
.bell, .cart-btn { position: relative; }
.cart-btn .count {
  position: absolute; top: 3px; right: 0; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 999px;
  background: var(--orange); color: #fff; font: 700 11px/18px var(--head); text-align: center;
}
.bell .dot { position: absolute; top: 10px; right: 11px; width: 9px; height: 9px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--navy); }
.hello { color: #fff; font-size: 24px; margin: 12px 0 0; }
.loc {
  display: inline-flex; align-items: center; gap: 4px; min-height: 44px; margin-left: -6px; padding: 0 6px;
  border: 0; border-radius: 10px; background: transparent; color: #fff; font: 600 14px/1 var(--head); cursor: pointer;
}
.loc .ic { width: 18px; height: 18px; }
.loc .ic:first-child { color: var(--golden); }
.search-box {
  display: flex; align-items: center; gap: 10px; min-height: 50px; margin-top: 8px; padding: 0 6px 0 16px;
  border-radius: 999px; background: #fff; color: var(--text-grey); box-shadow: var(--shadow);
}
.search-box:focus-within { outline: 3px solid var(--golden); outline-offset: 2px; }
.search-box > .ic { flex: 0 0 auto; width: 20px; height: 20px; }
.search-input {
  flex: 1 1 auto; min-width: 0; min-height: 48px; padding: 0 8px 0 0;
  border: 0; background: transparent; color: var(--navy); font: 16px/1.3 var(--body);
}
.search-input:focus, .search-input:focus-visible { outline: none; }
.search-input::placeholder { color: var(--text-grey); }
.search-page { margin: 0 0 14px; box-shadow: inset 0 0 0 1.5px #D9DCE8; }
.offer {
  position: relative; display: block; min-height: 88px; margin-top: 14px; overflow: hidden;
  border-radius: var(--radius); background: linear-gradient(100deg, var(--golden), var(--orange));
  color: var(--navy); text-decoration: none;
}
.offer img {
  position: absolute; top: 0; right: 0; width: 36%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 45%); mask-image: linear-gradient(90deg, transparent, #000 45%);
}
.offer-text { position: relative; display: block; padding: 14px 38% 14px 16px; font: 400 14px/1.35 var(--body); }
.offer-text strong { display: block; font: 800 18px/1.2 var(--head); letter-spacing: .3px; }
.offer-sub { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; }
.active-order { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; box-shadow: var(--shadow), inset 4px 0 0 var(--orange); }
.active-order > .ic:first-child { flex: 0 0 auto; color: var(--orange); }
.active-order strong, .survey-card strong { display: block; font: 600 15px/1.3 var(--head); }
.h-section { font-size: 17px; margin: 20px 2px 10px; }
.h-row { margin: 20px 2px 10px; }
.h-row .h-section { margin: 0; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.hscroll {
  display: flex; gap: 12px; margin: 0 -16px; padding: 2px 16px 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
.hscroll::-webkit-scrollbar { display: none; }
.pop {
  flex: 0 0 152px; scroll-snap-align: start; overflow: hidden;
  border-radius: var(--radius); background: #fff; box-shadow: var(--shadow); color: inherit; text-decoration: none;
}
.pop img { width: 100%; height: 96px; object-fit: cover; }
.pop-body { display: block; padding: 10px 12px 12px; }
.pop-name { display: block; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 14px/1.3 var(--head); }
.pop-meta { display: block; margin-bottom: 6px; color: var(--text-grey); font-size: 13px; }
.survey-card { display: flex; align-items: center; gap: 12px; margin-top: 8px; text-decoration: none; }
.survey-card > .ic { flex: 0 0 auto; }
.list-item.is-off { color: var(--text-grey); cursor: default; }
.list-item.is-off > .ic:first-child { color: var(--grey); }
.soon { flex: 0 0 auto; color: var(--text-grey); font: 600 12px/1.3 var(--head); }

/* ---------- category and business pages ---------- */
.cover { position: relative; flex: 0 0 auto; height: 200px; overflow: hidden; background: var(--navy); color: #fff; }
.cover img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.cover::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 75%; background: linear-gradient(rgba(3, 1, 48, 0), rgba(3, 1, 48, .92)); }
.cover-back { position: absolute; z-index: 2; left: 8px; top: max(8px, env(safe-area-inset-top)); background: rgba(3, 1, 48, .55); color: #fff; }
.cover-back:active { background: rgba(3, 1, 48, .8); }
.cover-text { position: absolute; z-index: 1; left: 16px; right: 16px; bottom: 14px; }
.cover-text h1 { color: #fff; margin: 0 0 2px; }
.cover-text p { margin: 0; color: rgba(255, 255, 255, .9); font-size: 14px; }
.biz-row { display: flex; align-items: center; gap: 12px; padding: 12px; color: inherit; text-decoration: none; }
.thumb { flex: 0 0 auto; width: 72px; height: 72px; border-radius: 12px; object-fit: cover; }
.thumb.sm { width: 56px; height: 56px; }
.biz-name { font: 600 15px/1.3 var(--head); }
.pad > .biz-info:first-child { position: relative; z-index: 1; margin-top: -52px; }
.biz-info h1 { font-size: 21px; margin-right: 4px; }
.fav { color: var(--text-grey); }
.fav:active { background: var(--bg); }
.fav.on { color: var(--orange); }
.fav.on .ic { fill: var(--orange); }
.note {
  display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; padding: 12px 14px;
  border-radius: 12px; background: rgba(255, 155, 0, .16); font-size: 14px;
}
.note > .ic { flex: 0 0 auto; width: 20px; height: 20px; margin-top: 1px; }
.rx-tag {
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: rgba(246, 53, 20, .1); color: var(--error); font: 600 11px/1.7 var(--head); white-space: nowrap;
}
.product { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 16px; }
.product + .product { border-top: 1px solid var(--line); }
.p-name { margin: 0 0 2px; font: 600 15px/1.35 var(--head); }
.p-price { margin: 4px 0 0; font-weight: 600; }
.btn-add { flex: 0 0 auto; padding: 0 14px 0 10px; gap: 4px; }
.btn-add .ic { width: 18px; height: 18px; }
.stepper { flex: 0 0 auto; display: inline-flex; align-items: center; border-radius: 999px; background: var(--bg); }
.step-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: transparent; color: var(--purple); cursor: pointer;
}
.step-btn:active { background: var(--line); }
.step-btn .ic { width: 20px; height: 20px; }
.step-n { min-width: 22px; text-align: center; font: 600 15px/1 var(--head); }
.cart-bar {
  position: sticky; bottom: 12px; z-index: 4; display: flex; align-items: center; gap: 12px;
  min-height: 56px; margin-top: 8px; padding: 0 20px 0 14px;
  border-radius: 999px; background: var(--purple); color: #fff; text-decoration: none;
  font: 600 16px/1.2 var(--head); box-shadow: var(--shadow-lg);
}
.cart-bar .badge { background: #fff; color: var(--purple); }

/* ---------- cart, prescription, checkout and payment ---------- */
.rx-card { display: flex; align-items: flex-start; gap: 12px; }
.rx-card > .ic { flex: 0 0 auto; width: 28px; height: 28px; color: var(--purple); }
.rx-card.need { box-shadow: var(--shadow), inset 4px 0 0 var(--orange); }
.rx-card h2 { font-size: 16px; }
.rx-card .btn { margin-top: 4px; }
.rx-photo {
  display: flex; align-items: center; gap: 10px; margin: 4px 0 16px; padding: 18px;
  border: 2px dashed #D9DCE8; border-radius: 14px; color: var(--text-grey); font-size: 14px;
}
.sum-row { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; }
.sum-row.total { margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line); font: 600 17px/1.3 var(--head); }
.choice-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 12px; }
.choice {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 84px; padding: 12px;
  border: 2px solid var(--line); border-radius: 14px; background: #fff; color: var(--navy); text-align: left; cursor: pointer;
}
.choice[aria-pressed="true"] { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(109, 0, 245, .14); }
.choice > .ic { color: var(--purple); }
.choice strong { display: block; font: 600 15px/1.3 var(--head); }
.fee-line { display: flex; align-items: center; gap: 8px; margin: 12px 0 0; font-size: 14px; }
.fee-line .ic { flex: 0 0 auto; width: 20px; height: 20px; color: var(--purple); }
.promo { padding: 10px; gap: 8px; }
.promo .input { min-height: 44px; }
.promo .btn { flex: 0 0 auto; min-height: 44px; padding: 0 16px; }
.promo-msg { margin: -4px 4px 8px; }
.promo-msg .ic { width: 16px; height: 16px; vertical-align: -3px; }
.pay-opt { cursor: pointer; }
.pay-opt input { flex: 0 0 auto; width: 22px; height: 22px; margin: 0; accent-color: var(--purple); }
.pay-card { padding: 22px 16px; }
.pay-amount { margin: 4px 0; font: 800 34px/1.2 var(--head); }

/* ---------- tracking and orders ---------- */
.track-stage { margin: 4px 0; color: var(--purple); font-size: 22px; font-weight: 800; }
.track-head .ic { width: 15px; height: 15px; vertical-align: -2px; }
.steps { list-style: none; margin: 0 0 14px; padding: 6px 16px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li { position: relative; display: flex; align-items: center; gap: 12px; min-height: 44px; color: var(--text-grey); }
.steps li + li::before { content: ''; position: absolute; left: 13px; top: -8px; width: 2px; height: 16px; background: var(--line); }
.steps li.done + li::before { background: var(--purple); }
.step-dot {
  position: relative; z-index: 1; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; background: #fff; color: var(--purple);
}
.step-dot .ic { width: 16px; height: 16px; }
.steps li.done, .steps li.now { color: var(--navy); }
.steps li.now { font-weight: 600; }
.steps li.done .step-dot { border-color: var(--purple); background: var(--purple); color: #fff; }
.steps li.now .step-dot { border-color: var(--purple); box-shadow: 0 0 0 4px rgba(109, 0, 245, .15); }
.rider-pic { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.rider strong { font: 600 15px/1.3 var(--head); }
.call { color: var(--purple); background: rgba(109, 0, 245, .1); }
.call:active { background: rgba(109, 0, 245, .2); }
.route { display: block; width: 100%; height: auto; margin: 0 0 16px; border-radius: var(--radius); box-shadow: var(--shadow); }
.stars { display: flex; justify-content: center; gap: 2px; }
.star-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: transparent; color: #B36B00; cursor: pointer;
}
.star-btn .ic { width: 32px; height: 32px; }
.star-btn:hover .ic, .star-btn:focus-visible .ic { fill: var(--golden); }
.order-row strong { font: 600 15px/1.3 var(--head); }
.order-row .status {
  flex: 0 0 auto; max-width: 42%; padding: 4px 10px; border-radius: 999px;
  background: rgba(109, 0, 245, .1); color: var(--purple); font: 600 12px/1.3 var(--head); text-align: center;
}
.order-row .status.done { background: var(--bg); color: var(--text-grey); }

/* ---------- event planning, tickets and parcels ---------- */
.event-row { display: flex; align-items: center; gap: 12px; padding: 12px; color: inherit; text-decoration: none; }
.date-block {
  flex: 0 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center;
  width: 60px; height: 64px; border-radius: 12px; background: var(--purple); color: #fff;
}
.date-block .d { font: 800 24px/1 var(--head); }
.date-block .m { margin-top: 3px; font: 600 12px/1 var(--head); text-transform: uppercase; letter-spacing: .6px; }
.ticket-opt strong { flex: 0 0 auto; }
.radio-dot { flex: 0 0 auto; width: 22px; height: 22px; border: 2px solid var(--grey); border-radius: 50%; background: #fff; }
.ticket-opt[aria-pressed="true"] { background: rgba(109, 0, 245, .06); }
.ticket-opt[aria-pressed="true"] .radio-dot { border: 7px solid var(--purple); }
.step-btn[disabled] { color: var(--grey); cursor: default; }
.step-btn[disabled]:active { background: transparent; }
.choice-row.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.choice-row.three .choice { padding: 10px; }
.choice-row.three .sub { font-size: 12px; line-height: 1.3; }
.quote-amount { margin: 10px 0 2px; color: var(--purple); font: 800 30px/1.2 var(--head); }
.booked { display: flex; align-items: flex-start; gap: 8px; margin: 10px 0 0; color: var(--navy); font-weight: 600; }
.booked .ic { flex: 0 0 auto; color: var(--purple); }
.ticket { margin-bottom: 16px; padding: 18px 16px; border-radius: var(--radius); background: #fff; box-shadow: var(--shadow), inset 0 6px 0 var(--purple); text-align: center; }
.ticket-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ticket .brand { color: var(--navy); }
.ticket h2 { margin: 6px 0 2px; }
.ticket .sum-row { margin-top: 10px; text-align: left; }
.ticket-qr { display: flex; justify-content: center; margin: 12px 0 6px; }
.ticket-qr svg { display: block; width: 200px; max-width: 100%; height: auto; }
.qr-missing { max-width: 240px; margin: 0; padding: 16px; border: 2px dashed #D9DCE8; border-radius: 14px; color: var(--text-grey); font-size: 14px; }
.ticket-code { margin: 4px 0 0; font: 800 22px/1.3 var(--head); letter-spacing: 1.5px; color: var(--navy); overflow-wrap: anywhere; }

/* ---------- business dashboard and rider shift ---------- */
.tag-mine {
  display: inline-block; padding: 1px 8px; border-radius: 999px; background: var(--purple); color: #fff;
  font: 700 10px/1.7 var(--head); letter-spacing: .6px; text-transform: uppercase; vertical-align: middle;
}
.order-card > .row:first-child { align-items: flex-start; margin-bottom: 6px; }
.order-card .row .btn, .rider-job .row .btn { flex: 1 1 0; }
.order-card .status {
  flex: 0 0 auto; max-width: 45%; padding: 4px 10px; border-radius: 999px;
  background: rgba(109, 0, 245, .1); color: var(--purple); font: 600 12px/1.3 var(--head); text-align: center;
}
.order-card .status.done { background: var(--bg); color: var(--text-grey); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.stats.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat strong { display: block; font: 800 19px/1.25 var(--head); color: var(--navy); overflow-wrap: anywhere; }
.stat span { color: var(--text-grey); font-size: 13px; }
.link-text { flex: 0 0 auto; color: var(--purple); font-weight: 600; }

/* ---------- survey ---------- */
.consent { text-align: center; }
.consent-text { margin: 0; font-size: 17px; line-height: 1.5; }
.again { box-shadow: var(--shadow), inset 4px 0 0 var(--golden); }
.progress {
  display: block; width: 100%; height: 8px; margin: 4px 0 8px; border: 0; border-radius: 999px;
  background: var(--line); color: var(--purple); -webkit-appearance: none; appearance: none; overflow: hidden;
}
.progress::-webkit-progress-bar { background: var(--line); border-radius: 999px; }
.progress::-webkit-progress-value { background: var(--purple); border-radius: 999px; }
.progress::-moz-progress-bar { background: var(--purple); border-radius: 999px; }
.q-count { margin: 0 0 4px; }
.q-text { margin: 4px 0 8px; font-size: 20px; line-height: 1.35; }
.q-hint { margin: 0 0 8px; }
.opts { margin-top: 10px; }
.opt { min-height: 56px; }
.opt[aria-pressed="true"] { background: rgba(109, 0, 245, .06); }
.opt[aria-pressed="true"] .radio-dot { border: 7px solid var(--purple); }
.check-dot {
  flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border: 2px solid var(--grey); border-radius: 6px; background: #fff; color: #fff;
}
.check-dot .ic { width: 16px; height: 16px; }
.opt[aria-pressed="true"] .check-dot { border-color: var(--purple); background: var(--purple); }
.survey-nav { margin-top: 8px; }
.done-card h2 { margin: 4px 0 6px; }

/* ---------- a laptop or projector: the app in a phone frame on navy ---------- */
@media (min-width: 600px) and (min-height: 600px) {
  body {
    background:
      radial-gradient(1100px 600px at 85% -10%, rgba(165, 43, 255, .38), rgba(165, 43, 255, 0) 60%),
      radial-gradient(800px 500px at -5% 110%, rgba(246, 53, 20, .20), rgba(246, 53, 20, 0) 60%),
      var(--navy);
    background-attachment: fixed;
  }
  .stage { display: flex; align-items: center; justify-content: center; gap: 64px; min-height: 100vh; padding: 20px; }
  .phone {
    flex: 0 0 390px; width: 390px; height: 844px; max-height: calc(100vh - 40px);
    border: 10px solid #0b0a2b; border-radius: 46px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 2px rgba(165, 43, 255, .45);
  }
}
@media (min-width: 960px) and (min-height: 600px) {
  .stage-side { display: block; width: 300px; color: #fff; }
  .side-logo { width: 168px; height: 168px; border-radius: 32px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); margin-bottom: 20px; }
  .side-tag { font: 600 20px/1.35 var(--head); margin: 6px 0 10px; }
  .side-note { color: var(--grey); font-size: 14px; }
  .side-qr { width: 176px; padding: 12px; margin: 22px 0 10px; background: #fff; border-radius: 18px; }
  .side-qr svg { display: block; width: 100%; height: auto; }
  .side-link { color: var(--grey); font-size: 14px; overflow-wrap: anywhere; }
  .side-link span { color: #fff; font-weight: 600; }
}

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

/* ---------- group area and results ---------- */
.pin-badge { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 8px; border-radius: 50%; background: rgba(109, 0, 245, .1); color: var(--purple); }
.pin-badge .ic { width: 26px; height: 26px; }
.pin-input { font-size: 22px; letter-spacing: 6px; text-align: center; }
.switch-row { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.switch-row .sub { display: block; margin-top: 2px; }
.switch { -webkit-appearance: none; appearance: none; position: relative; flex: 0 0 auto; width: 56px; height: 44px; margin: 0; border: 0; background: none; cursor: pointer; }
.switch::before { content: ""; position: absolute; left: 2px; top: 6px; width: 52px; height: 32px; border-radius: 999px; background: var(--text-grey); transition: background .2s; }
.switch::after { content: ""; position: absolute; left: 5px; top: 9px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(3, 1, 48, .3); transition: transform .2s; }
.switch:checked::before { background: var(--purple); }
.switch:checked::after { transform: translateX(20px); }
.switch:focus-visible { outline: 3px solid var(--violet); outline-offset: 0; border-radius: 999px; }
.figs .fig-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; }
.figs .fig-row:first-child { padding-top: 0; }
.figs .fig-row:last-child { padding-bottom: 0; }
.figs .fig-row + .fig-row { border-top: 1px solid var(--line); }
.fig-row > span { color: var(--text-grey); font-size: 14px; }
.fig-row > strong { text-align: right; color: var(--navy); font: 600 15px/1.35 var(--head); overflow-wrap: anywhere; }
.qbars h3 { color: var(--navy); }
.bars { margin: 12px 0 0; padding: 0; list-style: none; }
.bars li + li { margin-top: 10px; }
.bar-label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; }
.bar-value { flex: 0 0 auto; color: var(--navy); font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-track { display: block; height: 10px; margin-top: 4px; border-radius: 0 4px 4px 0; background: var(--bg); overflow: hidden; }
.bar-fill { display: block; width: 0; height: 100%; border-radius: 0 4px 4px 0; background: var(--purple); }
.open-list { margin: 6px 0 14px; padding-left: 18px; }
.open-list:last-child { margin-bottom: 0; }
.open-list li + li { margin-top: 6px; }
.answer .row { align-items: baseline; }
.answer .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tag-soft { padding: 1px 10px; border-radius: 999px; background: var(--bg); color: var(--text-grey); font: 600 12px/1.7 var(--head); }
.tag-soft.is-removed { background: rgba(179, 38, 14, .1); color: var(--error); }
.answer.is-removed { border: 2px dashed var(--line); box-shadow: none; }
.answer-preview { margin: 8px 0 12px; color: var(--text-grey); font-size: 14px; }
.stale-note { margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--error); font-size: 14px; }
.share-qr { display: flex; justify-content: center; margin-bottom: 10px; }
.share-qr svg { display: block; width: 240px; max-width: 100%; height: auto; }
