/* ==========================================================================
   PLAYZONE PRO — Modern POS & Lounge Operations Theme
   High Contrast • Matte Slate Base • Crisp Commercial Typography
   ========================================================================== */

:root {
  color-scheme: dark;
  --bg-base: #090a0f;
  --bg-surface: #0f1118;
  --bg-card: #141721;
  --bg-card-hover: #1c202e;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-cyan: rgba(14, 165, 233, 0.35);
  --border-purple: rgba(99, 102, 241, 0.35);
  --border-green: rgba(16, 185, 129, 0.35);
  --border-red: rgba(239, 68, 68, 0.35);
  --border-amber: rgba(245, 158, 11, 0.35);
  
  --accent-cyan: #0ea5e9;
  --accent-primary: #2563eb;
  --accent-purple: #6366f1;
  --accent-green: #10b981;
  --accent-red: #ef4444;
  --accent-amber: #f59e0b;

  --text-main: #f8fafc;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --font-ar: 'Cairo', system-ui, -apple-system, sans-serif;
  --font-digital: 'Cairo', monospace;
  --font-code: 'Courier New', monospace;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Clean Tactical Elevation */
  --neu-flat: 0 4px 14px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --neu-flat-hover: 0 8px 20px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(14, 165, 233, 0.3);
  --neu-pressed: inset 0 2px 5px rgba(0, 0, 0, 0.6), inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  --neu-card: 0 8px 24px -4px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.06);
  --neu-sm: 0 2px 6px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  background-color: var(--bg-base);
  color: var(--text-main);
  font-family: var(--font-ar);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-base); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* ==========================================================================
   LAYOUT
   ========================================================================== */
.app-main-wrapper {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0.75rem;
}

/* ==========================================================================
   CASHIER HEADER
   ========================================================================== */
.cashier-header {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  margin-bottom: 1rem;
  box-shadow: var(--neu-card);
}

.cafe-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.cafe-logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.cafe-logo-wrap > i, .cafe-logo-wrap > svg {
  width: 38px;
  height: 38px;
  padding: 8px;
  background: #090e1c;
  border: 1px solid rgba(14, 165, 233, 0.35);
  border-radius: var(--radius-sm);
  box-shadow: 0 0 14px rgba(14, 165, 233, 0.25);
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.cafe-name {
  font-family: var(--font-digital);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #ffffff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
}

.cafe-branch {
  font-size: 0.72rem;
  color: var(--text-muted);
}
.cafe-branch strong { color: var(--accent-cyan); }

.header-action-btns {
  display: flex;
  gap: 0.5rem;
}

.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #fb7185;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
}
.btn-header-action:hover {
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}

.btn-header-action.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #ffffff;
}
.btn-header-action.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.25);
}

.btn-header-action i, .btn-header-action svg { width: 15px; height: 15px; }

/* Shift Telemetry Strip */
.shift-telemetry-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.65rem;
}

.shift-stat-box {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
}
.shift-stat-box.highlight-cash {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.45);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6), 0 0 12px rgba(16, 185, 129, 0.15);
}

.stat-lbl {
  font-size: 0.7rem;
  font-weight: 700;
  color: #cbd5e1;
  display: block;
  margin-bottom: 0.2rem;
}

.stat-val-row {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
}

.stat-num {
  font-family: var(--font-digital);
  font-size: 1.25rem;
  font-weight: 800;
  color: #ffffff;
}
.stat-sub {
  font-size: 0.68rem;
  color: var(--text-muted);
}

.text-cyan { color: var(--accent-cyan) !important; }
.text-purple { color: var(--accent-purple) !important; }
.text-green { color: var(--accent-green) !important; }
.text-amber { color: var(--accent-amber) !important; }
.text-danger { color: var(--accent-red) !important; }

/* ==========================================================================
   FILTER BAR + ADD DEVICE BUTTON
   ========================================================================== */
.filter-controls-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.category-chips-scroll {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  flex: 1;
}
.category-chips-scroll::-webkit-scrollbar { display: none; }

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.85rem;
  border-radius: var(--radius-full);
  background: #0e1526;
  border: 1px solid rgba(255, 255, 255, 0.09);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: #cbd5e1;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s;
  font-family: inherit;
}
.cat-chip i, .cat-chip svg { width: 13px; height: 13px; }
.cat-chip:hover, .cat-chip.active {
  background: rgba(14, 165, 233, 0.16);
  border-color: var(--accent-cyan);
  color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.3);
}

.btn-add-device {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--accent-green);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.2);
  color: #34d399;
  padding: 0.45rem 0.9rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  white-space: nowrap;
  flex-shrink: 0;
}
.btn-add-device:hover {
  background: var(--accent-green);
  color: #ffffff;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.5);
}
.btn-add-device:active {
  box-shadow: var(--neu-pressed);
}
.btn-add-device i, .btn-add-device svg { width: 16px; height: 16px; }

/* ==========================================================================
   CONSOLES GRID & CARDS
   ========================================================================== */
.consoles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

/* Empty State */
.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-dim);
}
.empty-state i, .empty-state svg {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.4;
}
.empty-state h3 {
  font-size: 1rem;
  margin-bottom: 0.3rem;
  color: var(--text-muted);
}
.empty-state p {
  font-size: 0.78rem;
}

