/* The Halal Village Festival — Kassa styles */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@400;500;600;700&family=Geist+Mono:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,500;9..144,700;9..144,900&display=swap');

* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --font: 'Geist', -apple-system, sans-serif;
  --mono: 'Geist Mono', ui-monospace, monospace;
  --display: 'Fraunces', serif;

  --bg: oklch(0.96 0.014 70);
  --bg-elev: oklch(1 0 0);
  --bg-sunken: oklch(0.93 0.018 65);
  --ink: oklch(0.20 0.02 60);
  --ink-2: oklch(0.42 0.02 60);
  --ink-3: oklch(0.60 0.02 60);
  --line: oklch(0.86 0.018 65);
  --line-2: oklch(0.91 0.014 65);

  --accent: oklch(0.42 0.16 25);
  --accent-soft: oklch(0.92 0.05 25);
  --accent-ink: oklch(0.32 0.13 25);
  --good: oklch(0.55 0.13 145);
  --warn: oklch(0.65 0.16 65);

  --r: 14px;
  --r-lg: 18px;
  --r-xl: 24px;
  --shadow: 0 1px 3px oklch(0.2 0.02 60 / 0.06), 0 6px 18px oklch(0.2 0.02 60 / 0.06);
  --shadow-lg: 0 16px 50px oklch(0.2 0.02 60 / 0.18);
}

[data-theme="dark"] {
  --bg: oklch(0.16 0.012 60); --bg-elev: oklch(0.22 0.014 60); --bg-sunken: oklch(0.13 0.012 60);
  --ink: oklch(0.96 0.012 70); --ink-2: oklch(0.78 0.012 70); --ink-3: oklch(0.55 0.012 60);
  --line: oklch(0.30 0.012 60); --line-2: oklch(0.26 0.012 60);
  --accent-soft: oklch(0.32 0.10 25);
}
[data-theme="bright"] {
  --bg: oklch(0.98 0.005 90); --bg-elev: oklch(1 0 0); --bg-sunken: oklch(0.95 0.008 90);
  --line: oklch(0.90 0.008 90); --line-2: oklch(0.94 0.005 90);
}

html, body { height: 100%; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; overflow: hidden; }
#root, .app {
  /* iOS Safari and home-screen PWA mode return different heights for 100vh.
     -webkit-fill-available is the legacy fix; 100dvh is the modern one
     (iOS 15.4+). The order matters: each successive declaration overrides
     the previous one if supported. */
  height: 100vh;
  height: -webkit-fill-available;
  height: 100dvh;
  width: 100vw;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}
.mono { font-family: var(--mono); font-feature-settings: 'tnum' 1; letter-spacing: -0.01em; }
button { font: inherit; color: inherit; cursor: pointer; border: none; background: none; }
button:disabled { cursor: not-allowed; opacity: 0.4; }
input { font: inherit; color: inherit; border: none; background: none; outline: none; }

/* TOPBAR — compact */
.topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 8px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-elev);
  flex-shrink: 0;
  height: 56px;
}
.topbar-brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), oklch(0.30 0.13 25));
  color: white;
  display: grid; place-items: center;
  font-family: var(--display); font-weight: 900; font-size: 14px;
}
.topbar-title { font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.topbar-nav { display: flex; gap: 4px; background: var(--bg-sunken); padding: 4px; border-radius: 12px; }
.nav-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 18px;
  border-radius: 9px;
  color: var(--ink-2); font-weight: 600; font-size: 14px;
  transition: 0.15s;
}
.nav-btn:hover { color: var(--ink); }
.nav-btn.active { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow); }
.nav-badge {
  background: var(--accent); color: white;
  font-size: 10px; padding: 2px 7px; border-radius: 99px;
  font-weight: 700; min-width: 20px; text-align: center;
}
.topbar-clock {
  font-size: 14px; font-weight: 600; color: var(--ink-2);
  justify-self: end;
  background: var(--bg-sunken);
  padding: 6px 14px; border-radius: 9px;
}

