/* =========================================================
   BurgerGo — gaya berdasarkan UI FoodGo
   ========================================================= */

:root {
  --red: #EF2A39;
  --red-dark: #D11F2D;
  --red-soft: #FDE8EA;
  --dark: #3C2F2F;
  --text: #3C2F2F;
  --muted: #6A6A6A;
  --line: #EEEEEE;
  --pill: #F3F4F6;
  --bg: #FFFFFF;
  --green: #1DA851;
  --star: #FF9633;
  --radius: 20px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .08);
  --shadow-red: 0 8px 20px rgba(239, 42, 57, .35);
  --nav-h: 76px;
  --font-logo: 'Lobster', cursive;
  --font: 'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: var(--font);
  color: var(--text);
  background: linear-gradient(160deg, #FF5A66 0%, var(--red) 55%, #C91D2B 100%) fixed;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
svg { width: 24px; height: 24px; flex: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid rgba(239, 42, 57, .45); outline-offset: 2px; }

/* ---------- Shell (mobile-first, bingkai telefon di desktop) ---------- */
.app {
  position: relative;
  max-width: 460px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  overflow-x: hidden;
}
@media (min-width: 520px) {
  body { padding: 28px 0; }
  .app {
    min-height: calc(100vh - 56px);
    border-radius: 40px;
    border: 8px solid #fff;
    box-shadow: 0 30px 80px rgba(80, 0, 10, .35);
  }
}

.view {
  padding: 24px 22px calc(var(--nav-h) + 40px);
  animation: viewIn .35s ease both;
}
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- Splash ---------- */
.splash {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: linear-gradient(180deg, #FF7A84 0%, var(--red) 55%, #E3202F 100%);
  overflow: hidden;
  transition: opacity .5s ease, visibility .5s;
}
.splash.is-hidden { opacity: 0; visibility: hidden; }
.splash .logo { margin-top: -18vh; animation: pop .7s cubic-bezier(.2, 1.4, .4, 1) both; }
.splash__burger { position: absolute; bottom: -4vh; filter: drop-shadow(0 18px 20px rgba(0,0,0,.25)); }
.splash__burger--back  { left: -8vw; width: min(62vw, 330px); animation: rise .8s .15s ease-out both; }
.splash__burger--front { left: 30vw; width: min(46vw, 250px); bottom: -2vh; animation: rise .8s .3s ease-out both; }
@media (min-width: 520px) { .splash__burger--front { left: calc(50% - 40px); } .splash__burger--back { left: calc(50% - 300px); } }
@keyframes pop  { from { opacity: 0; transform: scale(.6); } to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(60px); } to { opacity: 1; transform: none; } }

/* ---------- Logo & header ---------- */
.logo {
  font-family: var(--font-logo);
  font-weight: 400;
  font-size: 44px;
  line-height: 1.05;
  margin: 0;
  color: var(--dark);
  letter-spacing: .5px;
}
.logo--light { color: #fff; font-size: 64px; text-shadow: 0 4px 18px rgba(0,0,0,.15); }
.logo--sm { font-size: 34px; }

.home-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.home-header__slogan { margin: 6px 0 0; color: var(--muted); font-size: 18px; font-weight: 500; }

.avatar-btn {
  position: relative;
  width: 60px; height: 60px; border-radius: 18px;
  display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.avatar-btn svg { width: 30px; height: 30px; }
.status-dot {
  position: absolute; top: 6px; right: 6px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #bbb; border: 2px solid #fff;
}
.status-dot.is-open { background: var(--green); }
.status-dot.is-closed { background: var(--red); }

.closed-banner {
  display: flex; gap: 10px; align-items: center;
  margin-top: 18px; padding: 12px 14px;
  border-radius: 14px; background: var(--red-soft); color: var(--red-dark);
  font-size: 14px; font-weight: 500;
}

/* ---------- Search ---------- */
.search-row { display: flex; gap: 14px; margin-top: 30px; }
.search {
  flex: 1; display: flex; align-items: center; gap: 12px;
  height: 60px; padding: 0 18px;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow);
}
.search input { flex: 1; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 500; min-width: 0; }
.search input::placeholder { color: var(--dark); opacity: .85; }
.search:focus-within { box-shadow: 0 0 0 2px var(--red), var(--shadow); }

.icon-btn {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center; color: var(--dark);
  transition: transform .15s ease, background .2s;
}
.icon-btn:active { transform: scale(.92); }
.icon-btn--red { width: 60px; height: 60px; border-radius: 20px; background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.icon-btn--red svg { width: 28px; height: 28px; color: #fff; }
.icon-btn--red svg circle { fill: var(--red); stroke: #fff; }
.icon-btn--ghost { visibility: hidden; }

.sort-panel { margin-top: 16px; animation: viewIn .25s ease both; }
.sort-panel__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 8px; }

/* ---------- Chips / kategori ---------- */
.chips, .categories { display: flex; gap: 12px; }
.categories {
  margin: 28px -22px 0; padding: 4px 22px 14px;
  overflow-x: auto; scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 0 22px; height: 44px; border-radius: 16px;
  background: var(--pill); color: var(--muted);
  font-size: 16px; font-weight: 500;
  transition: background .2s, color .2s, box-shadow .2s, transform .15s;
}
.sort-panel .chip { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.chips { flex-wrap: wrap; gap: 8px; }
.chip:active { transform: scale(.95); }
.chip.is-active { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }

/* ---------- Grid menu ---------- */
.menu-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 18px; margin-top: 14px; }
.card {
  position: relative;
  display: flex; flex-direction: column;
  padding: 14px 12px 12px;
  background: #fff; border-radius: 22px; box-shadow: var(--shadow);
  text-align: left;
  animation: cardIn .45s ease both;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.1); }
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card__img { height: 118px; display: grid; place-items: center; margin-bottom: 10px; }
.card__img img { max-height: 118px; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(0,0,0,.12)); transition: transform .3s ease; }
.card:hover .card__img img { transform: scale(1.06) rotate(-2deg); }
.card__name { font-weight: 700; font-size: 16px; line-height: 1.3; }
.card__sub { font-size: 15px; color: var(--text); margin-top: 2px; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.card__price { font-weight: 700; color: var(--red); font-size: 15px; }
.card__rating { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; margin-top: 6px; }
.card__rating svg { width: 16px; height: 16px; color: var(--star); }
.card.is-soldout { opacity: .55; }
.card__badge {
  position: absolute; top: 10px; left: 10px;
  padding: 3px 8px; border-radius: 8px;
  background: var(--dark); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .3px;
}
.card__open { position: absolute; inset: 0; border-radius: inherit; z-index: 1; }
.fav-btn { position: relative; z-index: 2; color: var(--dark); width: 34px; height: 34px; display: grid; place-items: center; margin: -6px -4px -6px 0; }
.fav-btn.is-fav { color: var(--red); }
.fav-btn.is-fav svg { animation: beat .35s ease; }
@keyframes beat { 50% { transform: scale(1.3); } }

.empty { text-align: center; color: var(--muted); margin: 40px 0; }

.skeleton { height: 230px; border-radius: 22px; background: linear-gradient(90deg, #f4f4f4 0%, #fafafa 50%, #f4f4f4 100%) 0 0 / 200% 100%; animation: shimmer 1.2s infinite linear; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* ---------- Bottom nav ---------- */
.bottom-nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  z-index: 30;
  width: 100%; max-width: 460px; height: var(--nav-h);
  padding: 0 18px env(safe-area-inset-bottom);
  display: grid; grid-template-columns: 1fr 1fr 96px 1fr 1fr; align-items: center; justify-items: center;
  background: var(--red);
  border-radius: 26px 26px 0 0;
  -webkit-mask: radial-gradient(circle 46px at 50% 0, transparent 44px, #000 45px);
          mask: radial-gradient(circle 46px at 50% 0, transparent 44px, #000 45px);
}
@media (min-width: 520px) { .bottom-nav { bottom: 36px; max-width: 444px; border-radius: 26px 26px 32px 32px; } }
.bottom-nav__item {
  position: relative;
  width: 48px; height: 48px; display: grid; place-items: center;
  color: #fff; opacity: .9;
}
.bottom-nav__item svg { width: 27px; height: 27px; }
.bottom-nav__item.is-active { opacity: 1; }
.bottom-nav__item.is-active::after {
  content: ''; position: absolute; bottom: 2px; width: 5px; height: 5px; border-radius: 50%; background: #fff;
}
.fab {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) - 36px); transform: translateX(-50%);
  z-index: 31;
  width: 72px; height: 72px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--red); color: #fff;
  box-shadow: 0 10px 24px rgba(239, 42, 57, .45);
  transition: transform .2s ease;
}
@media (min-width: 520px) { .fab { bottom: calc(var(--nav-h) + 36px - 36px); } }
.fab svg { width: 30px; height: 30px; }
.fab:active { transform: translateX(-50%) scale(.92); }
.fab.bump { animation: bump .4s ease; }
@keyframes bump { 50% { transform: translateX(-50%) scale(1.15); } }
.fab__badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 24px; height: 24px; padding: 0 6px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--dark); color: #fff; font-size: 12px; font-weight: 700;
  border: 2px solid #fff;
}
body.hide-nav .bottom-nav, body.hide-nav .fab { display: none; }

/* ---------- Topbar ---------- */
.topbar { display: flex; align-items: center; justify-content: space-between; margin: -6px -8px 0; }
.topbar svg { width: 26px; height: 26px; }
.topbar__title { margin: 0; font-size: 20px; font-weight: 700; }

/* ---------- Detail ---------- */
.view--detail, .view--page:has(.action-bar) { padding-bottom: 130px; }
.detail__hero { height: 300px; display: grid; place-items: center; margin: 6px 0 18px; }
.detail__hero img { max-height: 290px; object-fit: contain; filter: drop-shadow(0 22px 22px rgba(0,0,0,.18)); animation: heroIn .6s cubic-bezier(.2, 1.2, .4, 1) both; }
@keyframes heroIn { from { opacity: 0; transform: scale(.8) rotate(-6deg); } to { opacity: 1; transform: none; } }
.detail__name { margin: 0; font-size: 26px; font-weight: 700; }
.detail__meta { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--muted); font-size: 15px; font-weight: 500; }
.detail__meta svg { width: 18px; height: 18px; color: var(--star); }
.detail__desc { margin: 20px 0 0; color: var(--muted); font-size: 16px; line-height: 1.75; }
.detail__options { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-top: 34px; }
.option-label { display: block; font-size: 15px; font-weight: 500; margin-bottom: 14px; }

