:root {
  color-scheme: dark;
  --hz-primary: #4680ff;
  --hz-surface: #121a2b;
  --hz-heading: #f8fafc;
  --hz-body: #e2e8f0;
  --hz-muted: #94a3b8;
  --hz-border: #334155;
  --hz-danger: #f87171;
  --hz-success: #4ade80;
  --hz-bg: #0b1220;
}
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--hz-bg);
  color: var(--hz-body);
  font-family: "Segoe UI", system-ui, sans-serif;
}
body { padding: env(safe-area-inset-top) 16px env(safe-area-inset-bottom); }
#scan-app { max-width: 28rem; margin: 0 auto; }
.scan-top {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--hz-border);
  background: #fff;
  color: #0b1220;
  margin: 0 -16px 16px;
  padding: 0 16px;
}
.scan-top strong { font-size: 1rem; }
.scan-top button, .scan-top a {
  border: 0;
  background: none;
  color: #1e4fd4;
  font: inherit;
  cursor: pointer;
}
h1 { color: var(--hz-heading); font-size: 1.6rem; }
.lead, .hint { color: var(--hz-muted); }
label { display: block; margin: 12px 0; }
input, button.btn {
  width: 100%;
  font-size: max(16px, 1rem);
  padding: 12px;
  border-radius: 10px;
  border: 1px solid var(--hz-border);
}
button.btn {
  background: var(--hz-primary);
  color: #fff;
  border: 0;
  font-weight: 700;
  cursor: pointer;
  margin-top: 8px;
}
button.ghost { background: transparent; color: var(--hz-heading); border: 1px solid var(--hz-border); }
.banner { background: #7f1d1d; color: #fff; padding: 10px 12px; border-radius: 10px; }
.card {
  background: var(--hz-surface);
  border: 1px solid var(--hz-border);
  border-radius: 16px;
  padding: 16px;
  margin: 12px 0;
}
#voucher-scanner video {
  width: 100%;
  border-radius: 16px;
  background: #000;
}
.receipt-no { font-size: 1.4rem; font-weight: 800; letter-spacing: 0.04em; }
.today-row { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--hz-border); }
