/* ============================================================
   POS Core — Touch-First POS CSS
   Scope: .module-pos (applied to <body>)
   Target: 10-12" tablet, landscape & portrait modes
   Fat-Finger Rule: min 48px touch targets, 8px spacing
   ============================================================ */

/* ── Google Font ── */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --pos-bg:           #080a14;
  --pos-cart-bg:      #0e1324;
  --pos-controls-bg:  #080a14;
  --pos-card:         #151d38;
  --pos-border:       #1e293b;
  --pos-accent:       #f43f5e;
  --pos-success:      #10b981;
  --pos-warning:      #f59e0b;
  --pos-primary:      #3b82f6;
  --pos-text:         #f8fafc;
  --pos-text-muted:   #94a3b8;
  --pos-tile-bg:      #1e293b;
  --pos-tile-hover:   #334155;
  --pos-numpad-btn:   #0f172a;
  --pos-numpad-hover: #1e293b;
  --font-main:        'Outfit', system-ui, -apple-system, sans-serif;
  --min-touch:        48px;
  --touch-gap:        8px;

  /* Gradient Variables */
  --pos-gradient-1:   #151d38;
  --pos-gradient-2:   #080a14;

  /* Modal Variables */
  --pos-modal-bg:     #0a0f1d;
  --pos-modal-border: rgba(255, 255, 255, 0.12);

  /* PIN Card Variables */
  --pos-pin-overlay-bg: rgba(8, 10, 20, 0.85);
  --pos-pin-card-bg:    rgba(255, 255, 255, 0.04);
  --pos-pin-card-border: rgba(255, 255, 255, 0.09);
  --pos-pin-btn-bg:     rgba(255, 255, 255, 0.02);
  --pos-pin-btn-border: rgba(255, 255, 255, 0.07);

  /* Footer & Menu Card Variables */
  --pos-cart-footer-bg:         #090d14;
  --pos-menu-card-bg:           rgba(255, 255, 255, 0.02);
  --pos-menu-card-border:       rgba(255, 255, 255, 0.07);
  --pos-menu-card-hover-bg:     rgba(255, 255, 255, 0.06);
  --pos-menu-card-hover-border: rgba(255, 255, 255, 0.16);
  --pos-menu-info-border:       rgba(255, 255, 255, 0.08);
  --pos-newsale-bg:             #3a3a4a;
}

/* ── Light Mode Color Variable Overrides ── */
body.light-theme {
  --pos-bg:           #f8fafc; /* slate-50 */
  --pos-cart-bg:      #ffffff;
  --pos-controls-bg:  #f1f5f9; /* slate-100 */
  --pos-card:         #ffffff;
  --pos-border:       #cbd5e1; /* slate-300 */
  --pos-accent:       #e11d48; /* rose-600 */
  --pos-success:      #059669; /* emerald-600 */
  --pos-warning:      #d97706; /* amber-600 */
  --pos-primary:      #2563eb; /* blue-600 */
  --pos-text:         #0f172a; /* slate-900 */
  --pos-text-muted:   #64748b; /* slate-500 */
  --pos-tile-bg:      #ffffff;
  --pos-tile-hover:   #e2e8f0;
  --pos-numpad-btn:   #f8fafc;
  --pos-numpad-hover: #cbd5e1;
  
  --pos-gradient-1:   #f1f5f9;
  --pos-gradient-2:   #e2e8f0;
  
  --pos-modal-bg:     #ffffff;
  --pos-modal-border: rgba(15, 23, 42, 0.08);
  
  --pos-pin-overlay-bg: rgba(241, 245, 249, 0.85);
  --pos-pin-card-bg:    rgba(255, 255, 255, 0.95);
  --pos-pin-card-border: rgba(15, 23, 42, 0.1);
  --pos-pin-btn-bg:     rgba(15, 23, 42, 0.02);
  --pos-pin-btn-border: rgba(15, 23, 42, 0.08);

  /* Footer & Menu Card Variables */
  --pos-cart-footer-bg:         #f8fafc;
  --pos-menu-card-bg:           rgba(15, 23, 42, 0.03);
  --pos-menu-card-border:       rgba(15, 23, 42, 0.08);
  --pos-menu-card-hover-bg:     rgba(15, 23, 42, 0.06);
  --pos-menu-card-hover-border: rgba(15, 23, 42, 0.15);
  --pos-menu-info-border:       rgba(15, 23, 42, 0.1);
  --pos-newsale-bg:             #cbd5e1;
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; overflow: hidden; }

