/* ==========================================================================
   Nyate — angkringan & bakaran arang
   Dark minimal UI: charcoal surfaces, cream ink-illustration panels.
   ========================================================================== */

:root {
  --bg: #1b1c1f;
  --raise: #232529;
  --raise-2: #2a2d32;
  --raise-3: #33363c;
  --line: rgba(255, 255, 255, .07);
  --line-2: rgba(255, 255, 255, .13);
  --cream: #e7e3da;
  --cream-2: #d6d1c6;
  --ink: #17181b;
  --text: #efede8;
  --text-2: #b9bab9;
  --muted: #878a8f;
  --open: #9cc79a;
  --closed: #d88a7c;
  --danger: #e79a8f;

  --serif: "Gilda Display", "Cormorant Garamond", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-xl: 30px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --top-h: 64px;
  --tab-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --gutter: 20px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 64px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tab-h) + var(--safe-b));
  overflow-x: clip;
}
body.is-bare { padding-bottom: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--cream); color: var(--ink); }
.i { flex: none; }

/* ---------- utilities */
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }
.narrow { max-width: 720px; }
.section { margin-top: 64px; }
.muted { color: var(--muted); }
.fine { font-size: 12.5px; color: var(--muted); line-height: 1.55; }
.center { text-align: center; }
.mono { font-variant-numeric: tabular-nums; letter-spacing: .08em; text-transform: uppercase; }
.sr-only, .hp { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 300; background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }
[hidden] { display: none !important; }

/* ---------- type */
.overline { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.display { font: 400 clamp(46px, 11vw, 84px)/.98 var(--serif); letter-spacing: -.01em; }
.h-display { font: 400 clamp(38px, 8vw, 58px)/1.02 var(--serif); letter-spacing: -.005em; }
.h-section { font: 400 clamp(25px, 4.4vw, 32px)/1.12 var(--serif); }
.h-serif { font: 400 26px/1.15 var(--serif); }
.h-card { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; margin-bottom: 16px; }
.h-card .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: var(--raise-3); color: var(--cream); }
.lead { font-size: 17px; line-height: 1.6; color: var(--text-2); }
.section-sub { color: var(--muted); font-size: 14px; margin-top: 8px; max-width: 52ch; }
.link-more { display: inline-flex; align-items: center; gap: 4px; font-size: 13.5px; font-weight: 600; color: var(--cream); white-space: nowrap; }
.link-more:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 48px; padding: 0 22px; border-radius: var(--r-sm);
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  transition: background .2s, transform .15s var(--ease), border-color .2s, opacity .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #f2efe8; }
.btn-ghost { background: var(--raise-2); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--raise-3); }
.btn-lg { height: 54px; font-size: 15px; padding: 0 26px; }
.btn-sm { height: 38px; padding: 0 16px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.btn-caps { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; }
.btn[disabled], .btn.is-loading { opacity: .55; pointer-events: none; }

.icon-btn {
  width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; position: relative;
  background: var(--raise-2); color: var(--text); border: 1px solid var(--line); transition: background .2s;
}
.icon-btn:hover { background: var(--raise-3); }
.round-btn { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; transition: transform .2s var(--ease); }
.round-btn:hover { transform: translateX(3px); }
.round-ink { background: var(--ink); color: var(--cream); }
.round-sm { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--raise-3); color: var(--text); flex: none; transition: transform .2s var(--ease); }

.badge {
  position: absolute; top: -4px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  background: var(--cream); color: var(--ink); font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  box-shadow: 0 0 0 2px var(--bg);
}
.badge.bump { animation: bump .35s var(--ease); }
@keyframes bump { 40% { transform: scale(1.35); } }

.status-pill, .status-line { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text-2); white-space: nowrap; }
.status-pill { height: 32px; padding: 0 12px; border-radius: 99px; background: var(--raise-2); border: 1px solid var(--line); }
.status-pill i, .status-line i { width: 7px; height: 7px; border-radius: 50%; background: var(--closed); }
.is-open i { background: var(--open); box-shadow: 0 0 0 4px rgba(156, 199, 154, .15); }

/* ---------- top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(27, 28, 31, .86); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); height: var(--top-h); display: flex; align-items: center; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 32px; height: 32px; border-radius: 50%; background: var(--cream); padding: 3px; }
.brand-word { font: 400 25px/1 var(--serif); letter-spacing: .01em; }
.brand-word .dot { color: var(--muted); }
.mainnav { display: none; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .status-pill { display: none; }

/* ---------- bottom tab bar (mobile) */
.tabbar {
  position: fixed; inset: auto 0 0 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(32, 34, 38, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--line);
}
.tabbar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 11px; font-weight: 500; -webkit-tap-highlight-color: transparent; }
.tabbar a[aria-current] { color: var(--cream); }
.tabbar a[aria-current] .tab-label { font-weight: 600; }
.tab-ic { position: relative; }
.tabbar .badge { top: -5px; right: -10px; box-shadow: 0 0 0 2px #202226; }

/* ---------- floating cart bar */
.cartbar { position: fixed; z-index: 55; left: 12px; right: 12px; bottom: calc(var(--tab-h) + var(--safe-b) + 10px); animation: rise .35s var(--ease); }
.cartbar-in {
  width: 100%; height: 58px; padding: 0 8px 0 18px; border-radius: 18px; display: flex; align-items: center; gap: 12px;
  background: var(--cream); color: var(--ink); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); text-align: left;
}
.cartbar-count { font-size: 13px; font-weight: 600; padding-right: 12px; border-right: 1px solid rgba(23, 24, 27, .18); }
.cartbar-total { font-weight: 700; font-size: 15px; }
.cartbar-cta { margin-left: auto; height: 42px; padding: 0 14px; border-radius: 12px; background: var(--ink); color: var(--cream); display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; }
.page-checkout .cartbar { display: none !important; }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } }

/* ---------- hero */
.hero { display: grid; gap: 28px; padding-top: 16px; }
.hero-art {
  position: relative; background: var(--cream); color: var(--ink); border-radius: var(--r-xl); overflow: hidden;
  display: flex; flex-direction: column; min-height: 0;
}
.hero-slides { position: relative; aspect-ratio: 1 / .92; }
.hero-slide { position: absolute; inset: 0; display: block; padding: 22px 26px 0; opacity: 0; transform: scale(.98); transition: opacity .7s var(--ease), transform .9s var(--ease); }
.hero-slide img { width: 100%; height: 100%; object-fit: contain; }
.hero-slide:not(.is-active) { pointer-events: none; }
.hero-slide.is-active { opacity: 1; transform: none; }
.hero-caption { display: grid; gap: 14px; padding: 10px 22px 22px; }
.hero-caption-text { flex: 1; min-width: 0; }
.hero-slide-title { font: 400 22px/1.15 var(--serif); }
.hero-slide-sub { font-size: 12.5px; color: rgba(23, 24, 27, .62); margin-top: 4px; line-height: 1.45; }
.hero-ctrl { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dots { display: flex; gap: 7px; padding: 6px 0; }
.dots button { width: 7px; height: 7px; border-radius: 99px; background: rgba(23, 24, 27, .25); transition: width .3s var(--ease), background .3s; }
.dots button[aria-selected="true"] { width: 22px; background: var(--ink); }
.hero-copy { padding-inline: 2px; }
.hero-copy .lead { margin-top: 18px; max-width: 46ch; }
.hero-cta { display: grid; gap: 10px; margin-top: 28px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-facts strong { display: block; font: 400 22px/1.1 var(--serif); color: var(--cream); }
.hero-facts span { display: block; font-size: 12px; color: var(--muted); margin-top: 4px; line-height: 1.4; }

/* ---------- today / suggestion */
.today-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.today-grid { display: grid; gap: 12px; }
.suggest-card {
  display: flex; align-items: center; gap: 16px; width: 100%; text-align: left;
  padding: 18px 16px 18px 20px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line);
  transition: background .2s, border-color .2s;
}
.suggest-card:hover { background: var(--raise-2); border-color: var(--line-2); }
.suggest-card:hover .round-sm { transform: translateX(3px); }
.suggest-copy { flex: 1; min-width: 0; }
.suggest-title { display: block; font-weight: 600; font-size: 15.5px; }
.suggest-sub { display: block; font-size: 13px; color: var(--muted); margin-top: 3px; line-height: 1.45; }

/* ---------- section head */
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }

/* ---------- category tiles (like the reference grid) */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.cat-tile { display: block; }
.cat-art { display: grid; place-items: center; aspect-ratio: 4 / 3; background: var(--cream); border-radius: var(--r-sm); padding: 10px 14px; overflow: hidden; transition: transform .3s var(--ease); }
.cat-art img { width: 100%; height: 100%; object-fit: contain; transition: transform .5s var(--ease); }
.cat-tile:hover .cat-art img { transform: scale(1.05) rotate(-1deg); }
.cat-name { display: block; font-size: 13.5px; font-weight: 500; color: var(--text-2); margin-top: 10px; }
.cat-tile:hover .cat-name { color: var(--text); }

/* ---------- dish card */
.dish { display: flex; flex-direction: column; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; transition: border-color .2s; }
.dish:hover { border-color: var(--line-2); }
.dish-media { position: relative; display: block; aspect-ratio: 4 / 3; background: #2d2a26; overflow: hidden; }
.dish-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.dish-media:hover img { transform: scale(1.04); }
.dish-media.is-illus { background: var(--cream); }
.dish-media.is-illus img { object-fit: contain; padding: 12px 18px; }
.dish-tag { position: absolute; top: 10px; left: 10px; height: 22px; padding: 0 9px; border-radius: 99px; display: inline-flex; align-items: center; font-size: 10.5px; font-weight: 600; letter-spacing: .04em; background: rgba(23, 24, 27, .78); color: var(--cream); backdrop-filter: blur(6px); }
.dish-tag.tag-signature { background: var(--cream); color: var(--ink); }
.is-illus .dish-tag { background: var(--ink); }
.dish-body { flex: 1; display: flex; flex-direction: column; padding: 12px 12px 12px 14px; }
.dish-name { font-size: 14.5px; font-weight: 600; line-height: 1.3; }
.dish-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; color: var(--muted); margin-top: 4px; line-height: 1.45; }
.dish-foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; }
.dish-price { font-size: 14px; font-weight: 600; color: var(--cream); line-height: 1.2; }
.dish-price small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); }