/* Console Card */
.console-card {
  background: #111a2d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.console-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.65), 0 0 20px rgba(14, 165, 233, 0.2);
}

.console-card.in-game {
  border-color: rgba(14, 165, 233, 0.5);
  background: #111a2d;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 18px rgba(14, 165, 233, 0.2);
}

.console-card.overtime {
  border-color: var(--accent-red) !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 24px rgba(244, 63, 94, 0.45) !important;
  animation: overtimePulse 2s infinite;
}

@keyframes overtimePulse {
  0%, 100% { box-shadow: var(--neu-flat), 0 0 12px rgba(217, 119, 6, 0.15); }
  50% { box-shadow: var(--neu-flat), 0 0 22px rgba(217, 119, 6, 0.35); }
}

.console-card.available {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(16, 185, 129, 0.15);
}

.card-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.7rem;
  gap: 0.5rem;
}

.device-badge-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.device-icon-box {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.device-icon-box i, .device-icon-box svg { width: 17px; height: 17px; }

.device-title {
  font-size: 0.95rem;
  font-weight: 800;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.device-type-tag {
  font-size: 0.7rem;
  color: #94a3b8;
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-top-actions {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.btn-delete-device {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(244, 63, 94, 0.1);
  border: 1px solid rgba(244, 63, 94, 0.3);
  box-shadow: 0 2px 5px rgba(0,0,0,0.3);
  border-radius: 6px;
  color: var(--accent-red);
  cursor: pointer;
  transition: all 0.2s;
  opacity: 0.85;
}
.btn-delete-device:hover {
  opacity: 1;
  background: var(--accent-red);
  color: #ffffff;
  box-shadow: 0 0 10px rgba(244, 63, 94, 0.5);
}
.btn-delete-device i, .btn-delete-device svg { width: 13px; height: 13px; }

.status-pill {
  font-size: 0.65rem;
  font-weight: 800;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  white-space: nowrap;
}
.status-pill.free {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.45);
}
.status-pill.busy {
  background: rgba(14, 165, 233, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(14, 165, 233, 0.45);
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.65; }
}

/* Digital Timer */
.digital-timer-box {
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.9);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.5rem;
  text-align: center;
  margin-bottom: 0.75rem;
}

.digital-timer-box.overtime-timer {
  border-color: rgba(217, 119, 6, 0.4);
  background: rgba(245, 158, 11, 0.05);
}

.timer-numbers {
  font-family: var(--font-digital);
  font-size: 1.65rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  color: #64748b;
}
.in-game .timer-numbers {
  color: #00f0ff;
  text-shadow: 0 0 15px rgba(0, 240, 255, 0.7);
}
.overtime .timer-numbers {
  color: #f43f5e !important;
  text-shadow: 0 0 15px rgba(244, 63, 94, 0.8) !important;
}

.overtime-badge {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--accent-amber);
  margin-top: 0.25rem;
  animation: pulseBadge 1.5s infinite;
}

.timer-sub-details {
  display: flex;
  align-items: center;
  justify-content: space-around;
  margin-top: 0.35rem;
  font-size: 0.66rem;
  color: var(--text-muted);
  gap: 0.25rem;
}
.timer-sub-details strong { color: #ffffff; font-size: 0.72rem; }

/* Billing Summary */
.card-billing-summary {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, 0.6);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
  font-size: 0.75rem;
}
.card-billing-summary .bill-val {
  font-family: var(--font-digital);
  font-weight: 800;
  font-size: 1.05rem;
  color: #10b981;
  text-shadow: 0 0 8px rgba(16, 185, 129, 0.35);
}

/* Card Buttons */
.card-actions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.4rem;
  margin-top: auto;
}

.btn-card-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.55rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-card-primary i, .btn-card-primary svg { width: 15px; height: 15px; }

.btn-start-session {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.4);
}
.btn-start-session:hover {
  background: #059669;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}
.btn-start-session:active {
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
}

.btn-finish-checkout {
  background: linear-gradient(135deg, #f43f5e 0%, #e11d48 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(244, 63, 94, 0.4);
}
.btn-finish-checkout:hover {
  background: #be123c;
  box-shadow: 0 6px 20px rgba(244, 63, 94, 0.6);
  transform: translateY(-1px);
}
.btn-finish-checkout:active {
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
}

.card-secondary-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
}

.btn-card-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: #cbd5e1;
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.btn-card-secondary i, .btn-card-secondary svg { width: 13px; height: 13px; }
.btn-card-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #00f0ff;
  border-color: var(--accent-cyan);
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}
/* Extend Time Button — distinctive styling */
.btn-card-secondary.btn-extend {
  background: rgba(168, 85, 247, 0.12);
  border-color: rgba(168, 85, 247, 0.4);
  color: #c084fc;
}
.btn-card-secondary.btn-extend:hover {
  background: rgba(168, 85, 247, 0.25);
  color: #ffffff;
  box-shadow: 0 0 12px rgba(168, 85, 247, 0.4);
}

