/* TRIVAAH app — quick-commerce style, brand blue */
:root {
  --ink: #052744; --deep: #073b66; --ocean: #0661b0; --aqua: #12b5e5; --glow: #7fe6ff; --ice: #ecfbff; --bg: #f2f8fc;
  --text: #183a52; --muted: #6a8597; --line: #e2edf5; --green: #0c9b5c; --greenbg: #e6f7ef; --red: #d93a4a; --amber: #b86e00;
  --r: 18px; --shadow: 0 10px 30px -14px rgba(6, 70, 130, .35);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: #dfeef8; }
body { font: 14px/1.5 "Poppins", system-ui, sans-serif; color: var(--text); -webkit-font-smoothing: antialiased; }
#app { max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: calc(76px + var(--safe-b)); box-shadow: 0 0 60px -20px rgba(6, 70, 130, .3); }
h1, h2, h3, h4 { font-family: "Outfit", sans-serif; color: var(--ink); margin: 0; letter-spacing: -.01em; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: var(--text); }
svg { flex: none; }
[hidden] { display: none !important; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 30; padding: 12px 14px 12px; color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 10px 8px;
  background: radial-gradient(260px 140px at 90% 0%, rgba(127, 230, 255, .45), transparent 70%), linear-gradient(135deg, #0a4f8f, var(--ocean) 55%, #12a3dc); }
.loc { text-align: left; color: #fff; min-width: 0; }
.loc .eta { display: block; font: 800 1.15rem "Outfit", sans-serif; line-height: 1.1; }
.loc .where { display: flex; align-items: center; gap: 4px; font-size: .8rem; opacity: .95; min-width: 0; }
.loc .where b { font-weight: 600; white-space: nowrap; }
.loc .where span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .18); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); align-self: center; }
.search { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; background: #fff; color: var(--muted); border-radius: 14px; padding: 0 12px; height: 44px; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, .35); }
.search input { flex: 1; border: 0; outline: 0; background: none; height: 100%; font-size: .92rem; }

/* ---------- home ---------- */
.notserved { margin: 12px 14px 0; padding: 12px 14px; border-radius: 14px; background: #fff4e5; color: #7a4a00; font-size: .85rem; display: flex; gap: 10px; align-items: center; }
.notserved button { margin-left: auto; flex: none; font-weight: 600; color: var(--ocean); background: #fff; border-radius: 10px; padding: 7px 12px; }
.banners { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 14px 14px 4px; scrollbar-width: none; }
.banners::-webkit-scrollbar { display: none; }
.banner { flex: 0 0 88%; scroll-snap-align: center; height: 150px; border-radius: 20px; position: relative; overflow: hidden; color: #fff; padding: 18px; display: flex; flex-direction: column; justify-content: center; box-shadow: var(--shadow); }
.banner h3 { color: #fff; font-size: 1.35rem; line-height: 1.1; max-width: 60%; }
.banner p { margin: 6px 0 10px; font-size: .78rem; max-width: 58%; opacity: .92; }
.banner .go { align-self: flex-start; background: #fff; color: var(--ink); font-weight: 600; font-size: .78rem; padding: 6px 14px; border-radius: 999px; }
.banner .art { position: absolute; right: 10px; bottom: -8px; height: 118%; max-width: 44%; display: flex; align-items: flex-end; justify-content: flex-end; gap: 2px; pointer-events: none; }
.banner .art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; object-position: bottom; filter: drop-shadow(0 10px 14px rgba(0, 0, 0, .3)); }
.banner::after { content: ""; position: absolute; inset: 0; background: radial-gradient(160px 120px at 80% 30%, rgba(255, 255, 255, .25), transparent 70%); pointer-events: none; }
.b1 { background: linear-gradient(135deg, #0a4f8f, #12a3dc); }
.b2 { background: linear-gradient(135deg, #075e54, #19b38a); }
.b3 { background: linear-gradient(135deg, #b8560a, #f2a91c); }
.b4 { background: linear-gradient(135deg, #0b1f35, #3a5a7c); }
.dots { display: flex; justify-content: center; gap: 5px; margin: 6px 0 0; }
.dots i { width: 6px; height: 6px; border-radius: 3px; background: #c4dcec; transition: .3s; }
.dots i.on { width: 18px; background: var(--ocean); }
.sec { padding: 18px 14px 4px; }
.sec-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.sec-h h2 { font-size: 1.12rem; }
.sec-h a { color: var(--ocean); font-weight: 600; font-size: .82rem; }
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat { background: #fff; border-radius: 16px; padding: 10px 6px 8px; text-align: center; box-shadow: 0 4px 14px -10px rgba(6, 70, 130, .5); }
.cat .ci { height: 74px; border-radius: 12px; display: flex; align-items: flex-end; justify-content: center; background: linear-gradient(180deg, var(--ice), #d8f0fb); padding-top: 6px; overflow: hidden; }
.cat .ci img { height: 92%; }
.cat b { display: block; font: 600 .78rem "Outfit", sans-serif; color: var(--ink); margin-top: 6px; line-height: 1.2; }
.promise { margin: 18px 14px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.promise div { background: #fff; border-radius: 14px; padding: 10px 6px; text-align: center; font-size: .7rem; color: var(--muted); }
.promise b { display: block; font: 700 .85rem "Outfit", sans-serif; color: var(--ocean); }

/* ---------- product cards ---------- */
.row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; }
.row::-webkit-scrollbar { display: none; }
.row .card { flex: 0 0 148px; }
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 420px) { .grid { grid-template-columns: repeat(3, 1fr); } }
.card { background: #fff; border-radius: 16px; padding: 8px 8px 10px; position: relative; display: flex; flex-direction: column; box-shadow: 0 4px 14px -10px rgba(6, 70, 130, .5); }
.card .pi { height: 128px; border-radius: 12px; background: linear-gradient(180deg, #f5fbff, #e3f3fb); display: flex; align-items: flex-end; justify-content: center; padding-top: 8px; position: relative; overflow: hidden; }
.card .pi img { height: 94%; max-width: 92%; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(6, 70, 130, .2)); }
.card.out .pi img { filter: grayscale(.8) opacity(.6); }
.off { position: absolute; left: 0; top: 0; background: #2f6fde; color: #fff; font: 700 .65rem "Outfit", sans-serif; padding: 4px 7px; border-radius: 12px 0 10px 0; letter-spacing: .02em; }
.stk { position: absolute; right: 6px; bottom: 6px; font-size: .62rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: var(--green); }
.stk.low { color: var(--amber); }
.stk.no { color: var(--red); }
.card .eta2 { margin-top: 6px; display: inline-flex; align-items: center; gap: 3px; font-size: .62rem; font-weight: 600; color: var(--muted); background: var(--bg); border-radius: 6px; padding: 1px 6px; align-self: flex-start; }
.card h4 { font: 600 .82rem/1.25 "Outfit", sans-serif; margin: 5px 0 2px; color: var(--ink); min-height: 2.5em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card .pk { font-size: .7rem; color: var(--muted); }
.card .bot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 8px; }
.pr b { display: block; font: 700 .9rem "Outfit", sans-serif; color: var(--ink); line-height: 1.1; }
.pr s { font-size: .68rem; color: var(--muted); }
.add { min-width: 66px; height: 32px; border-radius: 9px; border: 1.5px solid var(--green); color: var(--green); background: #f3fbf7; font: 700 .8rem "Outfit", sans-serif; letter-spacing: .04em; }
.add:disabled { border-color: #cfd8de; color: #9aa9b3; background: #f4f6f8; }
.step { display: inline-flex; align-items: center; height: 32px; border-radius: 9px; background: var(--green); color: #fff; font: 700 .85rem "Outfit", sans-serif; overflow: hidden; }
.step button { width: 26px; height: 100%; color: #fff; font-size: 1.05rem; }
.step span { min-width: 18px; text-align: center; }
.step.big { height: 40px; border-radius: 12px; }
.step.big button { width: 40px; }
.step.big span { min-width: 30px; font-size: 1rem; }

/* ---------- list pages ---------- */
.page { padding: 14px; }
.page-h { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.page-h h1 { font-size: 1.25rem; }
.back { width: 36px; height: 36px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: 0 4px 12px -8px rgba(6, 70, 130, .6); }
.chips { display: flex; gap: 8px; overflow-x: auto; margin-bottom: 12px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; padding: 7px 14px; border-radius: 999px; background: #fff; font-size: .8rem; font-weight: 500; box-shadow: inset 0 0 0 1px var(--line); }
.chip.on { background: var(--ink); color: #fff; box-shadow: none; }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; }
.empty h3 { margin: 8px 0 4px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 14px; background: linear-gradient(135deg, #12a3dc, var(--ocean)); color: #fff; font: 600 .95rem "Outfit", sans-serif; box-shadow: 0 10px 22px -10px rgba(6, 97, 176, .8); }
.btn.green { background: linear-gradient(135deg, #12b16b, #0a8a52); box-shadow: 0 10px 22px -10px rgba(12, 155, 92, .8); }
.btn.ghost { background: #fff; color: var(--ocean); box-shadow: inset 0 0 0 1.5px var(--ocean); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .55; }
.box { background: #fff; border-radius: var(--r); padding: 14px; margin-bottom: 12px; box-shadow: 0 4px 14px -12px rgba(6, 70, 130, .6); }
.box h3 { font-size: 1rem; margin-bottom: 10px; }

/* ---------- product sheet ---------- */
.sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.sheet-bg { position: absolute; inset: 0; background: rgba(3, 20, 40, .55); animation: fade .25s; }
.sheet-card { position: relative; width: 100%; max-width: 520px; max-height: 92vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); animation: up .32s cubic-bezier(.2, .8, .2, 1); }
.sheet-card .grab { width: 44px; height: 5px; border-radius: 3px; background: #d7e3ec; margin: -6px auto 12px; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
.pd-img { height: 270px; border-radius: 20px; background: radial-gradient(220px 160px at 50% 35%, #fff, transparent 70%), linear-gradient(180deg, #eaf7fe, #cfeaf8); display: flex; align-items: flex-end; justify-content: center; padding-top: 14px; }
.pd-img img { height: 94%; filter: drop-shadow(0 16px 18px rgba(6, 70, 130, .3)); }
.pd h2 { font-size: 1.3rem; margin: 14px 0 2px; }
.pd .pk { color: var(--muted); font-size: .85rem; }
.pd .price { display: flex; align-items: baseline; gap: 8px; margin: 10px 0; }
.pd .price b { font: 800 1.5rem "Outfit", sans-serif; color: var(--ink); }
.pd .price s { color: var(--muted); }
.pd .price em { font-style: normal; font-size: .75rem; font-weight: 700; color: #2f6fde; background: #e8f0ff; padding: 2px 8px; border-radius: 6px; }
.pd .inc { font-size: .72rem; color: var(--muted); margin-top: -6px; }
.pd .stockline { display: flex; align-items: center; gap: 8px; margin: 12px 0; font-size: .85rem; font-weight: 600; }
.pd .stockline i { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px var(--greenbg); }
.pd .stockline.low i { background: var(--amber); box-shadow: 0 0 0 4px #fff2dc; }
.pd .stockline.no i { background: var(--red); box-shadow: 0 0 0 4px #fde8ea; }
.pd ul { padding-left: 18px; color: var(--muted); font-size: .85rem; }
.pd .act { position: sticky; bottom: -18px; background: #fff; padding: 12px 0 4px; display: flex; gap: 10px; align-items: center; }
.pd .act .btn { flex: 1; }

/* ---------- location sheet ---------- */
.locsheet h2 { font-size: 1.25rem; }
.locsheet p { color: var(--muted); font-size: .85rem; margin: 4px 0 14px; }
.pinrow { display: flex; gap: 8px; }
.pinrow input { flex: 1; height: 50px; border-radius: 14px; border: 1.5px solid var(--line); padding: 0 14px; font: 600 1.1rem "Outfit", sans-serif; letter-spacing: .2em; outline: 0; }
.pinrow input:focus { border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(6, 97, 176, .12); }
.gps { display: flex; align-items: center; gap: 10px; width: 100%; margin: 12px 0; padding: 12px 14px; border-radius: 14px; background: var(--ice); color: var(--ocean); font-weight: 600; font-size: .88rem; text-align: left; }
.areas { display: grid; gap: 8px; margin-top: 8px; max-height: 40vh; overflow-y: auto; }
.area { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; width: 100%; }
.area.on { box-shadow: inset 0 0 0 2px var(--ocean); background: var(--ice); }
.area .pin { font: 700 .95rem "Outfit", sans-serif; color: var(--ink); }
.area small { display: block; color: var(--muted); font-size: .75rem; }
.area .tag { margin-left: auto; font-size: .7rem; font-weight: 600; color: var(--green); background: var(--greenbg); padding: 3px 8px; border-radius: 999px; white-space: nowrap; }
.msg { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-size: .85rem; }
.msg.ok { background: var(--greenbg); color: #086b40; }
.msg.bad { background: #fdecee; color: #a3202f; }

/* ---------- login ---------- */
.auth { position: fixed; inset: 0; z-index: 80; display: flex; justify-content: center; background: #dfeef8; overflow-y: auto; }
.auth-in { width: 100%; max-width: 520px; min-height: 100%; background: #fff; display: flex; flex-direction: column; }
.auth-hero { position: relative; padding: 46px 24px 70px; color: #fff; text-align: center; overflow: hidden;
  background: radial-gradient(300px 200px at 85% 0%, rgba(127, 230, 255, .5), transparent 70%), linear-gradient(160deg, #073b66, var(--ocean) 60%, #12a3dc); }
.auth-hero .logo { width: 84px; height: 84px; margin: 0 auto 12px; border-radius: 26px; background: #fff; display: grid; place-items: center; box-shadow: 0 16px 34px -12px rgba(0, 0, 0, .45); }
.auth-hero h1 { color: #fff; font-size: 2rem; letter-spacing: .22em; padding-left: .22em; }
.auth-hero p { margin: 4px 0 0; color: #cdeeff; font-size: .9rem; }
.auth-hero .bottles { display: flex; justify-content: center; align-items: flex-end; gap: 6px; height: 120px; margin-top: 18px; }
.auth-hero .bottles img { height: 100%; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .3)); animation: bob 4s ease-in-out infinite; }
.auth-hero .bottles img:nth-child(2) { height: 80%; animation-delay: -1s; }
.auth-hero .bottles img:nth-child(3) { height: 62%; animation-delay: -2s; }
@keyframes bob { 50% { transform: translateY(-6px); } }
.auth-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 40px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 40' preserveAspectRatio='none'%3E%3Cpath d='M0 20C70 0 130 0 200 20S330 40 400 20V40H0z' fill='%23fff'/%3E%3C/svg%3E") 0 0 / 100% 100%; }
.auth-body { padding: 4px 22px 30px; flex: 1; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: var(--bg); border-radius: 14px; padding: 4px; margin-bottom: 16px; }
.seg button { height: 40px; border-radius: 11px; font-weight: 600; color: var(--muted); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(6, 70, 130, .5); }
.f { margin-bottom: 12px; }
.f label { display: block; font-size: .75rem; font-weight: 600; color: var(--ink); margin-bottom: 5px; }
.f input, .f textarea, .f select { width: 100%; height: 48px; border-radius: 13px; border: 1.5px solid var(--line); padding: 0 14px; outline: 0; background: #fff; font-size: .95rem; }
.f textarea { height: 76px; padding: 10px 14px; resize: none; }
.f input:focus, .f textarea:focus { border-color: var(--ocean); box-shadow: 0 0 0 4px rgba(6, 97, 176, .1); }
.f .ph { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 13px; overflow: hidden; }
.f .ph span { padding: 0 10px 0 14px; font-weight: 600; color: var(--ink); }
.f .ph input { border: 0; border-radius: 0; padding-left: 4px; }
.f .ph:focus-within { border-color: var(--ocean); }
.f2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.err { color: var(--red); font-size: .82rem; min-height: 1.2em; margin: 2px 0 8px; }
.small { font-size: .78rem; color: var(--muted); text-align: center; margin-top: 14px; }
.small a, .link { color: var(--ocean); font-weight: 600; }
.skip { position: absolute; top: 14px; right: 14px; z-index: 2; color: #fff; font-size: .82rem; font-weight: 600; background: rgba(255, 255, 255, .18); padding: 6px 14px; border-radius: 999px; }

/* ---------- cart ---------- */
.ci-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ci-row:last-child { border-bottom: 0; }
.ci-row .ti { width: 56px; height: 64px; border-radius: 12px; background: linear-gradient(180deg, #f5fbff, #e3f3fb); display: flex; align-items: flex-end; justify-content: center; flex: none; }
.ci-row .ti img { height: 90%; }
.ci-row .nm { flex: 1; min-width: 0; }
.ci-row .nm b { display: block; font: 600 .85rem "Outfit", sans-serif; color: var(--ink); }
.ci-row .nm small { color: var(--muted); font-size: .72rem; }
.ci-row .amt { text-align: right; min-width: 64px; }
.ci-row .amt b { display: block; font: 700 .9rem "Outfit", sans-serif; }
.ci-row .amt s { font-size: .7rem; color: var(--muted); }
.ci-row .warn { display: block; color: var(--red); font-size: .7rem; font-weight: 600; }
.bill div { display: flex; justify-content: space-between; padding: 4px 0; font-size: .86rem; }
.bill .save { color: var(--green); font-weight: 600; }
.bill .tot { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; font: 700 1rem "Outfit", sans-serif; color: var(--ink); }
.savebar { background: var(--greenbg); color: #086b40; border-radius: 12px; padding: 9px 12px; font-size: .82rem; font-weight: 600; margin-bottom: 12px; text-align: center; }
.addr { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 14px; box-shadow: inset 0 0 0 1px var(--line); margin-bottom: 8px; width: 100%; text-align: left; }
.addr.on { box-shadow: inset 0 0 0 2px var(--ocean); background: var(--ice); }
.addr .rd { width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #b9cbd8; flex: none; margin-top: 2px; }
.addr.on .rd { box-shadow: inset 0 0 0 5px var(--ocean); }
.addr b { font-family: "Outfit", sans-serif; color: var(--ink); }
.addr small { display: block; color: var(--muted); font-size: .78rem; line-height: 1.4; }
.addr .tg { font-size: .65rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ocean); background: #e3f2fb; padding: 2px 7px; border-radius: 5px; margin-left: 6px; }
.slots { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.slot { padding: 10px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); font-size: .78rem; text-align: left; line-height: 1.3; }
.slot b { display: block; font-family: "Outfit", sans-serif; color: var(--ink); font-size: .85rem; }
.slot.on { box-shadow: inset 0 0 0 2px var(--ocean); background: var(--ice); }
.pays { display: grid; gap: 8px; }
.pay { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; box-shadow: inset 0 0 0 1px var(--line); text-align: left; }
.pay.on { box-shadow: inset 0 0 0 2px var(--ocean); background: var(--ice); }
.pay .ic { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: #fff; box-shadow: 0 3px 8px -4px rgba(6, 70, 130, .5); font-size: 1.1rem; }
.placebar { position: sticky; bottom: calc(66px + var(--safe-b)); z-index: 20; margin: 0 -14px; padding: 10px 14px; background: linear-gradient(180deg, rgba(242, 248, 252, 0), var(--bg) 30%); }
.placebar .btn { width: 100%; justify-content: space-between; height: 56px; }
.placebar .btn small { display: block; font-size: .7rem; opacity: .85; font-weight: 500; text-align: left; }

/* ---------- orders ---------- */
.ord { display: block; }
.ord .top2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.ord .top2 b { font-family: "Outfit", sans-serif; color: var(--ink); }
.ord .meta { font-size: .76rem; color: var(--muted); margin-top: 2px; }
.ord .thumbs { display: flex; gap: 6px; margin-top: 10px; }
.ord .thumbs span { width: 44px; height: 50px; border-radius: 10px; background: linear-gradient(180deg, #f5fbff, #e3f3fb); display: flex; align-items: flex-end; justify-content: center; }
.ord .thumbs img { height: 88%; }
.pill { font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; white-space: nowrap; }
.s-placed { background: #e8f0ff; color: #2f5fc4; } .s-confirmed { background: #e3f6fd; color: #0a7ba8; } .s-packed { background: #fff2dc; color: #9a5b00; }
.s-out_for_delivery { background: #efe6ff; color: #6a35c9; } .s-delivered { background: var(--greenbg); color: #086b40; } .s-cancelled { background: #f2f4f6; color: #7b8a96; }
.tl { position: relative; padding-left: 26px; }
.tl div { position: relative; padding-bottom: 16px; color: var(--muted); font-size: .85rem; }
.tl div::before { content: ""; position: absolute; left: -22px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 2px #c9d8e3; }
.tl div::after { content: ""; position: absolute; left: -16px; top: 18px; bottom: -2px; width: 2px; background: #dbe7ef; }
.tl div:last-child::after { display: none; }
.tl div.done { color: var(--ink); font-weight: 600; }
.tl div.done::before { background: var(--green); box-shadow: 0 0 0 4px var(--greenbg); }
.tl div.done::after { background: var(--green); }
.tl small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; }

/* ---------- success ---------- */
.done-screen { text-align: center; padding: 40px 20px; }
.tick { width: 110px; height: 110px; margin: 10px auto 18px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, #12b16b, #0a8a52); box-shadow: 0 0 0 14px var(--greenbg), 0 20px 40px -12px rgba(12, 155, 92, .6); animation: pop .6s cubic-bezier(.2, 1.6, .4, 1); }
.tick svg { width: 54px; height: 54px; stroke-dasharray: 60; stroke-dashoffset: 60; animation: draw .5s .35s forwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done-screen h1 { font-size: 1.5rem; }
.done-screen p { color: var(--muted); }
.drip { position: fixed; top: -20px; width: 10px; height: 13px; z-index: 90; pointer-events: none; background: radial-gradient(circle at 35% 30%, #fff, #7fe6ff 45%, #0a8ad0); clip-path: path("M5 0C5 0 0 6 0 8.5a5 5 0 0 0 10 0C10 6 5 0 5 0z"); animation: drip linear forwards; }
@keyframes drip { to { transform: translateY(105vh) rotate(20deg); } }

/* ---------- account ---------- */
.prof { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: var(--r); color: #fff; margin-bottom: 12px; background: radial-gradient(200px 120px at 90% 0%, rgba(127, 230, 255, .5), transparent 70%), linear-gradient(135deg, #073b66, var(--ocean)); }
.prof .av { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--ocean); display: grid; place-items: center; font: 800 1.3rem "Outfit", sans-serif; }
.prof h2 { color: #fff; font-size: 1.15rem; }
.prof small { color: #cdeeff; }
.menu a, .menu button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 14px 4px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 500; }
.menu a:last-child, .menu button:last-child { border-bottom: 0; }
.menu .mi { width: 36px; height: 36px; border-radius: 11px; background: var(--ice); display: grid; place-items: center; font-size: 1.05rem; }
.menu .chev { margin-left: auto; color: #a7bac8; }
.menu .danger { color: var(--red); }

/* ---------- cart bar + tabs ---------- */
.cartbar { position: fixed; z-index: 40; left: 50%; transform: translateX(-50%); bottom: calc(74px + var(--safe-b)); width: min(492px, calc(100% - 28px)); display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 16px; color: #fff;
  background: linear-gradient(135deg, #12b16b, #0a8a52); box-shadow: 0 14px 30px -10px rgba(12, 155, 92, .7); animation: up .35s cubic-bezier(.2, .8, .2, 1); }
.cartbar .ci { width: 38px; height: 38px; border-radius: 11px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; }
.cb-txt b { display: block; font: 700 .9rem "Outfit", sans-serif; line-height: 1.1; }
.cb-txt small { font-size: .78rem; opacity: .9; }
.cb-go { margin-left: auto; display: flex; align-items: center; gap: 4px; font: 700 .9rem "Outfit", sans-serif; }
.cartbar.bump { animation: bump .35s; }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.04); } }
.tabs { position: fixed; z-index: 45; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px; display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; padding: 6px 4px calc(6px + var(--safe-b)); box-shadow: 0 -8px 24px -14px rgba(6, 70, 130, .45); border-radius: 18px 18px 0 0; }
.tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .68rem; font-weight: 500; color: #8aa0b0; padding: 4px 0; }
.tabs svg { width: 24px; height: 24px; }
.tabs a.on { color: var(--ocean); font-weight: 700; }
.tabs a.on svg { filter: drop-shadow(0 4px 6px rgba(6, 97, 176, .35)); }
.toast { position: fixed; left: 50%; bottom: calc(150px + var(--safe-b)); transform: translate(-50%, 20px); z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 12px; font-size: .85rem; opacity: 0; pointer-events: none; transition: .3s; max-width: 90%; text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
.skel { background: linear-gradient(90deg, #e8f1f7 25%, #f5f9fc 50%, #e8f1f7 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 14px; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