body.module-pos {
  font-family: var(--font-main);
  background: radial-gradient(circle at 50% 50%, var(--pos-gradient-1) 0%, var(--pos-gradient-2) 100%);
  color:       var(--pos-text);
  font-size:   20px;
  line-height: 1.4;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* ── App Shell ── */
#pos-app {
  display: flex;
  flex-direction: row;
  height: 100vh;
  width:  100vw;
  overflow: hidden;
}

/* ================================================================
   LANDSCAPE LAYOUT (default)
   Left = 60% Cart | Right = 40% Controls
   ================================================================ */
@media (orientation: landscape) {
  #pos-app { flex-direction: row; }

  /* ── Cart Panel (Left 40%) ── */
  #panel-cart {
    flex: 0 0 40%;
    max-width: 40%;
    display: flex;
    flex-direction: column;
    background: var(--pos-cart-bg);
    border-right: 1px solid var(--pos-border);
    overflow: hidden;
  }

  /* ── Controls Panel (Right 60%) ── */
  #panel-controls {
    flex: 0 0 60%;
    max-width: 60%;
    display: flex;
    flex-direction: column;
    background: var(--pos-controls-bg);
    overflow: hidden;
  }
}

/* ================================================================
   PORTRAIT LAYOUT (stacked vertically)
   ================================================================ */
@media (orientation: portrait) {
  #pos-app {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  #panel-controls {
    flex: 0 0 50%;
    height: 50%;
    order: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    background: var(--pos-controls-bg);
  }

  #panel-cart {
    flex: 0 0 50%;
    height: 50%;
    order: 2;
    display: flex;
    flex-direction: column;
    background: var(--pos-cart-bg);
    border-right: none;
    border-top: 1px solid var(--pos-border);
    overflow: hidden;
  }

  #cart-items {
    flex: 1 1 0;
    overflow-y: auto;
    max-height: calc(50vh - 160px);
  }

  #numpad-bar {
    min-height: 180px;
    flex-shrink: 0;
  }

  .numpad-btn {
    min-height: 44px;
  }
}

/* ── Header Bar ── */
#pos-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: var(--pos-cart-footer-bg);
  border-bottom: 1px solid var(--pos-border);
  min-height: 52px;
  gap: var(--touch-gap);
  flex-shrink: 0;
}

#pos-header .cashier-info {
  font-size: 16px;
  color: var(--pos-text-muted);
}

#pos-header .cashier-info strong { color: var(--pos-text); }

.header-clock {
  font-size: 16px;
  font-weight: 600;
  color: var(--pos-success);
  font-variant-numeric: tabular-nums;
}

.header-actions { display: flex; gap: var(--touch-gap); }

/* ── Cart Panel Structure ── */
#cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-bottom: 1px solid var(--pos-border);
  flex-shrink: 0;
  gap: var(--touch-gap);
}

#cart-items {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 8px;
}

/* Portrait: cart must scroll, not push numpad off screen */
@media (orientation: portrait) {
  #cart-items {
    overflow-y: auto;
    max-height: calc(30vh - 80px);
  }
}

/* Cart item row */
.cart-item {
  display: flex;
  align-items: center;
  gap: var(--touch-gap);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--pos-card);
  margin-bottom: 6px;
  cursor: pointer;
  transition: background 0.15s;
  min-height: var(--min-touch);
}

.cart-item:active { background: #253560; }
.cart-item.selected {
  background: var(--pos-tile-hover);
  border: 2px solid var(--pos-primary);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.4);
}

/* Generic hidden class utility */
.hidden { display: none !important; }

/* Cart Table Headers */
.cart-headers {
  display: flex;
  align-items: center;
  gap: var(--touch-gap);
  padding: 10px 16px 6px 16px;
  border-bottom: 1px solid var(--pos-border);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--pos-text-muted);
  letter-spacing: 0.5px;
}
.cart-headers .header-item.name {
  flex: 1;
}
.cart-headers .header-item.qty {
  width: 104px;
  text-align: center;
}
.cart-headers .header-item.price {
  min-width: 56px;
  text-align: right;
}
.cart-headers .header-item.total {
  min-width: 72px;
  text-align: right;
}
.cart-headers .header-item.action {
  min-width: var(--min-touch);
}

