:root {
  --bg: #F8F6F2;
  --surface: #FFFFFF;
  --surface-alt: #FAF8F5;
  --primary: #D97706;
  --primary-dark: #B45309;
  --primary-soft: #FEF3C7;
  --ink: #1C1917;
  --muted: #78716C;
  --success: #15803D;
  --success-soft: #DCFCE7;
  --danger: #DC2626;
  --danger-soft: #FEE2E2;
  --info: #0369A1;
  --info-soft: #E0F2FE;
  --border: #E7E5E4;
  --shadow: 0 2px 10px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 14px 36px rgba(28, 25, 23, 0.16);
  --radius: 12px;
  --radius-sm: 8px;
  --header-h: 64px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Inter, Arial, sans-serif;
  font-size: 15px;
  line-height: 1.45;
  -webkit-tap-highlight-color: transparent;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

.num,
.price,
.kpi-value {
  font-variant-numeric: tabular-nums;
}

.hidden {
  display: none !important;
}

/* Header & Navigation */
.app-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(28, 25, 23, 0.04);
}

.header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 16px;
  max-width: 1440px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.brand-logo {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-shrink: 0;
}

.brand-title {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-sub {
  font-size: 0.78rem;
  color: var(--muted);
}

.header-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.branch-select {
  min-height: 40px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-weight: 600;
  font-size: 0.9rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 0.84rem;
  font-weight: 600;
}

.status-pill.is-open {
  background: var(--success-soft);
  color: var(--success);
  border-color: #BBF7D0;
}

.status-pill.is-closed {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #FDE68A;
}

.status-pill.is-online {
  background: var(--info-soft);
  color: var(--info);
  border-color: #BAE6FD;
}

.status-pill.is-offline {
  background: #F5F5F4;
  color: var(--muted);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.nav-bar {
  display: flex;
  gap: 6px;
  padding: 0 16px 10px;
  max-width: 1440px;
  margin: 0 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-bar::-webkit-scrollbar {
  display: none;
}

.nav-tab {
  min-height: 42px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.92rem;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-tab:hover {
  background: var(--surface-alt);
  color: var(--ink);
}

.nav-tab.active {
  background: var(--primary);
  color: #FFFFFF;
}

/* Main Content */
.main-content {
  max-width: 1440px;
  margin: 0 auto;
  padding: 16px;
}

.view-section {
  display: none;
}

.view-section.active {
  display: block;
}

/* Cards & Buttons */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.card-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.92rem;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-sm {
  min-height: 36px;
  padding: 6px 11px;
  font-size: 0.84rem;
}

.btn-lg {
  min-height: 52px;
  padding: 12px 20px;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary);
  border-color: var(--primary);
  color: #FFFFFF;
}

.btn-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

.btn-success {
  background: var(--success);
  border-color: var(--success);
  color: #FFFFFF;
}

.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #FFFFFF;
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: var(--surface-alt);
}

.btn-soft {
  background: var(--primary-soft);
  border-color: #FDE68A;
  color: var(--primary-dark);
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 700;
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.badge-combo {
  background: var(--primary-soft);
  color: var(--primary-dark);
  border-color: #FCD34D;
}

.badge-success {
  background: var(--success-soft);
  color: var(--success);
  border-color: #BBF7D0;
}

.badge-danger {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: #FECACA;
}

.badge-info {
  background: var(--info-soft);
  color: var(--info);
  border-color: #BAE6FD;
}

/* Inputs & Forms */
.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.field label {
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--ink);
}

.input,
.select,
.textarea {
  width: 100%;
  min-height: 44px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.95rem;
}

.textarea {
  min-height: 78px;
  resize: vertical;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid var(--primary);
  outline-offset: 1px;
}

.help-text {
  font-size: 0.78rem;
  color: var(--muted);
}

/* Alert Banner */
.alert-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--primary-soft);
  border: 1px solid #FCD34D;
  color: #78350F;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

/* POS Split Layout */
.pos-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(330px, 1fr);
  gap: 16px;
  align-items: start;
}

.pos-toolbar {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}

.search-row {
  display: flex;
  gap: 8px;
}

.cat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
}

.cat-pill.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #FFFFFF;
}

.cat-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(156px, 1fr));
  gap: 12px;
}

.snack-card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  min-height: 144px;
  padding: 13px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  border-top: 4px solid var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.snack-card:hover {
  box-shadow: 0 6px 18px rgba(28, 25, 23, 0.1);
}

.snack-card:active {
  transform: scale(0.97);
}

.snack-card.is-combo {
  background: linear-gradient(180deg, #FFFBEB 0%, #FFFFFF 45%);
}

.snack-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
}

.snack-emoji {
  font-size: 1.75rem;
  line-height: 1;
}

