body { background: #fff; }
.app { max-width: 560px; margin: 0 auto; min-height: 100vh; background: #fff; position: relative; padding-bottom: 110px; }
@media (min-width: 600px) { body { background: var(--bg); } .app { box-shadow: 0 0 0 1px var(--line); } }
.loading { min-height: 80vh; display: grid; place-items: center; }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* hero */
.hero { position: relative; }
.cover { height: 150px; background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, #000)); background-size: cover; background-position: center; }
.cover.has-img::after { content: ""; position: absolute; inset: 0 0 auto; height: 150px; background: linear-gradient(180deg, rgba(0,0,0,.25), rgba(0,0,0,0) 45%, rgba(0,0,0,.35)); }
.top-actions { position: absolute; top: 12px; right: 12px; left: 12px; display: flex; justify-content: space-between; z-index: 2; }
.pill-btn { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border-radius: 99px; border: 0; background: rgba(255,255,255,.95); font-weight: 700; font-size: 13.5px; box-shadow: 0 2px 10px rgba(0,0,0,.12); color: var(--ink); text-decoration: none; }
.pill-btn .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.identity { padding: 0 18px; margin-top: -40px; position: relative; z-index: 3; }
.logo { width: 84px; height: 84px; border-radius: 22px; background: #fff; border: 4px solid #fff; box-shadow: 0 4px 16px rgba(0,0,0,.12); object-fit: cover; display: grid; place-items: center; font-size: 32px; font-weight: 800; color: var(--brand); overflow: hidden; }
.logo img { width: 100%; height: 100%; object-fit: cover; }
.name-row { margin-top: 10px; }
.name-row h1 { margin: 0; font-size: 24px; line-height: 1.2; letter-spacing: -.01em; }
.tagline { color: var(--ink-2); margin: 3px 0 0; font-size: 14px; }
.table-chip { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; padding: 8px 14px 8px 10px; border-radius: 12px; background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 85%, #000); font-weight: 700; font-size: 14px; }
.table-chip .ic { color: var(--brand); }
.socials { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.social { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-2); background: #fff; text-decoration: none; }
.social:hover { color: var(--brand); border-color: var(--brand-line); }

.notice { margin: 14px 18px 0; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); color: #7C2D12; font-weight: 600; font-size: 14px; display: flex; gap: 10px; align-items: flex-start; }
.notice .ic { margin-top: 1px; }

/* search + filters */
.tools { display: flex; gap: 10px; padding: 16px 18px 6px; }
.search { flex: 1; position: relative; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-3); }
.search input { width: 100%; height: 46px; border-radius: 12px; border: 1.5px solid var(--line); padding: 0 14px 0 40px; background: var(--bg); outline: none; font-size: 15px; }
.search input:focus { border-color: var(--brand); background: #fff; }
.veg-toggle { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 13.5px; }
.veg-toggle.on { border-color: #16A34A; background: #F0FDF4; color: #166534; }

/* category tabs */
.cats { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.96); backdrop-filter: blur(8px); display: flex; gap: 8px; overflow-x: auto; padding: 10px 18px; border-bottom: 1px solid var(--line-2); scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; height: 38px; padding: 0 16px; border-radius: 99px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink-2); }
.cat.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* sections + dishes */
.section { padding: 8px 18px 4px; scroll-margin-top: 60px; }
.section h2 { font-size: 19px; margin: 16px 0 2px; letter-spacing: -.01em; }
.section .count { color: var(--ink-3); font-size: 13px; font-weight: 600; }
.dish { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px dashed var(--line); }
.dish:last-child { border-bottom: 0; }
.dish-info { flex: 1; min-width: 0; cursor: pointer; }
.dish-tags { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 18px; }
.dish h3 { margin: 6px 0 2px; font-size: 16.5px; line-height: 1.3; }
.price { font-weight: 750; font-size: 15.5px; }
.desc { color: var(--ink-3); font-size: 13.5px; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-side { flex: none; width: 128px; display: flex; flex-direction: column; align-items: center; }
.dish-photo { width: 128px; height: 116px; border-radius: 16px; object-fit: cover; background: var(--bg); cursor: pointer; }
.dish-side .add-wrap { margin-top: -22px; position: relative; }
.dish-side.no-photo { justify-content: center; }
.dish-side.no-photo .add-wrap { margin-top: 0; }
.add { min-width: 104px; height: 40px; border-radius: 12px; border: 1.5px solid var(--brand-line); background: #fff; color: var(--brand); font-weight: 800; font-size: 15px; letter-spacing: .02em; box-shadow: 0 3px 10px rgba(0,0,0,.10); display: inline-flex; align-items: center; justify-content: center; gap: 4px; }
.add:hover { background: var(--brand-soft); }
.stepper { display: inline-flex; align-items: center; height: 40px; min-width: 104px; border-radius: 12px; background: var(--brand); color: var(--on-brand); box-shadow: 0 3px 10px rgba(0,0,0,.14); overflow: hidden; }
.stepper button { width: 36px; height: 40px; border: 0; background: transparent; color: inherit; display: grid; place-items: center; }
.stepper span { flex: 1; text-align: center; font-weight: 800; min-width: 28px; }
.sold { display: inline-flex; height: 40px; align-items: center; padding: 0 12px; border-radius: 12px; background: var(--line-2); color: var(--ink-3); font-weight: 700; font-size: 13px; }
.dish.unavailable .dish-photo { filter: grayscale(1); opacity: .6; }
.dish.unavailable h3, .dish.unavailable .price { color: var(--ink-3); }
.spicy { color: #DC2626; display: inline-flex; }

/* footer */
.footer { margin: 28px 18px 0; padding: 22px 18px; border-radius: 20px; background: var(--bg); text-align: center; }
.footer h3 { margin: 0 0 4px; font-size: 17px; }
.footer p { margin: 4px 0; color: var(--ink-2); font-size: 13.5px; }
.follow { display: grid; gap: 8px; margin: 16px 0 6px; }
.follow a { display: flex; align-items: center; justify-content: center; gap: 10px; height: 48px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-weight: 700; text-decoration: none; }
.follow a.ig { background: linear-gradient(90deg, #F58529, #DD2A7B 50%, #8134AF); color: #fff; border: 0; }
.powered { margin-top: 14px; font-size: 12px; color: var(--ink-3); }

/* cart bar */
.cartbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(14px + env(safe-area-inset-bottom)); width: min(calc(100% - 24px), 536px); z-index: 40; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 62px; padding: 0 8px 0 18px; border-radius: 18px; border: 0; background: var(--brand); color: var(--on-brand); box-shadow: 0 10px 30px color-mix(in srgb, var(--brand) 40%, transparent); animation: up .25s ease; text-align: left; }
.cartbar b { font-size: 16px; display: block; }
.cartbar small { opacity: .85; font-size: 12.5px; font-weight: 600; }
.cartbar .go { display: inline-flex; align-items: center; gap: 4px; height: 46px; padding: 0 14px; border-radius: 13px; background: rgba(255,255,255,.18); font-weight: 800; }

/* cart sheet */
.line { display: flex; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line-2); }
.line-info { flex: 1; min-width: 0; }
.line-info b { display: block; font-size: 15px; }
.line-info small { color: var(--ink-3); }
.line .stepper { min-width: 96px; height: 36px; box-shadow: none; }
.line .stepper button { height: 36px; }
.line-total { width: 66px; text-align: right; font-weight: 700; }
.bill { margin-top: 16px; padding: 14px 16px; border-radius: 14px; background: var(--bg); display: grid; gap: 6px; font-size: 14px; }
.bill div { display: flex; justify-content: space-between; }
.bill .grand { font-size: 17px; font-weight: 800; padding-top: 8px; border-top: 1px dashed var(--line); margin-top: 4px; }
.cart-table { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); font-weight: 700; margin-bottom: 4px; }
.cart-table .ic { color: var(--brand); }
.form-grid { display: grid; gap: 14px; margin-top: 18px; }

/* item detail */
.detail-photo { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.detail .sheet-body { padding-top: 18px; }
.detail h2 { margin: 8px 0 4px; font-size: 22px; }
.close-float { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255,255,255,.95); display: grid; place-items: center; box-shadow: 0 2px 10px rgba(0,0,0,.15); }
.qty-big { display: inline-flex; align-items: center; height: 54px; border-radius: 14px; border: 1.5px solid var(--line); }
.qty-big button { width: 50px; height: 54px; border: 0; background: none; display: grid; place-items: center; color: var(--brand); }
.qty-big span { min-width: 28px; text-align: center; font-weight: 800; font-size: 17px; }

/* help sheet */
.help-grid { display: grid; gap: 10px; }
.help-opt { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; text-align: left; font-weight: 700; font-size: 16px; }
.help-opt .ico { width: 46px; height: 46px; border-radius: 14px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.help-opt small { display: block; color: var(--ink-3); font-weight: 500; font-size: 13px; }
.help-opt:hover { border-color: var(--brand-line); }

/* order status */
.status-page { padding: 24px 18px 30px; }
.status-hero { text-align: center; padding: 18px 8px 8px; }
.tick { width: 76px; height: 76px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; margin: 0 auto 14px; animation: pop .4s cubic-bezier(.2,1.6,.4,1); box-shadow: 0 0 0 10px var(--green-soft); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.status-hero h1 { margin: 0; font-size: 23px; }
.status-hero p { margin: 6px 0 0; color: var(--ink-2); }
.track { margin: 24px 0 8px; padding: 18px; border-radius: 18px; border: 1px solid var(--line); }
.track-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.track-head b { font-size: 16px; }
.steps { display: grid; gap: 0; }
.step { display: flex; gap: 14px; position: relative; padding-bottom: 18px; }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: 13px; top: 28px; bottom: 0; width: 2px; background: var(--line); }
.step:last-child::before { display: none; }
.step .b { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); background: #fff; display: grid; place-items: center; flex: none; position: relative; z-index: 1; color: #fff; }
.step.done .b { background: var(--green); border-color: var(--green); }
.step.done::before { background: var(--green); }
.step.now .b { border-color: var(--brand); box-shadow: 0 0 0 5px var(--brand-soft); }
.step.now .b::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--brand); animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { transform: scale(.6); opacity: .5; } }
.step strong { display: block; font-size: 15px; }
.step small { color: var(--ink-3); }
.step:not(.done):not(.now) strong { color: var(--ink-3); }
.cancelled-box { padding: 14px; border-radius: 14px; background: var(--red-soft); color: var(--red); font-weight: 700; }
.order-lines { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; font-size: 14px; }
.order-lines div { display: flex; justify-content: space-between; padding: 4px 0; gap: 10px; }
.order-lines .t { font-weight: 800; border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 10px; }
.stack { display: grid; gap: 10px; margin-top: 18px; }
.my-orders { margin: 0 18px; }
.mo { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; background: #fff; width: 100%; text-align: left; }

/* ---------- Table Together, coupons, wait time, split bill ---------- */
.ta-right { display: inline-flex; gap: 8px; }
.together { margin: 14px 18px 0; padding: 12px 14px; border-radius: 14px; background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 70%, #000); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.45; }
.together .ic { flex: none; margin-top: 1px; }
.offers { display: flex; gap: 10px; overflow-x: auto; padding: 14px 18px 2px; scrollbar-width: none; }
.offers::-webkit-scrollbar { display: none; }
.offer { flex: 0 0 auto; max-width: 290px; display: flex; gap: 10px; align-items: center; text-align: left; padding: 10px 14px 10px 10px; border-radius: 14px; border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, #fff); background: #fff; font: inherit; color: var(--ink); }
.offer .tag { width: 34px; height: 34px; border-radius: 10px; background: var(--brand); color: var(--on-brand); display: grid; place-items: center; flex: none; }
.offer b { display: block; font-size: 14px; }
.offer small { color: var(--ink-3); font-size: 12.5px; }
.offer code, .chip-offer code, .coupon-on code { font-family: inherit; font-weight: 800; color: var(--brand); letter-spacing: .03em; }
.price .prep { display: inline-flex; align-items: center; gap: 3px; margin-left: 10px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.cart-table span { font-weight: 600; font-size: 13.5px; line-height: 1.4; }
.me-name { margin: 14px 0 4px; }
.who { display: flex; align-items: center; gap: 10px; margin-top: 16px; padding-bottom: 4px; font-weight: 800; font-size: 14px; }
.who .muted { margin-left: auto; font-weight: 700; }
.av { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.qty-ro { min-width: 96px; text-align: center; font-weight: 800; color: var(--ink-3); }
.coupon-box { margin-top: 16px; }
.coupon-in { display: flex; gap: 8px; }
.coupon-in .input { flex: 1; min-width: 0; text-transform: uppercase; }
.coupon-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip-offer { border: 1px dashed var(--line); background: #fff; border-radius: 10px; padding: 6px 10px; font: inherit; font-size: 12.5px; color: var(--ink-2); text-align: left; }
.coupon-on { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); color: var(--green); }
.coupon-on span { flex: 1; color: var(--ink); }
.coupon-on b { display: block; font-size: 14px; }
.coupon-on small { color: var(--ink-3); }
.bill .save, .order-lines .save { color: var(--green); font-weight: 700; }
.foot-hint { display: block; text-align: center; color: var(--ink-3); font-size: 12.5px; margin-top: 8px; }
.eta { margin: 16px auto 0; display: inline-flex; gap: 10px; align-items: center; text-align: left; padding: 12px 16px; border-radius: 14px; background: var(--brand-soft); color: color-mix(in srgb, var(--brand) 75%, #000); max-width: 340px; }
.eta b { font-size: 17px; }
.eta small { display: block; font-size: 12.5px; color: var(--ink-3); }
.eta.late { background: var(--amber-soft); color: #92400E; }
.bill-h { font-size: 26px; margin: 14px 0 0; letter-spacing: -.02em; }
.bill-total { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bill-total > div { padding: 14px; border-radius: 16px; border: 1px solid var(--line); }
.bill-total small { color: var(--ink-3); font-weight: 650; font-size: 12.5px; }
.bill-total b { display: block; font-size: 22px; letter-spacing: -.02em; }
.bill-total b.ok { color: var(--green); }
.save-chip { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--green); }
.seg2 { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 16px 0 8px; border-radius: 14px; background: var(--bg); }
.seg2 button { border: 0; background: transparent; padding: 10px 6px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 13.5px; color: var(--ink-2); }
.seg2 button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.small { font-size: 13px; margin: 6px 2px 10px; }
.person { border: 1.5px solid var(--line); border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; cursor: pointer; background: #fff; }
.person.sel { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.p-head { display: flex; align-items: center; gap: 10px; }
.p-head b { font-size: 15.5px; }
.p-head .amt { margin-left: auto; font-weight: 800; font-size: 17px; }
.p-lines { margin-top: 8px; display: grid; gap: 2px; }
.pl { display: flex; justify-content: space-between; gap: 10px; width: 100%; border: 0; background: none; padding: 6px 8px; border-radius: 8px; font: inherit; font-size: 13.5px; color: var(--ink-2); text-align: left; }
button.pl:hover { background: var(--bg); }
.pl.on { background: var(--brand-soft); }
.shared-box { cursor: default; border-style: dashed; }
.eq { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 18px; font-weight: 700; }
.eq-each { text-align: center; font-size: 30px; font-weight: 800; margin: 10px 0 4px; letter-spacing: -.02em; }
.eq-each small { font-size: 15px; color: var(--ink-3); }
.paybox { position: sticky; bottom: 0; margin: 16px -18px -30px; padding: 16px 18px calc(18px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line); display: grid; gap: 10px; box-shadow: 0 -8px 24px rgba(0,0,0,.06); }
.pb-head { display: flex; justify-content: space-between; align-items: baseline; }
.pb-head small { color: var(--ink-3); font-weight: 650; }
.pb-head b { font-size: 24px; }
.paybox .center { text-align: center; font-size: 12.5px; }
.upi-qr { width: 180px; height: 180px; margin: 0 auto; border: 1px solid var(--line); border-radius: 12px; padding: 6px; background: #fff; }
.pick-hint { font-size: 12px; color: var(--brand); font-weight: 700; margin: 4px 0 0 38px; }

/* guest log in */
.acct-on, .acct-off { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--bg, #F6F5F3); margin-bottom: 12px; font-size: 14px; }
.acct-on .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 800; flex: none; }
.acct-on > span:nth-child(2) { flex: 1; min-width: 0; } .acct-on small { display: block; color: var(--ink-2, #666); font-size: 12.5px; }
.acct-off { color: var(--ink-2, #555); } .acct-off svg { color: var(--brand); flex: none; }
.glogin { display: grid; gap: 14px; } .glogin > p { margin: 0; }
.seg-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 12px; background: var(--bg, #F6F5F3); }
.seg-tabs button { border: 0; background: transparent; padding: 10px 6px; border-radius: 9px; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink-2, #555); cursor: pointer; }
.seg-tabs button.on { background: #fff; color: var(--ink, #151515); box-shadow: 0 1px 4px rgba(0,0,0,.1); }
.gerr { color: #B42318; font-weight: 600; font-size: 14px; min-height: 0; } .gerr:empty { display: none; }
.gfoot { text-align: center; font-size: 12.5px; }
.glogin [hidden], .me-name[hidden] { display: none !important; }
