@font-face {
  font-family: "UnifrakturMaguntia";
  src: url("/fonts/UnifrakturMaguntia.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
:root {
  --bg: #000000;
  --bg-deep: #0a0612;
  --card: rgba(18, 8, 28, 0.82);
  --card2: rgba(28, 12, 42, 0.9);
  --card-solid: #12081c;
  --text: #f0eaf8;
  --muted: #a89bb8;
  --accent: #c44dff;
  --accent2: #a020f0;
  --accent3: #7b2ff7;
  --neon: #d17aff;
  --cream: #f5e6c8;
  --gold: #e8d5a3;
  --gold-dim: #9a7f4a;
  --danger: #ff5c7a;
  --warn: #ffb84d;
  --ok: #3ecf8e;
  --border: rgba(160, 32, 240, 0.35);
  --border-strong: rgba(196, 77, 255, 0.55);
  --glow: 0 0 20px rgba(160, 32, 240, 0.45), 0 0 40px rgba(123, 47, 247, 0.2);
  --glow-sm: 0 0 12px rgba(160, 32, 240, 0.4);
  --touch: 56px;
  --pad-key: 72px;
  --app-pad: 12px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100%;
}
body {
  padding-bottom: env(safe-area-inset-bottom);
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 90% 50% at 50% -10%, rgba(160, 32, 240, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(123, 47, 247, 0.12), transparent 50%),
    linear-gradient(180deg, #0a0612 0%, #000000 45%, #05030a 100%);
  background-attachment: fixed;
  touch-action: manipulation;
}
.customer-foot {
  margin: 22px 0 10px;
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}
.customer-foot a { color: var(--neon); font-weight: 700; text-decoration: none; }

/* Phone-first single column */
#app {
  max-width: 420px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  width: 100%;
}

.view {
  padding: var(--app-pad);
  padding-left: max(var(--app-pad), env(safe-area-inset-left));
  padding-right: max(var(--app-pad), env(safe-area-inset-right));
}
.login-card {
  margin-top: 2vh;
  text-align: center;
  max-width: 100%;
}

/* Hero logo — cyberpunk brand mark */
.logo-hero {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: contain;
  margin: 0 auto 12px;
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  box-shadow:
    0 0 0 1px rgba(196, 77, 255, 0.15),
    0 0 28px rgba(160, 32, 240, 0.5),
    0 0 56px rgba(123, 47, 247, 0.25),
    inset 0 0 40px rgba(160, 32, 240, 0.08);
  background: #000;
}
.logo-hero.compact {
  max-height: 100px;
  margin-bottom: 10px;
  border-radius: 12px;
}

.logo-mark {
  width: 64px; height: 64px; margin: 0 auto 14px;
  border-radius: 16px; border: 2px solid var(--accent);
  background: linear-gradient(145deg, #1a0a28, #050308);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--glow);
}
.logo-mark span {
  font-size: 1.55rem; font-weight: 900; letter-spacing: -0.04em;
  color: var(--accent); text-shadow: 0 0 12px rgba(196, 77, 255, 0.8);
}

.brand {
  font-size: 1.85rem; font-weight: 800; letter-spacing: 0.06em;
  color: var(--cream);
  text-transform: uppercase;
  text-shadow:
    0 0 12px rgba(160, 32, 240, 0.6),
    0 0 28px rgba(196, 77, 255, 0.35);
}
.brand-sub { color: var(--muted); margin-bottom: 8px; font-size: 0.95rem; }
.brand-tag {
  display: inline-block; margin-bottom: 16px;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--neon);
  border: 1px solid var(--border);
  background: rgba(160, 32, 240, 0.12);
  padding: 4px 12px; border-radius: 999px;
  box-shadow: var(--glow-sm);
}

.lbl { display: block; text-align: left; font-size: 0.85rem; color: var(--muted); margin: 10px 0 6px; }

/* >=16px prevents iOS focus zoom */
.pin-input, input, select, textarea {
  width: 100%;
  min-height: var(--touch);
  height: var(--touch);
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(8, 4, 14, 0.9);
  color: var(--text);
  font-size: 16px;
  padding: 0 14px;
  transition: border-color 0.15s, box-shadow 0.15s;
  touch-action: manipulation;
}
textarea { height: auto; min-height: 88px; padding: 12px 14px; }
.pin-input::placeholder, input::placeholder, select::placeholder, textarea::placeholder { color: #6e6280; }
.pin-input:focus, input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(160, 32, 240, 0.35), var(--glow-sm);
}

/* Large spaced PIN digits for thumbs */
.pin-input {
  text-align: center;
  font-size: 1.75rem;
  letter-spacing: 0.55em;
  padding-left: 0.55em;
  margin-bottom: 8px;
  height: 64px;
  min-height: 64px;
  font-weight: 700;
  caret-color: var(--neon);
}
.pin-input.pin-hidden-a11y {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visual PIN dots (synced from JS) */
.pin-dots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin: 8px 0 14px;
  min-height: 28px;
}
.pin-dots .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border-strong);
  background: transparent;
  box-shadow: var(--glow-sm);
  transition: background 0.1s, transform 0.1s;
}
.pin-dots .dot.filled {
  background: var(--neon);
  border-color: var(--accent);
  box-shadow: 0 0 14px rgba(196, 77, 255, 0.7);
  transform: scale(1.08);
}

/* Big on-screen numeric keypad */
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 8px 0 16px;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  user-select: none;
  -webkit-user-select: none;
}
.pin-pad button {
  height: var(--pad-key);
  min-height: var(--pad-key);
  border-radius: 18px;
  background: var(--card);
  color: var(--text);
  font-size: 1.65rem;
  font-weight: 700;
  cursor: pointer;
  border: 1px solid var(--border);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.12s, box-shadow 0.12s, background 0.12s, transform 0.08s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
.pin-pad button:active {
  background: var(--card2);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
  transform: scale(0.96);
}
.pin-pad button.pad-action {
  font-size: 1.15rem;
  color: var(--neon);
}

/* Sticky thumb-reach login CTA */
.login-actions {
  position: sticky;
  bottom: 0;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  margin-top: 4px;
  background: linear-gradient(180deg, transparent 0%, rgba(5, 3, 10, 0.92) 28%, rgba(5, 3, 10, 0.98) 100%);
  z-index: 5;
}

.btn {
  border: 1px solid transparent;
  border-radius: 14px;
  padding: 12px 16px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  color: var(--text);
  background: #3a2a4a;
  transition: box-shadow 0.15s, border-color 0.15s, transform 0.1s, filter 0.15s;
  touch-action: manipulation;
  min-height: 48px;
}
.btn.big {
  width: 100%;
  height: var(--touch);
  min-height: var(--touch);
  font-size: 1.1rem;
  margin-top: 8px;
}
.btn.sm {
  height: 44px;
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.85rem;
}
.btn.primary {
  background: linear-gradient(135deg, #a020f0 0%, #7b2ff7 55%, #5a1fc7 100%);
  color: #fff;
  border-color: rgba(209, 122, 255, 0.6);
  box-shadow: 0 0 18px rgba(160, 32, 240, 0.45);
  text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}
.btn.primary:hover, .btn.primary:active {
  filter: brightness(1.08);
  box-shadow: 0 0 28px rgba(196, 77, 255, 0.65), 0 0 48px rgba(123, 47, 247, 0.3);
}
.btn.success {
  background: linear-gradient(135deg, #2aad6e, #1e8a55);
  color: #04140c;
  border-color: rgba(62, 207, 142, 0.5);
  box-shadow: 0 0 14px rgba(62, 207, 142, 0.3);
}
.btn.danger {
  background: linear-gradient(135deg, #e03a5a, #b02040);
  color: #fff;
  border-color: rgba(255, 92, 122, 0.5);
  box-shadow: 0 0 14px rgba(255, 92, 122, 0.28);
}
.btn.ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
}
.btn.ghost:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}
.btn.gold-outline {
  background: transparent;
  color: var(--cream);
  border: 1px solid var(--gold-dim);
  box-shadow: 0 0 12px rgba(232, 213, 163, 0.15);
}
.btn.gold-outline:hover {
  border-color: var(--cream);
  box-shadow: 0 0 18px rgba(232, 213, 163, 0.3);
}
.btn:disabled { opacity: 0.4; filter: none; box-shadow: none; }
.btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

.topbar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  box-shadow: 0 8px 24px -16px rgba(160, 32, 240, 0.4);
}
.topbar-brand {
  font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--neon); font-weight: 700; margin-bottom: 2px;
  text-shadow: 0 0 10px rgba(196, 77, 255, 0.5);
}
.who { font-size: 1.15rem; font-weight: 700; color: var(--text); }
.role-badge {
  display: inline-block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--neon);
  background: rgba(160, 32, 240, 0.18);
  padding: 2px 8px; border-radius: 999px; margin-top: 2px;
  border: 1px solid var(--border);
}