.body { flex: 1; overflow: hidden; min-height: 0; }

/* POS GRID */
.pos-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  height: 100%;
  min-height: 0;
}

.items-area {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
  padding: 10px 12px 12px 14px;
  background: var(--bg);
}

/* All items - alle categorieen op 1 scherm */
.all-items {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 8px;
  overflow: hidden;
}

.cat-block {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  gap: 4px;
  overflow: hidden;
}
.cat-block-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  padding: 0 2px;
  height: 18px;
}
.cat-block-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cat-color);
}
.cat-block-name {
  font-family: var(--display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: -0.01em;
  color: var(--cat-color);
}

/* Items grid - vult resterende ruimte van block */
.items-grid {
  min-height: 0;
  height: 100%;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  grid-template-rows: 1fr;
  gap: 6px;
  overflow: hidden;
}
.tile-XL .items-grid, [data-tile="XL"] .items-grid { gap: 8px; }
[data-tile="M"] .items-grid { gap: 4px; }

.item-card {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  text-align: left;
  transition: 0.15s;
  overflow: hidden;
  position: relative;
  min-height: 0;
  height: 100%;
}
.item-card:hover {
  transform: translateY(-2px);
  border-color: var(--item-color);
  box-shadow: 0 8px 22px oklch(0.2 0.02 60 / 0.10);
}
.item-card:active { transform: translateY(0); }

.item-visual {
  min-height: 0;
  background: linear-gradient(165deg,
    color-mix(in oklch, var(--item-color) 14%, var(--bg-elev)),
    color-mix(in oklch, var(--item-accent) 6%, var(--bg-elev)));
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}

.item-info {
  padding: 6px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
}
.item-name {
  font-weight: 600;
  font-size: 12px;
  line-height: 1.2;
  text-wrap: pretty;
}
[data-tile="XL"] .item-name { font-size: 15px; }
.item-row { display: flex; justify-content: space-between; align-items: center; }
.item-price { font-weight: 700; font-size: 14px; }
[data-tile="XL"] .item-price { font-size: 18px; }
.item-mod-tag {
  font-size: 9px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3);
  background: var(--bg-sunken);
  padding: 2px 6px; border-radius: 99px;
}

/* PRODUCT VISUALS - klein voor tablet */
.visual-can {
  width: 38px; height: 60px;
  border-radius: 6px 6px 4px 4px;
  position: relative;
  box-shadow: inset -6px 0 10px rgba(0,0,0,0.20), inset 4px 0 8px rgba(255,255,255,0.18), 0 2px 8px rgba(0,0,0,0.15);
}
.can-top, .can-bottom {
  position: absolute; left: 4px; right: 4px;
  height: 3px;
  background: oklch(0.85 0.01 80);
  border-radius: 50%;
}
.can-top { top: -1px; }
.can-bottom { bottom: -1px; background: oklch(0.75 0.01 80); }
.can-band {
  position: absolute; top: 50%; left: 0; right: 0;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.96);
  padding: 3px 0;
  display: flex; flex-direction: column; align-items: center;
}
.can-glyph {
  font-family: var(--display); font-weight: 900;
  font-size: 13px; line-height: 1;
  letter-spacing: -0.04em;
  color: oklch(0.20 0.02 60);
}
.can-label {
  font-size: 5px; font-weight: 800;
  letter-spacing: 0.08em;
  color: oklch(0.30 0.02 60);
}