.cart-item-name {
  flex: 1;
  font-size: 18px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-qty {
  font-size: 18px;
  font-weight: 700;
  color: var(--pos-text);
  min-width: 32px;
  text-align: center;
  cursor: pointer;
  padding: 0 4px;
}

.cart-item-unit-price {
  font-size: 14px;
  color: var(--pos-text-muted);
  min-width: 56px;
  text-align: right;
}

.cart-promo-badge {
  display: inline-block;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  font-size: 11px;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
  margin-top: 3px;
  letter-spacing: 0.3px;
}

.cart-item-stepper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 104px;
  gap: 4px;
  background: var(--pos-bg);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  padding: 2px 4px;
}

.stepper-btn {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--pos-border);
  background: var(--pos-numpad-btn);
  color: var(--pos-text);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.stepper-btn:hover { background: var(--pos-numpad-hover); }
.stepper-btn.minus:hover { background: rgba(239, 68, 68, 0.4); }

.cart-item-price {
  font-size: 18px;
  font-weight: 600;
  min-width: 72px;
  text-align: right;
}

.cart-item-delete {
  min-width: var(--min-touch);
  min-height: var(--min-touch);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.3);
  border-radius: 8px;
  color: var(--pos-accent);
  font-size: 20px;
  cursor: pointer;
  transition: background 0.15s;
}

.cart-item-delete:active { background: rgba(233, 69, 96, 0.4); }

/* Cart totals / discount area */
#cart-totals {
  padding: 10px 12px;
  border-top: 1px solid var(--pos-border);
  flex-shrink: 0;
}

.totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 0;
  font-size: 18px;
}

.totals-row.discount { color: var(--pos-warning); }
.totals-row.tax      { color: var(--pos-text-muted); }

/* Fixed checkout footer */
#cart-footer {
  padding: 10px 12px;
  background: var(--pos-cart-footer-bg);
  border-top: 2px solid var(--pos-border);
  flex-shrink: 0;
}

.total-display {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.total-label { font-size: 22px; font-weight: 600; }
.total-amount {
  font-size: 32px;
  font-weight: 800;
  color: var(--pos-success);
  font-variant-numeric: tabular-nums;
}

/* Checkout button */
#btn-checkout {
  width: 100%;
  min-height: 60px;
  background: var(--pos-success);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 22px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

#btn-checkout:active { transform: scale(0.98); background: #0d8a4e; }
#btn-checkout:disabled { background: #3a3a3a; cursor: not-allowed; }

/* ── Controls Panel Structure ── */
#search-bar {
  padding: 8px;
  flex-shrink: 0;
  display: flex;
  gap: var(--touch-gap);
}

#search-input {
  flex: 1;
  min-height: var(--min-touch);
  padding: 8px 16px;
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  color: var(--pos-text);
  font-size: 20px;
  font-family: var(--font-main);
}

#search-input:focus {
  outline: none;
  border-color: var(--pos-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

/* Category tabs */
#category-tabs {
  display: flex;
  gap: 6px;
  padding: 0 8px 8px;
  overflow-x: auto;
  flex-shrink: 0;
  scrollbar-width: none;
}

#category-tabs::-webkit-scrollbar { display: none; }

.cat-tab {
  min-height: var(--min-touch);
  padding: 8px 16px;
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  color: var(--pos-text);
  font-size: 16px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.15s;
  flex-shrink: 0;
}

.cat-tab.active {
  background: var(--pos-primary);
  border-color: var(--pos-primary);
  font-weight: 600;
}

/* Product grid */
#product-grid {
  flex: 1 1 0;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  align-content: start;
}