.tabs {
  display: flex; gap: 8px; overflow-x: auto; padding: 10px 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto;
  height: 48px;
  min-height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: background 0.12s, color 0.12s, box-shadow 0.12s, border-color 0.12s;
  touch-action: manipulation;
  scroll-snap-align: start;
}
.tab.active {
  background: linear-gradient(135deg, #a020f0, #7b2ff7);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 12px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(196, 77, 255, 0.08);
}
.form input, .form select { margin-bottom: 4px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.form-inline { display: flex; gap: 8px; }
.form-inline input { flex: 1; }

h2 {
  font-size: 0.95rem;
  color: var(--cream);
  font-weight: 700;
  margin: 16px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-shadow: 0 0 12px rgba(160, 32, 240, 0.35);
}
.muted { color: var(--muted); font-size: 0.9rem; }
.error { color: var(--danger); margin-top: 10px; text-shadow: 0 0 8px rgba(255, 92, 122, 0.35); }
.banner.warn {
  background: rgba(80, 50, 10, 0.65);
  color: var(--warn);
  padding: 10px 12px;
  border-radius: 10px;
  margin-top: 8px;
  font-weight: 600;
  border: 1px solid rgba(255, 184, 77, 0.35);
}

.clock-state { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; text-align: center; }
.list { list-style: none; padding: 0; margin: 0; }
.list li {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.list.compact li { padding: 10px 12px; }
.list .title { font-weight: 700; color: var(--text); }
.list .meta { color: var(--muted); font-size: 0.82rem; margin-top: 4px; }
.task-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.task-row.done { opacity: 0.65; }
.check-btn { flex: 0 0 auto; min-width: 96px; height: 48px; min-height: 48px; }

.totals {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; text-align: center;
}
.totals strong {
  display: block; font-size: 1.15rem; margin-top: 4px;
  color: var(--neon);
  text-shadow: 0 0 12px rgba(196, 77, 255, 0.55);
}

.pay-step { margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--border); }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  background: linear-gradient(135deg, #a020f0, #7b2ff7);
  color: #fff;
  padding: 12px 18px; border-radius: 12px;
  font-weight: 700; z-index: 50; max-width: 90%;
  box-shadow: var(--glow);
  border: 1px solid rgba(209, 122, 255, 0.5);
}

.status-owed { color: var(--warn); font-weight: 700; }
.badge {
  display: inline-block; font-size: 0.75rem; padding: 2px 8px; border-radius: 8px; font-weight: 700;
}
.badge.cash { background: #0e2a1c; color: #4ade80; border: 1px solid rgba(74, 222, 128, 0.3); }
.badge.card { background: #0e1a2e; color: #7eb6ff; border: 1px solid rgba(126, 182, 255, 0.3); }
.badge.ok { background: #0e2a1c; color: var(--ok); border: 1px solid rgba(62, 207, 142, 0.3); }
.badge.pending { background: #2a220c; color: var(--warn); border: 1px solid rgba(255, 184, 77, 0.3); }
.badge.paid {
  background: rgba(160, 32, 240, 0.2);
  color: var(--neon);
  border: 1px solid var(--border);
}
.badge.denied { background: #2a1018; color: var(--danger); border: 1px solid rgba(255, 92, 122, 0.3); }
.geo-hint { text-align: center; margin: 0 0 10px; font-size: 0.8rem; line-height: 1.35; }
#clock-error { text-align: center; margin-bottom: 8px; font-weight: 600; }

.pay-choice.active-pay {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--glow-sm);
}
#report-summary-totals strong { font-size: 1.05rem; }

.owed-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
}
.owner-spend-block { margin-bottom: 18px; }
.owner-spend-block > .owner-head {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  margin: 14px 0 8px; flex-wrap: wrap;
}
.owner-spend-block > .owner-head .name {
  font-weight: 700; color: var(--neon); letter-spacing: 0.02em;
  text-shadow: 0 0 10px rgba(196, 77, 255, 0.4);
}
.tier-list { list-style: none; padding: 0; margin: 10px 0 0; }
.tier-list li {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 0; border-bottom: 1px solid var(--border); font-size: 0.9rem;
}
.tier-list li:last-child { border-bottom: none; }
.tier-list .unlocked { color: var(--ok); font-weight: 700; }
.tier-list .locked { color: var(--muted); }

.hint-box {
  background: rgba(160, 32, 240, 0.12);
  border: 1px solid var(--border-strong);
  color: #e8dcf5;
  border-radius: 12px;
  padding: 12px;
  margin: 14px 0;
  font-size: 0.9rem;
  line-height: 1.4;
  box-shadow: inset 0 0 24px rgba(160, 32, 240, 0.08), var(--glow-sm);
}

.staff-logo-strip { margin: 0 0 10px; }
.staff-logo-strip .logo-hero {
  max-height: 88px;
  margin-bottom: 0;
}

/* Auth tabs on rewards (shared sizing) */
.auth-tabs { display: flex; gap: 8px; margin-bottom: 12px; }
.auth-tabs button {
  flex: 1;
  height: 48px;
  min-height: 48px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.auth-tabs button.active {
  background: linear-gradient(135deg, #a020f0, #7b2ff7);
  color: #fff;
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
}

/* Narrow phones (~390px and below): even less waste, bigger keys */
@media (max-width: 430px) {
  :root {
    --app-pad: 10px;
    --pad-key: 76px;
    --touch: 56px;
  }
  #app { max-width: 100%; }
  .logo-hero { max-height: 150px; }
  .row2 { grid-template-columns: 1fr; }
  .pin-dots { gap: 16px; }
  .pin-dots .dot { width: 20px; height: 20px; }
}

/* Desktop: slightly wider, still centered */
@media (min-width: 600px) {
  #app { max-width: 480px; }
  :root { --app-pad: 18px; --pad-key: 68px; }
  .logo-hero { max-height: 220px; }
  .login-actions {
    position: static;
    background: none;
    padding: 0;
  }
}

/* Prefer pointer fine = desktop mouse: keep pad usable but not oversized */
@media (hover: hover) and (pointer: fine) {
  .pin-pad button:hover {
    background: var(--card2);
    border-color: var(--accent);
    box-shadow: var(--glow-sm);
  }
}


/* Register reminder modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(6, 2, 14, 0.78);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  padding-bottom: calc(16px + env(safe-area-inset-bottom));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay[hidden] { display: none !important; }
.modal-card {
  width: 100%;
  max-width: 420px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: var(--glow), 0 -8px 40px rgba(0,0,0,0.45);
  margin-bottom: 8px;
}
@media (min-width: 600px) {
  .modal-overlay { align-items: center; }
  .modal-card { margin-bottom: 0; }
}
.register-card h2 { margin-bottom: 4px; }
#reg-drop-list .title { font-size: 1rem; }

.register-card textarea {
  width: 100%;
  min-height: 72px;
  border-radius: 12px;
  padding: 12px 14px;
  background: var(--card2, var(--card));
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 1rem;
  line-height: 1.35;
  resize: vertical;
  touch-action: manipulation;
}
.register-card textarea:focus {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: var(--glow-sm);
}


/* Low-stock inventory highlight */
.inv-product-row.low-stock {
  border-color: rgba(255, 184, 77, 0.65) !important;
  box-shadow: 0 0 14px rgba(255, 184, 77, 0.22);
  background: rgba(80, 40, 10, 0.35);
}
.badge.warn {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  background: rgba(255, 184, 77, 0.2);
  color: var(--warn);
  border: 1px solid rgba(255, 184, 77, 0.5);
  vertical-align: middle;
}
.money-check h3 {
  letter-spacing: 0.02em;
}
.policy-blurb {
  margin-top: 14px;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(8, 4, 14, 0.55);
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
  text-align: left;
}
.policy-blurb strong {
  color: var(--cream);
  font-weight: 700;
}

/* Cash sale item picker */
.sale-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}
.sale-item-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  min-height: 52px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(18, 8, 28, 0.9);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
  font: inherit;
}
.sale-item-btn .sale-item-name {
  font-weight: 700;
  font-size: 0.92rem;
  line-height: 1.2;
}
.sale-item-btn .sale-item-meta {
  color: var(--muted);
  font-size: 0.78rem;
}
.sale-item-btn.selected {
  border-color: var(--accent);
  box-shadow: var(--glow-sm);
  background: rgba(80, 20, 110, 0.45);
}
.sale-item-btn.low-stock {
  border-color: rgba(255, 184, 77, 0.65);
}
.sale-item-btn.sale-item-custom {
  align-items: center;
  color: var(--neon);
  font-weight: 700;
}


/* ——— UI polish (layout/visual only) ——— */
:root {
  --radius: 18px;
}
html { scroll-behavior: smooth; }
body {
  line-height: 1.45;
  font-feature-settings: "kern" 1;
}
h2 { margin: 14px 0 10px; font-size: 1.45rem; letter-spacing: 0.01em; }
.brand { letter-spacing: 0.02em; }
.muted { line-height: 1.45; }

.logo-hero {
  border-radius: 18px;
  margin-bottom: 14px;
}
.logo-hero.compact { border-radius: 14px; }

.card {
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow:
    0 12px 36px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(232, 213, 163, 0.07);
}
.list li { border-radius: 14px; padding: 13px 14px; }

.btn {
  border-radius: 14px;
  letter-spacing: 0.02em;
}
.btn.big { border-radius: 16px; }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn:focus-visible,
.tab:focus-visible,
.sale-item-btn:focus-visible,
.pin-pad button:focus-visible,
.auth-tabs button:focus-visible {
  outline: 2px solid var(--neon);
  outline-offset: 3px;
}
a.btn,
a.btn.big {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  line-height: 1.25 !important;
  height: auto;
  min-height: var(--touch);
  padding: 12px 16px;
}

.topbar {
  align-items: flex-end;
  padding: 2px 0 14px;
  gap: 12px;
}
.who { letter-spacing: 0.01em; line-height: 1.2; }

.tabs {
  position: sticky;
  top: 0;
  z-index: 8;
  gap: 8px;
  margin: 0 calc(var(--app-pad) * -1) 6px;
  padding: 10px var(--app-pad) 14px;
  background: linear-gradient(180deg, rgba(5, 3, 10, 0.97) 0%, rgba(5, 3, 10, 0.94) 72%, rgba(5, 3, 10, 0) 100%);
}
.tab {
  height: 42px;
  min-height: 42px;
  padding: 0 15px;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
}

.pin-dots { margin: 6px 0 12px; }
.pin-pad { gap: 10px; margin-bottom: 8px; }
.pin-pad button {
  border-radius: 16px;
  font-variant-numeric: tabular-nums;
}
.login-card { margin-top: 1vh; }
.login-card .lbl { text-align: center; }
#pin-hint { text-align: center; }

.sale-item-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}
.sale-item-btn {
  min-height: 74px;
  padding: 12px 12px 11px;
  border-radius: 16px;
  transition: border-color 0.12s, box-shadow 0.12s, transform 0.08s, background 0.12s;
}
.sale-item-btn:active { transform: scale(0.98); }
.sale-item-btn .sale-item-name {
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}
.sale-item-btn .sale-item-meta {
  margin-top: 4px;
  color: var(--gold);
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
}
.sale-item-btn.selected {
  border-color: var(--neon);
  box-shadow: 0 0 0 1px rgba(209, 122, 255, 0.7), var(--glow);
  background: linear-gradient(160deg, rgba(120, 30, 170, 0.55), rgba(18, 8, 28, 0.92));
}
.sale-item-btn.sale-item-custom {
  grid-column: 1 / -1;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.82rem;
}
@media (hover: hover) and (pointer: fine) {
  .sale-item-btn:hover {
    border-color: var(--accent);
    box-shadow: var(--glow-sm);
  }
}

.totals strong { font-variant-numeric: tabular-nums; letter-spacing: 0.01em; }
.home-hero h1 { font-weight: 400; }
.home-wrap .card h2 { margin-top: 0; }
.cta-stack { gap: 12px; }
.link-row a {
  border-radius: 14px;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.staff-foot { margin-top: 18px; }
.customer-foot { margin-top: 18px; }

@media (min-width: 720px) {
  #app { max-width: 520px; }
  .home-wrap { max-width: 920px; }
  :root { --app-pad: 20px; }
  .logo-hero { max-height: 200px; }
  .sale-item-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .sale-item-btn.sale-item-custom { grid-column: 1 / -1; }
}
@media (min-width: 960px) {
  .home-wrap .view {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    column-gap: 18px;
    row-gap: 0;
    align-items: start;
  }
  .home-hero,
  .customer-foot,
  .staff-foot,
  .scan-qr { grid-column: 1 / -1; }
  .home-wrap .card { margin-bottom: 0; }
}

/* Old English headings — body, buttons, and forms stay sans */
h1, h2, h3,
.brand,
.topbar-brand,
.brand-tag,
.home-tag,
.qr-card .label {
  font-family: "UnifrakturMaguntia", "Old English Text MT", Palatino, "Palatino Linotype", serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0.015em;
  text-transform: none;
  line-height: 1.15;
}
h1 { font-size: 2.05rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.22rem; }
.brand-tag,
.home-tag {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: none;
  padding: 6px 14px;
}
.topbar-brand {
  font-size: 1.28rem;
  letter-spacing: 0.02em;
  text-transform: none;
  font-weight: 400;
  line-height: 1.1;
}
button, input, select, textarea,
.btn, .tab, .lbl, .muted, .who, .role-badge, .sale-item-btn {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
.ico {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
}
.ico img, .btn-ico, .link-row img, .inline-ico {
  width: 18px;
  height: 18px;
  display: block;
  flex: 0 0 18px;
  object-fit: contain;
}
a.btn, .link-row a {
  gap: 8px;
}
.customer-foot .inline-ico {
  display: inline-block;
  width: 14px;
  height: 14px;
  vertical-align: -2px;
  margin-right: 4px;
}

/* Compact cash-sale picker: one Items control, then a short scroll list */
.sale-picker { margin-bottom: 10px; }
.sale-items-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  padding: 8px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(18, 8, 28, 0.9);
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  touch-action: manipulation;
}
.sale-items-toggle-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sale-items-chev {
  flex: 0 0 auto;
  color: var(--gold);
  font-size: 0.85rem;
}
.sale-item-scroll {
  max-height: 40vh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 6px;
  padding-right: 2px;
}
.sale-sec {
  position: sticky;
  top: 0;
  z-index: 1;
  margin: 0;
  padding: 4px 8px 3px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(10, 5, 16, 0.96);
}
.sale-picker .sale-item-btn {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  min-height: 36px;
  width: 100%;
  padding: 6px 10px;
  border-radius: 8px;
}
.sale-picker .sale-item-btn .sale-item-name {
  font-size: 0.88rem;
  font-weight: 650;
}
.sale-picker .sale-item-btn .sale-item-meta {
  margin-top: 0;
  flex: 0 0 auto;
  margin-left: 10px;
  white-space: nowrap;
  font-size: 0.82rem;
}
.sale-picker .sale-item-btn.sale-item-custom {
  grid-column: auto;
  min-height: 34px;
  justify-content: center;
  border-style: dashed;
  letter-spacing: 0.03em;
  text-transform: none;
  font-size: 0.82rem;
  color: var(--neon);
}
.sale-custom-note {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.82rem;
}
button.sale-items-toggle,
button.sale-item-btn {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}

.sale-discount {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
}
.sale-discount .disc-btn {
  flex: 1 1 0;
  min-width: 52px;
  min-height: 36px;
  padding: 6px 8px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(18, 8, 28, 0.9);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.sale-discount .disc-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(40, 22, 8, 0.85);
}
.sale-discount-preview {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: var(--gold);
}

/* ===== Customer pages (body.customer) — 2026-10-05 UI pass. Staff app unaffected. ===== */
body.customer #app { max-width: 560px; }
@media (min-width: 960px) { body.customer #app.home-wrap { max-width: 920px; } }
body.customer .view { padding-top: 10px; }
body.customer .card { margin-bottom: 12px; }

.site-nav {
  position: sticky; top: 0; z-index: 20;
  padding: 8px max(var(--app-pad), env(safe-area-inset-right)) 8px max(var(--app-pad), env(safe-area-inset-left));
  padding-top: max(8px, env(safe-area-inset-top));
  background: rgba(5, 3, 10, 0.9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.site-nav .nav-brand {
  flex: 0 0 auto; display: flex; align-items: center; gap: 6px;
  text-decoration: none; color: var(--cream); border-radius: 8px;
}
.site-nav .nav-brand img {
  height: 30px; width: auto; border-radius: 6px;
  border: 1px solid var(--border-strong); box-shadow: var(--glow-sm); display: block;
}
.site-nav .nav-brand span {
  display: none;
  font-family: "UnifrakturMaguntia", "Old English Text MT", Palatino, serif;
  font-size: 1.2rem; text-shadow: 0 0 10px rgba(196, 77, 255, 0.55);
}
.site-nav .nav-links { flex: 1 1 auto; display: flex; gap: 4px; justify-content: flex-end; min-width: 0; }
.site-nav .nav-links a {
  flex: 1 1 0; max-width: 104px;
  display: flex; align-items: center; justify-content: center;
  min-height: 36px; padding: 0 4px; border-radius: 10px;
  color: var(--muted); text-decoration: none; white-space: nowrap;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.01em;
  border: 1px solid transparent;
  transition: color 0.12s, border-color 0.12s, background 0.12s;
}
.site-nav .nav-links a:hover { color: var(--text); border-color: var(--border); }
.site-nav .nav-links a:active { background: rgba(160, 32, 240, 0.18); }
.site-nav .nav-links a[aria-current="page"] {
  color: #fff; background: rgba(160, 32, 240, 0.28);
  border-color: var(--border-strong); box-shadow: var(--glow-sm);
}
@media (min-width: 480px) {
  .site-nav .nav-brand span { display: inline; }
  .site-nav .nav-links a { font-size: 0.84rem; padding: 0 8px; }
}
.site-nav-inner { max-width: 560px; margin: 0 auto; display: flex; align-items: center; gap: 8px; }
@media (min-width: 960px) { body.home-page .site-nav-inner { max-width: 880px; } }

/* Open-now badge */
.open-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px; border-radius: 999px;
  font-size: 0.86rem; font-weight: 700; letter-spacing: 0.01em;
  border: 1px solid var(--border); background: rgba(18, 8, 28, 0.85); color: var(--muted);
}
.open-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.open-badge.is-open { color: var(--ok); border-color: rgba(62, 207, 142, 0.45); background: rgba(14, 42, 28, 0.7); }
.open-badge.is-open .dot { box-shadow: 0 0 8px rgba(62, 207, 142, 0.9); }
.open-badge.is-soon { color: var(--warn); border-color: rgba(255, 184, 77, 0.45); background: rgba(40, 26, 8, 0.7); }
.open-badge.is-closed { color: var(--muted); }

/* Today's hours row */
.hours-grid span.today { color: var(--text) !important; font-weight: 800; }
.hours-grid span.today em {
  font-style: normal; font-size: 0.7rem; font-weight: 700; color: var(--neon);
  margin-left: 4px; text-transform: uppercase; letter-spacing: 0.06em;
}

/* Call / Directions action row */
.action-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 12px 0 4px; }
.action-row a.btn { margin-top: 0; gap: 8px; min-height: 52px; height: 52px; font-size: 1rem; }
.action-row a.btn img { width: 18px; height: 18px; }
body.customer .btn.ghost { color: var(--text); }
body.customer .btn img.btn-ico { margin-right: 8px; }

/* Consistent CTAs */
body.customer .cta-stack a.btn.big { min-height: 54px; height: 54px; margin-top: 0; }
body.customer .link-row a { gap: 8px; transition: border-color 0.12s, background 0.12s, transform 0.08s; }
body.customer .link-row a:hover { border-color: var(--accent); background: rgba(40, 16, 60, 0.95); }
body.customer .link-row a:active { transform: translateY(1px); background: rgba(160, 32, 240, 0.22); }

/* Shared footer */
.site-foot { margin: 22px 0 8px; text-align: center; color: var(--muted); font-size: 0.82rem; line-height: 1.7; }
.site-foot a { color: var(--neon); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 4px; }
.site-foot .legal { font-size: 0.74rem; opacity: 0.8; }
.site-foot .staff-link { color: var(--muted); font-weight: 500; text-decoration: underline; font-size: 0.74rem; }

/* Deals */
.week-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 12px; }
.week-line .wk { font-size: 0.82rem; color: var(--muted); }
.deal-list li.skeleton { height: 58px; border-color: rgba(160, 32, 240, 0.18); box-shadow: none;
  background: linear-gradient(90deg, rgba(28,12,42,0.6) 0%, rgba(60,24,90,0.55) 50%, rgba(28,12,42,0.6) 100%);
  background-size: 200% 100%; animation: exz-shimmer 1.3s ease-in-out infinite; }
@keyframes exz-shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }
.deal-empty { text-align: center; padding: 18px 8px 8px; }
.deal-empty p { margin: 0 0 12px; color: var(--muted); font-size: 0.92rem; }
.deal-list .title { font-weight: 700; }

/* Accessibility */
body.customer a:focus-visible,
body.customer button:focus-visible,
body.customer input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--neon); outline-offset: 3px; border-radius: 8px;
}
@media (prefers-reduced-motion: reduce) {
  .deal-list li.skeleton { animation: none; }
  body.customer * { transition: none !important; }
}
body.customer .login-card .form .lbl { text-align: left; }
.site-foot a { margin: 0 3px; }
body.customer [hidden] { display: none !important; }

/* Customer-facing QR codes (public pages — no staff PIN QR) */
.scan-qr { margin-top: 4px; }
.scan-qr > h2 { margin: 0 0 6px; font-size: 1.65rem; font-weight: 400; }
.scan-qr > .scan-lead {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}
.scan-qr-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.scan-qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 12px 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--card2);
  box-shadow: var(--glow-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
a.scan-qr-item:hover {
  border-color: var(--border-strong);
  box-shadow: var(--glow);
}
.scan-qr-frame {
  background: #fff;
  border-radius: 12px;
  padding: 10px;
  margin-bottom: 10px;
  box-shadow: 0 0 0 1px rgba(160, 32, 240, 0.25);
}
.scan-qr-frame img {
  display: block;
  width: 140px;
  height: 140px;
  object-fit: contain;
  background: #fff;
}
.scan-qr-item .scan-label {
  font-family: "UnifrakturMaguntia", "Old English Text MT", Palatino, "Palatino Linotype", serif;
  font-weight: 400;
  font-size: 1.35rem;
  color: var(--cream);
  letter-spacing: 0.015em;
  line-height: 1.15;
  text-shadow: 0 0 12px rgba(196, 77, 255, 0.45);
}
.scan-qr-item .scan-cap {
  margin-top: 4px;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}
.scan-qr-item .scan-link {
  margin-top: 6px;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--neon);
}
.scan-qr.compact .scan-qr-frame img { width: 112px; height: 112px; }
.scan-qr.compact > h2 { font-size: 1.4rem; }
@media (min-width: 480px) {
  .scan-qr-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .scan-qr-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scan-qr-grid.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 720px) {
  .scan-qr-grid.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .scan-qr-grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .scan-qr-frame img { width: 150px; height: 150px; }
}
.scan-qr-grid.cols-4 .scan-label { font-size: 1.15rem; }

/* --- Rewards / customer typeahead --- */
.typeahead { position: relative; }
.typeahead-drop {
  position: absolute;
  z-index: 40;
  left: 0; right: 0;
  top: calc(100% + 4px);
  max-height: 240px;
  overflow: auto;
  background: #1a0f28;
  border: 1px solid rgba(196, 77, 255, 0.45);
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.45), 0 0 18px rgba(196,77,255,0.18);
  padding: 4px;
}
.typeahead-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--cream);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
}
.typeahead-item:hover,
.typeahead-item:focus {
  outline: none;
  background: rgba(196, 77, 255, 0.18);
}
.typeahead-item .muted { font-size: 0.78rem; }
.cust-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(196, 77, 255, 0.14);
  border: 1px solid rgba(196, 77, 255, 0.35);
}
.cust-chip-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cust-chip-main strong { font-size: 0.95rem; }
.sale-customer-wrap { margin: 10px 0 4px; }
.rw-cust-list .rw-cust-row {
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease;
}
.rw-cust-list .rw-cust-row:hover,
.rw-cust-list .rw-cust-row:focus {
  outline: none;
  background: rgba(196, 77, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(196, 77, 255, 0.35);
}
.rw-sort-row { display: flex; flex-wrap: wrap; gap: 6px; }
.rw-profile .totals strong { font-size: 1.15rem; }
.rw-tier-btn { width: 100%; margin-top: 6px; }


/* Floating music toggle (customer pages) */
.music-toggle {
  position: fixed;
  z-index: 40;
  right: max(12px, env(safe-area-inset-right));
  bottom: max(14px, env(safe-area-inset-bottom));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 0 14px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(18, 8, 28, 0.92);
  color: var(--cream);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 24px rgba(0,0,0,0.45), var(--glow-sm);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, transform 0.08s;
}
.music-toggle .music-ico {
  display: inline-flex; width: 22px; height: 22px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(160,32,240,0.28); border: 1px solid var(--border);
  font-size: 0.85rem; line-height: 1;
}
.music-toggle.is-on {
  color: #fff;
  border-color: rgba(209,122,255,0.65);
  background: rgba(80, 24, 120, 0.92);
}
.music-toggle.is-on .music-ico {
  animation: exz-pulse 1.6s ease-in-out infinite;
  box-shadow: 0 0 10px rgba(196,77,255,0.7);
}
.music-toggle.needs-tap {
  border-color: rgba(255,184,77,0.7);
  box-shadow: 0 0 0 2px rgba(255,184,77,0.25), 0 8px 24px rgba(0,0,0,0.45);
}
.music-toggle:active { transform: translateY(1px); }
@keyframes exz-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.08); opacity: 0.85; }
}
@media (prefers-reduced-motion: reduce) {
  .music-toggle.is-on .music-ico { animation: none; }
}