.visual-cup { width: 58px; height: 50px; position: relative; }
.cup-saucer {
  position: absolute; bottom: 0; left: -3px; right: -3px;
  height: 4px;
  background: var(--cup-color);
  border-radius: 50%;
  filter: brightness(0.9);
}
.cup-body {
  position: absolute; bottom: 2px; left: 8px;
  width: 38px; height: 38px;
  background: var(--cup-color);
  border-radius: 4px 4px 16px 16px;
  overflow: hidden;
  box-shadow: inset -3px 0 5px rgba(0,0,0,0.12), inset 2px 0 4px rgba(255,255,255,0.4);
}
.cup-liquid {
  position: absolute; top: 2px; left: 2px; right: 2px;
  height: 9px;
  border-radius: 50% / 30%;
}
.cup-foam {
  position: absolute; top: -1px; left: -1px; right: -1px;
  height: 4px;
  background: oklch(0.95 0.02 75);
  border-radius: 50% / 60%;
}
.cup-handle {
  position: absolute; bottom: 10px; right: 3px;
  width: 10px; height: 16px;
  border: 3px solid var(--cup-color);
  border-left: none;
  border-radius: 0 12px 12px 0;
}
.cup-steam {
  position: absolute; top: -10px; left: 18px;
  display: flex; gap: 2px;
}
.cup-steam span {
  display: block; width: 2px; height: 9px;
  background: oklch(0.70 0.01 60 / 0.4);
  border-radius: 2px;
  animation: steam 2.4s ease-in-out infinite;
}
.cup-steam span:nth-child(2) { animation-delay: 0.4s; }
.cup-steam span:nth-child(3) { animation-delay: 0.8s; }

.visual-glass { width: 38px; height: 60px; position: relative; }
.glass-body {
  position: absolute; inset: 3px 4px 0 4px;
  border-radius: 3px 3px 8px 8px;
  overflow: hidden;
  box-shadow: inset -3px 0 5px rgba(0,0,0,0.15), inset 3px 0 5px rgba(255,255,255,0.30);
}
.glass-shine {
  position: absolute; top: 3px; left: 4px;
  width: 2px; height: 60%;
  background: rgba(255,255,255,0.4);
  border-radius: 4px;
}
.glass-ice {
  position: absolute; top: 5px; left: 5px; right: 5px;
  height: 50%;
  display: flex; flex-wrap: wrap; gap: 2px;
}
.glass-ice span {
  display: block; width: 9px; height: 9px;
  background: rgba(255,255,255,0.45);
  border-radius: 2px;
  transform: rotate(15deg);
}
.glass-ice span:nth-child(2) { transform: rotate(-25deg); }
.glass-ice span:nth-child(3) { transform: rotate(45deg); }
.glass-straw {
  position: absolute; top: -6px; right: 9px;
  width: 5px; height: 30px;
  border-radius: 2px;
  transform: rotate(8deg);
}

/* TICKET — compact rechts */
.ticket {
  background: var(--bg-elev);
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}
.ticket-head {
  padding: 12px 18px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
}
.ticket-label { font-weight: 700; font-size: 14px; }
.ticket-sub { font-size: 11px; color: var(--ink-3); margin-top: 1px; }
.ticket-clear {
  padding: 6px 12px;
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  background: var(--bg-sunken);
  border-radius: 7px;
}
.ticket-clear:hover:not(:disabled) { background: var(--accent-soft); color: var(--accent-ink); }

.ticket-body {
  flex: 1;
  overflow-y: auto;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-height: 0;
}
.ticket-empty {
  margin: auto;
  text-align: center;
  color: var(--ink-3);
  padding: 30px 16px;
}
.ticket-empty-title { font-weight: 700; font-size: 14px; color: var(--ink-2); }
.ticket-empty-sub { font-size: 12px; margin-top: 4px; }

.line {
  display: grid;
  grid-template-columns: 3px 1fr auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px 6px;
  border-radius: 10px;
}
.line:hover { background: var(--bg-sunken); }
.line-color { align-self: stretch; border-radius: 2px; }
.line-info { min-width: 0; }
.line-name { font-weight: 600; font-size: 13px; line-height: 1.25; }
.line-mods { font-size: 10px; color: var(--ink-3); margin-top: 2px; line-height: 1.25; }