.product-tile {
  position: relative;
  min-height: 135px;
  height: 135px;
  padding: 0;
  background: var(--pos-tile-bg, #1e293b);
  border: 2px solid var(--pos-border, #334155);
  border-radius: 12px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.12s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.product-tile:hover {
  border-color: var(--pos-primary, #3b82f6);
  box-shadow: 0 4px 14px rgba(0,0,0,0.4);
  transform: translateY(-2px);
}

.product-tile:active { transform: scale(0.97); }

.product-tile-img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.product-placeholder-box {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(15, 23, 42, 0.9));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 800;
  color: #60a5fa;
  z-index: 1;
}

.product-variant-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: var(--pos-accent, #6366f1);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  z-index: 3;
  box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.product-tile-info {
  position: relative;
  z-index: 2;
  width: 100%;
  background: linear-gradient(to top, rgba(9, 13, 20, 0.95) 0%, rgba(9, 13, 20, 0.85) 60%, rgba(9, 13, 20, 0) 100%);
  padding: 16px 8px 8px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}

.product-tile-name {
  font-size: 13px;
  font-weight: 600;
  color: #ffffff;
  line-height: 1.2;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

.product-tile-price {
  font-size: 14px;
  font-weight: 700;
  color: #10b981;
  text-shadow: 0 1px 2px rgba(0,0,0,0.8);
}

/* Scan flash animation */
@keyframes scanFlash {
  0%   { background: #0f9b58; }
  50%  { background: #1de789; }
  100% { background: var(--pos-tile-bg); }
}

@keyframes scanFlashDanger {
  0%   { background: #e94560; border-color: #e94560; }
  50%  { background: #ff2a4b; border-color: #ff2a4b; }
  100% { background: var(--pos-tile-bg); }
}

.product-tile.scan-flash { animation: scanFlash 0.4s ease; }
.product-tile.scan-flash-danger { animation: scanFlashDanger 0.5s ease; }

/* ── On-Screen Number Pad ── */
#numpad-bar {
  padding: 8px;
  flex-shrink: 0;
  border-top: 1px solid var(--pos-border);
}

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

.numpad-btn {
  min-height: var(--min-touch);
  background: var(--pos-numpad-btn);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  color: var(--pos-text);
  font-size: 20px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.12s;
  font-family: var(--font-main);
}

.numpad-btn:active    { background: var(--pos-numpad-hover); }
.numpad-btn.confirm   { background: var(--pos-success); color: white; }
.numpad-btn.clear     { background: var(--pos-accent); color: white; }
.numpad-btn.backspace { font-size: 22px; }

/* ================================================================
   MODALS (overlays)
   ================================================================ */
/* Fullscreen Checkout Screen */
.checkout-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: var(--pos-bg);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  font-family: var(--font-main);
}

.checkout-fullscreen-overlay.hidden { display: none !important; pointer-events: none !important; visibility: hidden !important; }

/* Header Navigation Bar */
.checkout-fullscreen-header {
  height: 64px;
  background: var(--pos-card);
  border-bottom: 1px solid var(--pos-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
}

.checkout-header-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.checkout-back-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--pos-border);
  background: var(--pos-tile-bg);
  color: var(--pos-text);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-back-btn:hover {
  background: var(--pos-border);
}

.checkout-title-group {
  display: flex;
  flex-direction: column;
}

.checkout-page-title {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--pos-text);
  margin: 0;
  line-height: 1.2;
}

.checkout-order-id-badge {
  font-size: 11px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.checkout-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Currency Selector Pill */
.checkout-currency-toggle {
  display: flex;
  background: var(--pos-tile-bg);
  border: 1px solid var(--pos-border);
  border-radius: 20px;
  padding: 4px;
  gap: 4px;
}

.curr-toggle-btn {
  border: none;
  background: transparent;
  padding: 8px 16px;
  border-radius: 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pos-text-muted);
  cursor: pointer;
  transition: all 0.2s ease;
}

.curr-toggle-btn.active {
  background: var(--pos-card);
  color: var(--pos-primary);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.checkout-close-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: var(--pos-tile-bg);
  color: var(--pos-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.checkout-close-btn:hover {
  background: #ef4444;
  color: #ffffff;
}

/* Fullscreen Layout Body */
.checkout-fullscreen-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 20px;
  padding: 20px 24px;
  overflow: hidden;
  box-sizing: border-box;
}

.checkout-left-area {
  display: flex;
  flex-direction: column;
  gap: 16px;
  overflow-y: auto;
}

/* Top 4 Metrics Summary Cards Row */
.checkout-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.co-metric-card {
  border-radius: 18px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.co-metric-card .card-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-bottom: 4px;
  opacity: 0.85;
}

.co-metric-card .card-value {
  font-size: 26px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.co-metric-card.paid {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
}

.co-metric-card.remaining {
  background: linear-gradient(135deg, #f43f5e, #e11d48);
  color: #ffffff;
}

.co-metric-card.tendered {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
}

.co-metric-card.change {
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  color: var(--pos-text);
}

/* Central Content Grid: Payment Methods + Keypad */
.checkout-main-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  flex: 1;
}

.co-card-box {
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
}

/* Payment Methods Grid */
.pm-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.pm-btn {
  border-radius: 16px;
  border: 1px solid var(--pos-border);
  background: var(--pos-tile-bg);
  padding: 16px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: var(--pos-text);
  cursor: pointer;
  min-height: 80px;
  transition: all 0.2s ease;
  line-height: 1.2;
}

.pm-btn:hover {
  border-color: var(--pos-primary);
  background: var(--pos-card);
}

.pm-btn.active {
  border: 2px solid #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.15);
}

[data-theme="dark"] .pm-btn.active {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
}

.pm-btn.placeholder {
  border: 1px dashed var(--pos-border);
  background: transparent;
  opacity: 0.4;
  cursor: default;
}

/* Touch Keypad Layout */
.co-keypad-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.co-keypad-layout {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 12px;
  flex: 1;
}

.co-quick-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.co-quick-btn {
  flex: 1;
  border-radius: 16px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #2563eb;
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  transition: all 0.15s ease;
}

.co-quick-btn:hover {
  background: #dbeafe;
  border-color: #93c5fd;
}

.co-quick-btn.set-total {
  background: #dbeafe;
  color: #1d4ed8;
  border-color: #93c5fd;
}

.co-num-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex: 1;
}

.co-num-btn {
  border-radius: 16px;
  border: 1px solid var(--pos-border);
  background: var(--pos-tile-bg);
  color: var(--pos-text);
  font-size: 24px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  transition: all 0.15s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.co-num-btn:hover {
  background: var(--pos-border);
  transform: translateY(-1px);
}

.co-num-btn.backspace {
  background: #fee2e2;
  color: #ef4444;
  border-color: #fca5a5;
  border-radius: 16px;
  font-size: 24px;
}

.co-num-btn.backspace:hover {
  background: #fca5a5;
  color: #b91c1c;
}

.co-num-btn.clear-btn {
  border-radius: 16px;
  background: #f1f5f9;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #475569;
  border: 1px solid #cbd5e1;
  min-height: 50px;
  margin-top: 4px;
}

.co-num-btn.clear-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* Large Pay Action Button */
.co-pay-btn {
  width: 100%;
  min-height: 56px;
  border-radius: 20px;
  border: none;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 0.5px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.co-pay-btn.disabled {
  background: #e2e8f0;
  color: #94a3b8;
  cursor: not-allowed;
}

.co-pay-btn.ready {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.35);
}

.co-pay-btn.ready:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.45);
}

/* Right Cart Summary Panel */
.checkout-cart-panel {
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: 24px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  overflow: hidden;
}

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

.co-cart-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.co-cart-title {
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--pos-text-muted);
}

.co-cart-badge {
  background: #dbeafe;
  color: #1d4ed8;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}

.co-add-product-btn {
  border: none;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 12px;
  border-radius: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.co-add-product-btn:hover {
  background: #dbeafe;
}

.co-cart-items-list {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.co-cart-item-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  background: var(--pos-tile-bg);
  border-radius: 14px;
  border: 1px solid var(--pos-border);
}

.co-cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.co-cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--pos-text);
}

.co-cart-item-meta {
  display: flex;
  gap: 4px;
}

.co-meta-pill {
  font-size: 10px;
  font-weight: 700;
  background: #dbeafe;
  color: #1d4ed8;
  padding: 1px 6px;
  border-radius: 6px;
}

.co-cart-totals-box {
  border-top: 1px solid var(--pos-border);
  padding-top: 12px;
}

.co-total-due-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: 8px;
}

.co-total-due-val {
  font-size: 28px;
  font-weight: 900;
  color: var(--pos-text);
  line-height: 1;
}

.co-total-due-sub {
  font-size: 14px;
  font-weight: 700;
  color: var(--pos-text-muted);
  margin-top: 2px;
}

@media (max-width: 1024px) {
  .checkout-fullscreen-body {
    grid-template-columns: 1fr;
    overflow-y: auto;
  }
  .checkout-cart-panel {
    display: none;
  }
  .checkout-metrics-row {
    grid-template-columns: repeat(2, 1fr);
  }
  .checkout-main-grid {
    grid-template-columns: 1fr;
  }
}

/* POS Modal Overlays */
.pos-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow: hidden;
}

.pos-modal-overlay.hidden { display: none; }

.pos-modal {
  background: var(--pos-modal-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--pos-modal-border);
  border-radius: 16px;
  padding: 24px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.7);
  animation: modalFadeIn 0.25s ease-out;
  box-sizing: border-box;
}

/* Custom sleek scrollbar for modal */
.pos-modal::-webkit-scrollbar {
  width: 6px;
}
.pos-modal::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
  border-radius: 4px;
}
.pos-modal::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 4px;
}
.pos-modal::-webkit-scrollbar-thumb:hover {
  background: rgba(148, 163, 184, 0.5);
}