/* ===== Customer page animations (2026-10-05). Scoped to body.customer; staff app untouched. ===== */
body.customer { isolation: isolate; }
/* Drifting purple smoke (two soft layers, transform-only) */
body.customer::before,
body.customer::after {
  content: ""; position: fixed; z-index: -2; pointer-events: none;
  left: -15vw; top: -15vh; width: 130vw; height: 130vh;
  will-change: transform; opacity: 0.55;
}
body.customer::before {
  background:
    radial-gradient(closest-side at 30% 35%, rgba(160, 32, 240, 0.30), transparent 70%),
    radial-gradient(closest-side at 70% 60%, rgba(123, 47, 247, 0.20), transparent 70%);
  animation: exz-smoke-a 38s ease-in-out infinite alternate;
}
body.customer::after {
  background:
    radial-gradient(closest-side at 60% 30%, rgba(209, 122, 255, 0.16), transparent 70%),
    radial-gradient(closest-side at 35% 75%, rgba(90, 31, 199, 0.22), transparent 70%);
  animation: exz-smoke-b 52s ease-in-out infinite alternate;
  opacity: 0.45;
}
@keyframes exz-smoke-a {
  0%   { transform: translate3d(-6%, -4%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(5%, 3%, 0) rotate(14deg) scale(1.08); }
  100% { transform: translate3d(-2%, 6%, 0) rotate(-8deg) scale(0.96); }
}
@keyframes exz-smoke-b {
  0%   { transform: translate3d(6%, 4%, 0) rotate(0deg) scale(1.05); }
  50%  { transform: translate3d(-5%, -2%, 0) rotate(-16deg) scale(0.95); }
  100% { transform: translate3d(3%, -6%, 0) rotate(10deg) scale(1.1); }
}
/* Floating embers (spans injected by site.js) */
.exz-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; contain: strict; }
.exz-fx i {
  position: absolute; bottom: -12px; display: block; border-radius: 50%;
  width: var(--s, 4px); height: var(--s, 4px); left: var(--x, 50%);
  background: radial-gradient(circle, #f3d1ff 0%, #d17aff 45%, rgba(160, 32, 240, 0) 72%);
  opacity: 0; will-change: transform, opacity;
  animation: exz-ember var(--d, 14s) linear var(--delay, 0s) infinite;
}
@keyframes exz-ember {
  0%   { transform: translate3d(0, 0, 0); opacity: 0; }
  12%  { opacity: var(--o, 0.7); }
  50%  { transform: translate3d(var(--dx, 20px), -55vh, 0); }
  85%  { opacity: calc(var(--o, 0.7) * 0.6); }
  100% { transform: translate3d(calc(var(--dx, 20px) * -0.5), -110vh, 0); opacity: 0; }
}

/* Neon logo: glow pulse + rare flicker + gentle float on big logos */
body.customer .logo-hero {
  animation: exz-logo-glow 4.5s ease-in-out infinite, exz-flicker 9s linear 2s infinite;
}
body.customer .logo-hero:not(.compact) {
  animation: exz-logo-glow 4.5s ease-in-out infinite, exz-flicker 9s linear 2s infinite, exz-float 6s ease-in-out infinite;
}
@keyframes exz-logo-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(196,77,255,0.15), 0 0 22px rgba(160,32,240,0.42), 0 0 48px rgba(123,47,247,0.18); }
  50%      { box-shadow: 0 0 0 1px rgba(209,122,255,0.35), 0 0 34px rgba(196,77,255,0.65), 0 0 72px rgba(123,47,247,0.35); }
}
@keyframes exz-flicker {
  0%, 89%, 91.5%, 93%, 100% { opacity: 1; }
  90%   { opacity: 0.72; }
  92.2% { opacity: 0.82; }
}
@keyframes exz-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-5px); }
}
.site-nav .nav-brand img { animation: exz-flicker 11s linear 4s infinite; }