.line-qty {
  display: flex; align-items: center; gap: 2px;
  background: var(--bg-sunken);
  padding: 2px;
  border-radius: 8px;
}
.qty-btn {
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 6px;
  background: var(--bg-elev);
  color: var(--ink);
  font-weight: 700; font-size: 16px;
  transition: 0.1s;
}
.qty-btn:hover { background: var(--accent); color: white; }
.qty-num { font-weight: 700; font-size: 13px; min-width: 18px; text-align: center; }
.line-total { font-weight: 700; font-size: 13px; }

.parked {
  border-top: 1px dashed var(--line);
  padding: 10px 14px;
  flex-shrink: 0;
}
.parked-label {
  font-size: 10px; font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.parked-list { display: flex; flex-wrap: wrap; gap: 5px; }
.parked-chip {
  padding: 6px 10px;
  background: var(--bg-sunken);
  border: 1px dashed var(--line);
  border-radius: 7px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2);
}
.parked-chip:hover { border-style: solid; border-color: var(--accent); color: var(--accent); }

.ticket-foot {
  /* Bottom padding clears the iOS home indicator without depending on the
     parent's safe-area padding (covers Safari + standalone mode). */
  padding: 14px 18px max(16px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
  background: var(--bg-elev);
  flex-shrink: 0;
}
.totals-grand {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 10px;
  font-size: 15px; font-weight: 700;
}
.grand-amt { font-size: 26px; letter-spacing: -0.02em; }

.ticket-actions { display: grid; grid-template-columns: auto 1fr; gap: 8px; }

.btn-primary, .btn-secondary {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 18px;
  border-radius: var(--r);
  font-weight: 700;
  font-size: 15px;
  transition: 0.15s;
}
.btn-pay-main { padding: 16px 18px; font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: white;
  box-shadow: 0 2px 8px oklch(from var(--accent) l c h / 0.3);
}
.btn-primary:hover:not(:disabled) {
  background: var(--accent-ink);
  transform: translateY(-1px);
}
.btn-primary.btn-sm { padding: 8px 14px; font-size: 12px; box-shadow: none; }

.btn-secondary {
  background: var(--bg-sunken);
  color: var(--ink);
}
.btn-secondary:hover:not(:disabled) { background: var(--line-2); }

.btn-amt { background: rgba(255,255,255,0.20); padding: 3px 8px; border-radius: 7px; font-size: 13px; }

/* MODAL */
.modal-backdrop {
  position: fixed; inset: 0;
  background: oklch(0.15 0.01 60 / 0.55);
  backdrop-filter: blur(4px);
  display: grid; place-items: center;
  padding: 20px;
  z-index: 100;
  animation: fadeIn 0.18s ease-out;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

.modal-card {
  background: var(--bg-elev);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 92vh;
  display: flex;
  flex-direction: column;
  animation: slideUp 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
  overflow: hidden;
}

.modal-head {
  padding: 22px 24px 20px;
  color: white;
  position: relative;
}
.modal-close, .modal-close-light {
  position: absolute; top: 14px; right: 14px;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,255,255,0.20);
  color: white; font-size: 16px; font-weight: 600;
  display: grid; place-items: center;
}
.modal-close-light { background: var(--bg-sunken); color: var(--ink-2); }
.modal-close:hover { background: rgba(255,255,255,0.35); }
.modal-close-light:hover { background: var(--line-2); }
.modal-title {
  font-family: var(--display);
  font-weight: 700; font-size: 26px;
  letter-spacing: -0.02em; line-height: 1.1;
}
.modal-base { font-size: 13px; opacity: 0.9; margin-top: 4px; font-weight: 600; }

.modal-body {
  padding: 18px 24px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.modal-foot {
  padding: 16px 24px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  border-top: 1px solid var(--line);
}

.mod-group { display: flex; flex-direction: column; gap: 8px; }
.mod-group-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-2);
}

