:root {
  --brand: #F37423;
  --brand-dark: #e05f10;
  --brand-soft: #fdeee2;
  --ink: #1C1718;
  --ink-2: #403a3c;
  --muted: #6b7280;
  --bg: #f5f6f8;
  --surface: #ffffff;
  --line: #e6e8ec;
  --ok: #16a34a;
  --ok-soft: #e9f9ee;
  --warn: #f59e0b;
  --warn-soft: #fdf3e0;
  --danger: #E83035;
  --danger-soft: #fdeaea;
  --blue: #2563eb;
  --blue-soft: #eaf1fe;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(28, 23, 24, .08), 0 1px 2px rgba(28, 23, 24, .04);
  --shadow-lg: 0 12px 32px rgba(28, 23, 24, .14);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Optima", "Segoe UI", Georgia, "Times New Roman", serif;
  --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.45;
}

h1, h2, h3, h4 { font-family: var(--font-head); margin: 0 0 .4em; letter-spacing: .2px; }

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.topbar {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 18px;
  background: var(--surface); border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; }
.brand .mark {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 auto;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; display: grid; place-items: center; font-size: 18px;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,.15);
}
.brand small { display: block; font-weight: 500; color: var(--muted); font-size: 11px; line-height: 1; margin-top: 2px; letter-spacing: .5px; }

.topbar .spacer { flex: 1; }
.topbar .nav { display: flex; gap: 4px; align-items: center; }

.clock { font-family: var(--mono); color: var(--muted); font-size: 13px; }

.sync-badge {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 5px 11px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--ink-2); white-space: nowrap;
  transition: all .15s ease;
}
.sync-badge:hover { box-shadow: var(--shadow); }
.sync-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; }
.sync-badge.offline .dot { background: var(--warn); }
.sync-badge .pending { color: var(--muted); font-weight: 500; }

.offline-banner {
  background: var(--warn-soft); color: #92400e; border-bottom: 1px solid #f3d9a9;
  padding: 8px 18px; font-size: 13px; display: flex; gap: 8px; align-items: center;
}
.offline-banner b { font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 9px 16px; font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: inherit; background: var(--surface); color: var(--ink-2);
  transition: filter .12s ease, transform .05s ease, background .12s ease;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(.97); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-dark); filter: none; }
.btn.dark { background: var(--ink); color: #fff; }
.btn.ok { background: var(--ok); color: #fff; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.ghost { border-color: var(--line); background: var(--surface); }
.btn.big { padding: 14px 22px; font-size: 16px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 3px; gap: 3px; }
.seg button {
  border: 0; background: transparent; padding: 8px 14px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; color: var(--muted); font-family: inherit;
}
.seg button.active { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border-radius: 999px; padding: 3px 10px; font-size: 12px; font-weight: 700;
}
.chip.orange { background: var(--brand-soft); color: var(--brand-dark); }
.chip.green { background: var(--ok-soft); color: var(--ok); }
.chip.amber { background: var(--warn-soft); color: #b45309; }
.chip.red { background: var(--danger-soft); color: var(--danger); }
.chip.blue { background: var(--blue-soft); color: var(--blue); }
.chip.gray { background: #eef0f3; color: var(--muted); }

.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px;
}
.card h3 { font-size: 15px; margin-bottom: 12px; }

.grid { display: grid; gap: 14px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.stat {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow);
}
.stat .label { font-size: 12.5px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .4px; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 4px; font-family: var(--font-head); }
.stat .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button {
  border: 0; background: transparent; padding: 10px 16px; font-size: 14px; font-weight: 600;
  color: var(--muted); cursor: pointer; border-bottom: 2.5px solid transparent; font-family: inherit;
}
.tabs button.active { color: var(--brand); border-bottom-color: var(--brand); }

table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
table.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .4px; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); }
table.tbl td { padding: 10px; border-bottom: 1px solid var(--line); }
table.tbl tr:last-child td { border-bottom: 0; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(1200px 600px at 20% -10%, var(--brand-soft), var(--bg) 55%); }
.login-card { width: 100%; max-width: 420px; }
.login-card .brand { justify-content: center; font-size: 22px; margin-bottom: 4px; }
.login-card .brand .mark { width: 44px; height: 44px; font-size: 22px; }
.login-sub { text-align: center; color: var(--muted); margin: 0 0 22px; }
.role-btn {
  display: flex; align-items: center; gap: 14px; width: 100%;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 16px; margin-bottom: 12px; cursor: pointer; text-align: left; font-family: inherit;
  transition: border-color .12s, box-shadow .12s; box-shadow: var(--shadow);
}
.role-btn:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.role-btn .ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; flex: 0 0 auto; }
.role-btn .tt { font-size: 16px; font-weight: 700; }
.role-btn .dd { font-size: 12.5px; color: var(--muted); }
.role-btn .go { margin-left: auto; color: var(--brand); font-weight: 700; }