#checkout-modal .pos-modal {
  max-width: 520px;
  max-height: 94vh;
  padding: 16px 20px;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pos-modal h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 12px;
  text-align: center;
}

/* PIN Pad Fullscreen Overlay with Blur */
#pin-overlay {
  position: fixed;
  inset: 0;
  background: var(--pos-pin-overlay-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

#pin-overlay.hidden { display: none; }

/* Centered PIN Card */
.pin-card {
  background: var(--pos-pin-card-bg);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--pos-pin-card-border);
  border-radius: 20px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.pin-card-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.pin-icon-wrapper {
  background: rgba(255, 255, 255, 0.03);
  color: var(--pos-primary);
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 4px;
}

.pin-title {
  font-size: 20px;
  font-weight: 700;
  color: #ffffff;
  margin: 0;
}

.pin-subtitle-msg {
  font-size: 13px;
  color: #94a3b8; /* slate-400 */
  margin: 0;
}

/* Dots Display Box */
.pin-dots-container {
  background: rgba(15, 23, 42, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05);
  padding: 16px 24px;
  border-radius: 12px;
  display: flex;
  justify-content: center;
  width: 100%;
}

.pin-dots {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.pin-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.25);
  background: transparent;
  transition: all 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Pop Animation on Filled */
@keyframes dotPop {
  0% { transform: scale(1); }
  50% { transform: scale(1.35); }
  100% { transform: scale(1); }
}

.pin-dot.filled {
  background: #ffffff !important;
  border-color: #ffffff !important;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.8) !important;
  animation: dotPop 0.18s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Error Field */
.pin-error {
  color: var(--pos-accent);
  font-size: 14px;
  font-weight: 600;
  min-height: 20px;
  text-align: center;
}

/* Interactive Numpad keys */
.pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
}

.pin-btn {
  min-height: 58px;
  background: var(--pos-pin-btn-bg);
  border: 1px solid var(--pos-pin-btn-border);
  border-radius: 12px;
  color: var(--pos-text);
  font-size: 22px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pin-btn:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.15);
}

