/* ==========================================================================
   Forkly customer app — pages
   ========================================================================== */

/* ---------------------------------------------------------------- home */
.home-hero { padding: 6px 0 4px; }
.home-greet { font-size: 22px; margin: 6px 0 2px; }
.home-greet span { color: var(--brand); }
.home-sub { color: var(--muted); margin: 0 0 14px; font-size: 14px; }
.home-search { margin-bottom: 4px; }
.home-search .search-box input { height: 52px; background: var(--surface); }
@media (min-width: 1024px) {
  .home-hero { position: relative; margin-top: 22px; border-radius: 30px; overflow: hidden; background: radial-gradient(120% 140% at 100% 0%, #FFD7BF 0%, var(--brand-50) 45%, #FFF9F5 100%); padding: 44px 48px; }
  .home-hero-inner { position: relative; z-index: 2; max-width: 560px; }
  .home-greet { font-size: 42px; letter-spacing: -.035em; }
  .home-sub { font-size: 17px; margin-bottom: 22px; }
  .home-search .search-box input { height: 58px; background: #fff; box-shadow: var(--sh-2); font-size: 16px; }
  .home-hero-art { position: absolute; right: -10px; top: 50%; transform: translateY(-50%); width: 46%; max-width: 560px; z-index: 1; pointer-events: none; }
  .home-hero-art img { position: absolute; border-radius: 50%; box-shadow: 0 30px 50px -24px rgba(120, 50, 0, .45); }
}
.hero-art-1 { width: 58%; right: 22%; top: -150px; }
.hero-art-2 { width: 36%; right: -2%; top: -30px; }
.hero-art-3 { width: 30%; right: 50%; top: 40px; }
.popular-searches { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.popular-searches a { font-size: 13px; font-weight: 650; padding: 6px 12px; border-radius: 99px; background: rgba(255, 255, 255, .7); color: var(--ink-2); }
.popular-searches a:hover { background: #fff; }

.banner-card { position: relative; width: 86vw; max-width: 520px; min-height: 172px; aspect-ratio: 16 / 8.4; border-radius: 22px; overflow: hidden; color: #fff; display: flex; align-items: center; isolation: isolate; }
.banner-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.banner-card .bn-body { padding: 16px 18px; max-width: 68%; }
.banner-card .bn-eyebrow { display: inline-block; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: 7px; background: rgba(255, 255, 255, .22); margin-bottom: 8px; }
.banner-card h3 { color: inherit; font-size: clamp(18px, 4.6vw, 25px); line-height: 1.12; margin: 0 0 5px; letter-spacing: -.03em; }
.banner-card p { font-size: 12.5px; opacity: .92; margin: 0 0 10px; line-height: 1.38; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1024px) { .banner-card { min-height: 0; aspect-ratio: 16 / 7.2; } .banner-card .bn-body { padding: 20px 24px; } .banner-card p { font-size: 13px; } .voucher { width: 300px; } }
.banner-card .bn-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 800; }
.banner-card.text-dark { color: var(--ink); }
.banner-card.text-dark .bn-eyebrow { background: rgba(0, 0, 0, .07); }
.banner-card.text-dark .bn-btn { background: var(--ink); color: #fff; }
@media (min-width: 1024px) { .banner-card { width: 560px; } }

.cuisine-tile { width: 76px; display: flex; flex-direction: column; align-items: center; gap: 7px; text-align: center; }
.cuisine-tile .ct-img { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: var(--brand-50); display: grid; place-items: center; transition: transform .2s var(--ease), box-shadow .2s; }
.cuisine-tile .ct-img img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.18); }
.cuisine-tile:hover .ct-img { transform: translateY(-3px); box-shadow: 0 12px 20px -12px rgba(0, 0, 0, .35); }
.cuisine-tile span { font-size: 12.5px; font-weight: 700; color: var(--ink); line-height: 1.2; }
.cuisine-tile.is-active .ct-img { box-shadow: 0 0 0 3px var(--brand); }
@media (min-width: 1024px) { .cuisine-tile { width: 96px; } .cuisine-tile .ct-img { width: 88px; height: 88px; } .cuisine-tile span { font-size: 13.5px; } }

.voucher { width: 270px; display: flex; border-radius: 18px; overflow: hidden; background: #fff; border: 1.5px dashed var(--brand-100); position: relative; }
.voucher-side { width: 72px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.voucher-side .icon { width: 28px; height: 28px; }
.voucher-body { padding: 12px 14px; min-width: 0; flex: 1; }
.voucher-body b { display: block; font-size: 15px; color: var(--ink); line-height: 1.25; }
.voucher-body small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.voucher-code { margin-top: 8px; display: inline-flex; align-items: center; gap: 8px; }
.voucher-code code { font-family: ui-monospace, Menlo, Consolas, monospace; font-weight: 800; font-size: 13px; letter-spacing: .06em; color: var(--brand-700); background: var(--brand-50); padding: 4px 8px; border-radius: 7px; }
.voucher-code button { font-size: 12.5px; font-weight: 800; color: var(--ink); }
.voucher::before, .voucher::after { content: ''; position: absolute; left: 62px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); }
.voucher::before { top: -11px; } .voucher::after { bottom: -11px; }

.join-grid { display: grid; gap: 14px; }
@media (min-width: 768px) { .join-grid { grid-template-columns: 1fr 1fr; gap: 20px; } }
.join-card { position: relative; overflow: hidden; border-radius: 24px; padding: 24px; min-height: 190px; display: flex; flex-direction: column; justify-content: flex-end; color: #fff; isolation: isolate; }
.join-card.is-partner { background: linear-gradient(135deg, #1B1D28, #33364A); }
.join-card.is-rider { background: linear-gradient(135deg, var(--brand), #FF9A4D); }
.join-card h3 { color: #fff; font-size: 22px; margin: 0 0 6px; max-width: 70%; }
.join-card p { max-width: 64%; margin: 0 0 14px; font-size: 14px; opacity: .9; }
.join-card .btn { align-self: flex-start; }
.join-card svg.join-art { position: absolute; right: -10px; bottom: -6px; width: 46%; max-width: 230px; z-index: -1; }

.sort-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }

/* ---------------------------------------------------------------- restaurants listing */
.list-head { padding: 18px 0 8px; }
.list-head h1 { font-size: 26px; margin-bottom: 4px; }
.filters-bar { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.sort-select { height: 38px; border-radius: 999px; border: 1.5px solid var(--line-2); padding: 0 34px 0 14px; font-weight: 650; font-size: 14px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%231B1D28' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 10px center; appearance: none; }
.cuisine-strip { padding: 4px 0 10px; }

/* ---------------------------------------------------------------- restaurant page */
.rest-cover { position: relative; height: 230px; background: var(--surface); overflow: hidden; }
.rest-cover img { width: 100%; height: 100%; object-fit: cover; }
.rest-cover::after { content: ''; position: absolute; inset: 0; background: linear-gradient(rgba(0, 0, 0, .28), transparent 38%); }
.rest-topbar { position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; justify-content: space-between; padding: 12px; }
.rest-topbar .row { gap: 8px; }
.rest-sheet { position: relative; margin-top: -26px; background: #fff; border-radius: 26px 26px 0 0; padding: 18px 0 0; z-index: 2; }
.rest-id { display: flex; gap: 14px; align-items: flex-start; }
.rest-logo { width: 64px; height: 64px; border-radius: 18px; overflow: hidden; border: 3px solid #fff; box-shadow: var(--sh-2); margin-top: -46px; background: #fff; flex: none; }
.rest-logo img { width: 100%; height: 100%; object-fit: cover; }
.rest-id h1 { font-size: 24px; margin: 0 0 3px; }
.rest-id .rest-sub { color: var(--muted); font-size: 14px; margin: 0; }
.rest-facts { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px 2px; }
.rest-facts::-webkit-scrollbar { display: none; }
.fact { flex: none; display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 14px; background: var(--surface); font-size: 13px; color: var(--muted); line-height: 1.2; }
.fact .icon { width: 18px; height: 18px; color: var(--ink); }
.fact b { display: block; font-size: 14px; color: var(--ink); font-weight: 800; }
button.fact:hover { background: var(--surface-2); }
.rest-status { margin-top: 12px; }
.deal-strip { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 14px -16px 0; padding: 0 16px 2px; }
.deal-strip::-webkit-scrollbar { display: none; }
.deal { flex: none; display: flex; align-items: center; gap: 12px; padding: 11px 16px 11px 12px; border-radius: 16px; background: var(--brand-50); border: 1px solid var(--brand-100); min-width: 240px; }
.deal .deal-ic { width: 38px; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; display: grid; place-items: center; flex: none; }
.deal b { display: block; font-size: 14.5px; color: var(--ink); }
.deal small { font-size: 12.5px; color: var(--brand-700); font-weight: 600; }

.menu-tabs { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); margin-top: 18px; }
.menu-tabs-inner { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding: 10px 0; scroll-behavior: smooth; }
.menu-tabs-inner::-webkit-scrollbar { display: none; }
.menu-tabs a { flex: none; height: 38px; padding: 0 16px; border-radius: 999px; display: inline-flex; align-items: center; font-weight: 700; font-size: 14px; color: var(--muted); transition: background .15s, color .15s; }
.menu-tabs a:hover { color: var(--ink); background: var(--surface); }
.menu-tabs a.is-active { background: var(--brand); color: #fff; }
.menu-search { position: relative; flex: none; }

.rest-layout { display: block; padding-top: 6px; }
.menu-side { display: none; }
.menu-section { padding: 18px 0 6px; scroll-margin-top: 140px; }
.menu-section > h2 { font-size: 20px; margin: 0 0 2px; }
.menu-section > p { color: var(--muted); font-size: 13.5px; margin: 0 0 8px; }
.popular-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 12px; }
.pop-card { position: relative; border-radius: 18px; overflow: hidden; background: var(--surface); text-align: left; display: block; width: 100%; }
.pop-card .pop-img { aspect-ratio: 1 / .82; overflow: hidden; }
.pop-card .pop-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pop-card:hover .pop-img img { transform: scale(1.05); }
.pop-card .pop-body { padding: 10px 12px 12px; }
.pop-card h4 { margin: 0 0 2px; font-size: 14px; line-height: 1.3; }
.pop-card .price { font-weight: 800; color: var(--ink); font-size: 14px; }
.pop-card .dish-add { position: absolute; right: 8px; top: 8px; }
@media (min-width: 640px) { .popular-grid { grid-template-columns: repeat(3, 1fr); } }

.dish { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); cursor: pointer; position: relative; text-align: left; width: 100%; align-items: stretch; }
.dish:last-child { border-bottom: 0; }
.dish-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.dish-text h4 { margin: 0 0 4px; font-size: 16px; font-weight: 750; line-height: 1.3; }
.dish-desc { color: var(--muted); font-size: 13.5px; line-height: 1.45; margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dish-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.dish-foot .price { font-weight: 800; color: var(--ink); font-size: 15px; }
.dish-foot s { color: var(--faint); font-size: 13px; }
.dish-foot .from { font-size: 12px; color: var(--muted); font-weight: 600; margin-right: -4px; }
.dish-media { position: relative; width: 112px; height: 112px; border-radius: 16px; overflow: hidden; flex: none; background: var(--surface); }
.dish-media img { width: 100%; height: 100%; object-fit: cover; }
.dish-add { position: absolute; right: 6px; bottom: 6px; width: 36px; height: 36px; border-radius: 50%; background: #fff; color: var(--brand); display: grid; place-items: center; box-shadow: var(--sh-2); transition: transform .15s, background .15s, color .15s; }
.dish-add .icon { width: 20px; height: 20px; stroke-width: 2.8; }
.dish:hover .dish-add, .dish-add:hover { background: var(--brand); color: #fff; }
.dish-qty { position: absolute; left: 6px; top: 6px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 800; display: grid; place-items: center; }
.dish.is-soldout { cursor: default; }
.dish.is-soldout .dish-media img { filter: grayscale(1); opacity: .5; }
.dish.is-soldout .dish-add { display: none; }
.soldout-label { position: absolute; inset: auto 0 8px; text-align: center; font-size: 11.5px; font-weight: 800; color: var(--ink); }
.soldout-label span { background: #fff; padding: 3px 8px; border-radius: 7px; }
.dish.is-highlight { animation: highlight 1.8s var(--ease); }
@keyframes highlight { 0%, 40% { background: var(--brand-50); } }
@media (min-width: 768px) { .dish-media { width: 128px; height: 128px; } }

.menu-grid { display: grid; grid-template-columns: 1fr; }
@media (min-width: 1024px) {
  .rest-cover { height: 320px; border-radius: 0 0 0 0; }
  .rest-sheet { margin-top: 0; border-radius: 0; padding-top: 22px; }
  .rest-logo { width: 96px; height: 96px; border-radius: 24px; margin-top: -70px; }
  .rest-id h1 { font-size: 34px; }
  .rest-facts, .deal-strip { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; flex-wrap: wrap; }
  .menu-tabs { display: none; }
  .rest-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr) 360px; gap: 32px; align-items: start; padding-top: 18px; }
  .menu-side { display: block; position: sticky; top: calc(var(--header-h) + 18px); }
  .menu-side nav { display: grid; gap: 2px; }
  .menu-side a { padding: 9px 14px; border-radius: 12px; font-weight: 650; font-size: 14.5px; color: var(--muted); border-left: 3px solid transparent; }
  .menu-side a:hover { color: var(--ink); background: var(--surface); }
  .menu-side a.is-active { color: var(--ink); background: var(--brand-50); font-weight: 800; }
  .menu-grid { grid-template-columns: 1fr; }
  .menu-grid .dish-text h4 { font-size: 17px; }
  .menu-grid .dish-media { width: 136px; height: 136px; }
  .menu-grid .dish { border-bottom: 1px solid var(--line); }
  .menu-section > h2 { font-size: 24px; }
  .popular-grid { grid-template-columns: repeat(3, 1fr); gap: 16px; }
}
.basket-side { display: none; }
@media (min-width: 1024px) { .basket-side { display: block; position: sticky; top: calc(var(--header-h) + 18px); } }
.basket-card { border-radius: 24px; border: 1px solid var(--line); background: #fff; overflow: hidden; box-shadow: var(--sh-2); }
.basket-card .bc-scroll { max-height: calc(100vh - var(--header-h) - 190px); overflow-y: auto; }

.rest-reviews { padding: 26px 0 10px; }
.review-summary { display: flex; align-items: center; gap: 24px; padding: 18px; border-radius: 20px; background: var(--surface); margin-bottom: 16px; }
.review-summary .big { font-size: 44px; font-weight: 850; color: var(--ink); line-height: 1; letter-spacing: -.04em; }
.review-bars { flex: 1; display: grid; gap: 5px; }
.review-bars div { display: grid; grid-template-columns: 14px 1fr 34px; gap: 8px; align-items: center; font-size: 12px; color: var(--muted); font-weight: 650; }
.review-bars i { height: 7px; border-radius: 9px; background: var(--line-2); overflow: hidden; display: block; }
.review-bars i b { display: block; height: 100%; background: #FFB020; border-radius: 9px; }
.review-list { display: grid; gap: 12px; }
@media (min-width: 768px) { .review-list.cols-2 { grid-template-columns: 1fr 1fr; } }
.review { padding: 16px; border-radius: 18px; border: 1px solid var(--line); background: #fff; }
.review-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-head .avatar { width: 36px; height: 36px; font-size: 13px; }
.review-head b { display: block; font-size: 14px; color: var(--ink); }
.review-head small { color: var(--muted); font-size: 12px; }
.review p { margin: 0; font-size: 14px; line-height: 1.55; }
.review .review-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.review-reply { margin-top: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.review-reply b { display: block; font-size: 12.5px; margin-bottom: 2px; color: var(--ink); }

.info-list { display: grid; gap: 2px; }
.info-row { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.info-row:last-child { border: 0; }
.info-row > .icon { color: var(--muted); margin-top: 2px; }
.hours-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.hours-table td { padding: 7px 0; }
.hours-table td:last-child { text-align: right; font-weight: 650; color: var(--ink); }
.hours-table tr.is-today td { font-weight: 800; color: var(--brand-700); }
.mini-map { height: 150px; border-radius: 16px; overflow: hidden; background: #EEF1E8; margin: 8px 0 4px; }
.mini-map svg { width: 100%; height: 100%; }

/* ---------------------------------------------------------------- item sheet */
.item-hero { position: relative; aspect-ratio: 16 / 11; background: var(--surface); overflow: hidden; flex: none; }
.item-hero img { width: 100%; height: 100%; object-fit: cover; }
.item-info { padding: 18px 20px 6px; }
.item-info h2 { font-size: 23px; margin: 0 0 6px; }
.item-info .item-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 10px; }
.item-price { font-size: 19px; font-weight: 850; color: var(--ink); }
.item-price s { font-size: 14px; color: var(--faint); font-weight: 600; margin-left: 6px; }
.opt-group { border-top: 8px solid var(--surface); padding: 16px 20px 8px; }
.opt-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.opt-head h4 { margin: 0; font-size: 16px; }
.opt-head small { display: block; color: var(--muted); font-size: 12.5px; font-weight: 600; margin-top: 2px; }
.opt-req { flex: none; font-size: 11.5px; font-weight: 800; padding: 4px 9px; border-radius: 7px; background: var(--surface); color: var(--muted); }
.opt-group.is-required .opt-req { background: var(--brand-50); color: var(--brand-700); }
.opt-group.is-satisfied .opt-req { background: var(--green-50); color: #0E7A39; }
.opt-group.is-error .opt-req { background: var(--red); color: #fff; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.opt { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.opt:last-child { border-bottom: 0; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt .opt-ctrl { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; position: relative; transition: border-color .15s, background .15s; }
.opt input[type=checkbox] + .opt-ctrl { border-radius: 7px; }
.opt input:checked + .opt-ctrl { border-color: var(--brand); background: var(--brand); }
.opt input[type=radio]:checked + .opt-ctrl { background: #fff; }
.opt input[type=radio]:checked + .opt-ctrl::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.opt input[type=checkbox]:checked + .opt-ctrl::after { content: ''; position: absolute; inset: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/14px no-repeat; }
.opt .opt-name { flex: 1; font-size: 15px; color: var(--ink); font-weight: 550; }
.opt .opt-price { font-size: 14px; color: var(--muted); font-weight: 650; }
.opt.is-disabled { opacity: .45; cursor: not-allowed; }
.item-note { border-top: 8px solid var(--surface); padding: 16px 20px 20px; }
.item-foot { display: flex; gap: 12px; align-items: center; }
.item-foot .btn { flex: 1; }

/* ---------------------------------------------------------------- basket panel / page */
.bp-head { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.bp-head img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.bp-head b { display: block; color: var(--ink); font-size: 15.5px; line-height: 1.25; }
.bp-head small { color: var(--muted); font-size: 12.5px; }
.bp-section { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.bp-section:last-child { border-bottom: 0; }
.bp-title { font-size: 14.5px; font-weight: 800; color: var(--ink); margin: 0 0 10px; display: flex; justify-content: space-between; align-items: center; }
.line { display: flex; gap: 12px; padding: 10px 0; }
.line + .line { border-top: 1px solid var(--line); }
.line-img { width: 54px; height: 54px; border-radius: 12px; overflow: hidden; background: var(--surface); flex: none; }
.line-img img { width: 100%; height: 100%; object-fit: cover; }
.line-body { flex: 1; min-width: 0; }
.line-body b { display: block; font-size: 14.5px; color: var(--ink); line-height: 1.3; }
.line-body small { display: block; font-size: 12.5px; color: var(--muted); line-height: 1.35; margin-top: 1px; }
.line-body .line-issue { color: var(--red); font-weight: 700; }
.line-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 7px; }
.line-row .price { font-weight: 800; color: var(--ink); font-size: 14.5px; }
.line-row .stepper button { width: 30px; height: 30px; }
.line-row .stepper output { min-width: 22px; font-size: 14px; }
.bill { display: grid; gap: 8px; font-size: 14px; }
.bill-row { display: flex; justify-content: space-between; gap: 12px; color: var(--text); }
.bill-row span:first-child { color: var(--muted); }
.bill-row .discount { color: var(--green); font-weight: 700; }
.bill-row s { color: var(--faint); margin-right: 6px; }
.bill-total { display: flex; justify-content: space-between; padding-top: 12px; margin-top: 4px; border-top: 1px dashed var(--line-2); font-size: 17px; font-weight: 850; color: var(--ink); }
.savings { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: var(--green-50); color: #0B6B31; font-size: 13.5px; font-weight: 700; }
.coupon-form { display: flex; gap: 8px; }
.coupon-form .input { height: 44px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.coupon-form .input::placeholder { text-transform: none; letter-spacing: 0; font-weight: 500; }
.coupon-chip { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--green-50); border: 1px dashed #83D4A3; }
.coupon-chip b { color: #0B6B31; font-size: 14px; }
.coupon-chip small { display: block; color: #0B6B31; font-size: 12px; }
.tip-options { display: flex; gap: 8px; flex-wrap: wrap; }
.tip-options button { height: 38px; min-width: 62px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-2); font-weight: 750; font-size: 14px; background: #fff; }
.tip-options button.is-active { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.upsell { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; margin: 0 -18px; padding: 0 18px 4px; }
.upsell::-webkit-scrollbar { display: none; }
.upsell-card { width: 118px; flex: none; text-align: left; }
.upsell-card .ui { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: var(--surface); }
.upsell-card .ui img { width: 100%; height: 100%; object-fit: cover; }
.upsell-card .dish-add { width: 30px; height: 30px; right: 5px; bottom: 5px; }
.upsell-card .dish-add .icon { width: 16px; height: 16px; }
.upsell-card b { display: block; font-size: 12.5px; color: var(--ink); line-height: 1.3; margin-top: 6px; }
.upsell-card small { font-size: 12.5px; color: var(--muted); font-weight: 700; }
.bp-foot { padding: 14px 18px 18px; background: #fff; border-top: 1px solid var(--line); }
.bp-empty { padding: 34px 22px; text-align: center; }
.bp-empty .illustration { width: 140px; margin: 0 auto 12px; }
.bp-empty b { display: block; color: var(--ink); font-size: 16px; }
.bp-empty p { color: var(--muted); font-size: 13.5px; margin: 4px 0 0; }

.page-cart { padding: 14px 0 120px; }
.page-cart .basket-card { box-shadow: none; }
@media (min-width: 1024px) { .page-cart { max-width: 640px; margin: 0 auto; padding-bottom: 40px; } }
.sticky-cta { position: fixed; left: 0; right: 0; bottom: 0; z-index: 56; padding: 12px 16px calc(12px + var(--safe-b)); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -20px rgba(0, 0, 0, .25); }
@media (min-width: 1024px) { .sticky-cta { position: static; border: 0; box-shadow: none; padding: 16px 0 0; background: transparent; } }

/* ---------------------------------------------------------------- checkout */
.page-head { display: flex; align-items: center; gap: 10px; padding: 14px 0; }
.page-head h1 { font-size: 22px; margin: 0; }
@media (min-width: 1024px) { .page-head { padding: 26px 0 18px; } .page-head h1 { font-size: 30px; } }
.checkout-grid { display: grid; gap: 14px; padding-bottom: 130px; }
@media (min-width: 1024px) { .checkout-grid { grid-template-columns: minmax(0, 1fr) 400px; gap: 26px; align-items: start; padding-bottom: 50px; } .checkout-grid > aside { position: sticky; top: calc(var(--header-h) + 20px); } }
.address-list { display: grid; gap: 10px; }
.slot-days { display: flex; gap: 8px; margin: 12px 0 10px; overflow-x: auto; scrollbar-width: none; }
.slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.slot-grid label { position: relative; }
.slot-grid input { position: absolute; opacity: 0; }
.slot-grid span { display: grid; place-items: center; height: 42px; border-radius: 12px; border: 1.5px solid var(--line-2); font-size: 13.5px; font-weight: 700; cursor: pointer; }
.slot-grid input:checked + span { border-color: var(--brand); background: var(--brand-50); color: var(--brand-700); }
.pay-extra { margin: -2px 0 6px 52px; padding: 12px 14px; border-radius: 12px; background: var(--surface); font-size: 13.5px; }
.pay-extra ol { margin: 6px 0 10px; padding-left: 18px; }
.order-summary-items { display: grid; gap: 10px; }
.osi { display: flex; gap: 10px; font-size: 14px; }
.osi .q { font-weight: 800; color: var(--brand-700); min-width: 24px; }
.osi b { color: var(--ink); font-weight: 650; }
.osi small { display: block; color: var(--muted); font-size: 12.5px; }
.osi .p { margin-left: auto; font-weight: 700; white-space: nowrap; }

/* ---------------------------------------------------------------- tracking */
.track-page { padding-bottom: 60px; }
.track-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px 20px 20px; color: #fff; background: linear-gradient(150deg, var(--brand) 0%, #FF8B3D 70%, #FFA95E 100%); margin-top: 12px; isolation: isolate; }
.track-hero.is-delivered { background: linear-gradient(150deg, #13A150, #3CC474); }
.track-hero.is-cancelled { background: linear-gradient(150deg, #474A5C, #2A2C38); }
.track-hero .th-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; font-weight: 700; opacity: .92; }
.track-hero h1 { color: #fff; font-size: 26px; margin: 14px 0 4px; letter-spacing: -.03em; }
.track-hero .th-eta { font-size: 15px; opacity: .95; }
.track-hero .th-eta b { font-weight: 850; }
.track-hero .th-count { position: absolute; right: 18px; bottom: 18px; text-align: center; background: rgba(255, 255, 255, .18); border-radius: 18px; padding: 8px 14px; backdrop-filter: blur(6px); }
.track-hero .th-count b { display: block; font-size: 26px; line-height: 1; font-weight: 850; }
.track-hero .th-count small { font-size: 11.5px; font-weight: 700; opacity: .9; }
.track-hero .th-bar { height: 6px; border-radius: 9px; background: rgba(255, 255, 255, .3); margin-top: 16px; overflow: hidden; max-width: 70%; }
.track-hero .th-bar i { display: block; height: 100%; background: #fff; border-radius: 9px; transition: width .8s var(--ease); }
.track-grid { display: grid; gap: 14px; margin-top: 14px; }
@media (min-width: 1024px) { .track-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 22px; align-items: start; } .track-hero { padding: 30px 30px 26px; margin-top: 24px; } .track-hero h1 { font-size: 34px; } }
.map-card { position: relative; border-radius: 24px; overflow: hidden; background: #EDF0E6; aspect-ratio: 16 / 11; border: 1px solid var(--line); }
.map-card > svg { width: 100%; height: 100%; display: block; }
.map-card .map-chip { position: absolute; left: 12px; top: 12px; display: inline-flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px 12px; font-size: 12.5px; font-weight: 800; box-shadow: var(--sh-2); }
.rider-dot { transition: transform 1.2s linear; }
.pulse { animation: pulse 1.8s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes pulse { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(2.4); opacity: 0; } }
.route-dash { stroke-dasharray: 2 10; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }

.steps { list-style: none; margin: 0; padding: 0; }
.steps li { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.steps li:last-child { padding-bottom: 0; }
.steps li::before { content: ''; position: absolute; left: 15px; top: 32px; bottom: 2px; width: 2px; background: var(--line-2); }
.steps li:last-child::before { display: none; }
.steps li.is-done::before { background: var(--brand); }
.steps .st-dot { width: 32px; height: 32px; border-radius: 50%; background: var(--surface); color: var(--faint); display: grid; place-items: center; flex: none; position: relative; z-index: 1; }
.steps .st-dot .icon { width: 16px; height: 16px; stroke-width: 2.6; }
.steps li.is-done .st-dot { background: var(--brand); color: #fff; }
.steps li.is-current .st-dot { background: #fff; color: var(--brand); box-shadow: 0 0 0 2px var(--brand); }
.steps li.is-current .st-dot::after { content: ''; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--brand); opacity: .4; animation: pulse 1.8s ease-out infinite; }
.steps b { display: block; color: var(--ink); font-size: 15px; }
.steps li:not(.is-done) b { color: var(--muted); }
.steps small { display: block; color: var(--muted); font-size: 13px; }
.steps time { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.person { display: flex; align-items: center; gap: 12px; padding: 14px 0; }
.person + .person { border-top: 1px solid var(--line); }
.person .avatar { width: 48px; height: 48px; font-size: 16px; }
.person .logo { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; flex: none; }
.person .logo img { width: 100%; height: 100%; object-fit: cover; }
.person b { display: block; font-size: 15px; color: var(--ink); }
.person small { display: block; color: var(--muted); font-size: 13px; }
.person .actions { margin-left: auto; display: flex; gap: 8px; }
.person .actions .icon-btn { background: var(--surface); }
.person .actions .icon-btn:hover { background: var(--brand-50); color: var(--brand-700); }

.placed-banner { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: var(--green-50); color: #0B5F2D; margin-top: 12px; }
.placed-banner .icon { width: 30px; height: 30px; flex: none; }
.placed-banner b { display: block; font-size: 16px; }

.rate-stars { display: flex; gap: 6px; justify-content: center; }
.rate-stars label { cursor: pointer; }
.rate-stars input { position: absolute; opacity: 0; }
.rate-stars svg { width: 40px; height: 40px; fill: var(--line-2); stroke: none; transition: transform .12s, fill .12s; }
.rate-stars label:hover svg { transform: scale(1.1); }
.rate-stars .is-on svg { fill: #FFB020; }

/* ---------------------------------------------------------------- orders list */
.tabs-line { display: flex; gap: 6px; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.tabs-line a { padding: 12px 14px; font-weight: 750; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -1px; display: inline-flex; gap: 8px; align-items: center; }
.tabs-line a.is-active { color: var(--ink); border-color: var(--brand); }
.tabs-line .count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; display: grid; place-items: center; }
.order-card { display: block; border: 1px solid var(--line); border-radius: 20px; padding: 14px; background: #fff; transition: box-shadow .2s, border-color .2s; }
.order-card:hover { box-shadow: var(--sh-2); border-color: transparent; }
.order-card + .order-card { margin-top: 12px; }
.oc-head { display: flex; gap: 12px; align-items: center; }
.oc-head img { width: 52px; height: 52px; border-radius: 14px; object-fit: cover; }
.oc-head b { display: block; font-size: 15.5px; color: var(--ink); }
.oc-head small { color: var(--muted); font-size: 13px; }
.oc-items { font-size: 13.5px; color: var(--muted); margin: 10px 0 12px; }
.oc-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.oc-foot .total { font-weight: 850; color: var(--ink); margin-right: auto; }
.orders-grid { display: grid; gap: 12px; }
@media (min-width: 1024px) { .orders-grid { grid-template-columns: 1fr 1fr; } .order-card + .order-card { margin-top: 0; } }

/* ---------------------------------------------------------------- account */
.acct-card { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 22px; background: linear-gradient(135deg, var(--ink), #3A3D52); color: #fff; margin-top: 14px; }
.acct-card .avatar { width: 58px; height: 58px; font-size: 20px; background: rgba(255, 255, 255, .15); color: #fff; }
.acct-card b { display: block; font-size: 18px; }
.acct-card small { display: block; color: #C6C8D6; font-size: 13px; }
.acct-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0 8px; }
.acct-stats div { padding: 12px; border-radius: 16px; background: var(--surface); text-align: center; }
.acct-stats b { display: block; font-size: 18px; color: var(--ink); font-weight: 850; }
.acct-stats small { font-size: 12px; color: var(--muted); font-weight: 600; }
.menu-list { border-radius: 20px; border: 1px solid var(--line); overflow: hidden; background: #fff; margin-top: 12px; }
.menu-list a, .menu-list button { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; text-align: left; font-weight: 650; color: var(--ink); font-size: 15px; }
.menu-list a + a, .menu-list a + form, .menu-list form + a { border-top: 1px solid var(--line); }
.menu-list a:hover, .menu-list button:hover { background: var(--surface); }
.menu-list .mi-ic { width: 38px; height: 38px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; color: var(--ink); flex: none; }
.menu-list .mi-ic .icon { width: 19px; height: 19px; }
.menu-list .chev { margin-left: auto; color: var(--faint); }
.menu-list .mi-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.menu-list-title { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); margin: 22px 4px 0; }
.account-shell { max-width: 720px; margin: 0 auto; padding-bottom: 40px; }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.notif.is-unread { background: var(--brand-50); }
.notif .notif-ic { width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); flex: none; }
.notif b { display: block; color: var(--ink); font-size: 14.5px; }
.notif p { margin: 1px 0 3px; font-size: 13.5px; color: var(--text); }
.notif time { font-size: 12px; color: var(--muted); }

/* ---------------------------------------------------------------- auth */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: 24px 16px 60px; }
.auth-card { width: min(440px, 100%); }
.auth-card .auth-art { width: 150px; margin: 0 auto 8px; }
.auth-card h1 { text-align: center; font-size: 26px; margin-bottom: 6px; }
.auth-card .lead { text-align: center; color: var(--muted); margin-bottom: 24px; }
.auth-foot { text-align: center; margin-top: 18px; color: var(--muted); font-size: 14.5px; }
.demo-logins { margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--surface); font-size: 13px; }
.demo-logins button { font-weight: 700; color: var(--brand-700); }

/* ---------------------------------------------------------------- help, pages, offers, apply */
.faq { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; }
.faq + .faq { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 15px 16px; font-weight: 750; color: var(--ink); display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; color: var(--muted); flex: none; }
.faq[open] summary .icon { transform: rotate(180deg); }
.faq .faq-a { padding: 0 16px 16px; color: var(--text); font-size: 14.5px; line-height: 1.65; }
.help-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 16px 0 6px; }
.help-actions a { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 18px; background: var(--surface); font-weight: 750; color: var(--ink); }
.help-actions a:hover { background: var(--brand-50); }
.help-actions .icon { color: var(--brand); width: 24px; height: 24px; }
.help-actions small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.prose { font-size: 16px; line-height: 1.75; color: var(--text); max-width: 760px; }
.prose h2 { font-size: 22px; margin: 1.6em 0 .5em; }
.prose h3 { font-size: 18px; margin: 1.4em 0 .4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose a { color: var(--brand-700); text-decoration: underline; }

.offer-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .offer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .offer-grid { grid-template-columns: repeat(3, 1fr); } }
.offer-grid .voucher { width: auto; }

.apply-hero { display: grid; gap: 22px; padding: 22px 0; }
.apply-hero h1 { font-size: 30px; letter-spacing: -.035em; }
.apply-points { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.apply-points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; color: var(--ink); }
.apply-points .icon { color: #fff; background: var(--green); border-radius: 50%; padding: 4px; width: 26px; height: 26px; stroke-width: 3; flex: none; }
@media (min-width: 1024px) { .apply-hero { grid-template-columns: 1fr 460px; gap: 50px; align-items: start; padding: 44px 0; } .apply-hero h1 { font-size: 44px; } }

/* ---------------------------------------------------------------- location sheet */
.loc-list { display: grid; gap: 4px; padding: 6px 12px 16px; }
.loc-option { display: flex; align-items: center; gap: 12px; padding: 11px 10px; border-radius: 14px; text-align: left; width: 100%; }
.loc-option:hover { background: var(--surface); }
.loc-option .lo-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--surface); display: grid; place-items: center; color: var(--ink); flex: none; }
.loc-option.is-current .lo-ic { background: var(--brand); color: #fff; }
.loc-option b { display: block; font-size: 14.5px; color: var(--ink); }
.loc-option small { display: block; font-size: 12.5px; color: var(--muted); }
.loc-option .check-ic { margin-left: auto; color: var(--brand); }
.loc-group-title { font-size: 12px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); padding: 12px 22px 4px; }
.locate-btn { display: flex; align-items: center; gap: 12px; margin: 8px 12px 0; padding: 12px 10px; border-radius: 14px; color: var(--brand-700); font-weight: 750; width: calc(100% - 24px); }
.locate-btn:hover { background: var(--brand-50); }
.locate-btn .lo-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--brand-50); display: grid; place-items: center; }

/* ---------------------------------------------------------------- maintenance, errors, offline */
.status-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; text-align: center; }
.status-page .illustration { width: min(280px, 70vw); margin: 0 auto 18px; }
.status-page h1 { font-size: 28px; }
.status-page p { color: var(--muted); max-width: 440px; margin: 0 auto 22px; }

@media print {
  .app-header, .bottom-nav, .basket-bar, .app-footer, .no-print { display: none !important; }
  body { padding: 0 !important; }
}

/* ---------------------------------------------------------------- misc */
.save-btn.is-saved { color: var(--red); border-color: #F5C2C4; background: var(--red-50); }
.save-btn.is-saved .icon { fill: var(--red); }
.rcard-link { position: absolute; inset: 0; z-index: 1; border-radius: var(--r); }
.rcard-body { position: relative; }
.btn.is-soft-disabled { opacity: .6; box-shadow: none; }
.item-hint { font-size: 12.5px; color: var(--brand-700); font-weight: 700; text-align: center; margin: 0 0 8px; min-height: 0; }
.item-hint:empty { display: none; }
.dish-add.is-busy { opacity: .5; pointer-events: none; }
.pagination { display: flex; gap: 6px; justify-content: center; margin: 24px 0; flex-wrap: wrap; }
.pagination a, .pagination span { min-width: 40px; height: 40px; padding: 0 10px; border-radius: 12px; display: grid; place-items: center; font-weight: 700; background: var(--surface); color: var(--ink); }
.pagination a:hover { background: var(--surface-2); }
.pagination .is-active { background: var(--ink); color: #fff; }
.pagination .is-disabled { opacity: .4; }
.pagination .gap { background: transparent; }
.il-brand { fill: var(--brand); } .il-brand-soft { fill: var(--brand-100); } .il-brand-50 { fill: var(--brand-50); }
.il-ink { fill: var(--ink); } .il-line { fill: var(--line-2); } .il-surface { fill: var(--surface); } .il-white { fill: #fff; }
.il-stroke-ink { stroke: var(--ink); } .il-stroke-brand { stroke: var(--brand); }