/* ---------- cashier ---------- */
.pos { display: grid; grid-template-columns: 190px 1fr 380px; gap: 14px; padding: 14px; height: calc(100vh - 58px); }
.pos .pane { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); display: flex; flex-direction: column; overflow: hidden; }
.pane .pane-head { padding: 12px 14px; border-bottom: 1px solid var(--line); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }

.cats { overflow-y: auto; padding: 8px; }
.cat-btn {
  width: 100%; display: flex; align-items: center; gap: 10px; text-align: left;
  border: 0; background: transparent; border-radius: 10px; padding: 11px 12px;
  font-size: 14px; font-weight: 600; cursor: pointer; color: var(--ink-2); font-family: inherit;
  margin-bottom: 2px;
}
.cat-btn .ico { font-size: 18px; }
.cat-btn:hover { background: var(--bg); }
.cat-btn.active { background: var(--brand-soft); color: var(--brand-dark); }

.prods { overflow-y: auto; padding: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; align-content: start; }
.prod {
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface);
  padding: 12px; cursor: pointer; text-align: center; transition: border-color .12s, box-shadow .12s, transform .05s;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
}
.prod:hover { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.prod:active { transform: scale(.97); }
.prod .emoji { font-size: 30px; }
.prod .nm { font-size: 13px; font-weight: 700; line-height: 1.2; }
.prod .pr { font-size: 12.5px; color: var(--brand-dark); font-weight: 700; }
.prod .mod-hint { font-size: 10.5px; color: var(--muted); }

.cart-pane { min-height: 0; }
.cart-scroll { flex: 1; overflow-y: auto; padding: 12px 14px; }
.order-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.order-num { font-family: var(--mono); font-size: 13px; color: var(--muted); }

.cart-row { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px dashed var(--line); cursor: pointer; }
.cart-row:last-child { border-bottom: 0; }
.cart-row .qty-badge { background: var(--brand); color: #fff; font-weight: 700; border-radius: 7px; min-width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; flex: 0 0 auto; }
.cart-row .nm { font-weight: 600; font-size: 14px; }
.cart-row .mods { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-row .amt { margin-left: auto; font-weight: 700; font-size: 14px; white-space: nowrap; }
.cart-row .x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 16px; padding: 0 2px; line-height: 1; }
.cart-row .x:hover { color: var(--danger); }

.cart-total { padding: 12px 14px; border-top: 1px solid var(--line); }
.tot-row { display: flex; justify-content: space-between; font-size: 13.5px; color: var(--ink-2); padding: 2px 0; }
.tot-row.grand { font-size: 19px; font-weight: 800; color: var(--ink); border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }

.pay-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 0 14px 12px; }
.pay-btn { border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; background: var(--surface); cursor: pointer; font-family: inherit; text-align: center; }
.pay-btn:hover { border-color: var(--brand); }
.pay-btn .emoji { font-size: 18px; display: block; }
.pay-btn .lbl { font-size: 12.5px; font-weight: 600; }

.send-row { padding: 0 14px 14px; }

.empty-cart { color: var(--muted); text-align: center; padding: 40px 10px; }
.empty-cart .emoji { font-size: 40px; display: block; margin-bottom: 8px; }

.form { display: grid; gap: 10px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px;
  font-size: 14px; font-family: inherit; background: var(--surface); color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--brand-soft); border-color: var(--brand); }
