/* ============================================================
   Bungkus Je Lah — product prototype
   Fresh, playful Malaysian street-food brand
   ============================================================ */
:root {
  --chili: #F0502E;
  --chili-deep: #D23A18;
  --turmeric: #FFC02E;
  --turmeric-deep: #F0A500;
  --pandan: #18A06A;
  --pandan-deep: #0E7E51;
  --ink: #2A1810;
  --ink-soft: #8A7160;
  --ink-faint: #B7A48F;
  --cream: #FFF6E9;
  --cream-2: #FCEFD9;
  --card: #FFFFFF;
  --line: #F0E4CE;
  --line-strong: #E6D5B6;
  --stage: #ECE3D2;

  --font-display: "Baloo 2", system-ui, sans-serif;
  --font-body: "DM Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, monospace;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 2px 6px rgba(42,24,16,0.06);
  --shadow-md: 0 12px 30px -14px rgba(42,24,16,0.30);
  --shadow-lg: 0 26px 50px -22px rgba(42,24,16,0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--stage);
  background-image:
    radial-gradient(circle at 1px 1px, rgba(42,24,16,0.05) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 1rem; color: var(--ink); }

.mono { font-family: var(--font-mono); }
.display { font-family: var(--font-display); }

/* ============================================================
   Stage + mode switch
   ============================================================ */
#root { min-height: 100%; }

.stage {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 78px 20px 60px;
}

.modebar {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--ink);
  padding: 5px;
  border-radius: 999px;
  box-shadow: var(--shadow-md);
}
.modebar button {
  display: flex; align-items: center; gap: 7px;
  color: #E8D8C6;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 8px 16px;
  border-radius: 999px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.modebar button .ic { width: 15px; height: 15px; }
.modebar button.active { background: var(--turmeric); color: var(--ink); }

/* ============================================================
   CUSTOMER APP — mobile screen (no bezel)
   ============================================================ */
.phone {
  width: 412px;
  max-width: 100%;
  height: 868px;
  max-height: calc(100vh - 120px);
  background: var(--cream);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}
.screen {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  position: relative;
}
.screen::-webkit-scrollbar { width: 0; }

/* tiny status strip for realism */
.statusbar {
  height: 30px; flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--ink);
  background: var(--cream);
}
.statusbar .dots { display: flex; gap: 4px; align-items: center; }
.statusbar .dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--ink); opacity: .5; }
.statusbar .bat { width: 22px; height: 11px; border: 1.5px solid var(--ink); border-radius: 3px; position: relative; opacity:.6;}
.statusbar .bat::after { content:""; position:absolute; right:-3px; top:3px; width:2px; height:5px; background:var(--ink); border-radius:0 2px 2px 0;}
.statusbar .bat::before { content:""; position:absolute; left:1.5px; top:1.5px; bottom:1.5px; width:11px; background:var(--pandan); border-radius:1px;}

/* App header */
.appbar {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 18px 14px;
  background: var(--cream);
}
.appbar .left { display: flex; align-items: center; gap: 10px; }
.brandlogo {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  line-height: 1;
  color: var(--chili);
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.brandlogo .je { color: var(--turmeric-deep); }
.brandlogo .lah { color: var(--pandan); }
.iconbtn {
  width: 40px; height: 40px; border-radius: 50%;
  display: grid; place-items: center;
  background: #fff; box-shadow: var(--shadow-sm);
  position: relative;
}
.iconbtn svg { width: 19px; height: 19px; }
.cartbadge {
  position: absolute; top: -3px; right: -3px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--chili); color: #fff;
  border-radius: 999px;
  font-size: 0.66rem; font-weight: 700;
  display: grid; place-items: center;
  border: 2px solid var(--cream);
}

.backrow { display: flex; align-items: center; gap: 12px; padding: 12px 18px 6px; }
.backbtn {
  width: 38px; height: 38px; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center;
}
.backbtn svg { width: 18px; height: 18px; }
.steptitle { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.stepsub { font-size: 0.8rem; color: var(--ink-soft); margin-top: 1px; }

/* Hero greeting */
.greet { padding: 4px 20px 14px; }
.greet h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.7rem;
  line-height: 1.06;
  letter-spacing: -0.015em;
}
.greet p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 4px; }

/* search */
.search {
  margin: 0 20px 8px;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: var(--r-md);
  padding: 12px 14px; box-shadow: var(--shadow-sm);
  color: var(--ink-soft);
}
.search svg { width: 17px; height: 17px; flex: none; }
.search input { border: none; outline: none; width: 100%; background: none; font-size: 0.92rem; }