.snack-name {
  font-weight: 800;
  font-size: 0.95rem;
  line-height: 1.25;
}

.snack-desc {
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.25;
}

.snack-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
}

.snack-price {
  font-weight: 800;
  font-size: 1.02rem;
  color: var(--primary-dark);
}

.snack-strike {
  font-size: 0.76rem;
  color: var(--muted);
  text-decoration: line-through;
}

/* Cart Panel */
.cart-panel {
  position: sticky;
  top: 120px;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  max-height: calc(100vh - 138px);
  overflow: hidden;
}

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 16px;
  border-bottom: 1px solid var(--border);
}

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 10px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cart-empty {
  text-align: center;
  padding: 36px 16px;
  color: var(--muted);
}

.cart-line {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.cart-line-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.cart-line-title {
  font-weight: 700;
  font-size: 0.93rem;
}

.cart-line-mods {
  font-size: 0.78rem;
  color: var(--muted);
}

.cart-line-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qty-stepper {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.qty-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-weight: 800;
  font-size: 1.05rem;
}

.qty-val {
  min-width: 26px;
  text-align: center;
  font-weight: 800;
}

.cart-footer {
  border-top: 1px solid var(--border);
  padding: 12px 16px 16px;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.discount-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.summary-lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.92rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
}

.summary-total {
  font-size: 1.25rem;
  font-weight: 900;
  padding-top: 6px;
  border-top: 1px dashed var(--border);
}

.mobile-cart-bar {
  display: none;
}

/* Modifier Pills & Keypad */
.pill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  min-height: 44px;
  padding: 8px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-weight: 600;
  font-size: 0.9rem;
}

.choice-pill.selected {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
  font-weight: 800;
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.key-btn {
  min-height: 52px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  font-size: 1.2rem;
  font-weight: 800;
}

.key-btn:active {
  background: var(--primary-soft);
}

.change-banner {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--success-soft);
  color: var(--success);
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.change-banner.short {
  background: var(--danger-soft);
  color: var(--danger);
}

/* KPIs, Charts & Tables */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.kpi-value {
  margin-top: 4px;
  font-size: 1.45rem;
  font-weight: 900;
}

.kpi-sub {
  margin-top: 3px;
  font-size: 0.8rem;
  color: var(--muted);
}

.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

th,
td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  background: var(--surface-alt);
}

.bar-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 10px;
}

.bar-track {
  height: 10px;
  border-radius: 999px;
  background: #F5F5F4;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.trend-chart {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 180px;
  padding-top: 16px;
  overflow-x: auto;
}

.trend-col {
  flex: 1 0 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  height: 100%;
  justify-content: flex-end;
}

.trend-bar {
  width: 100%;
  max-width: 34px;
  background: var(--primary);
  border-radius: 6px 6px 0 0;
  min-height: 3px;
}

.trend-label {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
}

/* Subtabs */
.subtabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

/* Receipt Preview */
.receipt-paper {
  max-width: 360px;
  margin: 0 auto;
  background: #FFFFFF;
  color: #1C1917;
  border: 1px dashed #D6D3D1;
  border-radius: 10px;
  padding: 18px 16px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  line-height: 1.4;
}

.receipt-center {
  text-align: center;
}

.receipt-divider {
  border-top: 1px dashed #A8A29E;
  margin: 10px 0;
}

.receipt-queue {
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.04em;
  margin: 4px 0;
}

.receipt-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.receipt-item-sub {
  font-size: 11.5px;
  color: #57534E;
  padding-left: 10px;
}

/* Modals */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(28, 25, 23, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
}

.modal-card {
  width: 100%;
  max-width: 560px;
  max-height: 92vh;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.modal-card.wide {
  max-width: 760px;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
}

.modal-head h3 {
  margin: 0;
  font-size: 1.08rem;
  font-weight: 800;
}

.modal-body {
  padding: 16px 18px;
  overflow-y: auto;
}

.modal-foot {
  padding: 12px 18px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

/* Toasts */
.toast-container {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  padding: 11px 15px;
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: var(--shadow-lg);
}

.toast.success {
  background: var(--success);
}

.toast.error {
  background: var(--danger);
}

.toast.warning {
  background: var(--primary-dark);
}

/* Print area hidden on screen */
#print-area {
  display: none;
}

/* Mobile Responsive */
@media (max-width: 959px) {
  .main-content {
    padding: 12px 12px 88px;
  }

  .pos-layout {
    grid-template-columns: 1fr;
  }

  .cart-panel {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    z-index: 60;
    max-height: 85vh;
    border-radius: 18px 18px 0 0;
    box-shadow: var(--shadow-lg);
  }

  .cart-panel.mobile-open {
    display: flex;
  }

  .mobile-cart-bar {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-radius: var(--radius);
    background: var(--ink);
    color: #FFFFFF;
    box-shadow: var(--shadow-lg);
    font-weight: 800;
  }

  .toast-container {
    bottom: 78px;
  }
}

/* Preparing Orders / Kitchen Queue Board */
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  margin-left: 5px;
  border-radius: 999px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-tab.active .nav-badge {
  background: #1C1917;
}

.prep-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.batch-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.batch-label {
  font-weight: 800;
  font-size: 0.9rem;
  color: var(--primary-dark);
}

.batch-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid #FCD34D;
  font-size: 0.85rem;
  font-weight: 700;
}