.pin-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
}

.pin-btn:active {
  transform: scale(0.95);
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.25);
}

.pin-btn.clear-btn {
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  color: #94a3b8;
}

.pin-btn.back-btn {
  color: #94a3b8;
}

.pin-actions {
  margin-top: 8px;
  width: 100%;
}

.pin-actions .cancel-btn {
  width: 100%;
  min-height: 48px;
  border-radius: 12px;
  font-size: 15px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
}

.pin-actions .cancel-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

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

.shake {
  animation: shake 0.35s ease-in-out;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.loading-pulse {
  animation: pulse 1s infinite ease-in-out;
}

/* Cash received modal */
.smart-cash-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.smart-cash-btn {
  flex: 1 1 calc(50% - 4px);
  min-height: var(--min-touch);
  background: var(--pos-primary);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s;
}

.smart-cash-btn:active { background: #1558b0; }

.change-display {
  text-align: center;
  font-size: 28px;
  font-weight: 800;
  color: var(--pos-success);
  margin: 12px 0;
  font-variant-numeric: tabular-nums;
}

/* ================================================================
   TOAST NOTIFICATIONS
   ================================================================ */
#toast-container {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 340px;
}

.toast {
  padding: 14px 18px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 500;
  animation: toastSlide 0.3s ease;
  display: flex;
  align-items: center;
  gap: 10px;
}

@keyframes toastSlide {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}

.toast.success { background: var(--pos-success); color: white; }
.toast.warning { background: var(--pos-warning); color: #1a1a1a; }
.toast.error, .toast.danger   { background: var(--pos-accent); color: white; }
.toast.fade-out { opacity: 0; transition: opacity 0.3s; }

/* ================================================================
   COMMON BUTTONS
   ================================================================ */
.btn-pos {
  min-height: var(--min-touch);
  padding: 0 16px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: background 0.15s, transform 0.1s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-main);
  white-space: nowrap;
}

.btn-pos:active { transform: scale(0.97); }
.btn-pos:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
}