/* category chips */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 10px 20px 6px; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none;
  padding: 8px 15px; border-radius: 999px;
  background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 0.84rem; color: var(--ink-soft);
  display: flex; align-items: center; gap: 6px;
  transition: transform .15s;
}
.chip .e { font-size: 0.95rem; }
.chip.active { background: var(--ink); color: var(--cream); }
.chip:active { transform: scale(.95); }

/* promo banner */
.promo {
  margin: 8px 20px 4px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--chili), var(--chili-deep));
  color: #fff;
  padding: 18px 20px;
  display: flex; align-items: center; justify-content: space-between;
  overflow: hidden; position: relative;
  box-shadow: var(--shadow-md);
}
.promo .ptext h3 { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; line-height: 1.1; }
.promo .ptext p { font-size: 0.8rem; opacity: .92; margin-top: 3px; max-width: 22ch; }
.promo .pemoji { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0,0,0,.25)); }
.promo .pill-tag {
  position:absolute; top:12px; right:14px;
  font-family: var(--font-mono); font-size:0.6rem; letter-spacing:.1em;
  background: rgba(255,255,255,.2); padding:4px 9px; border-radius:999px; text-transform:uppercase;
}

/* section heading */
.sechead { display: flex; align-items: baseline; justify-content: space-between; padding: 16px 20px 8px; }
.sechead h2 { font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.sechead span { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; }

/* menu list */
.menu-list { padding: 2px 20px 8px; display: flex; flex-direction: column; gap: 12px; }
.fooditem {
  display: flex; gap: 14px; align-items: center;
  background: #fff; border-radius: var(--r-md);
  padding: 12px; box-shadow: var(--shadow-sm);
  text-align: left; width: 100%;
  transition: transform .15s, box-shadow .2s;
}
.fooditem:active { transform: scale(.985); }
.foodtile {
  width: 74px; height: 74px; flex: none;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 2.1rem; position: relative;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.foodtile .pop {
  position: absolute; top: -7px; left: -7px;
  background: var(--turmeric); color: var(--ink);
  font-size: 0.58rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em;
  padding: 3px 7px; border-radius: 999px;
  box-shadow: var(--shadow-sm); font-family: var(--font-body);
}
.foodinfo { flex: 1; min-width: 0; }
.foodinfo h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; line-height: 1.15; }
.foodinfo p { font-size: 0.78rem; color: var(--ink-soft); margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.foodinfo .pricerow { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.price { font-family: var(--font-mono); font-weight: 500; font-size: 0.96rem; color: var(--chili-deep); }
.price small { color: var(--ink-faint); font-size: .72rem; }
.addbtn {
  width: 32px; height: 32px; border-radius: 10px;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center; flex: none;
}
.addbtn svg { width: 16px; height: 16px; }
.qtymini {
  display: flex; align-items: center; gap: 9px;
  background: var(--ink); color: var(--cream);
  border-radius: 10px; padding: 3px;
}
.qtymini button { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--cream); }
.qtymini span { font-weight: 700; min-width: 14px; text-align: center; font-size: 0.9rem; }

.unavail { opacity: .5; }
.unavail .addbtn { background: var(--ink-faint); }
.soldout-tag {
  font-size: 0.66rem; font-weight: 700; color: var(--chili);
  background: #FDE7E0; padding: 2px 8px; border-radius: 999px;
}

/* ============================================================
   Bottom sheet (item detail)
   ============================================================ */
.sheet-scrim {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(42,24,16,.45);
  display: flex; align-items: flex-end;
  animation: fade .2s ease;
}
@keyframes fade { from { opacity: 0; } }
.sheet {
  width: 100%;
  background: var(--cream);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: 10px 22px 22px;
  animation: slideup .28s cubic-bezier(.2,.8,.2,1);
  max-height: 86%;
  overflow-y: auto;
}
@keyframes slideup { from { transform: translateY(100%); } }
.sheet .grab { width: 42px; height: 5px; border-radius: 999px; background: var(--line-strong); margin: 0 auto 14px; }
.sheet .bigtile {
  width: 100%; height: 150px; border-radius: var(--r-lg);
  display: grid; place-items: center; font-size: 4.6rem;
  margin-bottom: 16px; box-shadow: inset 0 0 0 1px rgba(0,0,0,.04);
}
.sheet h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; line-height: 1.1; }
.sheet .desc { color: var(--ink-soft); font-size: 0.9rem; margin: 8px 0 14px; }
.sheet .price-big { font-family: var(--font-mono); font-weight: 500; font-size: 1.3rem; color: var(--chili-deep); }
.optgroup { margin: 16px 0; }
.optgroup h4 { font-weight: 700; font-size: 0.92rem; margin-bottom: 9px; }
.optrow {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px; border-radius: var(--r-sm);
  background: #fff; box-shadow: var(--shadow-sm); margin-bottom: 8px;
}
.optrow.sel { box-shadow: inset 0 0 0 2px var(--chili); }
.optrow .label { font-weight: 600; font-size: 0.9rem; }
.optrow . extra { font-family: var(--font-mono); font-size: 0.82rem; color: var(--ink-soft); }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line-strong); flex:none; }
.optrow.sel .radio { border-color: var(--chili); background: radial-gradient(circle, var(--chili) 0 5px, transparent 6px); }