/* ==========================================================================
   MODALS & OVERLAYS
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: #101728;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.85), 0 0 30px rgba(14, 165, 233, 0.15);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  overflow: hidden;
  animation: modalSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: #ffffff;
}

.modal-header {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title-group {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.modal-title-group i, .modal-title-group svg { color: var(--accent-cyan); width: 20px; height: 20px; }
.modal-title-group h3 { font-size: 0.92rem; font-weight: 800; color: #1e293b; }

.modal-close-btn {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #cbd5e1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.modal-close-btn:hover {
  color: var(--accent-red);
  box-shadow: var(--neu-pressed);
  border-color: rgba(225, 29, 72, 0.3);
}
.modal-close-btn i, .modal-close-btn svg { width: 16px; height: 16px; }

.modal-body {
  padding: 1.25rem;
  background: #101728;
}

.modal-footer {
  padding: 0.9rem 1.25rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  background: #0a0f1d;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.btn-modal-action {
  width: 100%;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: none;
  font-family: inherit;
  transition: all 0.2s;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.btn-modal-action:active {
  box-shadow: inset 2px 2px 4px rgba(0,0,0,0.2);
}
.btn-modal-action i, .btn-modal-action svg { width: 16px; height: 16px; }

.btn-confirm-start {
  background: var(--accent-green);
  color: #fff;
}
.btn-confirm-start:hover {
  background: #059669;
}

.btn-confirm-checkout {
  background: var(--accent-cyan);
  color: #fff;
}
.btn-confirm-checkout:hover {
  background: #0284c7;
}

/* Play Mode Selector */
.play-mode-selector {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.4rem;
}

.btn-mode {
  flex: 1;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
  color: #94a3b8;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all 0.2s;
}
.btn-mode .mode-icon { display: block; margin-bottom: 0.2rem; color: var(--accent-cyan); }
.btn-mode .mode-icon i, .btn-mode .mode-icon svg { width: 18px; height: 18px; }
.btn-mode .mode-title { display: block; font-size: 0.7rem; font-weight: 700; margin-bottom: 0.15rem; color: #1e293b; }
.btn-mode .mode-price { font-size: 0.65rem; color: var(--accent-green); font-weight: 800; }

.btn-mode.active {
  background: rgba(14, 165, 233, 0.18);
  border-color: var(--accent-cyan);
  color: #00f0ff;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.35);
}
.btn-mode.active .mode-title { color: var(--accent-cyan); }

.time-system-selector {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.radio-label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  cursor: pointer;
  color: #1e293b;
  font-weight: 600;
}

/* Form Groups */
.form-group {
  margin-bottom: 0.85rem;
}
.form-group label {
  display: block;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
}
.form-group input, 
.form-group select, 
.form-group textarea {
  width: 100%;
  background: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.85rem;
}

.form-group select {
  width: 100%;
  background-color: #080d1a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: var(--radius-sm);
  padding: 0.6rem 0.85rem;
  color: #ffffff !important;
  font-family: inherit;
  font-size: 0.85rem;
}

.form-group select option {
  background-color: #0e1628;
  color: #ffffff;
}

.form-group input:focus, 
.form-group select:focus, 
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent-cyan) !important;
}

/* ==========================================================================
   EXTEND TIME MODAL — SPECIAL STYLING
   ========================================================================== */
.extend-info-box {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.9rem;
}

.extend-detail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.3rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid rgba(203, 206, 209, 0.4);
  color: #1e293b;
}
.extend-detail:last-child { border-bottom: none; margin-bottom: 0; }

.extend-options-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.4rem;
}

.btn-extend-option {
  padding: 0.65rem 0.85rem;
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-extend-option .extend-val {
  display: block;
  font-family: var(--font-digital);
  font-size: 1.1rem;
  font-weight: 900;
  color: #1e293b;
}
.btn-extend-option .extend-unit {
  display: block;
  font-size: 0.65rem;
  color: var(--text-dim);
}

.btn-extend-option.active {
  background: rgba(168, 85, 247, 0.2);
  border-color: var(--accent-purple);
  color: #e9d5ff;
  box-shadow: 0 0 14px rgba(168, 85, 247, 0.35);
}
.btn-extend-option.active .extend-val { color: var(--accent-purple); }
.btn-extend-option:hover {
  border-color: var(--accent-purple);
}

/* ==========================================================================
   DELETE DEVICE MODAL
   ========================================================================== */
.delete-confirm-box {
  text-align: center;
  padding: 0.5rem;
}
.delete-warn-icon {
  width: 40px !important;
  height: 40px !important;
  color: var(--accent-amber);
  margin-bottom: 0.5rem;
}
.delete-confirm-box p {
  font-size: 0.9rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: #1e293b;
}
.delete-hint {
  font-size: 0.72rem;
  color: var(--text-dim);
}

.delete-footer {
  display: flex !important;
  gap: 0.5rem;
}
.delete-footer .btn-modal-action { flex: 1; }

.btn-cancel-delete {
  background: rgba(255, 255, 255, 0.06);
  color: #cbd5e1;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  padding: 0.6rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-cancel-delete:hover {
  box-shadow: var(--neu-pressed);
}
.btn-confirm-delete {
  background: var(--accent-red);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
}
.btn-confirm-delete:hover {
  background: #be123c;
}

/* ==========================================================================
   CANTEEN ITEMS GRID
   ========================================================================== */
.canteen-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.canteen-card-btn {
  background: #0e1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  transition: all 0.2s;
  color: #ffffff;
}
.canteen-card-btn:hover {
  box-shadow: var(--neu-flat-hover);
  border-color: var(--accent-purple);
  transform: translateY(-2px);
}
.canteen-card-btn i, .canteen-card-btn svg { width: 18px; height: 18px; }
.canteen-item-title { font-size: 0.72rem; font-weight: 700; color: #1e293b; }
.canteen-item-price { font-size: 0.68rem; color: var(--accent-green); font-weight: 800; }

.current-device-orders-box {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 0.75rem;
}
.current-device-orders-box h4 {
  font-size: 0.72rem;
  color: var(--text-dim);
  margin-bottom: 0.4rem;
}
.orders-list-summary {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  max-height: 120px;
  overflow-y: auto;
}
.order-pill-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
  padding: 0.35rem 0.55rem;
  background: #090e1c;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

/* ==========================================================================
   INVOICE PAPER
   ========================================================================== */
.invoice-paper {
  background: #ffffff;
  color: #0f172a;
  border-radius: var(--radius-sm);
  padding: 1.1rem;
  font-family: inherit;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}
.invoice-top-brand { text-align: center; margin-bottom: 0.6rem; }
.inv-logo {
  font-family: var(--font-digital);
  font-size: 0.7rem;
  font-weight: 900;
  color: #0284c7;
  letter-spacing: 0.1em;
}
.invoice-top-brand h4 { font-size: 1rem; font-weight: 900; }
.inv-date { font-size: 0.68rem; color: #64748b; }

.inv-divider {
  height: 1px;
  background: #e2e8f0;
  border-bottom: 1px dashed #cbd5e1;
  margin: 0.65rem 0;
}

.inv-details-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.76rem;
  margin-bottom: 0.3rem;
}

.inv-total-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.9rem;
  font-weight: 800;
}
.inv-grand-total {
  font-size: 1.2rem;
  color: #0284c7;
  font-family: var(--font-digital);
}

.invoice-actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.4rem;
  margin-top: 0.85rem;
}
.btn-inv-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-radius: var(--radius-sm);
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.btn-inv-action i, .btn-inv-action svg { width: 14px; height: 14px; }