/* Neon headline glow */
body.customer h1,
body.customer .brand-tag,
.site-nav .nav-brand span {
  text-shadow: 0 0 8px rgba(209,122,255,0.55), 0 0 22px rgba(160,32,240,0.45);
  animation: exz-text-flicker 7s linear 1s infinite;
}
@keyframes exz-text-flicker {
  0%, 94%, 95.5%, 97%, 100% { opacity: 1; }
  94.8% { opacity: 0.6; }
  96.2% { opacity: 0.85; }
}

/* Shimmer sweep on primary CTAs */
body.customer .btn.primary,
body.customer .btn.promo-cta { position: relative; overflow: hidden; isolation: isolate; }
body.customer .btn.primary::after,
body.customer .btn.promo-cta::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 45%;
  z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 0%, rgba(255,255,255,0.0) 20%, rgba(255,255,255,0.28) 50%, rgba(255,255,255,0) 80%, transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  animation: exz-shine 4.8s ease-in-out infinite;
}
body.customer .btn.promo-cta::after { animation-delay: 1.2s; }
@keyframes exz-shine {
  0%, 62% { transform: translateX(-120%) skewX(-18deg); }
  100%    { transform: translateX(330%) skewX(-18deg); }
}

/* Scroll reveal (classes added by site.js; content stays visible without JS) */
body.customer .exz-reveal:not(.is-in) { opacity: 0; }
body.customer .exz-reveal.is-in { animation: exz-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) var(--rd, 0s) backwards; }
@keyframes exz-rise {
  from { opacity: 0; transform: translate3d(0, 22px, 0) scale(0.985); }
  to   { opacity: 1; transform: none; }
}