.field textarea { resize: vertical; min-height: 60px; }

/* ---------- kitchen (KDS) ---------- */
.kds { padding: 14px; }
.kds-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.kds-stat { border-radius: var(--radius); padding: 14px 16px; color: #fff; box-shadow: var(--shadow); }
.kds-stat .n { font-size: 30px; font-weight: 800; font-family: var(--font-head); line-height: 1; }
.kds-stat .l { font-size: 12.5px; opacity: .92; font-weight: 600; margin-top: 4px; }
.kds-stat.new { background: var(--blue); }
.kds-stat.prep { background: var(--warn); }
.kds-stat.ready { background: var(--ok); }
.kds-stat.done { background: var(--ink); }

.tickets { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.ticket {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column;
}
.ticket .t-head { padding: 12px 14px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.ticket .t-num { font-size: 22px; font-weight: 800; font-family: var(--mono); }
.ticket .t-body { padding: 12px 14px; flex: 1; }
.ticket .t-item { display: flex; gap: 8px; padding: 4px 0; font-size: 14.5px; }
.ticket .t-item .n { font-weight: 700; color: var(--brand-dark); }
.ticket .t-item .mods { color: var(--muted); font-size: 12.5px; }
.ticket .t-foot { padding: 12px 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ticket .t-foot .btn { padding: 9px 4px; font-size: 12.5px; }

.timer { font-family: var(--mono); font-size: 13px; color: var(--muted); margin-left: auto; font-weight: 700; }
.st-new .t-head { background: var(--blue-soft); }
.st-new .t-head { border-color: var(--line); }
.st-preparing .t-head { background: var(--warn-soft); }
.st-ready .t-head { background: var(--ok-soft); }
.st-served { opacity: .55; }
.st-served .t-head { background: #eef0f3; }

.st-new { border-color: #bfdbfe; }
.st-preparing { border-color: #fcd34d; }
.st-ready { border-color: #86efac; }

.ticket.flash { animation: flash 1s ease infinite; }
@keyframes flash { 0%,100% { box-shadow: 0 0 0 3px rgba(232,48,53,.35); } 50% { box-shadow: 0 0 0 3px rgba(232,48,53,.05); } }

.kds-note { font-size: 12.5px; color: var(--muted); margin-top: 10px; }

/* ---------- payment ---------- */
.pay-wrap { max-width: 560px; margin: 30px auto; padding: 0 16px; }
.pay-total {
  text-align: center; background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  color: #fff; border-radius: var(--radius); padding: 26px; margin-bottom: 16px; box-shadow: var(--shadow-lg);
}
.pay-total .lbl { font-size: 13px; font-weight: 600; opacity: .92; text-transform: uppercase; letter-spacing: .5px; }
.pay-total .amt { font-size: 40px; font-weight: 800; font-family: var(--font-head); }
.pay-total .sub { font-size: 13px; opacity: .92; }

.method-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 16px; }
.method-tab { border: 1.5px solid var(--line); background: var(--surface); border-radius: 12px; padding: 14px 8px; cursor: pointer; font-family: inherit; text-align: center; }
.method-tab.active { border-color: var(--brand); background: var(--brand-soft); }
.method-tab .emoji { font-size: 22px; display: block; }
.method-tab .lbl { font-weight: 700; font-size: 13.5px; }

.stk-overlay {
  position: fixed; inset: 0; background: rgba(28,23,24,.5); z-index: 60;
  display: grid; place-items: center; padding: 20px;
}
.stk-modal { background: var(--surface); border-radius: 16px; padding: 26px; max-width: 360px; width: 100%; text-align: center; box-shadow: var(--shadow-lg); }
.stk-modal .spinner { width: 46px; height: 46px; margin: 0 auto 14px; border: 5px solid var(--brand-soft); border-top-color: var(--brand); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.stk-modal .ok-ic { font-size: 46px; margin-bottom: 10px; }
.stk-note { font-size: 13px; color: var(--muted); margin-top: 10px; }

/* ---------- receipt ---------- */
.rec-wrap { max-width: 640px; margin: 26px auto; padding: 0 16px; display: grid; gap: 16px; }
.receipt {
  background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 26px;
  font-family: var(--mono); font-size: 13px; color: var(--ink); box-shadow: var(--shadow);
  max-width: 340px; margin: 0 auto;
}
.receipt .r-head { text-align: center; border-bottom: 1px dashed #999; padding-bottom: 12px; margin-bottom: 12px; }
.receipt .r-head .nm { font-size: 17px; font-weight: 800; }
.receipt .r-head .addr { font-size: 11px; color: #555; }
.receipt .r-line { display: flex; justify-content: space-between; padding: 2px 0; }
.receipt .r-line .q { color: #555; }
.receipt .r-items { border-top: 1px dashed #999; border-bottom: 1px dashed #999; margin: 10px 0; padding: 6px 0; }
.receipt .r-item { padding: 3px 0; }
.receipt .r-item .m { color: #777; font-size: 11px; }
.receipt .r-tot { font-size: 15px; font-weight: 700; }
.receipt .r-foot { text-align: center; margin-top: 12px; color: #555; font-size: 11px; }

.serving-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.serving-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  padding: 14px; text-align: center; box-shadow: var(--shadow);
}
.serving-item .num { font-family: var(--mono); font-size: 22px; font-weight: 800; }
.serving-item .ck { color: var(--ok); font-weight: 800; }

/* ---------- toasts ---------- */
.toasts { position: fixed; bottom: 18px; right: 18px; z-index: 80; display: grid; gap: 8px; }
.toast {
  background: var(--ink); color: #fff; border-radius: 10px; padding: 12px 16px;
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg); min-width: 220px;
  animation: slideIn .2s ease;
}
.toast.ok { background: var(--ok); }
.toast.warn { background: var(--warn); color: #1a1a1a; }
.toast.err { background: var(--danger); }
@keyframes slideIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- workflows page ---------- */
.wf { max-width: 1080px; margin: 0 auto; padding: 24px 18px 60px; }
.wf h1 { font-size: 28px; }
.wf .intro { color: var(--muted); max-width: 760px; margin-bottom: 26px; }
.wf-sec { margin-top: 34px; }
.wf-sec h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.wf-sec .desc { color: var(--muted); font-size: 14px; margin-bottom: 16px; max-width: 800px; }

.flow { display: flex; align-items: stretch; flex-wrap: wrap; gap: 0; }
.flow .step {
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 14px; min-width: 130px; max-width: 170px; font-size: 13px; font-weight: 600;
  box-shadow: var(--shadow); position: relative;
}
.flow .step .st-ic { display: block; font-size: 20px; margin-bottom: 4px; }
.flow .step .st-sub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; margin-top: 3px; }
.flow .step.hot { border-color: var(--brand); background: var(--brand-soft); }
.flow .step.green { border-color: #86efac; background: var(--ok-soft); }
.flow .step.amber { border-color: #fcd34d; background: var(--warn-soft); }
.flow .step.red { border-color: #fca5a5; background: var(--danger-soft); }
.flow .step.blue { border-color: #bfdbfe; background: var(--blue-soft); }
.flow .step.dark { background: var(--ink); color: #fff; border-color: var(--ink); }
.flow .step.note { border-style: dashed; background: transparent; box-shadow: none; color: var(--muted); font-weight: 500; }

.flow .arrow { display: grid; place-items: center; color: var(--muted); font-size: 18px; padding: 0 8px; }
.flow .arrow.dn { writing-mode: vertical-rl; }
.flow-col { display: flex; flex-direction: column; align-items: center; gap: 0; }

.wf-branches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.wf-branch { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.wf-branch .bh { font-weight: 700; font-size: 14px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.wf-branch .mini-flow { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.wf-branch .mini-flow .mini-step { display: flex; align-items: center; gap: 8px; background: var(--bg); border-radius: 8px; padding: 7px 10px; }
.wf-branch .mini-flow .mini-step .m-n { font-weight: 700; color: var(--brand-dark); min-width: 20px; }
.wf-branch .mini-flow .down-arrow { text-align: center; color: var(--muted); }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: 12px; }
.legend .dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-right: 6px; vertical-align: middle; }

/* ---------- website ---------- */
.site-nav {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-nav .inner { max-width: 1080px; margin: 0 auto; padding: 0 18px; height: 62px; display: flex; align-items: center; gap: 26px; }
.site-nav .links { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.site-nav .links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.site-nav .links a:hover, .site-nav .links a.active { background: var(--brand-soft); color: var(--brand-dark); text-decoration: none; }

.hero {
  background: radial-gradient(900px 500px at 15% -20%, var(--brand-soft), var(--bg) 60%);
  padding: 70px 18px 60px;
}
.hero .inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.2fr .8fr; gap: 40px; align-items: center; }
.hero .kicker { color: var(--brand-dark); font-weight: 800; text-transform: uppercase; letter-spacing: 1.5px; font-size: 12.5px; }
.hero h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; margin: 12px 0; }
.hero h1 .hl { color: var(--brand); }
.hero p { color: var(--ink-2); font-size: 17px; max-width: 520px; margin: 0 0 26px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .hero-card { background: var(--surface); border-radius: 20px; padding: 20px; box-shadow: var(--shadow-lg); border: 1px solid var(--line); }
.hero .hero-card .mini-item { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.hero .hero-card .mini-item:last-child { border-bottom: 0; }

.sec { max-width: 1080px; margin: 0 auto; padding: 54px 18px; }
.sec h2 { font-size: 26px; margin-bottom: 6px; }
.sec .sub { color: var(--muted); margin-bottom: 22px; }

.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.highlight { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.highlight .emoji { font-size: 26px; }
.highlight .tt { font-weight: 700; font-size: 15px; margin: 8px 0 4px; }
.highlight .dd { font-size: 13.5px; color: var(--muted); }

.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.menu-item {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 4px;
}
.menu-item .emoji { font-size: 30px; }
.menu-item .nm { font-weight: 700; }
.menu-item .pr { color: var(--brand-dark); font-weight: 700; }
.menu-item .cat { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .4px; }

.footer { background: var(--ink); color: #cfc9cb; padding: 34px 18px; margin-top: 20px; }
.footer .inner { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 26px; }
.footer h4 { color: #fff; margin-bottom: 10px; }
.footer a { color: #cfc9cb; }
.footer a:hover { color: var(--brand); }
.footer .foot-note { grid-column: 1 / -1; border-top: 1px solid #3a3335; padding-top: 16px; font-size: 12.5px; color: #8d8588; }

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.map-ph { height: 240px; background: linear-gradient(135deg, #e8eaee, #d5d8df); border-radius: 14px; display: grid; place-items: center; color: var(--muted); font-weight: 600; border: 1px solid var(--line); position: relative; overflow: hidden; }
.map-ph::after { content: ""; position: absolute; left: 12%; right: 12%; top: 40%; height: 3px; background: rgba(243,116,35,.35); }
.map-ph::before { content: ""; position: absolute; left: 45%; top: 12%; bottom: 15%; width: 3px; background: rgba(243,116,35,.35); }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 9px 4px; border-bottom: 1px dashed var(--line); }
.hours-table td:last-child { text-align: right; font-weight: 600; }

/* ---------- utilities ---------- */
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--muted); }
.center { text-align: center; }
.flex { display: flex; gap: 10px; align-items: center; }
.flex-1 { flex: 1; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #d2d6dc; border-radius: 8px; border: 2px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: #b6bbc3; border: 2px solid transparent; background-clip: content-box; }

@media (max-width: 980px) {
  .pos { grid-template-columns: 1fr; height: auto; }
  .pos .pane { min-height: 300px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .wf-branches { grid-template-columns: 1fr; }
  .hero .inner { grid-template-columns: 1fr; }
  .highlights { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer .inner { grid-template-columns: 1fr; }
  .kds-stats { grid-template-columns: repeat(2, 1fr); }
}

@media print {
  body * { visibility: hidden; }
  .receipt, .receipt * { visibility: visible; }
  .receipt { position: absolute; inset: 0 auto auto 50%; transform: translateX(-50%); box-shadow: none; border: 0; }
}
