/* TempahKek design system: plum + butter gold (matches landing page). Mobile-first. */
:root {
  --brand: #8e2c5a; --brand-d: #6d1f44; --brand-2: #b03a6f; --brand-soft: #fbeef4; --gold: #ffd166; --gold-d: #f2bd3c; --gold-soft: #fff6dc;
  --paper: #faf6f8; --card: #ffffff; --ink: #231a1f; --mut: #6c5f66; --line: #efe4ea; --line-2: #dccbd4;
  --bad: #b3261e; --bad-soft: #fdecea; --warn: #8a5a00; --warn-soft: #fff2d6; --ok: #127a3e; --ok-soft: #e3f4e9; --info: #1d4ed8; --info-soft: #e8efff; --wa: #1fa855;
  --r-sm: 8px; --r: 12px; --r-lg: 16px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px;
  --shadow: 0 1px 2px rgba(60, 20, 40, .06), 0 4px 14px rgba(60, 20, 40, .05);
  --font: "DM Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.5; font-size: 15px; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 var(--s2); letter-spacing: -.01em; }
h1 { font-size: 1.5rem; } h2 { font-size: 1.05rem; } h3 { font-size: .95rem; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; font-size: 16px; color: inherit; }
:focus-visible { outline: 3px solid var(--gold-d); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 var(--s4) 96px; }
.muted { color: var(--mut); } .sub { font-size: 13px; color: var(--mut); } .num { font-variant-numeric: tabular-nums; }

/* top bar */
.top { background: var(--brand); color: #fff; position: sticky; top: 0; z-index: 10; }
.top .wrap { padding-bottom: 0; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.05rem; text-decoration: none; color: #fff; }
.brand img { width: 30px; height: 30px; } .brand b { color: var(--gold); }
.brand small { font-weight: 500; color: #f3d4e2; font-size: .82rem; display: block; line-height: 1.1; max-width: 52vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* subscription: plan pill beside the shop name, banners, billing page */
.brandrow { display: flex; align-items: center; gap: var(--s2); min-width: 0; }
.plan-pill { border: 0; border-radius: 99px; padding: 4px 10px; font-size: 11.5px; font-weight: 800; white-space: nowrap; cursor: pointer; min-height: 26px; line-height: 1.2; }
.plan-pill.trial { background: var(--gold); color: #4a3200; }
.plan-pill.active { background: #fff; color: var(--brand); }
.plan-pill.expired { background: var(--bad); color: #fff; }
.banner { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); flex-wrap: wrap; border-radius: var(--r); padding: var(--s3) var(--s4); margin: var(--s4) 0 0; font-weight: 600; font-size: 14px; }
.banner.trial { background: var(--gold-soft); color: #5a3d00; border: 1px solid #f5dfa0; }
.banner.bad { background: var(--bad-soft); color: var(--bad); border: 1px solid #f0c9c5; }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner .btn { flex: none; }
.price-big { font-size: 2rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.price-big small { font-size: 14px; font-weight: 600; color: var(--mut); letter-spacing: 0; }
.save-tag { display: inline-block; margin-left: 6px; background: var(--ok-soft); color: var(--ok); font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 99px; }
.feat { margin: var(--s3) 0 0; padding-left: 20px; } .feat li { margin: 4px 0; }

/* nav: bottom bar on mobile, inline on desktop */
.nav { position: fixed; bottom: 0; left: 0; right: 0; background: var(--card); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(5, 1fr); z-index: 10; padding-bottom: env(safe-area-inset-bottom); }
.nav button { background: none; border: 0; padding: 9px 2px 8px; font-size: 11.5px; font-weight: 600; color: var(--mut); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 56px; position: relative; }
.nav button svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; }
.nav button.on { color: var(--brand); }
.nav .dot { position: absolute; top: 6px; left: calc(50% + 6px); background: var(--bad); color: #fff; font-size: 10px; border-radius: 99px; padding: 0 5px; line-height: 16px; }
@media (min-width: 900px) {
  .nav { position: static; display: flex; gap: 2px; border: 0; background: none; padding: 0; }
  .nav button { flex-direction: row; font-size: 14px; padding: 8px 12px; min-height: 40px; border-radius: var(--r-sm); gap: 6px; color: #f3d4e2; }
  .nav button svg { width: 18px; height: 18px; }
  .nav button.on { background: rgba(255,255,255,.14); color: #fff; }
  .nav .dot { position: static; }
  .wrap { padding-bottom: 48px; }
}

/* layout */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s3); margin: var(--s5) 0 var(--s4); flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.cols { display: grid; gap: var(--s4); }
@media (min-width: 900px) { .cols { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); align-items: start; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s4); margin: 0 0 var(--s4); box-shadow: var(--shadow); }
.card > h2 { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); }
.card.flush { padding: 0; overflow: hidden; } .card.flush > h2 { padding: var(--s4) var(--s4) var(--s2); margin: 0; }

/* day header: the kitchen view */
.dayhead { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s3) var(--s4); background: var(--brand-soft); border-bottom: 1px solid var(--line); }
.dayhead b { font-size: 1rem; } .dayhead .sub { display: block; }
.meter { min-width: 110px; text-align: right; }
.meter .bar { height: 6px; background: #ecd9e3; border-radius: 99px; overflow: hidden; margin-top: 4px; }
.meter .bar i { display: block; height: 100%; background: var(--brand-2); border-radius: 99px; }
.meter.full .bar i { background: var(--bad); } .meter.full b { color: var(--bad); }

/* order card */
.oc { display: grid; grid-template-columns: 58px 1fr; gap: var(--s3); padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--card); width: 100%; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; cursor: pointer; }
.oc:first-of-type { border-top: 0; }
.oc:hover { background: #fffafc; }
.oc .time { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--brand); font-size: 15px; line-height: 1.15; }
.oc .time small { display: block; font-weight: 600; color: var(--mut); font-size: 11.5px; }
.oc .what { font-weight: 700; } .oc .who { font-size: 13.5px; color: var(--mut); }
.oc .writing { display: inline-block; margin-top: 4px; font-size: 13px; background: var(--gold-soft); color: #6b4b00; padding: 2px 8px; border-radius: 6px; font-style: italic; }
.oc .tags { margin-top: 6px; }
.pill { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: #eee6ea; color: var(--mut); margin: 2px 4px 0 0; white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.info { background: var(--info-soft); color: var(--info); } .pill.brand { background: var(--brand-soft); color: var(--brand); }
.item { display: flex; gap: var(--s3); align-items: center; padding: var(--s3) var(--s4); border-top: 1px solid var(--line); background: var(--card); width: 100%; text-align: left; border-left: 0; border-right: 0; border-bottom: 0; }
button.item { cursor: pointer; } button.item:hover { background: #fffafc; }
.item .main { flex: 1; min-width: 0; }
.item .main b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .amt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* KPI strip: compact, not monuments */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: var(--s4); }
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--card); padding: var(--s3) var(--s4); border: 0; text-align: left; }
button.kpi { cursor: pointer; } button.kpi:hover { background: var(--brand-soft); }
.kpi .v { font-size: 1.15rem; font-weight: 800; font-variant-numeric: tabular-nums; } .kpi .l { font-size: 12.5px; color: var(--mut); }
.kpi.bad .v { color: var(--bad); } .kpi.warn .v { color: var(--warn); } .kpi.ok .v { color: var(--ok); }

.filters { display: flex; gap: var(--s2); overflow-x: auto; padding: 0 var(--s4) var(--s3); scrollbar-width: none; }
.chip { border: 1px solid var(--line-2); background: var(--card); border-radius: 99px; padding: 6px 12px; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; min-height: 36px; }
.chip.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.empty { text-align: center; padding: var(--s6) var(--s4); color: var(--mut); }
.empty b { display: block; color: var(--ink); font-size: 1rem; margin-bottom: var(--s1); }

/* calendar strip */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal button { border: 1px solid var(--line); background: var(--card); border-radius: var(--r-sm); padding: 8px 4px; text-align: center; cursor: pointer; min-height: 64px; }
.cal button:hover { border-color: var(--brand-2); }
.cal .d { font-weight: 800; font-size: 15px; } .cal .w { font-size: 11px; color: var(--mut); text-transform: uppercase; } .cal .n { font-size: 11.5px; font-weight: 700; color: var(--brand); }
.cal .full { background: var(--bad-soft); border-color: #f0c9c5; } .cal .full .n { color: var(--bad); }
.cal .closed { background: #f1ecef; } .cal .closed .n { color: var(--mut); }
.cal .today { outline: 2px solid var(--brand-2); }

/* forms */
label { display: block; font-weight: 600; font-size: 13.5px; margin: var(--s3) 0 var(--s1); }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; min-height: 44px; }
input:focus, select:focus, textarea:focus { border-color: var(--brand-2); outline: 2px solid var(--brand-soft); }
textarea { min-height: 80px; resize: vertical; }
input[aria-invalid="true"], select[aria-invalid="true"] { border-color: var(--bad); }
.hint { font-size: 12.5px; color: var(--mut); margin-top: var(--s1); }
.err { color: var(--bad); font-size: 13.5px; font-weight: 600; min-height: 1em; margin-top: var(--s2); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-weight: 500; }
.check input { width: 20px; height: 20px; min-height: 0; margin-top: 2px; flex: none; }
.var-row { display: grid; grid-template-columns: 1fr 110px 40px; gap: var(--s2); margin-top: var(--s2); align-items: center; }
.x { min-height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: #fff; cursor: pointer; color: var(--mut); font-size: 18px; }
.toggles { display: flex; flex-wrap: wrap; gap: 6px; }
.toggles label { margin: 0; display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-2); border-radius: 99px; padding: 6px 12px; font-weight: 600; cursor: pointer; min-height: 38px; }
.toggles input { width: 16px; height: 16px; min-height: 0; }
.slotpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 8px; }
.slotpick button { border: 1px solid var(--line-2); background: #fff; border-radius: var(--r-sm); min-height: 46px; font-weight: 700; cursor: pointer; }
.slotpick button.on { background: var(--brand); color: #fff; border-color: var(--brand); }
.slotpick button:disabled { background: #f1ecef; color: #a99aa2; cursor: not-allowed; text-decoration: line-through; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; background: var(--brand); color: #fff; border: 0; border-radius: var(--r-sm); padding: 10px 16px; font-weight: 700; cursor: pointer; text-decoration: none; min-height: 44px; font-size: 15px; }
.btn:hover { background: var(--brand-d); } .btn:disabled { opacity: .55; cursor: progress; }
.btn.block { width: 100%; } .btn.gold { background: var(--gold); color: #2a1c00; } .btn.gold:hover { background: var(--gold-d); }
.btn.ghost { background: #fff; color: var(--ink); border: 1px solid var(--line-2); } .btn.ghost:hover { background: var(--paper); }
.btn.wa { background: var(--wa); } .btn.wa:hover { background: #178a45; }
.btn.danger { background: #fff; color: var(--bad); border: 1px solid #f0c9c5; }
.btn.sm { min-height: 36px; padding: 6px 12px; font-size: 13.5px; }
.btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; }
.link { background: none; border: 0; color: var(--brand); font-weight: 700; cursor: pointer; padding: 4px 0; font-size: 14px; }
.actions { display: flex; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s3); }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #efe4ea; border-radius: var(--r-sm); padding: 3px; margin: var(--s4) 0; }
.seg button { border: 0; background: none; padding: 9px; border-radius: 6px; font-weight: 700; cursor: pointer; color: var(--mut); min-height: 40px; }
.seg button.on { background: #fff; color: var(--ink); box-shadow: var(--shadow); }

/* status stepper */
.stepper { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; margin: var(--s3) 0; }
.stepper span { height: 6px; border-radius: 99px; background: #ecd9e3; } .stepper span.on { background: var(--brand-2); }
.steplbl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; font-size: 11.5px; color: var(--mut); text-align: center; }
.steplbl b { color: var(--brand); }
.bigstate { border-radius: var(--r); padding: var(--s4); margin-bottom: var(--s4); background: var(--brand-soft); }
.bigstate.siap { background: var(--ok-soft); } .bigstate.batal { background: #eee6ea; }
.bigstate .t { font-size: 1.25rem; font-weight: 800; }

/* key/value */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px var(--s4); margin: 0; }
.kv dt { color: var(--mut); font-size: 13.5px; } .kv dd { margin: 0; font-weight: 600; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font-size: 12px; color: var(--mut); text-transform: uppercase; letter-spacing: .04em; }
table.t td.r, table.t th.r { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sum-row td { font-weight: 800; border-top: 2px solid var(--ink); border-bottom: 0; }

/* onboarding */
.steps { margin: 0; padding-left: 20px; } .steps li { margin: 6px 0; } .steps li.done span { text-decoration: line-through; color: var(--mut); }

/* toast, skeleton, modal */
.toast { position: fixed; left: 50%; bottom: 84px; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-weight: 600; z-index: 50; max-width: 92vw; box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.toast.bad { background: var(--bad); }
.skel { height: 18px; background: linear-gradient(90deg, #efe4ea, #f8f2f5, #efe4ea); background-size: 200% 100%; border-radius: 6px; margin: 12px 0; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skel { animation: none; } }
dialog { border: 0; border-radius: var(--r-lg); padding: 0; width: min(560px, 94vw); max-height: 92vh; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(40, 10, 25, .45); }
dialog form, dialog .dlg { padding: var(--s4); }
dialog h2 { margin-bottom: 0; }
.warnbox { background: var(--warn-soft); color: var(--warn); border-radius: var(--r-sm); padding: var(--s3); font-weight: 600; font-size: 14px; margin-top: var(--s3); }
.proof-img { max-width: 100%; border-radius: var(--r-sm); border: 1px solid var(--line); margin-top: var(--s2); }

/* public pages */
.pub-head { background: var(--brand); color: #fff; padding: var(--s5) 0 var(--s6); }
.pub-head h1 { color: #fff; margin-bottom: 4px; } .pub-head p { color: #f3d4e2; margin: 0; }
.pub { max-width: 560px; margin: -20px auto 0; padding: 0 var(--s4) var(--s6); }
.menu-item { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); margin-top: var(--s3); background: #fff; }
.menu-item.sel { border-color: var(--brand-2); box-shadow: 0 0 0 2px var(--brand-soft); }
.menu-item .top-row { display: flex; justify-content: space-between; gap: var(--s2); align-items: baseline; }
.menu-item .price { font-weight: 800; color: var(--brand); white-space: nowrap; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-sm); overflow: hidden; }
.qty button { width: 40px; min-height: 40px; border: 0; background: #fff; font-size: 18px; cursor: pointer; }
.qty span { min-width: 34px; text-align: center; font-weight: 800; }
.sumbar { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding: var(--s3) var(--s4); display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin: 0 calc(var(--s4) * -1); box-shadow: 0 -6px 18px rgba(60,20,40,.06); }
.foot { text-align: center; font-size: 12.5px; color: var(--mut); padding: var(--s5) var(--s4); }

@media print {
  .top, .nav, .noprint, .toast { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  .card { box-shadow: none; border: 0; }
  .wrap { padding: 0; max-width: none; }
}