.prep-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.prep-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 12px;
}

.ticket-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.ticket-grid.ticket-grid-single {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}

.ticket-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 5px solid var(--primary);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ticket-card.ticket-ready {
  border-top-color: var(--success);
}

.ticket-card.ticket-collected {
  border-top-color: var(--muted);
  opacity: 0.92;
}

.ticket-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.ticket-num-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 1.5rem;
  font-weight: 900;
  color: var(--ink);
  line-height: 1.1;
}

.ticket-num-btn:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

.ticket-timer {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-weight: 800;
  font-size: 0.9rem;
}

.ticket-timer.is-warn {
  background: var(--primary-soft);
  border-color: #FCD34D;
  color: var(--primary-dark);
}

.ticket-timer.is-late {
  background: var(--danger-soft);
  border-color: #FECACA;
  color: var(--danger);
}

.ticket-order-note {
  padding: 7px 10px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: #78350F;
  font-size: 0.85rem;
  font-weight: 700;
}

.ticket-items {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ticket-item {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--surface-alt);
  text-align: left;
}

.ticket-item.is-done {
  background: var(--success-soft);
  border-color: #BBF7D0;
  opacity: 0.72;
}

.ticket-item.is-done .ticket-item-name {
  text-decoration: line-through;
}

.ticket-check {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: var(--surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  color: var(--success);
}

.ticket-item.is-done .ticket-check {
  border-color: var(--success);
}

.ticket-item-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ticket-item-name {
  font-size: 0.96rem;
}

.ticket-item-mods {
  font-size: 0.82rem;
  color: var(--primary-dark);
  font-weight: 700;
}

.ticket-item-note {
  font-size: 0.8rem;
  color: var(--danger);
  font-weight: 700;
}

.ticket-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* Customer Queue Display */
.customer-display-overlay {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #1C1917;
  color: #FFFFFF;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
}

.customer-display-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.customer-display-head .help-text {
  color: #D6D3D1;
}

.customer-display-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.customer-col {
  border-radius: var(--radius);
  padding: 18px;
  background: #292524;
  border: 1px solid #44403C;
}

.customer-col-title {
  font-size: 1.35rem;
  font-weight: 900;
  margin-bottom: 14px;
}

.customer-num-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.customer-num-pill {
  padding: 16px 26px;
  border-radius: var(--radius);
  background: var(--primary);
  color: #FFFFFF;
  font-size: 2.4rem;
  font-weight: 900;
  letter-spacing: 0.03em;
}

.customer-num-pill.is-ready {
  background: var(--success);
}

@media (max-width: 860px) {
  .prep-board,
  .customer-display-grid {
    grid-template-columns: 1fr;
  }
}

/* Home / Counter Hub */
.hub-wrap {
  max-width: 1020px;
  margin: 8px auto 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.hub-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hub-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 290px;
  padding: 24px;
  border-radius: 16px;
  border: 1px solid var(--border);
  border-top: 6px solid var(--primary);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  transition: transform 0.08s ease, box-shadow 0.15s ease;
}

.hub-card:hover {
  box-shadow: var(--shadow-lg);
}

.hub-card:active {
  transform: scale(0.985);
}

.hub-card-prep {
  border-top-color: var(--success);
}

.hub-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--danger);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 800;
}

.hub-icon {
  font-size: 2.8rem;
  line-height: 1;
}

.hub-title {
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.01em;
}

.hub-desc {
  font-size: 0.94rem;
  color: var(--muted);
}

.hub-meta {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  font-size: 0.92rem;
}

.hub-queue-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.hub-pill {
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--primary-soft);
  border: 1px solid #FCD34D;
  color: var(--primary-dark);
  font-size: 0.82rem;
  font-weight: 800;
}

.hub-pill.is-ready {
  background: var(--success-soft);
  border-color: #BBF7D0;
  color: var(--success);
}

.hub-quick-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--border);
}

@media (max-width: 719px) {
  .hub-grid {
    grid-template-columns: 1fr;
  }

  .hub-card {
    min-height: 230px;
    padding: 18px;
  }
}