.btn-pos.primary  { background: var(--pos-primary); color: white; }
.btn-pos.danger   { background: var(--pos-accent); color: white; }
.btn-pos.success  { background: var(--pos-success); color: white; }
.btn-pos.warning  { background: var(--pos-warning); color: #1a1a1a; }
.btn-pos.neutral  { background: var(--pos-numpad-btn); color: var(--pos-text); border: 1px solid var(--pos-border); }
.btn-pos.new-sale { background: var(--pos-newsale-bg); color: var(--pos-text); border: 1px solid var(--pos-border); font-size: 16px; }

/* Spinner for loading states */
.btn-spinner {
  width: 20px; height: 20px;
  border: 3px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ================================================================
   LOGIN & PIN PAD STYLINGS (UI/UX Pro Max)
   ================================================================ */

/* Premium Radial Background for Login Shell */
#login-page {
  min-height: 100vh;
  background: radial-gradient(circle at 50% 50%, #151d38 0%, #080a14 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 32px 16px;
}

/* Frosted Glass Container */
.login-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  width: 100%;
  max-width: 520px;
  padding: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* Logo & Header Styling */
.login-card-header {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.logo-wrapper {
  background: linear-gradient(135deg, var(--pos-primary) 0%, #4d7cff 100%);
  color: white;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.35);
}

.login-logo {
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.5px;
  margin: 0;
}

.login-subtitle {
  font-size: 15px;
  color: #94a3b8; /* slate-400 */
  margin: 0;
}

/* Error Banner in Login */
.login-error-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(233, 69, 96, 0.15);
  border: 1px solid rgba(233, 69, 96, 0.3);
  color: var(--pos-accent);
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
}

/* Register input styling */
.register-input-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.register-input-wrap label {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1; /* slate-300 */
}

.register-input {
  width: 100%;
  min-height: 52px;
  padding: 8px 16px;
  background: var(--pos-tile-bg);
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  color: var(--pos-text);
  font-size: 20px;
  text-align: center;
  transition: all 0.2s ease;
  font-family: inherit;
}

.register-input:focus {
  outline: none;
  border-color: var(--pos-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  background: var(--pos-tile-hover);
}

/* Staff selection list */
.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  width: 100%;
}

.staff-btn {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  min-height: 100px;
}

/* Hover, Active, and Focus states */
.staff-btn:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
}

.staff-btn:focus {
  outline: none;
  border-color: var(--pos-primary);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

.staff-btn:active {
  transform: translateY(0);
  background: rgba(255, 255, 255, 0.04);
}

.staff-avatar-wrapper {
  background: rgba(255, 255, 255, 0.04);
  padding: 3px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.staff-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pos-primary) 0%, #1f51ff 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 800;
  color: #ffffff;
}

.staff-name {
  font-size: 16px;
  font-weight: 600;
}

.staff-tag-manager {
  font-size: 11px;
  font-weight: 700;
  color: #f59e0b; /* amber-500 */
  background: rgba(245, 158, 11, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

.staff-tag-cashier {
  font-size: 11px;
  font-weight: 700;
  color: #10b981; /* emerald-500 */
  background: rgba(16, 185, 129, 0.12);
  padding: 3px 8px;
  border-radius: 6px;
}

/* Empty cart state */
.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--pos-text-muted);
  font-size: 20px;
}

.cart-empty-icon { font-size: 48px; }

/* Holds page */
.hold-card {
  background: var(--pos-card);
  border: 1px solid var(--pos-border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.hold-card .hold-info { flex: 1; }
.hold-card .hold-label { font-size: 20px; font-weight: 600; }
.hold-card .hold-time { font-size: 15px; color: var(--pos-text-muted); }

/* ── Scrollbars ── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pos-border); border-radius: 2px; }

/* ================================================================
   MODAL BADGES
   ================================================================ */
.location-badge {
  background: #1e293b;
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #334155;
  font-weight: bold;
  color: #38bdf8;
}

.expiry-badge {
  padding: 6px 12px;
  border-radius: 12px;
  color: #fff;
  font-weight: bold;
  font-size: 13px;
}
.expiry-badge.status-expired { background: var(--pos-danger); }
.expiry-badge.status-critical { background: #ea580c; }
.expiry-badge.status-warning { background: #ca8a04; }
.expiry-badge.status-caution { background: var(--pos-success); }
.expiry-badge.status-ok { background: var(--pos-text-muted); }


.cart-promo-badge { display: inline-block; background: var(--pos-accent, #3b82f6); color: #fff; font-size: 11px; padding: 2px 6px; border-radius: 12px; margin-top: 4px; }
.wholesale-badge { display: inline-block; background: #6366f1; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: 4px; font-weight: bold; }

/* POS Menu Modal Custom Styling */
#tone-selectors div {
  transition: background 0.15s, border-color 0.15s;
  border: 1px solid transparent;
}
#tone-selectors div:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: var(--pos-border);
}
#tone-selectors label {
  transition: color 0.15s;
}
#tone-selectors label:hover {
  color: #ffffff;
}

/* Warning Modal Pulsing Red Border */
@keyframes pulse-red-border {
  0% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4), 0 0 0 2px rgba(239, 68, 68, 0.1); }
  50% { box-shadow: 0 0 22px rgba(239, 68, 68, 0.85), 0 0 0 4px rgba(239, 68, 68, 0.3); }
  100% { box-shadow: 0 0 10px rgba(239, 68, 68, 0.4), 0 0 0 2px rgba(239, 68, 68, 0.1); }
}

.pulsing-red-border {
  border: 2px solid #ef4444 !important;
  animation: pulse-red-border 2s infinite ease-in-out;
}

/* Category Navigation Scroll Buttons */
.cat-nav-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--pos-border);
  border-radius: 8px;
  color: var(--pos-text);
  transition: all 0.1s ease;
  flex-shrink: 0;
}

