/* ==========================================================================
   TIBAS CAFE — Ordering app
   ========================================================================== */

body.order-app { background: var(--cream); }
.order-app .page-grain { opacity: .2; }

/* ---------- Header ---------- */
.order-header {
  position: sticky; top: 0; z-index: 120;
  background: rgba(251, 248, 241, .96); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.order-header-inner {
  width: min(1320px, calc(100% - 40px)); margin-inline: auto;
  min-height: 74px; display: flex; align-items: center; gap: 26px;
}
.order-brand, .cashier-brand { display: inline-flex; align-items: center; gap: 10px; }
.order-brand img { border-radius: 50%; }
.order-brand > span, .cashier-brand > span {
  font-family: var(--font-display); font-size: 1.45rem; font-weight: 600;
  line-height: .85; display: flex; flex-direction: column; gap: 4px;
}
.order-brand > span > span, .cashier-brand > span > span {
  font-family: var(--font-body); font-size: .42rem; letter-spacing: .24em;
  font-weight: 600; color: var(--gold);
}
.order-brand--light { color: var(--cream); }
.order-brand--light > span > span { color: var(--gold-2); }
.order-nav { display: flex; align-items: center; gap: 22px; margin-left: 10px; }
.order-nav a { font-size: .74rem; font-weight: 500; color: #4a554e; padding: 6px 0; position: relative; }
.order-nav a:hover, .order-nav a.is-active { color: var(--ink); }
.order-nav a.is-active::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--gold); }
.order-nav-site { color: var(--muted) !important; }
.order-header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.cart-toggle {
  display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line);
  background: #fff; padding: 8px 12px; font-size: .68rem; border-radius: 40px;
}
.cart-toggle b { background: var(--ink); color: var(--cream); min-width: 20px; height: 20px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .56rem; }
.cart-toggle:hover { border-color: var(--ink); }
.order-account { display: inline-flex; align-items: center; gap: 7px; font-size: .68rem; font-weight: 500; }
.order-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: .95rem; flex-shrink: 0; }
.order-login { font-size: .7rem; font-weight: 600; border: 1px solid var(--line); padding: 8px 14px; border-radius: 40px; }
.order-login:hover { background: var(--ink); color: var(--cream); }

/* ---------- Hero ---------- */
.order-hero { background: var(--forest); color: var(--cream); padding: 44px 0 54px; position: relative; overflow: hidden; }
.order-hero::after {
  content: ''; position: absolute; right: -10%; top: -40%; width: 520px; height: 520px;
  border: 1px solid rgba(247, 242, 232, .1); border-radius: 50%;
}
.order-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; position: relative; z-index: 2; }
.order-hero .breadcrumb { margin-bottom: 22px; }
.order-hero .eyebrow { color: rgba(247, 242, 232, .6); }
.order-hero h1 { font-family: var(--font-display); font-size: clamp(2.5rem, 4.4vw, 4.2rem); font-weight: 500; line-height: .94; margin: 16px 0 16px; }
.order-hero h1 em { color: var(--gold-2); font-style: italic; }
.order-hero p { max-width: 520px; color: rgba(247, 242, 232, .68); font-size: .88rem; }
.order-hero-side { display: flex; gap: 26px; padding-bottom: 6px; }
.hero-pill { min-width: 92px; }
.hero-pill span { display: block; font-family: var(--font-display); font-size: 1.6rem; color: var(--gold-2); line-height: 1; margin-bottom: 8px; }
.hero-pill p { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(247, 242, 232, .6); }