.mod-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
}
.mod-opt {
  padding: 12px;
  background: var(--bg-sunken);
  border: 2px solid transparent;
  border-radius: var(--r);
  text-align: left;
  display: flex; flex-direction: column; gap: 3px;
  transition: 0.12s;
}
.mod-opt:hover { background: var(--line-2); }
.mod-opt.sel { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.mod-opt-name { font-size: 13px; font-weight: 600; }
.mod-opt-price { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.mod-opt.sel .mod-opt-price { color: var(--accent-ink); }

.mod-qty {
  display: flex; align-items: center; gap: 14px;
  background: var(--bg-sunken);
  padding: 6px;
  border-radius: var(--r);
  width: fit-content;
}
.mod-qty-btn {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 9px;
  background: var(--bg-elev);
  color: var(--ink);
  font-size: 22px; font-weight: 700;
}
.mod-qty-btn:hover { background: var(--accent); color: white; }
.mod-qty-num { font-weight: 700; font-size: 22px; min-width: 40px; text-align: center; }

/* PAYMENT */
.pay-card { max-width: 440px; }
.pay-confirm {
  padding: 40px 30px 28px;
  text-align: center;
}
.pay-eyebrow {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.pay-amt {
  font-size: 56px; font-weight: 700;
  letter-spacing: -0.04em;
  margin: 6px 0 4px;
  color: var(--accent);
}
.pay-sub { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }

.pay-summary {
  background: var(--bg-sunken);
  border-radius: var(--r);
  padding: 12px 14px;
  margin-bottom: 20px;
  text-align: left;
  max-height: 180px;
  overflow-y: auto;
}
.pay-sum-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  gap: 8px;
  padding: 5px 0;
  font-size: 13px;
  border-bottom: 1px dashed var(--line);
}
.pay-sum-row:last-child { border-bottom: none; }
.pay-sum-qty { font-weight: 700; color: var(--ink-3); }
.pay-sum-name { font-weight: 500; }
.pay-sum-amt { font-weight: 700; }

.btn-pay {
  width: 100%;
  padding: 18px 20px;
  background: var(--accent);
  color: white;
  border-radius: var(--r);
  font-weight: 700; font-size: 16px;
  box-shadow: 0 4px 16px oklch(from var(--accent) l c h / 0.30);
}
.btn-pay:hover { background: var(--accent-ink); transform: translateY(-1px); }
.btn-link {
  display: block;
  margin: 12px auto 0;
  padding: 8px 14px;
  font-size: 13px;
  color: var(--ink-3);
}
.btn-link:hover { color: var(--ink); }

.pay-success { padding: 50px 30px 36px; text-align: center; }
.pay-check {
  width: 76px; height: 76px;
  background: var(--good);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid; place-items: center;
  color: white; font-size: 40px; font-weight: 700;
  animation: bounceIn 0.5s cubic-bezier(0.2, 1.5, 0.4, 1);
}
@keyframes bounceIn { from { transform: scale(0.3); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.pay-success-title { font-family: var(--display); font-size: 28px; font-weight: 700; }
.pay-success-amt { font-size: 38px; font-weight: 700; margin: 6px 0; letter-spacing: -0.02em; }
.pay-success-sub { font-size: 13px; color: var(--ink-3); }

/* QUEUE */
.queue-screen { padding: 18px 22px; height: 100%; overflow-y: auto; }
.queue-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  margin-bottom: 16px;
}
.queue-title { font-family: var(--display); font-weight: 700; font-size: 26px; letter-spacing: -0.02em; }
.queue-tabs { display: flex; gap: 4px; background: var(--bg-sunken); padding: 4px; border-radius: 11px; }
.queue-tab {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px; font-weight: 600;
  color: var(--ink-2);
  display: flex; align-items: center; gap: 6px;
}
.queue-tab.sel { background: var(--bg-elev); color: var(--ink); box-shadow: var(--shadow); }
.queue-tab-count {
  font-size: 11px;
  background: var(--bg-sunken);
  padding: 1px 7px; border-radius: 99px;
  font-weight: 700;
}
.queue-tab.sel .queue-tab-count { background: var(--accent-soft); color: var(--accent-ink); }

.queue-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}
.order-card {
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden;
}
.order-card::before {
  content: ''; position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--ink-3);
}
.order-card.status-in-progress::before { background: var(--warn); }
.order-card.status-ready::before { background: var(--good); }
.order-card.status-ready { border-color: oklch(from var(--good) l c h / 0.4); background: oklch(from var(--good) l c h / 0.04); }
.order-card.status-done { opacity: 0.7; }

.order-head { display: flex; justify-content: space-between; align-items: center; }
.order-num { font-weight: 700; font-size: 16px; }
.order-meta { font-size: 12px; color: var(--ink-3); }
.order-pill {
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 99px;
}
.order-pill.status-in-progress { background: oklch(from var(--warn) l c h / 0.15); color: var(--warn); }
.order-pill.status-ready { background: oklch(from var(--good) l c h / 0.15); color: var(--good); }
.order-pill.status-done { background: var(--bg-sunken); color: var(--ink-3); }

.order-items { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.order-item-row {
  display: grid; grid-template-columns: 32px 1fr;
  gap: 8px; font-size: 13px; align-items: baseline;
}
.order-item-qty { font-weight: 700; color: var(--ink-3); }
.order-item-name { font-weight: 600; }
.order-item-mods { font-size: 11px; color: var(--ink-3); padding-left: 40px; font-style: italic; }

.order-foot { display: flex; justify-content: space-between; align-items: center; }
.order-total { font-weight: 700; font-size: 16px; }
.order-actions { display: flex; align-items: center; gap: 10px; }
.btn-link-danger {
  font-size: 12px; font-weight: 600;
  color: var(--ink-3);
  padding: 6px 8px;
  border-radius: 6px;
}
.btn-link-danger:hover { color: var(--accent); background: var(--accent-soft); }
.order-card.status-voided { opacity: 0.55; }
.order-card.status-voided::before { background: var(--ink-3); }
.order-pill.status-voided { background: var(--bg-sunken); color: var(--ink-3); text-decoration: line-through; }

.queue-empty {
  grid-column: 1 / -1;
  text-align: center; padding: 60px 20px;
  color: var(--ink-3);
}
.queue-empty-mark {
  width: 70px; height: 70px;
  border-radius: 50%; background: var(--bg-sunken);
  display: grid; place-items: center;
  margin: 0 auto 14px;
  font-size: 32px; color: var(--good);
}
.queue-empty-title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--ink-2); }

