:root { --red:#b3261e; --green:#1e7a46; --ink:#1d1b1a; --muted:#6b6560; --bg:#faf7f2; --card:#fff; --line:#e7e1d8; --r:14px; }
* { box-sizing: border-box; }
body { margin:0; font:16px/1.45 -apple-system, system-ui, "Segoe UI", Roboto, sans-serif; color:var(--ink); background:var(--bg); }
header { position:sticky; top:0; z-index:5; background:var(--red); color:#fff; padding:12px 16px; display:flex; gap:12px; align-items:center; }
header h1 { font-size:20px; margin:0; flex:1; }
header a { color:#fff; font-size:14px; }
main { max-width:1100px; margin:0 auto; padding:16px; }
input, select, textarea, button { font:inherit; }
input, select, textarea { width:100%; padding:12px; border:1px solid var(--line); border-radius:10px; background:#fff; }
label { display:block; font-size:13px; color:var(--muted); margin:10px 0 4px; }
button { border:0; border-radius:10px; padding:12px 16px; background:var(--red); color:#fff; font-weight:600; cursor:pointer; }
button.ghost { background:#fff; color:var(--ink); border:1px solid var(--line); }
button.green { background:var(--green); }
button:disabled { opacity:.5; }
.row { display:flex; gap:10px; } .row > * { flex:1; }
.bar { display:flex; gap:10px; margin-bottom:14px; } .bar input { flex:2; } .bar select { flex:1; }
.grid { display:grid; grid-template-columns:repeat(auto-fill, minmax(165px, 1fr)); gap:12px; }
.card { background:var(--card); border:1px solid var(--line); border-radius:var(--r); overflow:hidden; display:flex; flex-direction:column; }
.card img { width:100%; aspect-ratio:1; object-fit:cover; background:#eee; }
.card .b { padding:10px; display:flex; flex-direction:column; gap:4px; flex:1; }
.card .t { font-weight:600; font-size:15px; }
.card .s { font-size:12px; color:var(--muted); }
.price { font-size:18px; font-weight:700; }
.badge { display:inline-block; font-size:11px; font-weight:700; padding:2px 8px; border-radius:99px; background:#e6f4ea; color:var(--green); }
.badge.warn { background:#fdecea; color:var(--red); }
.badge.gray { background:#eee; color:var(--muted); }
.panel { background:#fff; border:1px solid var(--line); border-radius:var(--r); padding:16px; margin-bottom:16px; }
.modal { position:fixed; inset:0; background:rgba(0,0,0,.45); display:none; align-items:flex-end; justify-content:center; z-index:10; }
.modal.open { display:flex; }
.sheet { background:#fff; width:100%; max-width:480px; border-radius:18px 18px 0 0; padding:20px; max-height:92vh; overflow:auto; }
@media (min-width:700px) { .modal { align-items:center; } .sheet { border-radius:18px; } }
.code { font-size:34px; letter-spacing:8px; text-align:center; font-weight:800; }
.toast { position:fixed; left:50%; bottom:24px; transform:translateX(-50%); background:var(--ink); color:#fff; padding:12px 18px; border-radius:10px; z-index:20; max-width:90vw; }
.toast.bad { background:var(--red); }
.preview { width:100%; max-height:260px; object-fit:contain; border-radius:10px; background:#eee; display:none; margin-top:8px; }
table { width:100%; border-collapse:collapse; font-size:14px; } td, th { padding:8px; border-bottom:1px solid var(--line); text-align:left; }
.muted { color:var(--muted); font-size:13px; }
.hidden { display:none !important; }
.paybox { background:#fff7e6; border:1px solid #f3d9a4; border-radius:12px; padding:12px; margin:12px 0 4px; font-size:14px; }
.paybox .step { display:flex; align-items:center; gap:10px; padding:6px 0; }
.paybox .step span { flex:0 0 26px; height:26px; border-radius:50%; background:var(--ink); color:#fff; display:grid; place-items:center; font-size:13px; font-weight:700; }
.btn { display:block; text-align:center; text-decoration:none; border-radius:10px; padding:14px; font-weight:700; color:#fff; margin:12px 0; }
.btn.whish, button.whish { background:#e30613; }
button.mini { padding:4px 10px; font-size:13px; margin-left:auto; }
.wa { background:#e7fbe9; border-left:4px solid #25d366; padding:8px 10px; border-radius:8px; font-size:13px; }
header h1 { white-space:nowrap; }
header .tag { font-size:13px; opacity:.9; text-align:right; }
@media (max-width:600px) {
  .bar { flex-wrap:wrap; } .bar input { flex:1 1 100%; } .bar select { flex:1 1 40%; }
  header .tag { font-size:11px; }
}
.camera { display:block; text-align:center; padding:18px; border:2px dashed var(--red); border-radius:12px; color:var(--red); font-weight:700; font-size:16px; margin:0; cursor:pointer; background:#fff5f4; }
.tabs { display:flex; gap:6px; margin-bottom:10px; }
.tab { background:#fff; color:var(--ink); border:1px solid var(--line); padding:6px 14px; border-radius:99px; font-size:14px; }
.tab.on { background:var(--ink); color:#fff; border-color:var(--ink); }
.comp { border-bottom:1px solid var(--line); padding:10px 0; font-size:14px; }
.comp a { color:var(--ink); }
.clamp { display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; margin-top:2px; }
.chip { display:inline-block; padding:4px 10px; margin:0 6px 6px 0; border-radius:99px; background:#eef6ff; border:1px solid #cfe3fb; font-size:13px; cursor:pointer; }
.chip.off { background:#f1f1f1; color:#999; text-decoration:line-through; border-color:#e2e2e2; }
details summary { cursor:pointer; }
.hbtn { background:#fff; color:var(--red); padding:8px 14px; font-size:14px; }
.choice { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.choice label { display:flex; gap:8px; align-items:flex-start; border:1px solid var(--line); border-radius:10px; padding:10px; margin:0; color:var(--ink); font-size:14px; }
.choice input { width:auto; margin-top:3px; }
.check { display:flex; gap:8px; align-items:center; color:var(--ink); margin-top:12px; } .check input { width:auto; }
.pnr { display:flex; gap:6px; justify-content:center; margin:10px 0 14px; }
.pnr span { width:44px; height:56px; display:grid; place-items:center; background:var(--ink); color:#fff; border-radius:8px; font:700 28px/1 ui-monospace, Menlo, monospace; }
.pnr.small { display:inline-block; font:700 20px/1 ui-monospace, Menlo, monospace; letter-spacing:3px; background:var(--ink); color:#fff; padding:8px 10px; border-radius:8px; margin:0; flex:0 0 auto; }
.mono { font-family:ui-monospace, Menlo, monospace; letter-spacing:1px; }
.booking, .bk { border:1px solid var(--line); border-radius:12px; padding:12px; margin:10px 0; font-size:14px; }
.receipt { background:#f6f6f6; border-left:3px solid var(--green); padding:8px 10px; border-radius:6px; font-size:13px; margin-top:8px; }
.balance { text-align:right; font-size:13px; flex:0 0 auto; } .balance.owe b { color:var(--red); font-size:20px; } .balance.due b { color:var(--green); font-size:20px; }
.payform { border:2px solid var(--ink); border-radius:12px; padding:14px; margin-top:10px; }
.handover { background:#e9f6ee; border-radius:12px; padding:12px; margin-top:10px; }
.warn { background:#fdecea; color:var(--red); padding:10px; border-radius:10px; font-weight:600; }
.okbox { background:#e9f6ee; color:var(--green); padding:10px; border-radius:10px; font-weight:600; }
.alert-panel { border-color:#f3c7c3; }
table.small { font-size:12px; } td.ok { color:var(--green); font-weight:600; } td.bad { color:var(--red); font-weight:600; }
tr.clickable { cursor:pointer; } tr.clickable:hover { background:#faf7f2; }
body.merchant header { background:var(--ink); }
input.code { text-transform:uppercase; font:700 26px/1.2 ui-monospace, Menlo, monospace; letter-spacing:6px; text-align:center; }
hr { border:0; border-top:1px solid var(--line); margin:12px 0; }