.cat-nav-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
}

.cat-nav-btn:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

/* POS Menu Action Grid Layout */
.menu-action-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}

/* Glassmorphic Grid Cards */
.menu-grid-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 96px;
  background: var(--pos-menu-card-bg);
  border: 1px solid var(--pos-menu-card-border);
  border-radius: 12px;
  color: var(--pos-text-muted);
  cursor: pointer;
  transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 12px;
}

.menu-grid-card .card-icon {
  width: 24px;
  height: 24px;
  color: var(--pos-primary);
  transition: color 0.15s;
}

.menu-grid-card .card-label {
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}

/* Hover and Press Animations */
.menu-grid-card:hover {
  background: var(--pos-menu-card-hover-bg);
  border-color: var(--pos-menu-card-hover-border);
  transform: translateY(-2px);
  color: var(--pos-text);
}

.menu-grid-card:hover .card-icon {
  color: var(--pos-primary);
}

.menu-grid-card:active {
  transform: translateY(1px) scale(0.96);
  background: rgba(255, 255, 255, 0.04);
}

/* Color Variant Overrides */
.menu-grid-card.warning .card-icon {
  color: var(--pos-warning, #eab308);
}

.menu-grid-card.danger .card-icon {
  color: var(--pos-danger, #ef4444);
}

.menu-grid-card.warning:hover .card-icon {
  color: var(--pos-warning, #eab308);
}

.menu-grid-card.danger:hover .card-icon {
  color: var(--pos-danger, #ef4444);
}

/* Info Placeholder Card */
.menu-grid-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  background: var(--pos-menu-card-bg);
  border: 1px dashed var(--pos-menu-info-border);
  border-radius: 12px;
  padding: 12px;
}

.menu-grid-info .info-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
  margin-bottom: 4px;
}

.menu-grid-info .info-text {
  font-size: 12px;
  font-weight: 700;
  color: #10b981;
}

.menu-grid-info .info-sub {
  font-size: 11px;
  color: var(--pos-text-muted);
  margin-top: 2px;
}