/* ==========================================================================
   SHIFT HANDOVER BOX
   ========================================================================== */
.shift-audit-box {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}
.audit-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  margin-bottom: 0.35rem;
  color: var(--text-main);
}
.audit-row.total-expected {
  padding-top: 0.5rem;
  margin-top: 0.5rem;
  border-top: 1px solid rgba(203, 206, 209, 0.7);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--accent-cyan);
}

/* ==========================================================================
   CANTEEN PRICE MANAGER & MARKET AUTO-SYNC STYLES
   ========================================================================== */
.modal-canteen-manager-card {
  max-width: 520px;
}

.btn-header-action.btn-canteen-mgr {
  background: rgba(168, 85, 247, 0.12);
  border: 1px solid rgba(168, 85, 247, 0.4);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  color: #c084fc;
}
.btn-header-action.btn-canteen-mgr:hover {
  box-shadow: var(--neu-pressed);
  border-color: var(--accent-purple);
}

.canteen-manage-shortcut {
  margin-top: 0.75rem;
  text-align: center;
}
.btn-link-mgr {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: inherit;
  padding: 0.3rem 0.6rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}
.btn-link-mgr:hover {
  background: rgba(2, 132, 199, 0.1);
}
.btn-link-mgr i, .btn-link-mgr svg { width: 14px; height: 14px; }

/* Market Sync Box */
.market-sync-box {
  background: #090e1c;
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}

.market-sync-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.sync-icon-wrap {
  width: 36px;
  height: 36px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.4);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-cyan);
  flex-shrink: 0;
}
.sync-icon-wrap i, .sync-icon-wrap svg { width: 18px; height: 18px; }

.sync-title {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
}
.sync-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  display: block;
}

.sync-actions-row {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.btn-sync-market {
  background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
  border: none;
  color: #ffffff;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.btn-sync-market:hover {
  box-shadow: var(--neu-pressed);
  color: #0369a1;
}
.btn-sync-market i, .btn-sync-market svg { width: 15px; height: 15px; }

.quick-adjust-group {
  display: flex;
  gap: 0.35rem;
}

.btn-quick-adjust {
  flex: 1;
  padding: 0.4rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border-radius: 4px;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-quick-adjust:hover {
  box-shadow: var(--neu-pressed);
}
.btn-quick-adjust.btn-reset {
  color: var(--text-muted);
}

/* Section Title */
.canteen-mgr-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}
.canteen-mgr-section-title .items-count {
  color: var(--accent-cyan);
  font-family: var(--font-digital);
  font-size: 0.78rem;
}

/* Canteen Manager List */
.canteen-manager-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 250px;
  overflow-y: auto;
  margin-bottom: 1rem;
  padding-right: 2px;
}

.canteen-mgr-row {
  background: #0e1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.9rem;
  margin-bottom: 0.5rem;
}

.canteen-mgr-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.mgr-item-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  flex: 1;
}

.mgr-item-icon {
  width: 32px;
  height: 32px;
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent-amber);
  flex-shrink: 0;
}
.mgr-item-icon i, .mgr-item-icon svg { width: 16px; height: 16px; }

.mgr-item-name {
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mgr-item-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 0.1rem;
}