/* Hover lift (pointer devices only) */
body.customer .card,
body.customer .scan-qr-item { transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease; }
@media (hover: hover) and (pointer: fine) {
  body.customer .card:hover { transform: translateY(-3px); border-color: var(--border-strong); }
  body.customer a.scan-qr-item:hover { transform: translateY(-4px); }
  body.customer .btn.primary:hover, body.customer .btn.promo-cta:hover { transform: translateY(-1px); }
}

/* Neon ticker under the nav (injected by site.js, decorative) */
.exz-ticker {
  position: relative; overflow: hidden; white-space: nowrap;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(160,32,240,0.16), rgba(10,6,18,0.7) 50%, rgba(160,32,240,0.16));
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--cream); height: 28px; line-height: 28px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  pointer-events: none;
}
.exz-ticker-track { display: inline-flex; will-change: transform; animation: exz-ticker 32s linear infinite; }
.exz-ticker-track span { padding: 0 18px; }
.exz-ticker-track b { color: var(--neon); text-shadow: 0 0 8px rgba(209,122,255,0.7); font-weight: 800; }
@keyframes exz-ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

@media (prefers-reduced-motion: reduce) {
  body.customer::before, body.customer::after,
  body.customer .logo-hero, body.customer .logo-hero:not(.compact),
  .site-nav .nav-brand img,
  body.customer h1, body.customer .brand-tag, .site-nav .nav-brand span,
  body.customer .btn.primary::after, body.customer .btn.promo-cta::after,
  body.customer .exz-reveal.is-in { animation: none !important; }
  body.customer .exz-reveal { opacity: 1 !important; }
  .exz-fx, .exz-ticker { display: none !important; }
}