.qtybig {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin: 18px 0;
}
.qtybig button {
  width: 44px; height: 44px; border-radius: 14px;
  background: #fff; box-shadow: var(--shadow-sm);
  display: grid; place-items: center; font-size: 1.3rem; color: var(--ink);
}
.qtybig .n { font-family: var(--font-display); font-weight: 800; font-size: 1.6rem; min-width: 40px; text-align: center; }

/* ============================================================
   Buttons + bottom action bar
   ============================================================ */
.btn {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%;
  font-weight: 700; font-size: 1rem;
  padding: 15px; border-radius: var(--r-md);
  transition: transform .12s, filter .2s, box-shadow .2s;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--chili); color: #fff; box-shadow: 0 10px 22px -10px var(--chili); }
.btn-primary:hover { filter: brightness(1.04); }
.btn-dark { background: var(--ink); color: var(--cream); }
.btn-pandan { background: var(--pandan); color: #fff; box-shadow: 0 10px 22px -10px var(--pandan); }
.btn-ghost { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btn .price-pill {
  background: rgba(255,255,255,.22); padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 0.86rem;
}

.actionbar {
  flex: none;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom));
  background: var(--cream);
  box-shadow: 0 -12px 24px -18px rgba(42,24,16,.4);
  border-top: 1px solid var(--line);
}
.actionbar .summ { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.actionbar .summ .lab { font-size: 0.78rem; color: var(--ink-soft); }
.actionbar .summ .val { font-family: var(--font-mono); font-weight: 500; font-size: 1.15rem; }

/* ============================================================
   Cart
   ============================================================ */
.cart-list { padding: 6px 20px; display: flex; flex-direction: column; gap: 10px; }
.cart-item {
  display: flex; gap: 12px; align-items: center;
  background: #fff; border-radius: var(--r-md); padding: 10px 12px; box-shadow: var(--shadow-sm);
}
.cart-item .ct { width: 54px; height: 54px; border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; flex:none; }
.cart-item .ci { flex: 1; min-width: 0; }
.cart-item .ci h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.96rem; }
.cart-item .ci .opt { font-size: 0.74rem; color: var(--ink-soft); }
.cart-item .ci .pr { font-family: var(--font-mono); font-size: 0.85rem; color: var(--chili-deep); margin-top: 2px; }

.empty {
  text-align: center; padding: 60px 30px; color: var(--ink-soft);
}
.empty .big { font-size: 3.4rem; margin-bottom: 12px; }
.empty h3 { font-family: var(--font-display); font-weight: 700; color: var(--ink); font-size: 1.2rem; }
.empty p { font-size: 0.88rem; margin-top: 4px; }