.spicy { flex: 1; max-width: 190px; }
.portion { margin-left: auto; }
.cart-item__opt--warn { color: var(--red); font-weight: 500; }
.card__price { margin-top: 4px; }
.spicy input[type=range] {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 5px; border-radius: 3px; margin: 8px 0;
  background: linear-gradient(90deg, var(--red) var(--fill, 50%), #eee var(--fill, 50%));
}
.spicy input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 16px; height: 22px; border-radius: 6px;
  background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.spicy input[type=range]::-moz-range-thumb {
  width: 12px; height: 18px; border-radius: 6px;
  background: var(--red); border: 3px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.25);
}
.spicy__scale { display: flex; justify-content: space-between; font-size: 13px; font-weight: 500; color: var(--muted); }
.spicy__scale .mild { color: var(--green); }
.spicy__scale .hot { color: var(--red); }

.stepper { display: flex; align-items: center; gap: 18px; }
.stepper__btn {
  width: 44px; height: 44px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--red); color: #fff; box-shadow: var(--shadow-red);
  transition: transform .15s;
}
.stepper__btn:active { transform: scale(.9); }
.stepper__btn svg { width: 20px; height: 20px; }
.stepper__btn:disabled { opacity: .4; box-shadow: none; }
.stepper__value { min-width: 18px; text-align: center; font-size: 18px; font-weight: 700; }
.stepper--sm { gap: 10px; }
.stepper--sm .stepper__btn { width: 32px; height: 32px; border-radius: 10px; box-shadow: none; }
.stepper--sm .stepper__btn svg { width: 16px; height: 16px; }
.stepper--sm .stepper__value { font-size: 16px; }