.market-badge {
  display: inline-block;
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.62rem;
  font-weight: 700;
}
.market-badge.synced {
  background: rgba(16, 185, 129, 0.15);
  color: var(--accent-green);
  border: 1px solid rgba(16, 185, 129, 0.3);
}
.market-badge.diff {
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

.mgr-current-price-badge {
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  color: #34d399;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 4px;
}

.canteen-mgr-row-bottom {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0.45rem;
}

.mgr-step-btns-group {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.btn-step-price {
  width: 26px;
  height: 26px;
  background: #141f36;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #ffffff;
  font-weight: 800;
  cursor: pointer;
}
.btn-step-price:hover {
  box-shadow: var(--neu-pressed);
  color: var(--accent-cyan);
}

.price-input-wrap {
  position: relative;
  width: 65px;
}
.mgr-price-input {
  width: 55px;
  text-align: center;
  background: #050811 !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  border-radius: 4px;
  color: #00f0ff !important;
  font-family: var(--font-digital);
  font-weight: 800;
  font-size: 0.88rem;
}
.mgr-price-input::-webkit-outer-spin-button,
.mgr-price-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.btn-delete-canteen-item {
  width: 26px;
  height: 26px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.35);
  border-radius: 4px;
  color: var(--accent-red);
  cursor: pointer;
}
.btn-delete-canteen-item:hover {
  box-shadow: var(--neu-pressed);
  background: rgba(225, 29, 72, 0.1);
}
.btn-delete-canteen-item i, .btn-delete-canteen-item svg { width: 12px; height: 12px; }

/* Add Canteen Item Box */
.add-canteen-item-box {
  background: #090e1c;
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm);
  padding: 0.85rem;
  margin-top: 0.85rem;
}
.add-item-form-row {
  display: flex;
  gap: 0.4rem;
}
.add-item-form-row input[type="text"] { flex: 2; font-size: 0.75rem; padding: 0.45rem 0.6rem; }
.add-item-form-row input[type="number"] { width: 75px; font-size: 0.75rem; padding: 0.45rem 0.5rem; text-align: center; }

.btn-add-canteen-item {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border: none;
  color: #ffffff;
  font-weight: 800;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}
.btn-add-canteen-item:hover {
  box-shadow: var(--neu-pressed);
  color: #059669;
}
.btn-add-canteen-item i, .btn-add-canteen-item svg { width: 14px; height: 14px; }

/* ==========================================================================
   RESPONSIVE — MOBILE FIRST
   ========================================================================== */
@media (max-width: 640px) {
  .app-main-wrapper { padding: 0.5rem; }
  
  .consoles-grid { grid-template-columns: 1fr; }
  
  .cafe-brand-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .header-action-btns {
    width: 100%;
    justify-content: stretch;
  }
  .header-action-btns .btn-header-action { flex: 1; justify-content: center; }
  
  .shift-telemetry-row {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .play-mode-selector { grid-template-columns: 1fr; }
  
  .cafe-name { font-size: 0.95rem; }
  
  .filter-controls-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
  }
  
  .btn-add-device { width: 100%; justify-content: center; }
  
  .extend-options-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .shift-telemetry-row { grid-template-columns: 1fr; }
  .stat-num { font-size: 1rem; }
  .timer-numbers { font-size: 1.3rem; }
}

/* ==========================================================================
   SAAS SUBSCRIPTION BANNERS & FULLSCREEN LOCK
   ========================================================================== */
.subscription-warning-banner {
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.2), rgba(249, 115, 22, 0.2));
  border: 1px solid rgba(234, 179, 8, 0.5);
  color: #fef08a;
  padding: 0.6rem 1rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.82rem;
  font-weight: 700;
  animation: pulseWarning 2s infinite ease-in-out;
}

@keyframes pulseWarning {
  0%, 100% { border-color: rgba(234, 179, 8, 0.4); }
  50% { border-color: rgba(234, 179, 8, 0.9); }
}