/* ---------- Layout ---------- */
.order-layout { display: grid; grid-template-columns: minmax(0, 1fr) 390px; gap: 34px; padding: 34px 0 80px; align-items: start; }
.catalog { min-width: 0; }
.catalog-toolbar { display: flex; flex-direction: column; gap: 14px; margin-bottom: 18px; }
.menu-search--order { background: #fff; }
.order-filters { padding-bottom: 2px; }
.menu-search--order input { font-size: .8rem; }
.order-category { margin-bottom: 38px; scroll-margin-top: 100px; }
.order-category-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.order-category-head h2 { font-family: var(--font-display); font-size: 1.65rem; font-weight: 600; }
.order-category-head span { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.order-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.order-card { background: var(--paper); border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s; }
.order-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.order-card[hidden] { display: none; }
.order-card-photo { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--cream-2); }
.order-card-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease); }
.order-card:hover .order-card-photo img { transform: scale(1.04); }
.order-card-photo-hint { position: absolute; left: 8px; bottom: 8px; background: rgba(22, 33, 27, .8); color: var(--cream); font-size: .5rem; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 999px; transition: background .25s; }
.order-card-photo:hover .order-card-photo-hint { background: var(--forest); }
.sold-out { position: absolute; inset: 0; background: rgba(22, 33, 27, .62); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .64rem; letter-spacing: .18em; text-transform: uppercase; }
.order-card-body { padding: 13px 14px 14px; display: flex; flex-direction: column; flex: 1; }
.order-card-body h3 { font-family: var(--font-display); font-size: 1.12rem; font-weight: 600; line-height: 1.18; margin-bottom: 4px; }
.order-card-body h3 a { color: inherit; }
.order-card-body h3 a:hover { color: var(--clay); }
.order-card-body p { font-size: .68rem; line-height: 1.55; color: var(--muted); flex: 1; }
.order-more { color: var(--clay); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.order-card-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: 10px; }
.order-card-price { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.order-card-foot strong { font-size: .8rem; font-weight: 600; }
.order-card-id { font-size: .5rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.add-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--ink); background: transparent; display: inline-flex; align-items: center; justify-content: center; font-size: 1.1rem; line-height: 1; transition: all .25s; flex-shrink: 0; }
.add-btn:hover { background: var(--ink); color: var(--cream); }
.add-btn:disabled { opacity: .3; pointer-events: none; }
.order-card.is-added { animation: addedPulse .4s var(--ease); }