.add-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); transition: transform .15s var(--ease), background .2s; flex: none; }
.add-btn:hover { background: #f4f1ea; }
.add-btn:active { transform: scale(.9); }

.stepper { display: inline-flex; align-items: center; height: 38px; border-radius: 99px; background: var(--raise-3); border: 1px solid var(--line); }
.stepper button { width: 34px; height: 100%; display: grid; place-items: center; border-radius: 99px; color: var(--text); }
.stepper button:hover { background: rgba(255, 255, 255, .06); }
.stepper .qty, .stepper input { min-width: 22px; width: 26px; text-align: center; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; }
.stepper input { background: none; border: 0; -moz-appearance: textfield; padding: 0; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }
.stepper-lg { height: 50px; }
.stepper-lg button { width: 50px; }
.stepper-lg input { width: 46px; font-size: 18px; }
.stepper.in-cream { background: var(--cream); color: var(--ink); border-color: transparent; }
.stepper.in-cream button { color: var(--ink); }

/* ---------- horizontal scroller */
.scroller { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 2px var(--gutter) 12px; scrollbar-width: none; scroll-padding-inline: var(--gutter); }
.scroller::-webkit-scrollbar { display: none; }
.scroller .dish { flex: 0 0 min(64vw, 250px); scroll-snap-align: start; }
.scroller-nav { display: flex; gap: 8px; }

/* ---------- steps */
.steps { display: grid; gap: 12px; margin-top: 20px; counter-reset: s; }
.steps li { display: flex; gap: 16px; padding: 20px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.step-n { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); font: 400 20px/1 var(--serif); }
.steps h3 { font-size: 15px; font-weight: 600; }
.steps p { font-size: 13.5px; color: var(--muted); margin-top: 4px; }

/* ---------- feature card (reference screen 3) */
.feature-card { position: relative; }
.feature-art { background: var(--cream); border-radius: var(--r-lg); padding: 26px 22px 70px; display: grid; place-items: center; }
.feature-art img { width: 100%; max-width: 520px; }
.feature-over {
  position: relative; margin: -56px 14px 0; padding: 24px 22px 22px; border-radius: var(--r-md);
  background: #26282c; border: 1px solid var(--line); text-align: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .35);
}
.feature-over p { color: var(--muted); font-size: 13.5px; margin: 8px auto 20px; max-width: 38ch; }
.feature-compact .feature-art { padding: 20px 18px 60px; }
.feature-compact .feature-over { text-align: left; }
.rules { display: grid; gap: 12px; margin-top: 14px; }
.rules li { display: flex; gap: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.5; }
.rules .i { margin-top: 2px; color: var(--muted); }

/* ---------- story */
.story { display: grid; gap: 24px; align-items: center; }
.story-photo { border-radius: var(--r-lg); overflow: hidden; aspect-ratio: 3 / 2; }
.story-photo img { width: 100%; height: 100%; object-fit: cover; }
.story-copy p:not(.overline) { color: var(--text-2); margin: 14px 0 18px; }

/* ---------- resource list (reference "Resources") */
.resource-list { margin-top: 12px; }
.resource-list li + li { border-top: 1px solid var(--line); }
.resource-list a { display: flex; align-items: center; gap: 14px; padding: 15px 2px; color: var(--muted); }
.res-ic, .ll-ic { flex: none; width: 42px; height: 42px; border-radius: 11px; display: grid; place-items: center; background: var(--raise-2); border: 1px solid var(--line); color: var(--text-2); }
.res-text { flex: 1; min-width: 0; color: var(--text); font-size: 15px; font-weight: 500; line-height: 1.35; }
.res-text small, .list-links small { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .14em; color: var(--muted); margin-bottom: 2px; }
.resource-list a:hover .res-text { color: var(--cream); }

/* ---------- page head */
.page-head { padding-top: 28px; padding-bottom: 8px; }
.page-head-sm { padding-top: 18px; }
.back-link { display: inline-flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--text-2); margin-bottom: 18px; }
.back-link .icon-btn { width: 34px; height: 34px; }