/* REPORT */
.report-screen { padding: 18px 22px; height: 100%; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; }
.report-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.report-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.report-date {
  display: flex; align-items: center; gap: 6px;
  background: var(--bg-sunken);
  padding: 6px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2);
}
.report-date input {
  font-family: var(--mono); font-weight: 600; font-size: 13px;
  color: var(--ink); background: transparent;
}
.report-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.report-kpi {
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 16px 18px;
}
.report-kpi-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-bottom: 8px;
}
.report-kpi-value { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; color: var(--ink); }
.report-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(360px, 2fr);
  gap: 14px;
  flex: 1;
  min-height: 0;
}
@media (max-width: 900px) {
  .report-grid { grid-template-columns: 1fr; }
}
.report-block {
  background: var(--bg-elev);
  border: 1.5px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px 16px;
  display: flex; flex-direction: column;
  min-height: 0;
}
.report-block-title {
  font-family: var(--display);
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 8px;
}
.report-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.report-table th {
  text-align: left;
  font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--ink-3);
  padding: 6px 8px;
  border-bottom: 1px solid var(--line);
}
.report-table td {
  padding: 8px;
  border-bottom: 1px dashed var(--line-2);
}
.report-table .num { text-align: right; }
.report-cat-cell { color: var(--ink-3); font-size: 11px; }
.report-empty { text-align: center; color: var(--ink-3); padding: 16px; font-style: italic; }