.subscription-expired-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(235, 240, 247, 0.94);
  backdrop-filter: blur(16px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.expired-lock-card {
  background: #111a2d;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(244, 63, 94, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.25rem 1.85rem;
  text-align: center;
  max-width: 440px;
  width: 100%;
  color: #ffffff;
}

.expired-lock-icon {
  width: 60px;
  height: 60px;
  background: rgba(244, 63, 94, 0.12);
  border: 1px solid rgba(244, 63, 94, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem auto;
  color: var(--accent-red);
  box-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
}

.expired-lock-icon svg { width: 36px; height: 36px; }

.expired-lock-title {
  font-family: var(--font-digital);
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.expired-lock-desc {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.25rem;
}

.expired-price-tag {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  margin: 1.25rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* User & Role Top Bar */
.user-role-bar {
  background: #0e1526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.85rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.user-info-badge {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.role-pill {
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
}
.role-pill.super_admin { background: rgba(124, 58, 237, 0.15); color: var(--accent-purple); border: 1px solid var(--accent-purple); }
.role-pill.owner { background: rgba(2, 132, 199, 0.15); color: var(--accent-cyan); border: 1px solid var(--accent-cyan); }
.role-pill.cashier { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); border: 1px solid var(--accent-green); }

.role-actions-group {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-role-nav {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-role-nav:hover { box-shadow: var(--neu-pressed); }
.btn-role-nav.active { box-shadow: var(--neu-pressed); border-color: var(--accent-cyan); color: var(--accent-cyan); }

.btn-switch-shift-top {
  background: #090e1c !important;
  border: 1px solid rgba(14, 165, 233, 0.35) !important;
  color: var(--accent-cyan) !important;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.btn-switch-shift-top:hover {
  box-shadow: var(--neu-pressed) !important;
}

.btn-quick-shift-inline {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: var(--accent-cyan);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-quick-shift-inline:hover {
  box-shadow: var(--neu-pressed);
}
.shift-worker-card:hover {
  border-color: var(--accent-cyan) !important;
  transform: translateY(-1px);
}
.user-info-badge:hover {
  opacity: 0.9;
}

/* Owner Dashboard & Tabs */
.modal-owner-card {
  max-width: 860px;
  width: 95%;
  max-height: 90vh;
}

.dashboard-nav-tabs {
  display: flex;
  gap: 0.4rem;
  border-bottom: 1px solid rgba(203, 206, 209, 0.7);
  padding-bottom: 0.5rem;
  margin-bottom: 1rem;
  overflow-x: auto;
}

.btn-dash-tab {
  padding: 0.55rem 1rem;
  background: #0e1526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-dash-tab:hover {
  box-shadow: var(--neu-pressed);
  color: var(--text-main);
}
.btn-dash-tab.active {
  box-shadow: var(--neu-pressed);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.dash-tab-content { display: none; }
.dash-tab-content.active { display: block; }

/* Financial Metrics Grid */
.financial-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
@media (max-width: 600px) {
  .financial-metrics-grid { grid-template-columns: repeat(2, 1fr); }
}

.fin-metric-card {
  background: #101728;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.fin-metric-title { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 0.25rem; }
.fin-metric-val { font-family: var(--font-digital); font-size: 1.2rem; font-weight: 900; }

/* Sales Ledger Styles */
.sales-filter-btn {
  padding: 0.4rem 0.85rem;
  background: #0e1526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
}
.sales-filter-btn:hover {
  box-shadow: var(--neu-pressed);
  color: var(--text-main);
}
.sales-filter-btn.active {
  box-shadow: var(--neu-pressed);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}
.badge-sale-canteen {
  background: rgba(217, 119, 6, 0.15);
  color: var(--accent-amber);
  border: 1px solid rgba(217, 119, 6, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.badge-sale-time {
  background: rgba(124, 58, 237, 0.15);
  color: var(--accent-purple);
  border: 1px solid rgba(124, 58, 237, 0.35);
  padding: 2px 7px;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

/* Table styles */
.data-table-wrap {
  background: #0e1526;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  text-align: right;
}
.data-table th {
  background: #090e1c;
  color: #cbd5e1;
  padding: 0.75rem 0.85rem;
  font-size: 0.76rem;
  font-weight: 700;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}
.data-table td {
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 0.82rem;
  color: #ffffff;
}
.data-table tr:hover td { background: rgba(255, 255, 255, 0.5); }

.badge-stock {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 800;
}
.badge-stock.ok { background: rgba(16, 185, 129, 0.15); color: var(--accent-green); }
.badge-stock.low { background: rgba(225, 29, 72, 0.15); color: var(--accent-red); animation: pulseWarning 2s infinite ease-in-out; }

.btn-table-action {
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.35);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  color: var(--accent-cyan);
  padding: 0.35rem 0.65rem;
  border-radius: 4px;
  font-size: 0.74rem;
  font-weight: 700;
  cursor: pointer;
}
.btn-table-action:hover { box-shadow: var(--neu-pressed); }

/* ==========================================================================
   MOBILE RESPONSIVENESS (390px - 768px)
   ========================================================================== */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }
  .app-main-wrapper {
    padding: 0.4rem;
    max-width: 100%;
    overflow-x: hidden;
  }
  .user-role-bar {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .user-info-badge {
    justify-content: space-between;
  }
  .role-actions-group {
    display: flex;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 0.35rem;
  }
  .cashier-header {
    padding: 0.75rem;
  }
  .cafe-brand-row {
    flex-direction: column;
    align-items: stretch;
    gap: 0.6rem;
  }
  .header-action-btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }
  .shift-telemetry-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
  }
  .filter-controls-container {
    flex-direction: column;
    align-items: stretch;
    gap: 0.5rem;
  }
  .btn-add-device {
    width: 100%;
    justify-content: center;
  }
  .consoles-grid {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }
  .modal-card {
    max-width: 96%;
    padding: 0.75rem;
  }
  .modal-owner-card {
    width: 98%;
    padding: 0.6rem;
  }
}

/* ──────────────────────────────────────────────────────────────
   AUTHENTICATION VIEW — Modern Commercial SaaS Architecture
   ────────────────────────────────────────────────────────────── */
.auth-landing-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background-color: #090a0f;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 32px 32px;
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow-y: auto;
  font-family: 'Cairo', 'Tajawal', sans-serif;
}

.auth-landing-view.neumorphic-theme,
.auth-landing-view.reel-blue-theme {
  background-color: #090a0f !important;
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px) !important;
  background-size: 32px 32px !important;
}

.auth-card,
.neumorphic-circle-card {
  width: 100% !important;
  max-width: 410px !important;
  height: auto !important;
  min-height: auto !important;
  aspect-ratio: auto !important;
  border-radius: 12px !important;
  background: #111319 !important;
  border: 1px solid #1e222d !important;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04) !important;
  padding: 2.25rem 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  box-sizing: border-box !important;
  animation: none !important;
}

.neumorphic-circle-card::before {
  display: none !important;
}

.auth-header,
.neumorphic-header {
  text-align: center;
  margin-bottom: 1.5rem;
  width: 100%;
}

.auth-logo-badge,
.neumorphic-logo-icon {
  width: 46px;
  height: 46px;
  background: #181b24;
  border: 1px solid #282d3c;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3b82f6;
  margin-bottom: 0.75rem;
  box-shadow: none !important;
}

.auth-logo-badge i, .auth-logo-badge svg,
.neumorphic-logo-icon i, .neumorphic-logo-icon svg {
  width: 22px;
  height: 22px;
}

.auth-title,
.neumorphic-title {
  font-family: 'Cairo', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: #f8fafc;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.2px;
  text-shadow: none !important;
}

.auth-subtitle,
.neumorphic-subtitle {
  font-size: 0.82rem;
  color: #64748b;
  margin: 0;
  font-weight: 500;
}

.auth-form,
.neumorphic-form {
  width: 100%;
  max-width: 100% !important;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  width: 100%;
}

.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #94a3b8;
}

.auth-input-wrap,
.neumorphic-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

.auth-input-wrap i,
.auth-input-icon,
.neumorphic-input-icon {
  position: absolute;
  right: 12px;
  color: #64748b;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-input-wrap input,
.neumorphic-input-wrap input {
  width: 100% !important;
  height: 42px !important;
  background: #090a0f !important;
  border: 1px solid #232733 !important;
  outline: none !important;
  border-radius: 8px !important;
  padding: 0 38px 0 38px !important;
  text-align: right !important;
  direction: rtl !important;
  color: #f8fafc !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  box-sizing: border-box !important;
  transition: border-color 0.15s ease, box-shadow 0.15s ease !important;
  box-shadow: none !important;
}

.auth-input-wrap input:focus,
.neumorphic-input-wrap input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

.auth-toggle-pass,
.neumorphic-toggle-pass {
  position: absolute;
  left: 10px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  z-index: 2;
  transition: color 0.15s;
}

.auth-toggle-pass:hover,
.neumorphic-toggle-pass:hover {
  color: #94a3b8;
}

.auth-actions-row,
.neumorphic-controls-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
  font-size: 0.8rem;
  margin: 0;
  padding: 0;
}

.auth-forgot-link,
.neumorphic-forgot-link {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s;
}

.auth-forgot-link:hover,
.neumorphic-forgot-link:hover {
  color: #3b82f6;
  text-decoration: underline;
}

.btn-auth-submit,
.neumorphic-btn-submit {
  width: 100% !important;
  max-width: 100% !important;
  height: 42px !important;
  margin-top: 0.25rem !important;
  background: #2563eb !important;
  border: 1px solid #1d4ed8 !important;
  border-radius: 8px !important;
  color: #ffffff !important;
  font-family: inherit !important;
  font-size: 0.9rem !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  padding: 0 1rem !important;
  box-shadow: none !important;
  transition: background 0.15s ease, transform 0.05s ease !important;
}

.btn-auth-submit:hover,
.neumorphic-btn-submit:hover {
  background: #1d4ed8 !important;
  box-shadow: none !important;
  transform: none !important;
}

.btn-auth-submit:active,
.neumorphic-btn-submit:active {
  transform: scale(0.99) !important;
  box-shadow: none !important;
}

.neumorphic-red-link {
  color: #00f0ff;
  font-weight: 800;
  text-decoration: none;
  margin-right: 4px;
  transition: color 0.2s;
}

.neumorphic-red-link:hover {
  color: #38bdf8;
  text-decoration: underline;
}

.neumorphic-notice-box {
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: #cbd5e1;
  line-height: 1.4;
  text-align: right;
}

/* Mobile Responsiveness */
@media (max-width: 580px) {
  .neumorphic-circle-card {
    width: 90vw !important;
    height: 90vw !important;
    min-width: 90vw !important;
    min-height: 90vw !important;
    max-width: 90vw !important;
    max-height: 90vw !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    padding: 1.5rem !important;
  }

  .neumorphic-form {
    max-width: 78% !important;
    gap: 0.65rem !important;
  }

  .neumorphic-input-wrap input {
    height: 42px !important;
    font-size: 0.85rem !important;
    padding: 0 40px 0 40px !important;
  }

  .neumorphic-btn-submit {
    width: 190px !important;
    height: 36px !important;
    font-size: 0.74rem !important;
  }

  .neumorphic-title {
    font-size: 1.6rem !important;
  }
}

.trial-promo-banner {
  background: rgba(34, 197, 94, 0.12);
  border: 1px solid var(--accent-green);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.85rem;
  font-size: 0.78rem;
  color: #86efac;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  line-height: 1.4;
}

.auth-dev-accordion {
  margin-top: 1rem;
  border-top: 1px dashed var(--border-subtle);
  padding-top: 0.75rem;
}

.auth-dev-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
  cursor: pointer;
  user-select: none;
  padding: 0.3rem 0;
}

.auth-dev-toggle:hover {
  color: var(--accent-cyan);
}

.auth-dev-content {
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.dev-acc-row {
  background: #0e1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dev-acc-row:hover {
  box-shadow: var(--neu-pressed);
  border-color: var(--accent-cyan);
}

.dev-acc-row code {
  color: var(--accent-cyan);
  font-family: var(--font-code);
}

/* ──────────────────────────────────────────────────────────────
   EMPTY STATES (Zero Fake Data)
   ────────────────────────────────────────────────────────────── */
.empty-state-card {
  background: #0e1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
}

.empty-state-card i {
  width: 48px;
  height: 48px;
  color: var(--text-dim);
  opacity: 0.6;
}

.empty-state-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.empty-state-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  max-width: 380px;
}

/* ──────────────────────────────────────────────────────────────
   CARTON ENTRY & LIVE CALCULATION BOX
   ────────────────────────────────────────────────────────────── */
.carton-calc-preview {
  background: #090e1c;
  border: 1px solid rgba(14, 165, 233, 0.25);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  margin: 0.75rem 0;
}

.carton-calc-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.carton-calc-label {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.carton-calc-val {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent-cyan);
  font-family: var(--font-digital);
}

/* ──────────────────────────────────────────────────────────────
   NOTIFICATIONS BADGE & ITEMS
   ────────────────────────────────────────────────────────────── */
.btn-notif-wrap {
  position: relative;
}

.notif-badge-pill {
  position: absolute;
  top: -4px;
  left: -4px;
  background: var(--accent-red);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  border-radius: 999px;
  padding: 1px 5px;
  min-width: 16px;
  text-align: center;
  box-shadow: 0 0 8px rgba(225, 29, 72, 0.4);
}

.notif-item-card {
  background: #0e1628;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.55rem;
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.notif-item-card.unread {
  border-color: var(--accent-cyan);
  box-shadow: var(--neu-flat), 0 0 10px rgba(2, 132, 199, 0.15);
}

.notif-item-card.notif-urgent {
  background: rgba(244, 63, 94, 0.08);
  border-color: rgba(244, 63, 94, 0.4);
}

.notif-item-card.notif-warning {
  background: rgba(245, 158, 11, 0.08);
  border-color: rgba(245, 158, 11, 0.4);
}

.notif-item-icon {
  width: 34px;
  height: 34px;
  background: #090e1c;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.notif-item-content {
  flex: 1;
}

.notif-item-title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 2px;
}

.notif-item-desc {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.notif-item-time {
  font-size: 0.68rem;
  color: var(--text-dim);
  margin-top: 4px;
}




/* Eye toggle button for client portal */
.btn-reel-toggle-password {
  position: absolute !important;
  left: 14px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  z-index: 50 !important;
  pointer-events: auto !important;
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 6px !important;
  border-radius: 50% !important;
  transition: all 0.2s ease !important;
  outline: none !important;
}
.btn-reel-toggle-password:hover {
  color: #0066ff !important;
  background: rgba(0, 102, 255, 0.08) !important;
}

/* ==========================================================================
   HIGH-END COMMERCIAL SAAS AUTH VIEW & CARD
   ========================================================================== */
.auth-landing-view {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-base);
  position: fixed;
  inset: 0;
  z-index: 99999;
  overflow-y: auto;
  padding: 1.5rem;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: #111319;
  border: 1px solid #1e222d;
  border-radius: 12px;
  padding: 2.25rem 2rem;
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}
.auth-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.75rem;
}
.auth-logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  background: #161a24;
  border: 1px solid #23293a;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2563eb;
  margin-bottom: 1rem;
}
.auth-logo-badge i, .auth-logo-badge svg {
  width: 26px;
  height: 26px;
}
.auth-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #f8fafc;
  margin: 0 0 0.35rem 0;
  font-family: inherit;
}
.auth-subtitle {
  font-size: 0.85rem;
  color: #94a3b8;
  margin: 0;
  line-height: 1.4;
}
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  width: 100%;
}
.auth-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  text-align: right;
}
.auth-field label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #cbd5e1;
}
.auth-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.auth-input-wrap > i, .auth-input-wrap > svg:not(.auth-toggle-svg) {
  position: absolute;
  right: 0.9rem;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}