/* receipt-style summary */
.bill { margin: 10px 20px; background: #fff; border-radius: var(--r-md); padding: 16px 16px; box-shadow: var(--shadow-sm); }
.bill .row { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.9rem; }
.bill .row .k { color: var(--ink-soft); }
.bill .row .v { font-family: var(--font-mono); }
.bill .div { border-top: 1.5px dashed var(--line-strong); margin: 8px 0; }
.bill .total { font-weight: 700; font-size: 1.05rem; }
.bill .total .v { color: var(--chili-deep); }
.bill .deposit-note { font-size: 0.74rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.4; }

/* ============================================================
   Details / date picker
   ============================================================ */
.formsec { padding: 8px 20px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 600; font-size: 0.85rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: #fff; border: 1.5px solid var(--line);
  border-radius: var(--r-sm); padding: 13px 14px; outline: none;
  transition: border-color .2s; font-size: 0.92rem;
}
.field input:focus, .field textarea:focus { border-color: var(--chili); }
.field textarea { resize: none; min-height: 70px; }

.seg { display: flex; gap: 8px; }
.seg button {
  flex: 1; padding: 12px 8px; border-radius: var(--r-sm);
  background: #fff; box-shadow: var(--shadow-sm);
  font-weight: 600; font-size: 0.84rem; color: var(--ink-soft);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  transition: all .15s;
}
.seg button .e { font-size: 1.15rem; }
.seg button.sel { background: var(--ink); color: var(--cream); }
.seg button .sub { font-size: 0.66rem; opacity: .8; font-weight: 500; }

/* calendar */
.cal { background: #fff; border-radius: var(--r-md); padding: 14px; box-shadow: var(--shadow-sm); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head .m { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.cal-head button { width: 32px; height: 32px; border-radius: 9px; background: var(--cream-2); display: grid; place-items: center; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.cal-grid .dow { text-align: center; font-size: 0.66rem; font-weight: 700; color: var(--ink-faint); padding-bottom: 4px; }
.cal-day {
  aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center;
  font-size: 0.85rem; font-weight: 600; position: relative;
}
.cal-day.muted { color: var(--ink-faint); opacity: .35; pointer-events: none; }
.cal-day.avail:hover { background: var(--cream-2); }
.cal-day.sel { background: var(--chili); color: #fff; box-shadow: 0 8px 16px -8px var(--chili); }
.cal-day.busy::after { content:""; position:absolute; bottom:5px; width:4px; height:4px; border-radius:50%; background: var(--turmeric-deep); }
.cal-legend { display: flex; gap: 14px; margin-top: 10px; font-size: 0.72rem; color: var(--ink-soft); }
.cal-legend i { display:inline-block; width:8px; height:8px; border-radius:50%; margin-right:5px; vertical-align: middle; }

/* ============================================================
   Payment
   ============================================================ */
.paycard { margin: 8px 20px; background: #fff; border-radius: var(--r-lg); padding: 20px; box-shadow: var(--shadow-md); }
.paycard .amt { text-align: center; padding: 8px 0 16px; }
.paycard .amt .lab { font-size: 0.82rem; color: var(--ink-soft); }
.paycard .amt .big { font-family: var(--font-display); font-weight: 800; font-size: 2.6rem; color: var(--ink); line-height: 1; margin-top: 4px; }
.paycard .amt .of { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }
.paymethods { display: flex; flex-direction: column; gap: 9px; }
.paymethod {
  display: flex; align-items: center; gap: 12px;
  padding: 13px 14px; border-radius: var(--r-sm);
  background: var(--cream); box-shadow: inset 0 0 0 1.5px var(--line);
}
.paymethod.sel { box-shadow: inset 0 0 0 2px var(--pandan); background: #F1F9F4; }
.paymethod .logo { width: 40px; height: 28px; border-radius: 6px; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 0.7rem; box-shadow: var(--shadow-sm); }
.paymethod .nm { font-weight: 600; font-size: 0.9rem; flex: 1; }
.paymethod .radio { width: 18px; height: 18px; }
.paymethod.sel .radio { border-color: var(--pandan); background: radial-gradient(circle, var(--pandan) 0 4px, transparent 5px); }

.processing { text-align: center; padding: 70px 30px; }
.spinner {
  width: 56px; height: 56px; margin: 0 auto 20px;
  border: 5px solid var(--cream-2); border-top-color: var(--pandan);
  border-radius: 50%; animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2s; } }

/* ============================================================
   Confirmation + WhatsApp
   ============================================================ */
.confirm { text-align: center; padding: 28px 26px 10px; }
.checkpop {
  width: 92px; height: 92px; border-radius: 50%;
  background: var(--pandan); color: #fff;
  display: grid; place-items: center; margin: 10px auto 18px;
  box-shadow: 0 16px 30px -12px var(--pandan);
  animation: pop .5s cubic-bezier(.2,1.3,.4,1);
}
@keyframes pop { from { transform: scale(0); } }
.checkpop svg { width: 46px; height: 46px; }
.confirm h1 { font-family: var(--font-display); font-weight: 800; font-size: 1.7rem; line-height: 1.1; }
.confirm p { color: var(--ink-soft); font-size: 0.92rem; margin-top: 6px; }
.ordercode {
  display: inline-block; margin-top: 14px;
  font-family: var(--font-mono); font-weight: 500;
  background: var(--cream-2); color: var(--ink);
  padding: 8px 16px; border-radius: 999px; font-size: 0.92rem;
  letter-spacing: 0.04em;
}

.wa-screen { background: #ECE5DD; min-height: 100%; }
.wa-top {
  background: #075E54; color: #fff; padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
}
.wa-top .av { width: 38px; height: 38px; border-radius: 50%; background: var(--turmeric); display: grid; place-items: center; font-size: 1.2rem; }
.wa-top .nm { font-weight: 700; font-size: 0.95rem; }
.wa-top .st { font-size: 0.72rem; opacity: .8; }
.wa-body {
  padding: 16px 14px;
  background-image: linear-gradient(rgba(229,221,213,.6), rgba(229,221,213,.6));
  display: flex; flex-direction: column; gap: 8px;
}
.bubble {
  max-width: 84%; padding: 9px 12px; border-radius: 10px;
  font-size: 0.86rem; line-height: 1.4; position: relative;
  box-shadow: 0 1px 1px rgba(0,0,0,.08);
}
.bubble.them { background: #fff; align-self: flex-start; border-top-left-radius: 2px; }
.bubble.me { background: #DCF8C6; align-self: flex-end; border-top-right-radius: 2px; }
.bubble .t { display: block; font-size: 0.62rem; color: rgba(0,0,0,.4); text-align: right; margin-top: 3px; }
.bubble strong { font-weight: 700; }
.bubble .biz-tag { font-size: 0.62rem; color: var(--pandan-deep); font-weight: 700; display:block; margin-bottom: 3px; }

/* ============================================================
   ADMIN DASHBOARD — desktop
   ============================================================ */
.admin {
  width: 100%;
  max-width: 1180px;
  background: var(--cream);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: calc(100vh - 130px);
}
.adside {
  background: var(--ink);
  color: #E8D8C6;
  padding: 22px 16px;
  display: flex; flex-direction: column; gap: 6px;
}
.adside .logo { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; margin-bottom: 22px; padding: 0 8px; white-space: nowrap; }
.adside .logo .je { color: var(--turmeric); }
.adside .logo .lah { color: var(--pandan); }
.adnav {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px; border-radius: var(--r-sm);
  font-weight: 600; font-size: 0.9rem; color: #C9B8A6;
  transition: background .15s, color .15s;
}
.adnav svg { width: 18px; height: 18px; }
.adnav:hover { background: rgba(255,255,255,.06); }
.adnav.active { background: var(--turmeric); color: var(--ink); }
.adside .spacer { flex: 1; }
.adside .me { display: flex; align-items: center; gap: 10px; padding: 10px 8px; border-top: 1px solid rgba(255,255,255,.1); }
.adside .me .av { width: 34px; height: 34px; border-radius: 50%; background: var(--chili); display: grid; place-items: center; font-weight: 700; color: #fff; font-size: 0.85rem; }
.adside .me .nm { font-size: 0.82rem; font-weight: 600; color: #fff; }
.adside .me .rl { font-size: 0.7rem; color: #C9B8A6; }

.admain { background: var(--cream); overflow-y: auto; max-height: calc(100vh - 130px); }
.adhead {
  position: sticky; top: 0; z-index: 5;
  background: var(--cream);
  padding: 22px 28px 14px;
  display: flex; align-items: flex-end; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.adhead h1 { font-family: var(--font-display); font-weight: 800; font-size: 1.55rem; }
.adhead p { color: var(--ink-soft); font-size: 0.85rem; margin-top: 2px; }
.adhead .tools { display: flex; gap: 10px; align-items: center; }
.adsearch { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: var(--r-sm); padding: 9px 12px; box-shadow: var(--shadow-sm); color: var(--ink-soft); }
.adsearch svg { width: 16px; height: 16px; }
.adsearch input { border: none; outline: none; background: none; width: 150px; font-size: 0.85rem; }

/* stat cards */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 18px 28px 6px; }
.stat { background: #fff; border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--shadow-sm); }
.stat .lab { font-size: 0.78rem; color: var(--ink-soft); font-weight: 600; display:flex; align-items:center; gap:7px; }
.stat .lab .dot { width: 9px; height: 9px; border-radius: 3px; }
.stat .num { font-family: var(--font-display); font-weight: 800; font-size: 1.9rem; line-height: 1; margin-top: 9px; }
.stat .sub { font-size: 0.74rem; color: var(--ink-soft); margin-top: 5px; }

/* kanban */
.board { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 16px 28px 28px; align-items: start; }
.col { background: #F7EEDE; border-radius: var(--r-md); padding: 12px; min-height: 200px; }
.col-head { display: flex; align-items: center; justify-content: space-between; padding: 2px 6px 12px; }
.col-head .nm { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 0.9rem; }
.col-head .nm .dot { width: 10px; height: 10px; border-radius: 50%; }
.col-head .ct { font-family: var(--font-mono); font-size: 0.78rem; color: var(--ink-soft); background: #fff; padding: 1px 8px; border-radius: 999px; }
.ocard {
  background: #fff; border-radius: var(--r-sm); padding: 12px;
  box-shadow: var(--shadow-sm); margin-bottom: 10px; cursor: pointer;
  transition: transform .12s, box-shadow .2s; border-left: 3px solid transparent;
}
.ocard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.ocard .top { display: flex; align-items: center; justify-content: space-between; }
.ocard .code { font-family: var(--font-mono); font-size: 0.74rem; color: var(--ink-soft); white-space: nowrap; }
.ocard .amt { font-family: var(--font-mono); font-weight: 500; font-size: 0.82rem; color: var(--chili-deep); }
.ocard .cust { font-weight: 700; font-size: 0.95rem; margin-top: 5px; }
.ocard .meta { display: flex; align-items: center; gap: 8px; font-size: 0.74rem; color: var(--ink-soft); margin-top: 6px; flex-wrap: wrap; }
.ocard .meta svg { width: 13px; height: 13px; flex: none; }
.ocard .meta .tag { display: inline-flex; align-items: center; gap: 4px; }
.ocard .when { display: inline-flex; align-items:center; gap:5px; background: var(--cream-2); padding: 2px 8px; border-radius: 999px; font-weight: 600; white-space: nowrap; }
.ocard .dephint { margin-top: 8px; font-size: 0.7rem; font-weight: 700; padding: 3px 8px; border-radius: 6px; display: inline-block; }
.dep-paid { background: #E6F6EC; color: var(--pandan-deep); }
.dep-wait { background: #FFF1D6; color: var(--turmeric-deep); }

/* order detail drawer */
.drawer-scrim { position: fixed; inset: 0; background: rgba(42,24,16,.4); z-index: 200; display: flex; justify-content: flex-end; animation: fade .2s; }
.drawer {
  width: 420px; max-width: 92vw; background: var(--cream); height: 100%;
  overflow-y: auto; animation: slidein .28s cubic-bezier(.2,.8,.2,1); box-shadow: var(--shadow-lg);
}
@keyframes slidein { from { transform: translateX(100%); } }
.drawer-head { padding: 20px 22px 14px; border-bottom: 1px solid var(--line); display:flex; justify-content: space-between; align-items: flex-start; }
.drawer-head h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; }
.drawer-head .code { font-family: var(--font-mono); font-size: 0.8rem; color: var(--ink-soft); margin-top: 2px; }
.drawer-head .x { width: 34px; height: 34px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.drawer-body { padding: 18px 22px 30px; }
.dgroup { margin-bottom: 20px; }
.dgroup .glab { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-faint); margin-bottom: 8px; }
.dline { display: flex; justify-content: space-between; padding: 5px 0; font-size: 0.9rem; gap: 12px; }
.dline .k { color: var(--ink-soft); display: inline-flex; align-items: center; gap: 7px; }
.dline .k svg { width: 15px; height: 15px; flex: none; }
.ditem { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.88rem; }
.ditem .q { font-family: var(--font-mono); color: var(--ink-soft); }

/* status stepper */
.statusflow { display: flex; gap: 6px; margin: 8px 0 4px; }
.statusflow button {
  flex: 1; padding: 9px 4px; border-radius: 9px; font-size: 0.74rem; font-weight: 700;
  background: #fff; box-shadow: var(--shadow-sm); color: var(--ink-soft);
  transition: all .15s;
}
.statusflow button.done { color: #fff; }
.statusflow button.cur { box-shadow: 0 0 0 2px var(--ink); }

.pill-status { font-size: 0.7rem; font-weight: 800; padding: 4px 11px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }

/* menu editor */
.editor { padding: 18px 28px 30px; }
.edit-row {
  display: grid; grid-template-columns: 52px 1fr 130px 90px 70px; gap: 14px; align-items: center;
  background: #fff; border-radius: var(--r-sm); padding: 10px 14px; box-shadow: var(--shadow-sm); margin-bottom: 9px;
}
.edit-row .et { width: 46px; height: 46px; border-radius: 11px; display: grid; place-items: center; font-size: 1.4rem; }
.edit-row .enm { font-family: var(--font-display); font-weight: 700; font-size: 0.96rem; }
.edit-row .ecat { font-size: 0.74rem; color: var(--ink-soft); }
.edit-row .eprice { display: flex; align-items: center; gap: 4px; }
.edit-row .eprice input { width: 80px; background: var(--cream); border: 1.5px solid var(--line); border-radius: 8px; padding: 7px 9px; font-family: var(--font-mono); font-size: 0.85rem; }
.toggle { width: 46px; height: 26px; border-radius: 999px; background: var(--line-strong); position: relative; transition: background .2s; flex: none; }
.toggle.on { background: var(--pandan); }
.toggle::after { content:""; position:absolute; top:3px; left:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition: left .2s; box-shadow: var(--shadow-sm); }
.toggle.on::after { left: 23px; }
.edit-stat { font-size: 0.7rem; font-weight: 700; text-align: right; }
.edit-stat.on { color: var(--pandan-deep); }
.edit-stat.off { color: var(--chili); }

.editor-head { display:flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.editor-head .colhint { display: grid; grid-template-columns: 52px 1fr 130px 90px 70px; gap:14px; font-size:0.7rem; color: var(--ink-faint); font-weight:700; text-transform:uppercase; letter-spacing:.05em; padding: 0 14px;}

/* toast */
.toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%);
  background: var(--ink); color: var(--cream); padding: 12px 20px; border-radius: 999px;
  font-weight: 600; font-size: 0.88rem; z-index: 300; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 9px;
  animation: toastin .3s cubic-bezier(.2,1.2,.4,1);
}
@keyframes toastin { from { transform: translate(-50%, 16px); opacity: 0; } }
.toast .d { width: 9px; height: 9px; border-radius: 50%; background: var(--pandan); }

/* responsive */
@media (max-width: 1000px) {
  .admin { grid-template-columns: 1fr; }
  /* sidebar becomes a top bar: brand centered on its own row, the two tabs
     side by side as equal halves underneath — reads cleanly on phones/tablets */
  .adside { flex-direction: row; flex-wrap: wrap; align-items: center; padding: 14px; gap: 10px; }
  .adside .logo { flex: 0 0 100%; margin: 0; text-align: center; }
  .adside .adnav { flex: 1 1 0; justify-content: center; }
  .adside .spacer, .adside .me { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .board { grid-template-columns: repeat(2, 1fr); }
  .edit-row { grid-template-columns: 42px 1fr 92px 62px 48px; gap: 10px; }
  .edit-row .ecat { display: none; }
  .editor-head .colhint { display: none; }
}
@media (max-width: 560px) {
  .stage { padding: 70px 10px 30px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .board { grid-template-columns: 1fr; }
}

/* ============================================================
   Demo watermark — marks this page as a live Axel Nova mockup,
   not a finished site. Fixed pill, never blocks clicks, CSS-only.
   The red dot is a fixed #e5343a, not the brand accent.
   ============================================================ */
.demo-watermark {
  position: fixed; bottom: 14px; left: 50%; transform: translateX(-50%); z-index: 9999;
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px;
  pointer-events: none; background: rgba(42, 24, 16, 0.82); color: #fff; backdrop-filter: blur(6px);
  font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.04em; white-space: nowrap;
  box-shadow: 0 10px 26px -10px rgba(0, 0, 0, 0.5);
  opacity: 0; animation: demoIn 0.6s ease 0.4s forwards;
}
.demo-watermark .dw-dot { width: 6px; height: 6px; border-radius: 50%; background: #e5343a; position: relative; flex: none; }
.demo-watermark .dw-dot::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 1.5px solid rgba(229, 52, 58, 0.6); animation: dwPulse 1.6s ease-out infinite; }
@keyframes dwPulse { 0% { transform: scale(0.6); opacity: 0.8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes demoIn { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .demo-watermark { animation: none; opacity: 1; }
  .demo-watermark .dw-dot::after { animation: none; }
}