/* SCROLLBARS */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--ink-3); }

/* =============================================================
   PIN LOGIN — fullscreen lock screen
   ============================================================= */
.pin-screen { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); z-index: 9999; }
.pin-card { background: var(--bg-elev); padding: 36px 32px; border-radius: var(--r-xl); box-shadow: var(--shadow-lg); width: min(420px, 92vw); text-align: center; }
.pin-brand { font-family: var(--display); font-size: 24px; color: var(--accent); margin-bottom: 4px; }
.pin-title { font-size: 14px; color: var(--ink-2); margin-bottom: 24px; letter-spacing: 0.02em; text-transform: uppercase; }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin-bottom: 28px; height: 22px; }
.pin-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line); transition: background 120ms ease, border-color 120ms ease, transform 120ms ease; }
.pin-dot.filled { background: var(--accent); border-color: var(--accent); transform: scale(1.05); }
.pin-error { color: var(--accent); font-size: 13px; min-height: 18px; margin-bottom: 12px; }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.pin-key { aspect-ratio: 1.4; font-family: var(--mono); font-size: 26px; font-weight: 600; background: var(--bg-sunken); border-radius: var(--r-lg); transition: transform 80ms ease, background 120ms ease; }
.pin-key:active { transform: scale(0.96); background: var(--line-2); }
.pin-key.muted { color: var(--ink-3); }

/* =============================================================
   PAYMENT METHOD SELECTOR (inside the existing PaymentModal)
   ============================================================= */
.pay-method-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 14px; }
.pay-method { padding: 16px 12px; border-radius: var(--r-lg); background: var(--bg-sunken); border: 2px solid transparent; font-weight: 600; transition: border-color 120ms ease, background 120ms ease; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.pay-method-glyph { font-size: 22px; line-height: 1; }
.pay-method-label { font-size: 14px; }
.pay-method.sel { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }

/* =============================================================
   DEAL / DISCOUNT INDICATORS in ticket + payment summary
   ============================================================= */
.deal-line { display: flex; justify-content: space-between; align-items: center; padding: 8px 12px; background: var(--accent-soft); color: var(--accent-ink); border-radius: 10px; margin: 6px 0; font-size: 13px; font-weight: 500; }
.totals-sub { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-2); padding: 2px 0; }
.totals-sub.discount { color: var(--accent); }

.coupon-toggle {
  display: flex; align-items: center; gap: 10px;
  width: 100%;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px dashed var(--line-2);
  border-radius: var(--r);
  background: transparent;
  color: var(--ink-2);
  font-size: 13px; font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: 0.15s;
}
.coupon-toggle:hover { background: var(--bg-sunken); }
.coupon-toggle.on {
  border-style: solid;
  border-color: var(--accent);
  background: oklch(from var(--accent) l c h / 0.08);
  color: var(--accent);
}
.coupon-toggle-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px;
  border-radius: 5px;
  border: 1px solid currentColor;
  font-size: 13px; font-weight: 800; line-height: 1;
}
.coupon-toggle.on .coupon-toggle-check { background: var(--accent); color: white; border-color: var(--accent); }

/* =============================================================
   REPORTS — category filter + per-category exports
   ============================================================= */
.report-cat-filter { display: flex; gap: 6px; flex-wrap: wrap; margin-right: auto; }
.report-cat-chip { padding: 6px 12px; border-radius: 999px; background: var(--bg-sunken); font-size: 13px; font-weight: 500; }
.report-cat-chip.sel { background: var(--accent); color: white; }
.report-export-row { display: flex; gap: 8px; }

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%      { transform: translateX(-8px); }
  40%      { transform: translateX(8px); }
  60%      { transform: translateX(-6px); }
  80%      { transform: translateX(6px); }
}