/* ---------- menu page */
.menu-search { margin-top: 22px; display: grid; gap: 14px; }
.search { display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 16px; border-radius: 14px; background: var(--raise-2); border: 1px solid var(--line); color: var(--muted); transition: border-color .2s; }
.search:focus-within { border-color: var(--cream-2); }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; outline: 0; color: var(--text); font-size: 15px; }
.search input::placeholder { color: var(--muted); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.chips::-webkit-scrollbar { display: none; }
.chip, .chip-radio span {
  flex: none; display: inline-flex; align-items: center; height: 36px; padding: 0 15px; border-radius: 99px;
  background: var(--raise-2); border: 1px solid var(--line); color: var(--text-2); font-size: 13px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: all .2s;
}
.chip:hover, .chip-radio:hover span { border-color: var(--line-2); color: var(--text); }
.chip[aria-pressed="true"], .chip-radio input:checked + span { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }

.cat-tabs { position: sticky; top: var(--top-h); z-index: 40; margin-top: 18px; background: rgba(27, 28, 31, .9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.cat-tabs-in { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-block: 10px; }
.cat-tabs-in::-webkit-scrollbar { display: none; }
.cat-tabs a { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); transition: all .2s; }
.cat-tabs a:hover { color: var(--text); }
.cat-tabs a[aria-current] { background: var(--raise-2); color: var(--text); }
.tab-n { font-size: 11px; color: var(--muted); }

.menu-layout { display: grid; gap: 32px; padding-top: 8px; }
.menu-cat { padding-top: 30px; }
.menu-cat-head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.menu-cat-art { flex: none; width: 72px; height: 72px; border-radius: 14px; background: var(--cream); display: grid; place-items: center; padding: 6px; }
.menu-cat-head .section-sub { margin-top: 4px; }
.dish-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.menu-aside { display: none; }
.empty { text-align: center; padding: 48px 20px; display: grid; justify-items: center; gap: 8px; }
.empty img { background: var(--cream); border-radius: 18px; padding: 10px; margin-bottom: 10px; }
.empty .btn { margin-top: 12px; }
.empty-sm { padding: 24px 12px 12px; }

/* aside card (menu + checkout) */
.aside-card { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.aside-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.aside-head .muted { font-size: 13px; }
.aside-list { max-height: calc(100vh - 380px); overflow-y: auto; margin: 0 -6px; padding: 0 6px; }
.aside-foot { border-top: 1px solid var(--line); margin-top: 14px; padding-top: 14px; display: grid; gap: 14px; }
.sum-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.sum-row strong { color: var(--text); font-size: 16px; }
.sum-total { padding-top: 12px; border-top: 1px dashed var(--line-2); margin-top: 12px; color: var(--text); font-weight: 600; }
.sum-total strong { font-size: 20px; color: var(--cream); }
.cart-empty-note { text-align: center; color: var(--muted); font-size: 13.5px; padding: 24px 8px; }
.cart-empty-note img { width: 96px; margin: 0 auto 12px; background: var(--cream); border-radius: 14px; padding: 6px; }

/* cart line (sheet, aside, checkout) */
.line-item { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; }
.line-item + .line-item { border-top: 1px solid var(--line); }
.line-thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: #2d2a26; }
.line-thumb.is-illus { background: var(--cream); object-fit: contain; padding: 4px; }
.line-name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.line-opt { display: block; font-size: 12px; color: var(--muted); font-weight: 400; }
.line-price { font-size: 13px; color: var(--text-2); margin-top: 2px; }
.line-ctl { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.line-ctl .stepper { height: 32px; }
.line-ctl .stepper button { width: 30px; }

/* ---------- sheets / modals */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(8, 8, 10, .62); backdrop-filter: blur(3px); animation: fade .25s ease; }
.sheet-panel {
  position: relative; width: 100%; max-height: 90vh; max-height: 90dvh; display: flex; flex-direction: column;
  background: #212327; border-radius: 26px 26px 0 0; border: 1px solid var(--line); border-bottom: 0;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, .5); animation: up .35s var(--ease); padding-bottom: var(--safe-b);
}
.sheet.is-closing .sheet-panel { animation: down .25s ease forwards; }
.sheet.is-closing .sheet-backdrop { animation: fade .25s ease reverse forwards; }
.sheet-grip { width: 40px; height: 4px; border-radius: 4px; background: var(--line-2); margin: 10px auto 0; flex: none; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 6px; flex: none; }
.sheet-head .overline { margin-bottom: 6px; }
.sheet-body { padding: 8px 20px 16px; overflow-y: auto; overscroll-behavior: contain; flex: 1; }
.sheet-foot { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: grid; gap: 14px; flex: none; }
.sheet-foot-row { grid-template-columns: auto 1fr; }
@keyframes up { from { transform: translateY(100%); } }
@keyframes down { to { transform: translateY(100%); } }
@keyframes fade { from { opacity: 0; } }
body.sheet-open { overflow: hidden; }

.list-links li + li { border-top: 1px solid var(--line); }
.list-links a { display: flex; align-items: center; gap: 14px; padding: 14px 0; color: var(--muted); }
.list-links a > span:nth-child(2) { flex: 1; color: var(--text); font-weight: 500; }
.status-line { margin: 4px 0 8px; }

/* item detail sheet (reference screen 3) */
.sheet-item { padding: 0; overflow: hidden; }
.item-media { position: relative; margin: 14px 14px 0; border-radius: 20px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--cream); flex: none; }
.item-media img { width: 100%; height: 100%; object-fit: cover; }
.item-media.is-illus img { object-fit: contain; padding: 18px 30px 60px; }
.item-media .icon-btn { position: absolute; top: 12px; right: 12px; background: rgba(23, 24, 27, .7); border-color: transparent; backdrop-filter: blur(6px); }
.item-card {
  position: relative; margin: -48px 26px 0; padding: 20px 20px 18px; border-radius: 16px; text-align: center;
  background: #2a2c31; border: 1px solid var(--line-2); box-shadow: 0 16px 40px rgba(0, 0, 0, .35);
}
.item-card h2 { font: 400 28px/1.1 var(--serif); }
.item-card .item-desc { font-size: 13.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.item-tags { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 10px; border-radius: 99px; background: var(--raise-3); color: var(--text-2); font-size: 11.5px; font-weight: 500; }
.item-scroll { overflow-y: auto; padding-bottom: 6px; }
.item-opts { padding: 18px 20px 4px; }
.item-opts .label { display: block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.item-actions { display: flex; gap: 12px; align-items: center; padding: 14px 20px 18px; border-top: 1px solid var(--line); margin-top: 14px; flex: none; }
.item-actions .btn { flex: 1; text-transform: uppercase; letter-spacing: .1em; font-size: 13px; }

/* segmented radio cards */
.choice-group { border: 0; padding: 0; margin: 0 0 20px; min-width: 0; }
.choice-group legend { font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; padding: 0; }
.seg { display: grid; gap: 8px; }
.seg-2 { grid-template-columns: 1fr 1fr; }
.seg label { position: relative; display: block; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span {
  height: 100%; display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 12px 14px; min-height: 56px;
  border-radius: 14px; background: var(--raise-2); border: 1px solid var(--line); transition: all .2s;
}
.seg span .i { color: var(--muted); margin-bottom: 4px; }
.seg b { font-size: 14px; font-weight: 600; }
.seg small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.seg label:hover span { border-color: var(--line-2); }
.seg input:checked + span { background: var(--raise-3); border-color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); }
.seg input:checked + span .i { color: var(--cream); }
.seg input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
.seg input:disabled + span { opacity: .45; cursor: not-allowed; }
.seg-3 { grid-template-columns: 1fr; }
.seg-3 span { flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; column-gap: 10px; }
.seg-3 span .i { margin: 0; }
.seg-3 span small { flex-basis: 100%; }
.seg-3 span:has(.i) small { padding-left: 30px; }
#sheet-suggest .seg-3 { grid-template-columns: repeat(3, 1fr); }
#sheet-suggest .seg-3 span { flex-direction: column; align-items: flex-start; justify-content: center; }
#sheet-suggest .seg-3 span small { flex-basis: auto; }

/* suggestion result */
.suggest-result { background: var(--cream); color: var(--ink); border-radius: 18px; padding: 18px; }
.sg-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-bottom: 10px; border-bottom: 1px dashed rgba(23, 24, 27, .25); }
.sg-head b { font: 400 22px/1.1 var(--serif); }
.sg-head span { font-size: 12.5px; color: rgba(23, 24, 27, .6); }
.sg-list li { display: flex; align-items: center; gap: 12px; padding: 9px 0; font-size: 14px; }
.sg-list li + li { border-top: 1px solid rgba(23, 24, 27, .1); }
.sg-list img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: #ddd8cd; }
.sg-list .sg-name { flex: 1; font-weight: 600; }
.sg-list .sg-qty { color: rgba(23, 24, 27, .55); font-weight: 400; }
.sg-total { display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px dashed rgba(23, 24, 27, .25); font-weight: 700; }

/* ---------- forms */
.card { background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card + .card { margin-top: 14px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 4px; }
.card-head .h-card { margin-bottom: 0; }
.field { display: block; margin-top: 16px; }
.label { display: block; font-size: 13px; font-weight: 500; color: var(--text-2); margin-bottom: 8px; }
.label small { color: var(--muted); font-weight: 400; }
.field input, .field textarea, .select select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: var(--r-sm);
  background: #1f2124; border: 1px solid var(--line-2); color: var(--text); font-size: 15px; outline: 0; transition: border-color .2s, box-shadow .2s;
}
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input::placeholder, .field textarea::placeholder { color: #6e7176; }
.field input:focus, .field textarea:focus, .select select:focus { border-color: var(--cream-2); box-shadow: 0 0 0 3px rgba(231, 227, 218, .12); }
.field [aria-invalid="true"], .select [aria-invalid="true"] { border-color: var(--danger); }
.select { position: relative; display: block; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 42px; cursor: pointer; }
.select .i { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.select-sm select { min-height: 36px; height: 36px; padding: 0 34px 0 12px; font-size: 13px; border-radius: 10px; }
.select-sm .i { right: 10px; }
.field-row { display: grid; gap: 0 14px; }
.field-row .field:first-child { margin-top: 0; }
.field-error { font-size: 12.5px; color: var(--danger); margin-top: 8px; }
.hint { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--muted); margin-top: 12px; line-height: 1.5; }
.hint .i { margin-top: 1px; }
.cond { display: none; }
.cond.is-shown { display: block; animation: fade .3s ease; }
.alert { margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: rgba(216, 138, 124, .1); border: 1px solid rgba(216, 138, 124, .35); color: #f2c9c1; font-size: 14px; }
.alert ul { margin-top: 6px; padding-left: 18px; list-style: disc; }
.card .alert { margin: 0 0 16px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; padding: 14px 16px; border-radius: 14px; background: var(--raise-2); border: 1px solid var(--line); color: var(--text-2); font-size: 14px; line-height: 1.5; }
.notice .i { margin-top: 2px; flex: none; }

/* ---------- checkout */
.checkout { display: grid; gap: 14px; padding-top: 18px; }
.checkout-aside { display: none; }
.co-list .line-item { grid-template-columns: 56px 1fr auto; }
.co-list .line-thumb { width: 56px; height: 56px; }
.remove-btn { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.remove-btn:hover { color: var(--danger); }
.paybar { position: fixed; z-index: 55; left: 0; right: 0; bottom: calc(var(--tab-h) + var(--safe-b)); background: rgba(33, 35, 39, .97); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
.paybar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter); max-width: 720px; margin: 0 auto; }
.paybar small { display: block; font-size: 11.5px; color: var(--muted); }
.paybar strong { font-size: 18px; color: var(--cream); }
.paybar .btn { flex: 1; max-width: 240px; }
.page-checkout { padding-bottom: calc(var(--tab-h) + var(--safe-b) + 76px); }
.summary .h-serif { margin-bottom: 16px; }
.summary .sum-row + .sum-row { margin-top: 8px; }
.summary .btn { margin-top: 20px; }
.summary .fine { margin-top: 12px; }

/* ---------- receipt / done */
.done-page { padding-top: 36px; text-align: center; }
.done-art { display: inline-grid; place-items: center; background: var(--cream); border-radius: 26px; padding: 14px 20px; margin-bottom: 26px; }
.done-page .lead { margin: 14px auto 0; max-width: 46ch; }
.done-actions { display: grid; gap: 10px; margin: 28px 0 22px; }
.done-actions-row { grid-auto-flow: column; justify-content: center; }
.receipt { text-align: left; background: var(--raise); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.receipt-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px dashed var(--line-2); }
.receipt-head .overline { margin-bottom: 4px; display: block; }
.code { font-size: 26px; font-weight: 700; letter-spacing: .08em; color: var(--cream); line-height: 1.1; }
.code-sm { font-size: 15px; letter-spacing: .02em; }
.state { display: inline-flex; align-items: center; height: 28px; padding: 0 12px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--raise-3); color: var(--text-2); white-space: nowrap; }
.state-proses, .state-siap { background: rgba(231, 227, 218, .14); color: var(--cream); }
.state-selesai { background: rgba(156, 199, 154, .14); color: var(--open); }
.state-batal { background: rgba(216, 138, 124, .14); color: var(--closed); }
.timeline { display: grid; gap: 0; margin: 18px 0 4px; }
.timeline li { position: relative; display: flex; align-items: center; gap: 12px; padding: 8px 0; font-size: 14px; color: var(--muted); }
.timeline li:not(:last-child)::after { content: ""; position: absolute; left: 11px; top: 32px; height: calc(100% - 24px); width: 2px; background: var(--line-2); }
.timeline li.done::after { background: var(--cream-2); }
.tl-dot { width: 24px; height: 24px; flex: none; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line-2); background: var(--raise); color: var(--ink); }
.timeline .done { color: var(--text-2); }
.timeline .done .tl-dot { background: var(--cream-2); border-color: var(--cream-2); }
.timeline .now { color: var(--text); font-weight: 600; }
.timeline .now .tl-dot { border-color: var(--cream); box-shadow: 0 0 0 4px rgba(231, 227, 218, .15); }
.timeline .now .tl-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cream); animation: pulse 1.6s ease infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.receipt-lines { margin-top: 12px; }
.receipt-lines li { display: flex; gap: 10px; padding: 8px 0; font-size: 14px; }
.rl-qty { width: 30px; color: var(--muted); font-variant-numeric: tabular-nums; flex: none; }
.rl-name { flex: 1; }
.rl-name small { display: block; color: var(--muted); font-size: 12px; }
.rl-total { font-variant-numeric: tabular-nums; color: var(--text-2); }
.receipt-meta { margin-top: 16px; padding-top: 16px; border-top: 1px dashed var(--line-2); display: grid; gap: 10px; font-size: 14px; }
.receipt-meta div { display: grid; grid-template-columns: 96px 1fr; gap: 12px; }
.receipt-meta dt { color: var(--muted); }
.done-page .fine { margin-top: 18px; }
.done-page .fine a { color: var(--cream); display: inline-flex; align-items: center; gap: 4px; }

/* ---------- reservation */
.reserve { display: grid; gap: 14px; padding-top: 18px; }
.reserve-aside { display: grid; gap: 14px; align-content: start; }
.date-strip { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -20px; padding: 2px 20px 4px; scroll-snap-type: x proximity; }
.date-strip::-webkit-scrollbar { display: none; }
.date-chip { position: relative; flex: none; scroll-snap-align: start; cursor: pointer; }
.date-chip input { position: absolute; opacity: 0; pointer-events: none; }
.date-chip span { display: grid; justify-items: center; width: 66px; padding: 10px 0; border-radius: 14px; background: var(--raise-2); border: 1px solid var(--line); transition: all .2s; }
.date-chip small { font-size: 11px; color: var(--muted); line-height: 1.3; white-space: nowrap; }
.date-chip b { font: 400 26px/1.15 var(--serif); }
.date-chip input:checked + span { background: var(--cream); border-color: var(--cream); color: var(--ink); }
.date-chip input:checked + span small { color: rgba(23, 24, 27, .65); }
.date-chip input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
.pax { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 4px 0 18px; }
.pax .label { margin: 0; font-size: 14px; }
.area-grid { display: grid; gap: 8px; }
.area-card { position: relative; cursor: pointer; }
.area-card input { position: absolute; opacity: 0; pointer-events: none; }
.area-card span { display: grid; gap: 2px; padding: 14px 16px; border-radius: 14px; background: var(--raise-2); border: 1px solid var(--line); transition: all .2s; }
.area-card b { font-size: 14.5px; }
.area-card small { font-size: 12.5px; color: var(--muted); }
.area-card em { font-style: normal; font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 5px; margin-top: 6px; }
.area-card input:checked + span { background: var(--raise-3); border-color: var(--cream); box-shadow: inset 0 0 0 1px var(--cream); }
.area-card input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
.area-card input:disabled + span { opacity: .4; cursor: not-allowed; }
.slot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { position: relative; cursor: pointer; }
.slot input { position: absolute; opacity: 0; pointer-events: none; }
.slot span { display: grid; place-items: center; height: 46px; border-radius: 12px; background: var(--raise-2); border: 1px solid var(--line); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; transition: all .2s; }
.slot:hover span { border-color: var(--line-2); }
.slot input:checked + span { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.slot input:focus-visible + span { outline: 2px solid var(--cream); outline-offset: 2px; }
.slot input:disabled + span { opacity: .35; text-decoration: line-through; cursor: not-allowed; }
.reserve-form .card:last-child .btn { margin-top: 22px; }

/* ---------- about */
.about-intro { display: grid; gap: 32px; margin-top: 20px; }
.collage { display: grid; grid-template-columns: 1.3fr 1fr; grid-template-rows: auto auto; gap: 10px; }
.collage figure { border-radius: var(--r-md); overflow: hidden; }
.collage img { width: 100%; height: 100%; object-fit: cover; }
.collage .c1 { grid-row: span 2; }
.collage .c2 { aspect-ratio: 1; }
.collage .c3 { aspect-ratio: 1; }
.prose p + p { margin-top: 16px; }
.prose p:not(.lead) { color: var(--text-2); }
.prose .lead { font: 400 24px/1.3 var(--serif); color: var(--text); margin-bottom: 20px; }
.values { display: grid; gap: 12px; margin-top: 20px; }
.value { padding: 22px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.value-ic { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); color: var(--ink); margin-bottom: 16px; }
.value h3 { font: 400 21px/1.2 var(--serif); }
.value p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.explain { display: grid; gap: 24px; align-items: center; }
.explain-art { background: var(--cream); border-radius: var(--r-lg); padding: 24px; display: grid; place-items: center; }
.explain-art img { max-height: 380px; }
.explain-copy > p:not(.overline) { color: var(--text-2); margin-top: 14px; }
.glossary { margin-top: 20px; display: grid; gap: 0; }
.glossary div { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.glossary dt { font-weight: 600; font-size: 14.5px; }
.glossary dd { color: var(--muted); font-size: 14px; }
.gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.gallery figure { position: relative; border-radius: var(--r-md); overflow: hidden; aspect-ratio: 4 / 5; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 10px; bottom: 10px; height: 26px; padding: 0 10px; display: inline-flex; align-items: center; border-radius: 99px; background: rgba(23, 24, 27, .75); backdrop-filter: blur(6px); font-size: 11.5px; }
.cta-band { display: grid; gap: 20px; padding: 28px 24px; border-radius: var(--r-lg); background: var(--raise); border: 1px solid var(--line); text-align: center; justify-items: center; }
.cta-band .h-serif { font-size: 30px; }
.cta-band-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.credits .fine { margin: 8px 0 12px; max-width: 70ch; }
.credit-list { display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.credit-list a { color: var(--text-2); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }

/* ---------- contact */
.contact { display: grid; gap: 28px; margin-top: 20px; }
.contact .resource-list { margin-top: 0; }
.map-card { margin-top: 18px; border-radius: var(--r-lg); overflow: hidden; background: var(--raise); border: 1px solid var(--line); }
.map-card iframe { display: block; width: 100%; height: 260px; border: 0; filter: grayscale(1) invert(.9) contrast(.85) brightness(.95); }
.map-foot { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; flex-wrap: wrap; }
.map-addr { display: flex; gap: 8px; font-size: 14px; font-weight: 500; }
.map-foot .muted { display: flex; gap: 8px; align-items: center; font-size: 13px; margin-top: 6px; }
.contact-form > .muted { font-size: 14px; margin: 6px 0 20px; }
.contact-form .choice-group { margin-bottom: 4px; }
.contact-form .chips { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.contact-form .btn { margin-top: 22px; }
.sent { text-align: center; display: grid; justify-items: center; gap: 10px; padding: 18px 0; }
.sent img { background: var(--cream); border-radius: 18px; padding: 10px; margin-bottom: 8px; }
.faq-list { margin-top: 18px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 2px; cursor: pointer; font-weight: 500; font-size: 15px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-ic { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--raise-2); transition: transform .3s var(--ease), background .2s; }
.faq-list details[open] .faq-ic { transform: rotate(45deg); background: var(--cream); color: var(--ink); }
.faq-list details p { padding: 0 48px 20px 2px; color: var(--muted); font-size: 14.5px; }

/* ---------- footer */
.footer { margin-top: 88px; border-top: 1px solid var(--line); padding: 44px 0 24px; background: #18191c; }
.footer-grid { display: grid; gap: 30px; grid-template-columns: 1fr 1fr; }
.footer-brand { grid-column: 1 / -1; }
.footer-brand p { color: var(--muted); font-size: 14px; margin-top: 14px; max-width: 36ch; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.footer-h { font-size: 11px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.footer-links { display: grid; gap: 10px; font-size: 14px; color: var(--text-2); }
.footer-links a:hover, .footer-text a:hover { color: var(--cream); }
.footer-text { font-size: 14px; color: var(--text-2); line-height: 1.7; }
.footer-text + .footer-text { margin-top: 10px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.footer-bottom a:hover { color: var(--text); }

/* ---------- toast */
.toast {
  position: fixed; z-index: 120; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 80px); transform: translate(-50%, 20px);
  display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 32px); padding: 11px 16px; border-radius: 99px;
  background: #33363c; color: var(--text); font-size: 13.5px; font-weight: 500; box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .3s var(--ease); white-space: nowrap;
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }
.toast .i { color: var(--open); }

/* ---------- admin */
.page-admin { background: #18191c; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.admin-login .card { width: 100%; max-width: 380px; display: grid; gap: 6px; }
.admin-login .h-serif { margin-top: 22px; }
.admin-login .btn { margin-top: 18px; }
.admin { padding-top: 18px; padding-bottom: 60px; }
.admin-top { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.admin-top .muted { font-size: 13px; margin-left: auto; }
.admin-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 20px; }
.stat { padding: 16px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); }
.stat small { display: block; font-size: 12px; color: var(--muted); }
.stat b { font: 400 28px/1.2 var(--serif); color: var(--cream); }
.admin-tabs { display: flex; gap: 4px; margin-top: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.admin-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 12px 14px; font-size: 14px; font-weight: 500; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.admin-tabs a[aria-current] { color: var(--text); border-color: var(--cream); }
.admin-refresh { margin-left: auto; }
.badge-inline { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--cream); color: var(--ink); font-size: 11px; font-weight: 700; display: inline-grid; place-items: center; }
.admin-filter { margin: 16px 0 0; padding: 0; }
.admin-list { display: grid; gap: 12px; margin-top: 16px; align-items: start; }
.admin-card { padding: 16px 16px 14px; border-radius: var(--r-md); background: var(--raise); border: 1px solid var(--line); border-left: 3px solid var(--line-2); }
.admin-card.status-baru, .admin-card.status-menunggu { border-left-color: var(--cream); }
.admin-card.status-proses, .admin-card.status-konfirmasi { border-left-color: #c9b48a; }
.admin-card.status-siap { border-left-color: var(--open); }
.admin-card.status-batal { opacity: .6; }
.admin-card.is-read { opacity: .65; }
.admin-card header { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-card .code { font-size: 19px; }
.admin-card .muted { font-size: 12.5px; }
.ac-who { margin-top: 10px; font-size: 14px; display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.ac-who a { display: inline-flex; align-items: center; gap: 5px; color: var(--cream); }
.ac-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.ac-note { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.ac-note .i { margin-top: 3px; color: var(--muted); }
.ac-body { margin-top: 10px; font-size: 14px; color: var(--text-2); white-space: normal; }
.admin-card .receipt-lines { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.admin-card .receipt-lines li { padding: 5px 0; font-size: 13.5px; }
.status-form { flex: none; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 899px) { .only-desktop { display: none !important; } }

/* 2-column cards are narrow: let the stepper take its own full-width row */
@media (max-width: 759px) {
  .dish-grid .dish-foot:has(.stepper) { flex-wrap: wrap; }
  .dish-grid .qty-ctl:has(.stepper) { flex-basis: 100%; }
  .dish-grid .qty-ctl .stepper { width: 100%; justify-content: space-between; }
}

@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .hero-facts strong { font-size: 19px; }
  .dish-name { font-size: 13.5px; }
  .add-btn { width: 34px; height: 34px; }
  .stepper button { width: 30px; }
  .cartbar-count { display: none; }
}

@media (min-width: 560px) {
  .hero-cta { grid-auto-flow: column; justify-content: start; }
  .today-grid { grid-template-columns: 1fr 1fr; }
  .seg-3 { grid-template-columns: repeat(3, 1fr); }
  .seg-3 span { flex-direction: column; align-items: flex-start; }
  .seg-3 span small { flex-basis: auto; }
  .seg-3 span:has(.i) small { padding-left: 0; }
  .field-row { grid-template-columns: 1fr 1fr; }
  .field-row .field { margin-top: 0; }
  .area-grid { grid-template-columns: repeat(3, 1fr); }
  .slot-grid { grid-template-columns: repeat(6, 1fr); }
  .done-actions { grid-auto-flow: column; grid-auto-columns: 1fr; }
  .timeline { grid-template-columns: repeat(4, 1fr); }
  .timeline li { flex-direction: column; align-items: flex-start; font-size: 12.5px; gap: 8px; }
  .timeline li:not(:last-child)::after { left: 30px; top: 19px; width: calc(100% - 36px); height: 2px; }
  .gallery { grid-template-columns: repeat(4, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { flex-direction: column; }
  .admin-stats { grid-template-columns: repeat(4, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
  .scroller .dish { flex-basis: 250px; }
  .sheet-panel { max-width: 560px; margin-bottom: 24px; border-radius: 26px; border-bottom: 1px solid var(--line); }
  .sheet { align-items: center; }
  .sheet-panel { animation-name: pop; }
  .sheet.is-closing .sheet-panel { animation: popout .2s ease forwards; }
  .sheet-grip { display: none; }
  .cartbar { left: auto; right: 24px; width: 400px; }
}
@keyframes pop { from { transform: translateY(24px) scale(.97); opacity: 0; } }
@keyframes popout { to { transform: translateY(16px) scale(.98); opacity: 0; } }

@media (min-width: 760px) {
  .dish-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
  .story { grid-template-columns: 1.05fr 1fr; gap: 48px; }
  .explain { grid-template-columns: 1fr 1.1fr; gap: 48px; }
  .about-intro { grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
  .contact { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 32px; }
  .feature-card { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; }
  .feature-art { padding: 34px; }
  .feature-over { margin: 0 0 0 -70px; padding: 32px 30px 28px; text-align: left; }
  .feature-over p { margin-left: 0; }
  .feature-over .btn-block { width: auto; }
  .feature-compact { display: block; }
  .feature-compact .feature-art { padding: 20px 18px 60px; }
  .feature-compact .feature-over { margin: -56px 14px 0; padding: 22px; }
  .cta-band { grid-template-columns: 1fr auto; text-align: left; justify-items: start; padding: 32px 36px; align-items: center; }
  .admin-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 900px) {
  :root { --gutter: 32px; --top-h: 72px; }
  body { padding-bottom: 0; }
  .only-mobile { display: none !important; }
  .tabbar { display: none; }
  .mainnav { display: flex; gap: 4px; margin-left: 28px; }
  .mainnav a { position: relative; padding: 8px 14px; font-size: 14px; font-weight: 500; color: var(--muted); border-radius: 10px; transition: color .2s, background .2s; }
  .mainnav a:hover { color: var(--text); background: var(--raise); }
  .mainnav a[aria-current] { color: var(--text); }
  .mainnav a[aria-current]::after { content: ""; position: absolute; left: 50%; bottom: 0; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--cream); }
  .topbar .status-pill { display: inline-flex; }
  .cartbar { bottom: 24px; }
  .page-menu .cartbar { display: none !important; }
  .toast { bottom: 100px; }
  .paybar { display: none; }
  .page-checkout { padding-bottom: 0; }

  .section { margin-top: 96px; }
  .hero { grid-template-columns: 1fr 1fr; align-items: center; gap: 56px; padding-top: 40px; }
  .hero-copy { order: -1; }
  .hero-slides { aspect-ratio: 1 / .9; }
  .hero-slide { padding: 34px 40px 0; }
  .hero-caption { padding: 8px 30px 30px; }
  .hero-slide-title { font-size: 26px; }
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; }
  .page-head { padding-top: 48px; }
  .scroller { padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); scroll-padding-inline: max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))); }
  .menu-search { grid-template-columns: minmax(280px, 380px) 1fr; align-items: center; gap: 18px; }
  .chips { margin: 0; padding: 0; }
  .date-strip { margin: 0; padding: 2px 0 4px; flex-wrap: wrap; }
}

@media (min-width: 1040px) {
  .menu-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
  .menu-aside { display: grid; gap: 14px; align-content: start; align-self: start; position: sticky; top: calc(var(--top-h) + 76px); margin-top: 30px; }
  .checkout { grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
  .checkout-main .card + .card { margin-top: 14px; }
  .checkout-aside { display: block; position: sticky; top: calc(var(--top-h) + 20px); }
  .reserve { grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .reserve-aside { position: sticky; top: calc(var(--top-h) + 20px); }
  .sheet-side { position: absolute; right: 0; top: 0; bottom: 0; width: 420px; max-height: none; height: 100%; max-width: none; border-radius: 26px 0 0 26px; border: 1px solid var(--line); border-right: 0; margin: 0; animation: slide .35s var(--ease); }
  #sheet-cart { align-items: stretch; justify-content: flex-end; }
  #sheet-cart.is-closing .sheet-panel { animation: slideout .25s ease forwards; }
}
@keyframes slide { from { transform: translateX(100%); } }
@keyframes slideout { to { transform: translateX(100%); } }

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

/* grid children must be allowed to shrink, otherwise horizontal strips widen the page */
.reserve > *, .checkout > *, .menu-layout > *, .contact > *, .hero > *, .story > *, .explain > *, .about-intro > *, .card { min-width: 0; }

/* ---------- hero captions (satu per slide) */
.hero-captions { display: grid; }
.hero-caption-text { grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility .5s; }
.hero-caption-text.is-active { opacity: 1; visibility: visible; }

/* ilustrasi krem yang sudah diganti foto oleh admin */
.has-photo { padding: 0 !important; overflow: hidden; }
.has-photo > img { width: 100%; height: 100%; object-fit: cover !important; padding: 0 !important; max-height: none; }
.feature-art.has-photo, .explain-art.has-photo { aspect-ratio: 16 / 10; }
.hero-slide.has-photo { padding: 0; }
.cat-art.has-photo, .menu-cat-art.has-photo { padding: 0; }
.menu-cat-art.has-photo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }

/* menu habis */
.dish.is-soldout .dish-media img { filter: grayscale(1) brightness(.6); }
.dish-tag.tag-soldout { background: var(--closed); color: var(--ink); }
.soldout-note { font-size: 12px; font-weight: 600; color: var(--closed); white-space: nowrap; }

.res-closed { grid-column: 1 / -1; text-align: center; display: grid; justify-items: center; gap: 12px; padding: 36px 20px; }
.res-closed img { background: var(--cream); border-radius: 18px; padding: 10px; margin-bottom: 6px; }
.res-closed .btn { margin-top: 8px; }
.toast.is-bad { background: #4a2a26; color: #f6d4cd; }