/* ---------- Action bar & butang ---------- */
.action-bar {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%);
  z-index: 20;
  width: 100%; max-width: 460px;
  display: flex; gap: 18px; align-items: center;
  padding: 16px 22px calc(18px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, #fff 30%);
}
@media (min-width: 520px) { .action-bar { bottom: 36px; max-width: 444px; border-radius: 0 0 32px 32px; } }
.price-pill {
  flex: none; min-width: 110px; height: 70px; padding: 0 20px;
  display: grid; place-items: center;
  border-radius: 20px; background: var(--red); color: #fff;
  font-size: 22px; font-weight: 700; box-shadow: var(--shadow-red);
}
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 56px; padding: 0 22px; border-radius: 18px;
  font-size: 16px; font-weight: 500; letter-spacing: .3px;
  transition: transform .15s ease, opacity .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.action-bar .btn { flex: 1; min-width: 0; height: 70px; padding: 0 14px; border-radius: 20px; font-size: 17px; white-space: nowrap; }
@media (max-width: 400px) { .action-bar .btn { font-size: 15px; } }
.btn--dark { background: var(--dark); color: #fff; box-shadow: 0 10px 24px rgba(60, 47, 47, .3); }
.btn--red { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.btn--whatsapp { background: #25D366; color: #fff; }
.btn--link { color: var(--muted); height: 44px; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading::after {
  content: ''; width: 18px; height: 18px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Troli ---------- */
.cart-empty { text-align: center; padding: 50px 0; color: var(--muted); }
.cart-empty img { width: 160px; margin: 0 auto 14px; opacity: .9; }
.cart-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 14px; }
.cart-item {
  display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center;
  padding: 12px; border-radius: 20px; background: #fff; box-shadow: var(--shadow);
}
.cart-item__img { width: 72px; height: 64px; display: grid; place-items: center; background: var(--pill); border-radius: 16px; }
.cart-item__img img { max-height: 56px; }
.cart-item__name { font-weight: 700; font-size: 15px; }
.cart-item__opt { font-size: 13px; color: var(--muted); margin-top: 2px; }
.cart-item__price { font-weight: 700; color: var(--red); margin-top: 6px; font-size: 15px; }
.cart-item__side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.remove-btn { color: #aaa; width: 30px; height: 30px; display: grid; place-items: center; }
.remove-btn svg { width: 19px; height: 19px; }

.section-title { margin: 30px 0 12px; font-size: 17px; font-weight: 700; }

.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.segmented__opt input, .pay-opt input { position: absolute; opacity: 0; pointer-events: none; }
.segmented__opt span {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: 54px; border-radius: 16px;
  background: var(--pill); color: var(--muted); font-weight: 500;
  cursor: pointer; transition: all .2s;
}
.segmented__opt input:checked + span { background: var(--red); color: #fff; box-shadow: var(--shadow-red); }
.segmented__opt input:focus-visible + span { outline: 3px solid rgba(239,42,57,.45); outline-offset: 2px; }
.segmented__opt.is-disabled span { opacity: .45; cursor: not-allowed; }

.info-card {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 14px; padding: 14px; border-radius: 16px;
  background: var(--red-soft);
}
.info-card svg { color: var(--red); margin-top: 1px; }
.info-card strong { font-size: 14px; }
.info-card p { margin: 3px 0 0; font-size: 14px; color: var(--muted); line-height: 1.5; }

.field { display: block; margin-top: 14px; }
.field > span { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 400; }
.field input, .field select, .field textarea {
  width: 100%; padding: 14px 16px; border-radius: 14px;
  border: 1.5px solid var(--line); background: #fff; outline: 0;
  font-size: 16px; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--red); box-shadow: 0 0 0 3px var(--red-soft); }
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: var(--red); }

.pay-options { display: grid; gap: 10px; }
.pay-opt__box {
  display: flex; gap: 14px; align-items: center;
  padding: 14px 16px; border-radius: 16px; border: 1.5px solid var(--line);
  cursor: pointer; transition: all .2s;
}
.pay-opt__box svg { color: var(--muted); }
.pay-opt__box strong { display: block; font-size: 15px; }
.pay-opt__box small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.pay-opt input:checked + .pay-opt__box { border-color: var(--red); background: var(--red-soft); }
.pay-opt input:checked + .pay-opt__box svg { color: var(--red); }
.pay-opt.is-disabled .pay-opt__box { opacity: .45; cursor: not-allowed; }

.summary { margin-top: 26px; padding: 18px; border-radius: 18px; background: var(--pill); }
.summary > div { display: flex; justify-content: space-between; padding: 5px 0; color: var(--muted); }
.summary__total { margin-top: 6px; padding-top: 12px !important; border-top: 1px dashed #d5d5d5; color: var(--text) !important; font-weight: 700; font-size: 18px; }
.summary__note { margin: 10px 0 0; font-size: 13px; color: var(--red-dark); }
.form-error { margin: 16px 0 0; padding: 12px 14px; border-radius: 12px; background: var(--red-soft); color: var(--red-dark); font-size: 14px; font-weight: 500; }

/* ---------- Berjaya ---------- */
.view--center { display: grid; place-items: center; min-height: 100vh; padding-bottom: 40px; }
.success { width: 100%; text-align: center; display: grid; gap: 12px; }
.success__badge {
  width: 96px; height: 96px; margin: 0 auto 8px; border-radius: 50%;
  display: grid; place-items: center; background: var(--red); color: #fff;
  box-shadow: 0 0 0 14px var(--red-soft), var(--shadow-red);
  animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both;
}
.success__badge svg { width: 48px; height: 48px; }
.success h2 { margin: 12px 0 0; font-size: 26px; }
.success__msg { margin: 0 0 8px; color: var(--muted); line-height: 1.6; }
.success__ticket {
  display: grid; gap: 4px; margin: 6px 0 12px; padding: 20px;
  border-radius: 20px; border: 2px dashed #e3e3e3;
}
.success__ticket span { color: var(--muted); font-size: 14px; }
.success__ticket strong { font-size: 28px; letter-spacing: 2px; }

/* ---------- Page head / semak order ---------- */
.page-head__title { margin: 0; font-family: var(--font-logo); font-weight: 400; font-size: 40px; }
.page-head p { margin: 6px 0 0; color: var(--muted); }
.track-form { margin-top: 10px; display: grid; }
.track-form .btn { margin-top: 18px; }

.track-result { margin-top: 26px; padding: 20px; border-radius: 22px; background: #fff; box-shadow: var(--shadow); animation: viewIn .3s ease both; }
.track-result__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.track-result__id { font-size: 20px; font-weight: 700; letter-spacing: 1px; }
.track-result__date { font-size: 13px; color: var(--muted); margin-top: 2px; }
.tag { display: inline-block; padding: 4px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; background: var(--pill); color: var(--muted); white-space: nowrap; }
.tag--green { background: #E3F7EA; color: #137A3A; }
.tag--red { background: var(--red-soft); color: var(--red-dark); }
.tag--amber { background: #FFF1DE; color: #A35A00; }

.timeline { list-style: none; margin: 22px 0 6px; padding: 0; }
.timeline li { position: relative; padding: 0 0 20px 36px; color: #b5b5b5; font-weight: 500; }
.timeline li::before {
  content: ''; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid #e3e3e3; background: #fff; box-sizing: border-box;
}
.timeline li::after { content: ''; position: absolute; left: 9px; top: 22px; bottom: 2px; width: 2px; background: #e9e9e9; }
.timeline li:last-child::after { display: none; }
.timeline li.is-done { color: var(--text); }
.timeline li.is-done::before { background: var(--red); border-color: var(--red); }
.timeline li.is-done::after { background: var(--red); }
.timeline li.is-current { color: var(--red); font-weight: 700; }
.timeline li.is-current::before { background: var(--red); border-color: var(--red); box-shadow: 0 0 0 6px var(--red-soft); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(239, 42, 57, .12); } }

.track-items { margin: 8px 0 0; padding: 14px 0 0; border-top: 1px dashed #e3e3e3; list-style: none; font-size: 14px; }
.track-items li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; color: var(--muted); }
.track-items li.total { color: var(--text); font-weight: 700; padding-top: 8px; }

.recent { margin-top: 10px; }
.recent__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.recent__item {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 14px 16px; border-radius: 16px; background: var(--pill); text-align: left;
}
.recent__item strong { display: block; letter-spacing: .5px; }
.recent__item small { color: var(--muted); }

/* ---------- Sheet (dialog) ---------- */
.sheet {
  width: min(460px, 100%); max-width: 100%;
  margin: auto auto 0; padding: 28px 22px 34px;
  border: 0; border-radius: 28px 28px 0 0;
  color: var(--text);
}
.sheet[open] { animation: sheetUp .3s ease both; }
.sheet::backdrop { background: rgba(30, 10, 12, .45); }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.sheet__close { position: absolute; top: 14px; right: 14px; }
.sheet__status { margin: 6px 0 8px; font-weight: 500; }

/* ---------- Toast & tag ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + 56px);
  z-index: 60;
  transform: translate(-50%, 20px);
  max-width: min(420px, calc(100% - 40px));
  padding: 12px 18px; border-radius: 14px;
  background: var(--dark); color: #fff; font-size: 14px; font-weight: 500; text-align: center;
  opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .25s;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
body.hide-nav .toast { bottom: 120px; }
.toast button { margin-left: 10px; color: #FFB3B9; font-weight: 700; text-decoration: underline; }

.demo-tag {
  position: fixed; top: 10px; left: 50%; transform: translateX(-50%);
  z-index: 50; padding: 4px 10px; border-radius: 8px;
  background: #FFC52E; color: #3C2F2F; font-size: 11px; font-weight: 700; letter-spacing: .5px;
  pointer-events: none;
}

@media (max-width: 360px) {
  .view { padding-left: 16px; padding-right: 16px; }
  .menu-grid { gap: 14px 12px; }
  .logo { font-size: 38px; }
  .price-pill { min-width: 96px; font-size: 19px; }
}

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