.auth-input-wrap input {
  width: 100%;
  height: 42px;
  background: #0b0d13;
  border: 1px solid #212634;
  border-radius: 8px;
  color: #f8fafc;
  font-size: 0.9rem;
  padding: 0 2.5rem 0 2.5rem;
  font-family: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.auth-input-wrap input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.auth-input-wrap input::placeholder {
  color: #475569;
}
.auth-toggle-pass {
  position: absolute;
  left: 0.75rem;
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  height: 100%;
}
.auth-toggle-pass:hover {
  color: #cbd5e1;
}
.auth-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: -0.25rem;
}
.auth-forgot-link {
  font-size: 0.78rem;
  color: #94a3b8;
  text-decoration: none;
  transition: color 0.15s ease;
}
.auth-forgot-link:hover {
  color: #60a5fa;
  text-decoration: underline;
}
.btn-auth-submit {
  width: 100%;
  height: 42px;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #1d4ed8;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: background-color 0.15s ease, border-color 0.15s ease;
  margin-top: 0.4rem;
}
.btn-auth-submit:hover {
  background: #1d4ed8;
  border-color: #1e40af;
}
.btn-auth-submit:active {
  background: #1e40af;
}
.btn-auth-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.auth-footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  margin-top: 0.75rem;
  margin-bottom: 0;
}