/* ---------- Cart ---------- */
.cart-panel {
  position: sticky; top: 92px; background: var(--paper); border: 1px solid var(--line);
  padding: 22px; max-height: calc(100vh - 110px); overflow-y: auto;
  scrollbar-width: thin;
}
.cart-panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cart-panel-head h2 { font-family: var(--font-display); font-size: 1.55rem; font-weight: 600; }
.cart-close { display: none; border: 0; background: transparent; font-size: 1.4rem; line-height: 1; }
.order-type-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; }
.type-option { position: relative; cursor: pointer; }
.type-option input { position: absolute; opacity: 0; pointer-events: none; }
.type-option > span { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); padding: 11px 12px; min-height: 66px; transition: all .2s; background: #fff; }
.type-option b { font-size: .7rem; font-weight: 600; }
.type-option small { font-size: .58rem; color: var(--muted); line-height: 1.4; }
.type-option input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.type-option input:checked + span small { color: rgba(247, 242, 232, .6); }
.type-option input:focus-visible + span { outline: 2px solid var(--gold); }
.cart-items { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); max-height: 280px; overflow-y: auto; }
.cart-empty { text-align: center; padding: 28px 10px; }
.cart-empty > span { font-size: 1.5rem; color: var(--gold); display: block; margin-bottom: 8px; }
.cart-empty p { font-size: .8rem; font-weight: 500; }
.cart-empty small { font-size: .64rem; color: var(--muted); }
.cart-item { display: grid; grid-template-columns: 50px 1fr auto; gap: 10px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.cart-item:last-child { border-bottom: 0; }
.cart-item img { width: 50px; height: 50px; object-fit: cover; }
.cart-item-info strong { display: block; font-size: .72rem; font-weight: 600; line-height: 1.3; }
.cart-item-info span { font-size: .62rem; color: var(--muted); }
.qty-control { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--line); background: #fff; }
.qty-control button { width: 26px; height: 28px; border: 0; background: transparent; font-size: .9rem; line-height: 1; }
.qty-control button:hover { background: var(--cream-2); }
.qty-control b { min-width: 24px; text-align: center; font-size: .68rem; font-weight: 600; }
.cart-item-remove { border: 0; background: transparent; color: var(--muted); font-size: .9rem; margin-left: 4px; }
.cart-item-remove:hover { color: var(--red); }
.checkout-form { display: flex; flex-direction: column; gap: 12px; padding-top: 14px; }
.checkout-fields { display: flex; flex-direction: column; gap: 10px; }
.checkout-fields[hidden] { display: none; }
.checkout-form .field { gap: 5px; }
.checkout-form .field label { font-size: .58rem; }
.checkout-form .field input, .checkout-form .field textarea { padding: 9px 11px; font-size: .76rem; }
.field-note { font-size: .6rem; color: var(--muted); line-height: 1.5; }
.account-strip { display: flex; align-items: center; gap: 9px; background: var(--cream); padding: 9px 10px; }
.account-strip strong { display: block; font-size: .7rem; }
.account-strip span { font-size: .58rem; color: var(--muted); }
.account-strip a { margin-left: auto; font-size: .6rem; color: var(--clay); }
.geo-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.geo-btn { border: 1px dashed var(--line); background: transparent; padding: 7px 10px; font-size: .62rem; }
.geo-btn:hover { border-color: var(--gold); color: var(--clay); }
.geo-status { font-size: .58rem; color: var(--green); }
.login-required { background: #fbf3e6; border: 1px solid #eadbc2; padding: 14px; }
.login-required strong { display: block; font-size: .76rem; margin-bottom: 4px; }
.login-required p { font-size: .64rem; color: var(--muted); margin-bottom: 10px; }
.login-required > div { display: flex; gap: 8px; }
.payment-fieldset { border: 0; margin: 4px 0 0; padding: 0; }
.payment-fieldset legend { font-size: .58rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 8px; color: #4a554d; }
.payment-options { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.payment-option { position: relative; cursor: pointer; }
.payment-option input { position: absolute; opacity: 0; pointer-events: none; }
.payment-option > span:not(.pay-icon) { display: flex; flex-direction: column; gap: 2px; }
.payment-option { display: flex; align-items: center; gap: 7px; border: 1px solid var(--line); background: #fff; padding: 8px 9px; font-size: .64rem; transition: all .2s; }
.payment-option b { font-weight: 600; }
.payment-option small { font-size: .52rem; color: var(--muted); }
.payment-option .pay-icon { width: 22px; height: 22px; border-radius: 50%; background: var(--cream); display: inline-flex; align-items: center; justify-content: center; font-size: .7rem; flex-shrink: 0; }
.payment-option:has(input:checked) { border-color: var(--ink); background: var(--cream); }
.payment-option:has(input:checked) .pay-icon { background: var(--ink); color: var(--cream); }
.va-options { margin-top: 8px; }
.va-options label { display: block; font-size: .58rem; margin-bottom: 4px; color: var(--muted); }
.va-options select { width: 100%; border: 1px solid var(--line); padding: 8px; font-size: .7rem; background: #fff; }
.payment-unavailable {
  margin: 0 0 10px; padding: 10px 12px;
  background: #fbeceb; border-left: 2px solid #a63a34;
  font-size: .66rem; line-height: 1.6; color: #7d2a25;
}
.payment-help-note { margin-top: 8px; font-size: .54rem; line-height: 1.5; color: var(--muted); }
.cart-summary { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 10px; display: flex; flex-direction: column; gap: 5px; }
.cart-summary > div { display: flex; align-items: center; justify-content: space-between; font-size: .7rem; color: var(--muted); }
.cart-summary strong { color: var(--ink); font-weight: 600; }
.cart-total { border-top: 1px solid var(--line); margin-top: 4px; padding-top: 8px; font-size: .82rem !important; }
.cart-total strong { font-size: 1.05rem; }
.checkout-error { background: #fbeceb; color: #7d2a25; padding: 9px 11px; font-size: .68rem; border-left: 2px solid var(--red); }
.checkout-submit { min-height: 46px; font-size: .68rem; }
.checkout-fineprint { font-size: .55rem; color: var(--muted); text-align: center; line-height: 1.5; }
.checkout-fineprint a { text-decoration: underline; }
.cart-scrim { display: none; }
.mobile-cart-bar { display: none; }
.menu-empty[hidden] { display: none; }

/* ---------- Order footer ---------- */
.order-footer { border-top: 1px solid var(--line); background: var(--paper); }
.order-footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 22px 0; font-size: .62rem; color: var(--muted); flex-wrap: wrap; }
.order-footer nav { display: flex; gap: 18px; }
.order-footer a:hover { color: var(--ink); }

/* ---------- Auth ---------- */
.auth-page { display: grid; grid-template-columns: 1fr 1fr; min-height: 100svh; background: var(--paper); }
.auth-visual { position: relative; overflow: hidden; background: var(--forest); min-height: 100svh; }
.auth-visual > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.auth-visual-veil { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16, 24, 20, .55), rgba(16, 24, 20, .85)); }
.auth-visual .order-brand { position: absolute; z-index: 2; top: 34px; left: 38px; }
.auth-quote { position: absolute; z-index: 2; left: 38px; right: 38px; bottom: 70px; color: var(--cream); }
.auth-quote p { font-family: var(--font-display); font-size: clamp(1.8rem, 3vw, 2.8rem); font-style: italic; line-height: 1.2; margin: 16px 0 12px; }
.auth-quote > span { font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(247, 242, 232, .5); }
.auth-back { position: absolute; z-index: 2; left: 38px; bottom: 30px; font-size: .64rem; color: rgba(247, 242, 232, .6); }
.auth-back:hover { color: var(--cream); }
.auth-panel { display: flex; align-items: center; justify-content: center; padding: 50px 30px; }
.auth-card { width: min(440px, 100%); }
.auth-mobile-brand { display: none; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 26px; }
.auth-card h1 { font-family: var(--font-display); font-size: clamp(2rem, 3.4vw, 2.9rem); font-weight: 500; line-height: .98; margin: 14px 0 12px; }
.auth-card h1 em { color: var(--gold); font-style: italic; }
.auth-sub { font-size: .8rem; color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.google-btn { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--line); background: #fff; min-height: 46px; font-size: .76rem; font-weight: 500; transition: all .2s; }
.google-btn:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.google-mark { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #4285f4; font-size: .8rem; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; color: var(--muted); font-size: .6rem; text-transform: uppercase; letter-spacing: .1em; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.auth-switch { text-align: center; font-size: .74rem; color: var(--muted); margin-top: 20px; }
.auth-switch a { color: var(--clay); font-weight: 600; }
.auth-help { text-align: center; font-size: .64rem; color: var(--muted); margin-top: 8px; }
.auth-help a { text-decoration: underline; }
.auth-note { margin-top: 24px; padding: 14px 16px; background: var(--cream); border-left: 2px solid var(--gold); }
.auth-note strong { display: block; font-size: .72rem; margin-bottom: 3px; }
.auth-note p { font-size: .66rem; color: var(--muted); }
.auth-note a { text-decoration: underline; }

/* Verify */
.verify-page { min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; background: var(--cream); }
.verify-card { width: min(520px, 100%); background: var(--paper); border: 1px solid var(--line); padding: clamp(28px, 5vw, 50px); box-shadow: var(--shadow-sm); }
.verify-icon { display: inline-flex; width: 52px; height: 52px; border-radius: 50%; background: var(--cream-2); align-items: center; justify-content: center; font-size: 1.2rem; color: var(--gold); margin-bottom: 18px; }
.verify-card h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.4vw, 2.7rem); font-weight: 500; line-height: 1; margin: 14px 0 10px; }
.verify-card h1 em { color: var(--gold); font-style: italic; }
.otp-input { text-align: center; font-size: 1.6rem !important; letter-spacing: .5em; font-weight: 600; padding: 14px 10px !important; }
.resend-form { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 18px; font-size: .68rem; color: var(--muted); }
.resend-form .line-link { border: 0; background: transparent; padding: 0; font-size: .68rem; color: var(--clay); }
.verify-help { text-align: center; font-size: .62rem; color: var(--muted); margin-top: 18px; line-height: 1.6; }
.verify-help a { text-decoration: underline; }
.verify-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .62rem; color: var(--muted); }

/* ---------- Status ---------- */
.status-page { padding: 34px 0 80px; }
.status-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 26px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.status-head h1 { font-family: var(--font-display); font-size: clamp(2.3rem, 4.2vw, 3.6rem); font-weight: 500; line-height: .95; margin: 12px 0 8px; }
.status-head h1 em { color: var(--gold); font-style: italic; }
.status-head p { font-size: .8rem; color: var(--muted); }
.status-head-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; text-align: right; }
.status-time { font-size: .6rem; color: var(--muted); }
.status-layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 26px; align-items: start; }
.status-main { display: flex; flex-direction: column; gap: 18px; }
.status-card { background: var(--paper); border: 1px solid var(--line); padding: 24px; }
.status-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.status-card-head h2 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 600; }
.status-card-head > span { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.status-badge, .pay-badge, .pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; font-size: .56rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; border-radius: 2px; white-space: nowrap; }
.status-badge--new { background: #fdf1dc; color: #8a5a12; }
.status-badge--accepted { background: #e8eff7; color: #2f5578; }
.status-badge--preparing { background: #fdf1dc; color: #8a5a12; }
.status-badge--ready { background: #e7f2ea; color: #2f6b4a; }
.status-badge--delivering { background: #e8eff7; color: #2f5578; }
.status-badge--completed { background: #e7f2ea; color: #2f6b4a; }
.status-badge--cancelled { background: #fbeceb; color: #a63a34; }
.pay-badge--unpaid { background: #fbeceb; color: #a63a34; }
.pay-badge--paid { background: #e7f2ea; color: #2f6b4a; }
.pay-badge--expired { background: #eee9e0; color: #7a7368; }
.status-timeline { list-style: none; display: flex; flex-direction: column; gap: 0; position: relative; margin: 6px 0 4px; }
.status-timeline li { display: flex; gap: 14px; padding-bottom: 22px; position: relative; }
.status-timeline li::before { content: ''; position: absolute; left: 8px; top: 18px; bottom: 0; width: 1px; background: var(--line); }
.status-timeline li:last-child { padding-bottom: 0; }
.status-timeline li:last-child::before { display: none; }
.timeline-dot { width: 17px; height: 17px; border-radius: 50%; border: 1px solid var(--line); background: #fff; flex-shrink: 0; margin-top: 2px; position: relative; z-index: 1; }
.status-timeline li.is-done .timeline-dot { background: var(--green); border-color: var(--green); }
.status-timeline li.is-done .timeline-dot::after { content: '✓'; color: #fff; font-size: .5rem; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.status-timeline li.is-current .timeline-dot { box-shadow: 0 0 0 4px rgba(47, 107, 74, .14); }
.status-timeline li.is-stopped .timeline-dot { background: #a63a34; border-color: #a63a34; box-shadow: 0 0 0 4px rgba(166, 58, 52, .12); }
.status-timeline li.is-stopped .timeline-dot::after { content: '!'; color: #fff; font-size: .55rem; font-weight: 700; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.status-timeline li.is-stopped strong,
.status-timeline li.is-stopped small { color: #a63a34; }
.status-timeline li.is-cancelled .timeline-dot { background: #fff; border-color: #a63a34; }
.status-timeline li.is-cancelled .timeline-dot::after { content: '×'; color: #a63a34; font-size: .7rem; font-weight: 700; line-height: 1; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.status-timeline li.is-cancelled strong { color: #a63a34; }
.status-timeline strong { display: block; font-size: .78rem; font-weight: 600; }
.status-timeline small { font-size: .6rem; color: var(--muted); }
.status-cancelled { margin-top: 14px; padding: 12px 14px; background: #fbeceb; color: #7d2a25; font-size: .74rem; }

/* --- Kartu pembatalan ------------------------------------------------------ */
.status-cancel-card {
  margin-top: 18px; padding: 18px 20px 20px;
  background: #fdf3f2; border: 1px solid #f0d5d2; border-left: 3px solid #a63a34;
}
.status-cancel-head { display: flex; gap: 12px; align-items: flex-start; padding-bottom: 14px; border-bottom: 1px solid #f0d5d2; }
.status-cancel-icon {
  flex: none; width: 26px; height: 26px; border-radius: 50%;
  background: #a63a34; color: #fff; font-size: .8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.status-cancel-head strong { display: block; font-size: .86rem; color: #7d2a25; }
.status-cancel-head small { font-size: .68rem; color: #9c5a55; }
.status-cancel-head small strong { display: inline; font-size: inherit; color: #7d2a25; }
.status-cancel-detail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; margin: 14px 0 0; }
.status-cancel-detail > div { min-width: 0; }
.status-cancel-detail .span-2 { grid-column: span 2; }
.status-cancel-detail dt { font-size: .54rem; letter-spacing: .12em; text-transform: uppercase; color: #9c5a55; margin-bottom: 3px; }
.status-cancel-detail dd { margin: 0; font-size: .76rem; line-height: 1.6; color: #5c2f2b; word-break: break-word; }
.status-cancel-help { margin-top: 14px; padding-top: 12px; border-top: 1px dashed #e6c6c2; font-size: .68rem; line-height: 1.6; color: #9c5a55; }
.status-staff-note {
  display: inline-block; margin: 10px 0 0; padding: 6px 10px;
  background: #eef3ef; border-left: 2px solid var(--green);
  font-size: .6rem; letter-spacing: .02em; color: #2f6b4a;
}

/* --- Riwayat status -------------------------------------------------------- */
.order-history { list-style: none; display: flex; flex-direction: column; }
.order-history li { display: flex; gap: 12px; padding-bottom: 16px; position: relative; }
.order-history li::before { content: ''; position: absolute; left: 5px; top: 14px; bottom: 0; width: 1px; background: var(--line); }
.order-history li:last-child { padding-bottom: 0; }
.order-history li:last-child::before { display: none; }
.order-history-dot { width: 11px; height: 11px; border-radius: 50%; border: 1px solid var(--line); background: #fff; flex: none; margin-top: 4px; position: relative; z-index: 1; }
.order-history li.is-latest .order-history-dot { background: var(--green); border-color: var(--green); }
.order-history li.is-cancelled .order-history-dot { background: #a63a34; border-color: #a63a34; }
.order-history-body { min-width: 0; }
.order-history-body strong { display: block; font-size: .72rem; font-weight: 600; }
.order-history li.is-cancelled .order-history-body strong { color: #a63a34; }
.order-history-body small { font-size: .58rem; color: var(--muted); }
.order-history-reason {
  margin-top: 5px; padding: 6px 9px;
  background: var(--cream-2); border-left: 2px solid #a63a34;
  font-size: .66rem; line-height: 1.55; color: #5c4a45;
}
.order-history-reason span { display: block; font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; color: #9c5a55; margin-bottom: 2px; }
.eta-box { margin-top: 18px; background: var(--forest); color: var(--cream); padding: 18px 20px; border-left: 2px solid var(--gold); }
.eta-box--muted { background: var(--cream-2); color: var(--ink); border-color: var(--gold); }
.eta-label { font-size: .56rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-2); }
.eta-box strong { display: block; font-family: var(--font-display); font-size: 1.9rem; font-weight: 500; margin: 4px 0 2px; }
.eta-box p { font-size: .72rem; opacity: .75; }
.eta-box small { display: block; font-size: .58rem; opacity: .5; margin-top: 6px; }
.status-items { display: flex; flex-direction: column; }
.status-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.status-item:last-child { border-bottom: 0; }
.status-item img { width: 52px; height: 52px; object-fit: cover; }
.status-item > div { flex: 1; }
.status-item strong { display: block; font-size: .76rem; font-weight: 600; }
.status-item span { font-size: .64rem; color: var(--muted); }
.status-item > b { font-size: .74rem; font-weight: 600; }
.status-totals { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.status-totals > div { display: flex; justify-content: space-between; font-size: .72rem; color: var(--muted); }
.status-total { border-top: 1px solid var(--line); margin-top: 5px; padding-top: 8px; color: var(--ink) !important; font-size: .84rem !important; }
.status-total strong { font-size: 1.05rem; }
.status-notes { margin-top: 14px; padding: 12px 14px; background: var(--cream); }
.status-notes span { font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.status-notes p { font-size: .74rem; margin-top: 4px; }
.status-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.status-info-grid > div span { display: block; font-size: .56rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.status-info-grid > div strong, .status-info-grid > div a { font-size: .76rem; font-weight: 500; }
.status-info-grid > div a { color: var(--clay); }
.status-info-grid .span-2 { grid-column: 1 / -1; }
.status-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 94px; }
.payment-card { background: var(--paper); border: 1px solid var(--line); padding: 22px; }
.payment-card--unpaid { border-top: 3px solid var(--red); }
.payment-card--paid { border-top: 3px solid var(--green); }
.payment-card--expired { border-top: 3px solid var(--muted); }
.payment-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.payment-card-top > span:first-child { font-size: .58rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.payment-amount { font-family: var(--font-display); font-size: 2rem; font-weight: 500; line-height: 1; margin: 10px 0 4px; }
.payment-method { font-size: .66rem; color: var(--muted); }
.payment-paid { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 12px; background: #e7f2ea; }
.payment-paid > span { color: var(--green); font-weight: 700; }
.payment-paid p { font-size: .7rem; color: #2f5b42; }
.payment-help { font-size: .7rem; color: var(--muted); line-height: 1.65; margin-top: 12px; }
.payment-warning { background: #fbeceb; border-left: 2px solid var(--red); padding: 10px 12px; font-size: .68rem; color: #7d2a25; margin-top: 12px; }
.payment-warning--soft { background: #fbf3e6; border-color: var(--gold); color: #7a5a20; }
.payment-expiry { font-size: .63rem; color: var(--clay); margin-top: 8px; }
.qr-image { width: 100%; max-width: 260px; margin: 14px auto 0; border: 1px solid var(--line); background: #fff; padding: 8px; }
.va-box { display: flex; flex-direction: column; gap: 4px; background: var(--cream); padding: 12px; margin-top: 12px; position: relative; }
.va-box span { font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.va-box code { font-size: .95rem; font-weight: 600; letter-spacing: .04em; }
.va-box button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); background: #fff; font-size: .56rem; padding: 5px 8px; }
.account-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.account-box { background: var(--cream); padding: 10px 12px; position: relative; }
.account-box span { display: block; font-size: .55rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.account-box code { font-size: .86rem; font-weight: 600; }
.account-box small { display: block; font-size: .6rem; color: var(--muted); }
.account-box button { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 1px solid var(--line); background: #fff; font-size: .56rem; padding: 5px 8px; }
.retry-payment { margin-top: 12px; }
.payment-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: .62rem; }
.payment-actions .line-link { border: 0; background: transparent; padding: 0; font-size: .62rem; }
.payment-live-note { font-size: .56rem; color: var(--muted); margin-top: 10px; text-align: center; }
.status-side-card { background: var(--paper); border: 1px solid var(--line); padding: 20px; }
.status-side-card h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; margin-bottom: 6px; }
.status-side-card p { font-size: .72rem; color: var(--muted); line-height: 1.7; margin-bottom: 10px; }
.status-side-card .btn { margin-right: 6px; margin-bottom: 6px; }
.status-side-card .line-link { font-size: .66rem; }
.status-side-card--muted { background: var(--cream-2); }

/* ---------- Account ---------- */
.account-page { padding: 34px 0 80px; }
.account-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 26px; padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px; }
.account-head h1 { font-family: var(--font-display); font-size: clamp(2.2rem, 4vw, 3.4rem); font-weight: 500; line-height: .95; margin: 12px 0 8px; }
.account-head h1 em { color: var(--gold); font-style: italic; }
.account-head p { font-size: .8rem; color: var(--muted); }
.account-badge { display: flex; align-items: center; gap: 10px; background: var(--paper); border: 1px solid var(--line); padding: 10px 14px; }
.account-badge .order-avatar { width: 38px; height: 38px; }
.account-badge strong { display: block; font-size: .74rem; }
.account-badge span { font-size: .62rem; color: var(--muted); }
.account-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 26px; align-items: start; }
.account-main .section-heading { margin-bottom: 18px; }
.orders-list { display: flex; flex-direction: column; gap: 10px; }
.order-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: var(--paper); border: 1px solid var(--line); padding: 16px 18px; transition: all .25s; }
.order-row:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.order-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.order-code { font-size: .6rem; letter-spacing: .08em; color: var(--gold); font-weight: 600; }
.order-row h3 { font-family: var(--font-display); font-size: 1.15rem; font-weight: 600; }
.order-row p { font-size: .64rem; color: var(--muted); }
.order-row p.order-cancel-note { margin-top: 4px; font-size: .62rem; line-height: 1.5; color: #a63a34; }
.order-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 7px; font-size: .6rem; color: var(--muted); }
.account-side { display: flex; flex-direction: column; gap: 16px; position: sticky; top: 94px; }

/* ---------- Order error ---------- */
.order-error-page { min-height: calc(100svh - 74px); display: flex; align-items: center; justify-content: center; padding: 50px 20px; background: var(--cream); }
.order-error-card { width: min(520px, 100%); text-align: center; background: var(--paper); border: 1px solid var(--line); padding: clamp(30px, 6vw, 50px); }
.order-error-card > span { font-size: 2rem; color: var(--gold); display: block; margin-bottom: 14px; }
.order-error-card h1 { font-family: var(--font-display); font-size: clamp(1.9rem, 3.6vw, 2.8rem); font-weight: 500; line-height: 1; margin: 14px 0 12px; }
.order-error-card h1 em { color: var(--gold); font-style: italic; }
.order-error-card p { font-size: .8rem; color: var(--muted); margin-bottom: 22px; }
.order-error-card .error-actions { justify-content: center; margin-bottom: 16px; }

@keyframes addedPulse { 0% { transform: scale(1); } 45% { transform: scale(1.02); box-shadow: 0 0 0 3px rgba(181, 138, 74, .25); } 100% { transform: scale(1); } }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
  .order-grid { grid-template-columns: repeat(2, 1fr); }
  .status-layout { grid-template-columns: minmax(0, 1fr) 320px; }
  .account-layout { grid-template-columns: minmax(0, 1fr) 310px; }
}

@media (max-width: 980px) {
  .order-header-inner { width: calc(100% - 28px); gap: 14px; }
  .order-nav { gap: 14px; }
  .order-hero-inner { flex-direction: column; align-items: flex-start; gap: 24px; }
  .order-hero-side { padding-bottom: 0; }
  .order-layout { grid-template-columns: 1fr; }
  .cart-panel {
    position: fixed; z-index: 1000; right: 0; top: 0; bottom: 0; width: min(430px, 92vw);
    max-height: none; transform: translateX(102%); transition: transform .4s var(--ease);
    border: 0; border-left: 1px solid var(--line); padding: 22px; padding-bottom: 90px;
    box-shadow: -30px 0 60px rgba(22, 33, 27, .18);
  }
  body.cart-open .cart-panel { transform: none; }
  .cart-close { display: block; }
  .cart-scrim { display: block; position: fixed; inset: 0; background: rgba(16, 24, 20, .55); z-index: 990; }
  .cart-scrim[hidden] { display: none; }
  .mobile-cart-bar { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 960; padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); background: rgba(251, 248, 241, .97); border-top: 1px solid var(--line); backdrop-filter: blur(10px); }
  .mobile-cart-bar button { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--ink); color: var(--cream); border: 0; min-height: 48px; padding: 0 16px; border-radius: 2px; font-size: .7rem; }
  .mobile-cart-bar button > span:first-child b { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--gold); align-items: center; justify-content: center; font-size: .56rem; margin-right: 4px; }
  .mobile-cart-bar strong { display: inline-flex; align-items: center; gap: 6px; font-size: .66rem; }
  .order-layout { padding-bottom: 100px; }
  .status-layout { grid-template-columns: 1fr; }
  .status-side { position: static; }
  .status-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .status-head-side { align-items: flex-start; text-align: left; }
  .account-layout { grid-template-columns: 1fr; }
  .account-side { position: static; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-visual { display: none; }
  .auth-panel { min-height: 100svh; padding: 40px 22px; }
  .auth-mobile-brand { display: inline-flex; }
  .order-footer { margin-bottom: 0; }
}

@media (max-width: 700px) {
  .order-header { position: sticky; }
  .order-header-inner { min-height: 64px; }
  .order-brand > span { font-size: 1.25rem; }
  .order-brand img { width: 36px; height: 36px; }
  .order-nav { display: none; }
  .cart-toggle-label { display: none; }
  .order-account > span:not(.order-avatar) { display: none; }
  .order-hero { padding: 30px 0 38px; }
  .order-hero h1 { font-size: clamp(2.1rem, 9vw, 2.9rem); }
  .order-hero-side { display: none; }
  .order-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .order-card-body { padding: 10px; }
  .order-card-body h3 { font-size: 1rem; }
  .order-card-body p { font-size: .62rem; }
  .order-card-foot strong { font-size: .72rem; }
  .add-btn { width: 30px; height: 30px; }
  .status-page, .account-page { padding-top: 22px; }
  .status-info-grid { grid-template-columns: 1fr; }
  .status-card { padding: 18px; }
  .status-cancel-card { padding: 15px 16px 17px; }
  .status-cancel-detail { grid-template-columns: 1fr; }
  .status-cancel-detail .span-2 { grid-column: auto; }
  .payment-card { padding: 18px; }
  .payment-amount { font-size: 1.7rem; }
  .status-item img { width: 44px; height: 44px; }
  .status-item strong { font-size: .7rem; }
  .account-head { flex-direction: column; align-items: flex-start; }
  .order-row { flex-direction: column; align-items: flex-start; }
  .order-row-side { flex-direction: row; align-items: center; width: 100%; justify-content: space-between; }
  .verify-card { padding: 24px 18px; }
  .otp-input { font-size: 1.3rem !important; letter-spacing: .35em; }
  .checkout-form { padding-bottom: 20px; }
  .auth-card h1 { font-size: 2rem; }
}

@media (max-width: 420px) {
  .order-grid { grid-template-columns: 1fr; }
  .order-card { flex-direction: row; }
  .order-card-photo { width: 118px; flex-shrink: 0; }
  .order-card-photo-hint { display: none; }
  .order-card-body { justify-content: center; }
  .payment-options { grid-template-columns: 1fr; }
}

/* ---------- Print ---------- */
@media print {
  .order-header, .order-footer, .site-footer, .wa-float, .chat-widget, .mobile-cart-bar,
  .payment-actions, .retry-payment, .status-side-card, .admin-sidebar, .admin-topbar, .cashier-sidebar, .cashier-topbar { display: none !important; }
  body { background: #fff; }
  .status-layout { grid-template-columns: 1fr; }
  .payment-card, .status-card { border: 1px solid #ccc; box-shadow: none; }
}
