:root {
  --bg: #f6f3ee; --card: #fff; --ink: #1d1a16; --muted: #7a7268; --line: #e7e1d8;
  --brand: #d9480f; --brand-ink: #fff; --ok: #2b8a3e; --warn: #e67700; --err: #c92a2a;
  --radius: 14px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 16px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px; }
.wrap.wide { max-width: 1000px; }
header.top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
header.top h1 { font-size: 20px; margin: 0; }
header.top h1 b { color: var(--brand); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 12px; }
.muted { color: var(--muted); font-size: 14px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
input, select { font: inherit; padding: 12px; border: 1px solid var(--line); border-radius: 10px; width: 100%; background: #fff; }
button { font: inherit; font-weight: 600; padding: 12px 16px; border: 0; border-radius: 10px; cursor: pointer; background: var(--brand); color: var(--brand-ink); }
button.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
button.big { width: 100%; padding: 18px; font-size: 18px; }
button:disabled { opacity: .45; cursor: not-allowed; }
.hidden { display: none !important; }
.balance { font-size: 34px; font-weight: 800; letter-spacing: -.5px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 99px; font-size: 13px; font-weight: 600; background: #eee; }
.pill.new { background: #fff3bf; color: #8a6100; }
.pill.welcome { background: #d3f9d8; color: var(--ok); }
.pill.cashback { background: #d0ebff; color: #1864ab; }
.msg { padding: 12px; border-radius: 10px; margin: 10px 0; font-weight: 500; }
.msg.ok { background: #ebfbee; color: var(--ok); }
.msg.err { background: #fff5f5; color: var(--err); }
.msg.warn { background: #fff9db; color: #8a6100; }
.coffees { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.coffees button { background: #fff; color: var(--ink); border: 1px solid var(--line); text-align: left; padding: 12px; }
.coffees button small { display: block; color: var(--muted); font-weight: 500; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 600; }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 12px; }
.tabs button { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.tabs button.on { background: var(--ink); color: #fff; }
#reader { width: 100%; border-radius: 12px; overflow: hidden; }
.qrbox { display: flex; justify-content: center; padding: 14px; background: #fff; border-radius: 12px; }
.pin { font-size: 28px; text-align: center; letter-spacing: 10px; }