/* Background battle canvas (giant joint warrior vs the cigarette army, injected by site.js, decorative) */
/* Behind all content (body.customer is isolated); a soft scrim dims the centre column so text stays readable */
.exz-battle { position: fixed; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; opacity: 0.95; }
.exz-battle-scrim {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(4,2,10,0) 0%, rgba(4,2,10,0.34) 28%, rgba(4,2,10,0.42) 50%, rgba(4,2,10,0.34) 72%, rgba(4,2,10,0) 100%),
    linear-gradient(180deg, rgba(4,2,10,0.35) 0%, rgba(4,2,10,0) 40%);
}
@media (max-width: 599px) {
  .exz-battle { opacity: 1; }
  .exz-battle-scrim { background: linear-gradient(180deg, rgba(4,2,10,0.38) 0%, rgba(4,2,10,0.16) 45%, rgba(4,2,10,0.06) 100%); }
}
/* Text that sits directly on the battle (outside cards) gets a dark halo */
body.customer .home-hero h1, body.customer .home-hero .muted, body.customer .view > h1, body.customer .view > h2,
body.customer .view > p, body.customer .promo-hero h1, body.customer .promo-hero p, body.customer .site-foot,
body.customer .customer-foot, body.customer .staff-foot { text-shadow: 0 1px 2px rgba(0,0,0,0.95), 0 0 14px rgba(0,0,0,0.85); }
/* Cards: dark translucent tint (the 'gradient behind text panels') so the battle reads through without hurting text */
body.customer .card { background: linear-gradient(180deg, rgba(10, 4, 20, 0.74), rgba(14, 6, 26, 0.68)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
body.customer .card { text-shadow: 0 1px 2px rgba(0,0,0,0.85); }
@media (max-width: 599px) { body.customer .card { background: linear-gradient(180deg, rgba(10, 4, 20, 0.66), rgba(14, 6, 26, 0.6)); } }
body.customer .btn.ghost { background-color: rgba(12, 5, 22, 0.78); }
/* Reduced motion: site.js paints one static frame instead of animating */

/* ===== Owner Hours dashboard (staff app) ===== */
.hv-period { padding: 12px; }
.hv-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: rgba(8,4,14,0.7); border: 1px solid var(--border); border-radius: 999px; padding: 4px; }
.hv-seg-btn { min-height: 44px; border: 0; border-radius: 999px; background: transparent; color: var(--muted); font-weight: 700; font-size: 0.9rem; cursor: pointer; touch-action: manipulation; }
.hv-seg-btn.active { background: linear-gradient(135deg, #a020f0, #7b2ff7); color: #fff; box-shadow: var(--glow-sm); }
.hv-custom { margin-top: 8px; }
.hv-custom .lbl input { margin-top: 4px; }
.hv-custom .btn { width: 100%; margin-top: 6px; min-height: 48px; }
.hv-range { margin-top: 10px; text-align: center; color: var(--cream); font-weight: 700; font-size: 0.95rem; }
.hv-check { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 8px; color: var(--muted); font-size: 0.85rem; }
.hv-check input { width: 20px; height: 20px; min-height: 20px; padding: 0; accent-color: #a020f0; }

.hv-labor { text-align: center; border-color: var(--border-strong); box-shadow: var(--glow), inset 0 1px 0 rgba(196,77,255,0.12); }
.hv-labor-main { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.hv-labor-lbl { color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.1em; font-weight: 700; }
.hv-labor-main strong { font-size: 2rem; color: var(--neon); text-shadow: 0 0 16px rgba(196,77,255,0.6); font-variant-numeric: tabular-nums; }
.hv-labor-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 6px; color: var(--muted); font-size: 0.85rem; }
.hv-labor-sub strong { color: var(--text); }

.hv-alert { margin: 0 0 12px; }
.hv-alert-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 8px; font-weight: 500; font-size: 0.85rem; color: var(--text); }
.hv-alert-row .btn { flex: 0 0 auto; }

.hv-cards { display: grid; gap: 10px; }
@media (min-width: 720px) { .hv-cards { grid-template-columns: 1fr 1fr; align-items: start; } }
.hv-emp { background: var(--card); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
.hv-emp[open] { border-color: var(--border-strong); box-shadow: var(--glow-sm); }
.hv-emp.idle { opacity: 0.6; }
.hv-emp > summary { list-style: none; cursor: pointer; padding: 12px 14px; touch-action: manipulation; }
.hv-emp > summary::-webkit-details-marker { display: none; }
.hv-emp-head { display: flex; align-items: center; justify-content: space-between; }
.hv-emp-name { font-size: 1.1rem; font-weight: 800; color: var(--cream); }
.hv-chev { color: var(--neon); transition: transform 0.15s; }
.hv-emp[open] .hv-chev { transform: rotate(180deg); }
.hv-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 8px; text-align: center; }
.hv-stats > div { background: rgba(8,4,14,0.6); border: 1px solid var(--border); border-radius: 12px; padding: 8px 4px; }
.hv-stats strong { display: block; font-size: 1.15rem; color: var(--neon); text-shadow: 0 0 10px rgba(196,77,255,0.5); font-variant-numeric: tabular-nums; }
.hv-stats span { font-size: 0.72rem; color: var(--muted); }
.hv-emp-sub { margin-top: 8px; font-size: 0.78rem; color: var(--muted); }
.hv-badges { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.hv-b { display: inline-block; font-size: 0.72rem; font-weight: 800; padding: 3px 8px; border-radius: 999px; border: 1px solid var(--border); }
.hv-b-warn { background: rgba(255,184,77,0.16); color: var(--warn); border-color: rgba(255,184,77,0.5); }
.hv-b-live { background: rgba(62,207,142,0.14); color: var(--ok); border-color: rgba(62,207,142,0.45); }
.hv-b-edit { background: rgba(160,32,240,0.2); color: var(--neon); border-color: var(--border-strong); }
.hv-b-dim { background: rgba(255,255,255,0.05); color: var(--muted); }
.hv-live-txt { color: var(--ok); font-weight: 700; }

.hv-shifts { list-style: none; margin: 0; padding: 0 10px 10px; display: grid; gap: 8px; }
.hv-shift { background: rgba(8,4,14,0.75); border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.hv-shift.flagged { border-color: rgba(255,184,77,0.55); }
.hv-shift-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.hv-shift-date { font-size: 0.95rem; color: var(--text); }
.hv-shift-date strong { color: var(--cream); }
.hv-shift-dur { text-align: right; display: flex; flex-direction: column; }
.hv-dur { font-size: 1.15rem; font-weight: 800; color: var(--neon); font-variant-numeric: tabular-nums; }
.hv-sub { font-size: 0.75rem; color: var(--muted); }
.hv-shift-times { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.hv-shift-times em { font-style: normal; color: var(--muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; margin-right: 2px; }
.hv-arrow { color: var(--accent); }
.hv-plus { color: var(--muted); font-size: 0.75rem; }
.hv-reg, .hv-note { margin-top: 6px; font-size: 0.8rem; color: var(--muted); }
.hv-reg-k { font-weight: 700; color: var(--text); }
.hv-reg-k.open::before { content: "▲ "; color: var(--ok); }
.hv-reg-k.close::before { content: "▼ "; color: var(--danger); }
.hv-shift-actions { margin-top: 8px; display: flex; justify-content: flex-end; }

.hv-grid-card { padding: 8px; }
.hv-grid-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hv-grid { border-collapse: separate; border-spacing: 0; width: 100%; font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.hv-grid th, .hv-grid td { padding: 7px 6px; text-align: center; white-space: nowrap; border-bottom: 1px solid rgba(160,32,240,0.18); }
.hv-grid thead th { color: var(--muted); font-weight: 700; font-size: 0.72rem; }
.hv-grid thead th span { display: block; color: var(--cream); font-size: 0.75rem; }
.hv-grid thead th.today { color: var(--neon); }
.hv-grid .hv-g-name { position: sticky; left: 0; z-index: 1; background: var(--card-solid); text-align: left; color: var(--cream); font-weight: 800; padding-right: 10px; }
.hv-grid td { color: rgba(168,155,184,0.55); }
.hv-grid td.on { color: var(--text); font-weight: 700; background: rgba(160,32,240,0.14); }
.hv-grid td.live { color: var(--ok); }
.hv-grid .hv-g-tot { color: var(--neon); font-weight: 800; }
.hv-grid tfoot td, .hv-grid tfoot th { border-bottom: 0; color: var(--text); font-weight: 700; border-top: 1px solid var(--border); }
.hv-grid tfoot .hv-g-cost td, .hv-grid tfoot .hv-g-cost th { color: var(--muted); font-weight: 600; border-top: 0; }
.hv-grid tfoot .hv-g-cost .hv-g-tot { color: var(--neon); font-weight: 800; }
.hv-foot { font-size: 0.75rem; margin: 8px 4px 0; }
.hv-edit { border-color: var(--border-strong); box-shadow: var(--glow); }

/* Business-type tagline (customer pages) */
body.customer .biz-type {
  display: inline-block; margin: 2px auto 6px; padding: 4px 14px; border-radius: 999px;
  font-size: 0.78rem; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--cream); background: rgba(12, 5, 22, 0.72); border: 1px solid rgba(232, 213, 163, 0.45);
  box-shadow: 0 0 14px rgba(196, 77, 255, 0.35); text-shadow: 0 1px 2px rgba(0,0,0,0.9);
}
.site-foot .biz-type-foot { font-size: 0.72rem; font-weight: 800; letter-spacing: 0.18em; text-transform: uppercase; color: var(--cream); }

/* Owner debt ledger (Spend tab) */
#debt-ledger .ledger-row .title { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.amt-neg { color: var(--ok, #3ecf8e); font-weight: 600; }
.amt-pos { color: var(--warn, #f5a524); font-weight: 600; }
.deduct-row { border-left: 3px solid var(--ok, #3ecf8e); }

/* Email me my hours */
#my-hours-email-line a { color: var(--accent, #c084fc); }

/* --- Customer attach (Sales + Rewards), mobile-first --- */
.sale-customer-wrap { margin: 0 0 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.cust-picker { position: relative; }
.cust-picker .cust-q { width: 100%; min-height: var(--touch, 56px); font-size: 1.1rem; }
.cust-results:not(.inline) {
  position: absolute; z-index: 45; left: 0; right: 0; top: calc(100% + 4px);
  max-height: 60vh; overflow: auto;
  background: #1a0f28; border: 1px solid rgba(196, 77, 255, 0.45); border-radius: 14px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.5), 0 0 18px rgba(196,77,255,0.18);
  padding: 6px;
}
.cust-results.inline { margin-top: 10px; }
.cust-result {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; min-height: 60px; padding: 10px 12px; margin: 0 0 4px;
  text-align: left; font: inherit; color: var(--cream); cursor: pointer;
  background: rgba(196, 77, 255, 0.07); border: 1px solid rgba(196, 77, 255, 0.22); border-radius: 12px;
  touch-action: manipulation;
}
.cust-result:hover, .cust-result:focus-visible { outline: none; background: rgba(196, 77, 255, 0.2); }
.cust-result .cr-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cust-result .cr-main strong { font-size: 1.02rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cust-result .cr-main .muted { font-size: 0.82rem; }
.cust-result .cr-pts { flex: none; text-align: right; font-size: 0.85rem; color: var(--muted); }
.cust-result .cr-pts b { color: var(--neon); font-size: 1.1rem; }
.cust-result .cr-pts em { font-style: normal; margin-left: 4px; }
.cust-add { padding: 10px 6px 4px; display: flex; flex-direction: column; gap: 8px; }
.cust-add-title { font-weight: 700; color: var(--neon); font-size: 0.9rem; }
.cust-add input { min-height: 52px; font-size: 1.05rem; }
.cust-add .btn.big { margin-top: 0; }
.cust-hint { margin: 8px 6px; font-size: 0.85rem; }
.cust-chip.big-chip { margin-top: 0; padding: 12px 12px 12px 14px; min-height: 64px; }
.cust-chip.big-chip strong { font-size: 1.1rem; }
.chip-x {
  flex: none; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--border-strong); background: rgba(0,0,0,0.25); color: var(--text);
  font-size: 1.2rem; font-weight: 700; cursor: pointer; touch-action: manipulation;
}
.chip-x:active { transform: scale(0.96); }
.cust-reward-badge { font-size: 0.85rem; color: var(--muted); margin: 2px 0 0; }
.cust-reward-badge.ready { color: var(--ok); font-weight: 700; }
p.cust-reward-badge { margin: 8px 0 0; }
.sale-redeem-row { margin-top: 8px; }
.redeem-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.redeem-btn {
  flex: 1 1 30%; min-height: 52px; padding: 0 12px; border-radius: 14px; cursor: pointer;
  font: inherit; font-weight: 700; color: var(--ok);
  background: rgba(62, 207, 142, 0.08); border: 1px solid rgba(62, 207, 142, 0.45);
  touch-action: manipulation;
}
.redeem-btn.active { background: linear-gradient(135deg, #2aad6e, #1e8a55); color: #04140c; }
.redeem-note { font-size: 0.76rem; margin: 6px 0 0; }
.sale-cust-line { margin-top: 4px; font-size: 0.9rem; color: var(--cream); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--neon); font: inherit; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 8px 4px; min-height: 40px; }
#sales-log .btn.sm.add-cust { margin-top: 6px; color: var(--neon); border-color: var(--border-strong); }
.sale-attach { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.rw-search-row { display: flex; gap: 8px; align-items: stretch; }
.rw-search-row .rw-new-btn { flex: none; min-height: var(--touch, 56px); white-space: nowrap; padding: 0 14px; }
@media (max-width: 380px) { .rw-search-row { flex-direction: column; } }
.rw-cust-list .rw-cust-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 60px; }
.rw-row-main { min-width: 0; }
.rw-row-pts { flex: none; text-align: right; color: var(--muted); font-size: 0.8rem; display: flex; flex-direction: column; align-items: flex-end; }
.rw-row-pts b { color: var(--neon); font-size: 1.15rem; }
.rw-row-pts.ready b { color: var(--ok); }
.rw-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-top: 12px; }
.rw-actions .btn { min-height: var(--touch, 56px); padding: 0 8px; }
.rw-more { margin-top: 16px; border-top: 1px solid var(--border); padding-top: 10px; }
.rw-more summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--neon); font-weight: 700; }
#panel-sales [hidden], #panel-rewards [hidden] { display: none !important; }
/* In-list attach: results flow inline so later list rows can't cover them */
.sale-attach .cust-results:not(.inline) { position: static; max-height: none; margin-top: 6px; box-shadow: none; }
#sales-log li { position: relative; }

/* Monthly late counter */
.hv-late { margin: 0 0 14px; padding: 12px 14px; }
.hv-late-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.hv-late-head h3 { margin: 0; font-size: 1rem; color: var(--neon); }
.hv-late-head input[type=month] { background: var(--card-solid); color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; padding: 6px 8px; font: inherit; font-size: 0.85rem; min-height: 38px; color-scheme: dark; max-width: 52%; }
.hv-late-tbl { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.hv-late-tbl th { text-align: left; font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 6px; border-bottom: 1px solid var(--border); }
.hv-late-tbl td { padding: 7px 6px; border-bottom: 1px solid rgba(160,32,240,.15); }
.hv-late-tbl th:not(:first-child), .hv-late-tbl td:not(:first-child) { text-align: right; width: 22%; }
.hv-late-n { display: inline-block; min-width: 26px; text-align: center; padding: 1px 7px; border-radius: 999px; background: rgba(160,32,240,.2); }
.hv-late-tbl tr.is-late .hv-late-n { background: #c6ff3d; color: #12081c; font-weight: 700; box-shadow: 0 0 10px rgba(198,255,61,.45); }
.hv-late-tbl tr.is-late td:last-child { color: var(--accent2); font-weight: 700; }
.hv-late-tbl tfoot td { font-weight: 700; border-bottom: 0; color: var(--neon); }
.hv-late-note { margin-top: 8px; font-size: 0.72rem; color: var(--muted); }
