/* ==========================================================================
   Pav Bhaji Expresss - Multi-Store Billing Platform CSS Overhaul
   ========================================================================== */

/* Design Tokens & Theme Variables */
:root {
  --font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --color-primary: #f97316; /* Pav Bhaji Orange */
  --color-primary-hover: #ea580c;
  --color-secondary: #0ea5e9; /* Teal/Blue info */
  --color-success: #10b981; /* Green success */
  --color-success-hover: #059669;
  --color-danger: #ef4444; /* Red clear */
  --color-danger-hover: #dc2626;
  --color-warning: #eab308; /* Yellow accents */
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 24px;
  
  --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.25s cubic-bezier(0.4, 0, 0.2, 1);

  /* Default Theme (Dark Mode) Variables */
  --bg-app: #080d16;
  --bg-card: rgba(17, 25, 40, 0.6);
  --bg-sidebar: #0f172a;
  --bg-input: #1e293b;
  --border-color: rgba(255, 255, 255, 0.06);
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-inverse: #0f172a;
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.6);
  --shadow-primary: 0 0 25px rgba(249, 115, 22, 0.15);
}

/* Light Theme Variables Override */
[data-theme="light"] {
  --bg-app: #f1f5f9;
  --bg-card: rgba(255, 255, 255, 0.7);
  --bg-sidebar: #ffffff;
  --bg-input: #e2e8f0;
  --border-color: rgba(15, 23, 42, 0.08);
  --text-main: #0f172a;
  --text-muted: #475569;
  --text-inverse: #ffffff;
  
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 16px 48px rgba(15, 23, 42, 0.12);
  --shadow-primary: 0 0 25px rgba(249, 115, 22, 0.1);
}

/* Category Accent Colors */
.card-orange { --item-accent: #f97316; --item-accent-bg: rgba(249, 115, 22, 0.12); }
.card-yellow { --item-accent: #eab308; --item-accent-bg: rgba(234, 179, 8, 0.12); }
.card-teal { --item-accent: #14b8a6; --item-accent-bg: rgba(20, 184, 166, 0.12); }
.card-green { --item-accent: #22c55e; --item-accent-bg: rgba(34, 197, 94, 0.12); }
.card-purple { --item-accent: #a855f7; --item-accent-bg: rgba(168, 85, 247, 0.12); }

/* Light Theme Category Overrides (Higher Contrast) */
[data-theme="light"] .card-orange { --item-accent: #ea580c; --item-accent-bg: rgba(234, 88, 12, 0.08); }
[data-theme="light"] .card-yellow { --item-accent: #b45309; --item-accent-bg: rgba(180, 83, 9, 0.08); }
[data-theme="light"] .card-teal { --item-accent: #0f766e; --item-accent-bg: rgba(15, 118, 110, 0.08); }
[data-theme="light"] .card-green { --item-accent: #166534; --item-accent-bg: rgba(22, 101, 52, 0.08); }
[data-theme="light"] .card-purple { --item-accent: #6b21a8; --item-accent-bg: rgba(107, 33, 168, 0.08); }

/* Custom Scrollbars */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: rgba(128, 128, 128, 0.3);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--color-primary);
}

/* Global Resets & Body Setup */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-app);
  background-image: radial-gradient(circle at 80% 10%, rgba(249, 115, 22, 0.05), transparent 45%),
                    radial-gradient(circle at 10% 90%, rgba(14, 165, 233, 0.04), transparent 45%);
  color: var(--text-main);
  min-height: 100vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* App Shell Layout */
.app-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  width: 100vw;
}

/* Header Styling */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  z-index: 10;
  box-shadow: var(--shadow-md);
}

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

.brand-logo {
  height: 46px;
  width: 46px;
  object-fit: contain;
  border-radius: var(--radius-sm);
  background: white;
  padding: 3px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.brand-text h1 {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.brand-text h1::after {
  content: ' Express';
  color: var(--color-primary);
}

.brand-text .tagline {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}

.header-info {
  display: flex;
  align-items: center;
  gap: 24px;
}

.contact-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.info-item .icon {
  width: 13px;
  height: 13px;
  color: var(--color-primary);
}

.time-widget {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  border-left: 2px solid var(--border-color);
  padding-left: 20px;
}

#current-time {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-warning);
}

#current-date {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.icon-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.icon-btn:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
  transform: rotate(90deg);
}

/* Main Area Layout */
.app-main {
  display: flex;
  flex: 1;
  overflow: hidden;
  height: calc(100vh - 73px);
}

/* Products Section (Left Grid) */
.products-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-header h2 {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.section-header .subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 400;
}

.search-box {
  position: relative;
  width: 300px;
}

.search-box input {
  width: 100%;
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 16px 10px 38px;
  border-radius: var(--radius-md);
  outline: none;
  font-family: inherit;
  font-size: 0.85rem;
  transition: var(--transition-fast);
}

.search-box input:focus {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
  background-color: rgba(30, 41, 59, 0.3);
}

.search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  stroke: var(--text-muted);
}

/* Grid of Product Cards */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  padding-bottom: 20px;
}

.product-card {
  position: relative;
  background: rgba(30, 41, 59, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  overflow: hidden;
  min-height: 150px;
  justify-content: space-between;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background-color: var(--item-accent, var(--color-primary));
  opacity: 0.8;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(30, 41, 59, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4), 0 0 20px rgba(249, 115, 22, 0.1);
}

.product-card:active {
  transform: scale(0.95);
  background-color: var(--item-accent-bg);
}

.product-emoji {
  font-size: 2.8rem;
  margin-bottom: 8px;
  filter: drop-shadow(0 6px 8px rgba(0,0,0,0.3));
  transition: transform var(--transition-normal);
}

.product-card:hover .product-emoji {
  transform: scale(1.15) translateY(-3px);
}

.product-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.3;
  margin-bottom: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-price {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--item-accent, var(--color-primary));
}

.product-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background-color: var(--item-accent, var(--color-primary));
  color: var(--text-inverse);
  font-size: 0.75rem;
  font-weight: 800;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.3);
  animation: badgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes badgePop {
  0% { transform: scale(0); }
  100% { transform: scale(1); }
}

/* Cart Panel (Right Sidebar) */
.cart-section {
  width: 420px;
  background-color: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  z-index: 5;
}

.token-header {
  padding: 18px 24px;
  background-color: rgba(15, 23, 42, 0.3);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.token-title {
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 1.5px;
}

.token-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.token-step-btn {
  background: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.token-step-btn:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
}

#token-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  min-width: 80px;
  text-align: center;
}

/* Cart Scroll Container */
.cart-items-container {
  flex: 1;
  overflow-y: auto;
  padding: 10px 0;
}

.cart-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cart-table th {
  padding: 12px 20px;
  font-size: 0.75rem;
  text-transform: uppercase;
  color: var(--text-muted);
  font-weight: 700;
  border-bottom: 1px solid var(--border-color);
}

.cart-table td {
  padding: 14px 20px;
  font-size: 0.85rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.02);
  vertical-align: middle;
}

.cart-item-title {
  font-weight: 700;
  color: var(--text-main);
}

.cart-item-qty-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  background: var(--bg-input);
  border: none;
  color: var(--text-main);
  width: 24px;
  height: 24px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.qty-btn:hover {
  background: var(--color-primary);
  color: var(--text-inverse);
}

.cart-item-qty {
  font-weight: 700;
  min-width: 16px;
  text-align: center;
}

.delete-item-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
}

.delete-item-btn:hover {
  color: var(--color-danger);
  background: rgba(239, 68, 68, 0.08);
}

.delete-item-btn .icon {
  width: 15px;
  height: 15px;
}

/* Empty Cart State Styling */
.empty-cart-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 24px;
  text-align: center;
  color: var(--text-muted);
}

.empty-icon {
  width: 44px;
  height: 44px;
  stroke: var(--text-muted);
  margin-bottom: 16px;
  opacity: 0.4;
}

.empty-cart-state p {
  font-size: 0.85rem;
  line-height: 1.4;
}

/* Cart Summary Layout */
.cart-summary {
  padding: 18px 24px;
  background-color: rgba(15, 23, 42, 0.2);
  border-top: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.summary-row.grand-total {
  font-size: 1.35rem;
  color: var(--text-main);
  border-top: 1px dashed var(--border-color);
  padding-top: 12px;
  margin-top: 4px;
}

.summary-row.grand-total strong {
  color: var(--color-warning);
  font-weight: 800;
}

/* Cart Actions Layout */
.cart-actions {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 12px;
  padding: 18px 24px 24px 24px;
  border-top: 1px solid var(--border-color);
}

.action-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 18px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
}

.btn-icon {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.clear-btn {
  background-color: rgba(239, 68, 68, 0.08);
  color: var(--color-danger);
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.clear-btn:hover {
  background-color: var(--color-danger);
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2);
}

.print-btn {
  background-color: var(--color-success);
  color: var(--text-main);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.25);
}

.print-btn:hover {
  background-color: var(--color-success-hover);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.4);
}

/* Modals & Dialogs Overlays */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(7, 10, 19, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999999 !important;
}

.modal-overlay.active,
#sa-store-dialog.active,
#sa-outlet-features-modal.active,
#sa-menu-dialog.active,
#admin-pin-modal.active,
#admin-modal.active {
  display: flex !important;
  z-index: 999999 !important;
  animation: fadeIn 0.25s ease;
}

.modal-overlay.active .modal-content,
#admin-pin-modal.active .modal-content,
#admin-modal.active .modal-content,
#sa-store-dialog.active .modal-content {
  animation: slideUpModal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideUpModal {
  0% {
    opacity: 0;
    transform: translateY(45px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

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

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.modal-content {
  background-color: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  width: 90%;
  max-width: 800px;
  height: 85vh;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  animation: slideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

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

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

.modal-header h2 {
  font-size: 1.3rem;
  font-weight: 800;
}

.close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.8rem;
  cursor: pointer;
  transition: var(--transition-fast);
}

.close-btn:hover {
  color: var(--text-main);
}

/* Tab Selection in Modals */
.modal-tabs {
  display: flex;
  background-color: rgba(7, 10, 19, 0.3);
  padding: 8px 28px 0 28px;
  border-bottom: 1px solid var(--border-color);
}

.tab-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 14px 22px;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  position: relative;
  transition: var(--transition-fast);
}

.tab-btn:hover {
  color: var(--text-main);
}

.tab-btn.active {
  color: var(--color-primary);
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--color-primary);
  border-radius: 3px 3px 0 0;
}

/* Modal Content Area */
.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px;
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

/* Inner Layout Elements of admin menu */
.menu-actions-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.primary-btn {
  background-color: var(--color-primary);
  color: var(--text-main);
}

.primary-btn:hover {
  background-color: var(--color-primary-hover);
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.3);
}

.secondary-btn {
  background-color: var(--bg-input);
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.secondary-btn:hover {
  background-color: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.danger-btn {
  background-color: rgba(239, 68, 68, 0.08);
  color: #f87171;
  border: 1px solid rgba(239, 68, 68, 0.15);
}

.danger-btn:hover {
  background-color: var(--color-danger);
  color: var(--text-main);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
}

.table-scroll-container {
  overflow-x: auto;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  background: rgba(7, 10, 19, 0.15);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.admin-table th, .admin-table td {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.admin-table th {
  background-color: var(--bg-input);
  font-weight: 700;
  color: var(--text-muted);
}

.admin-table tbody tr:last-child td {
  border-bottom: none;
}

.admin-table .actions-cell {
  display: flex;
  gap: 8px;
}

/* History Sales Stat Cards */
.sales-summary-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.stat-card {
  background-color: rgba(7, 10, 19, 0.25);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.stat-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.stat-val {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-warning);
}

/* Form Styling */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.form-group-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
}

input[type="text"], input[type="number"], input[type="password"], input[type="date"], select, textarea {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  outline: none;
  font-family: inherit;
  font-size: 0.9rem;
  width: 100%;
  transition: var(--transition-fast);
}

::placeholder, input::placeholder, textarea::placeholder {
  color: var(--text-muted) !important;
  opacity: 0.75;
}

input[type="text"]:focus, input[type="number"]:focus, input[type="password"]:focus, input[type="date"]:focus, select:focus, textarea:focus {
  border-color: var(--color-primary);
  background-color: var(--bg-input);
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.15);
}

/* Dialog Modal overlays */
.dialog-overlay {
  background-color: rgba(5, 7, 13, 0.9);
  z-index: 110;
}

.dialog-content {
  max-width: 500px;
  height: auto !important;
  max-height: 90vh;
  overflow-y: auto;
}

#sa-store-form {
  padding: 0 24px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

}

/* ==========================================================================
   Premium Restaurant POS Dashboard - Curved 2026 Visual Layout
   ========================================================================== */

/* Main outer device frame */
.premium-device-wrapper {
  background: #090c15;
  border-radius: 40px;
  padding: 16px;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.9), inset 0 2px 8px rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  margin: 16px;
  overflow: hidden;
  border: 6px solid #1a1e29;
}
[data-theme="light"] .premium-device-wrapper {
  background: #cbd5e1;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12), inset 0 2px 5px rgba(255, 255, 255, 0.5);
  border-color: #cbd5e1;
}

/* Curved workspace container */
.premium-pos-workspace {
  flex: 1;
  min-height: 0;
  display: flex;
  background: var(--bg-app);
  border-radius: 32px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-color);
}

/* Left workspace */
.pos-left-panel {
  flex: 1;
  background: linear-gradient(135deg, #f7fee7 0%, #f0f9ff 100%);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  gap: 14px;
  min-height: 0;
}
[data-theme="dark"] .pos-left-panel {
  background: linear-gradient(135deg, #06241a 0%, #0f172a 100%);
}
[data-theme="light"] .pos-left-panel {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Right order details panel */
.pos-right-panel {
  width: 380px;
  min-width: 340px;
  background: rgba(243, 244, 246, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-left: 1px solid var(--border-color);
  overflow: hidden;
}
[data-theme="dark"] .pos-right-panel {
  background: rgba(15, 23, 42, 0.95);
  border-left-color: rgba(255, 255, 255, 0.05);
}
[data-theme="light"] .pos-right-panel {
  background: #ffffff;
  border-left-color: rgba(15, 23, 42, 0.08);
}

/* Premium Top Nav Header */
.premium-nav-header {
  background: var(--bg-sidebar);
  border-radius: 20px;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border: 1px solid var(--border-color);
  flex-shrink: 0;
  box-shadow: var(--shadow-sm);
}
[data-theme="light"] .premium-nav-header {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
}
[data-theme="dark"] .premium-nav-header {
  background: #111827;
  border-color: rgba(255, 255, 255, 0.05);
}

/* Cart items scroll area fills available space */
#cart-items-wrapper {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 2px 0;
  min-height: 0;
}

/* Navigation Pill button - Modern Compact & Portrait Responsive */
.premium-nav-item {
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 9999px;
  padding: 6px 13px;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.premium-nav-item:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.premium-nav-item:active {
  transform: translateY(0) scale(0.97);
}

.premium-nav-item.active {
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.4);
}

/* Horizontal kitchen queue/order line bar */
.pos-order-line-bar {
  background: rgba(255, 255, 255, 0.6);
  border-radius: 14px;
  padding: 6px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  flex-shrink: 0;
}
[data-theme="dark"] .pos-order-line-bar {
  background: rgba(30, 41, 59, 0.5);
  border-color: rgba(255, 255, 255, 0.06);
}

.order-line-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.order-line-cards-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.order-line-ticket {
  background: white;
  border-radius: 12px;
  padding: 6px 10px;
  min-width: 140px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  display: flex;
  flex-direction: column;
  gap: 2px;
  border: 1px solid rgba(0,0,0,0.02);
}
[data-theme="dark"] .order-line-ticket {
  background: #1e293b;
  border-color: rgba(255,255,255,0.05);
}

.order-line-ticket-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}

.order-line-ticket-body {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Products grid - scrollable area */
.products-grid {
  flex: 1;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  align-content: start;
  padding-bottom: 40px;
  scroll-padding-bottom: 40px;
  min-height: 0;
}
/* Categories bar styling */
.pos-categories-scroller {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  align-items: center;
  flex-shrink: 0;
}

.category-filter-pill {
  background: white;
  color: var(--text-main);
  border: 1px solid var(--border-color);
  padding: 8px 18px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 6px;
}
[data-theme="dark"] .category-filter-pill {
  background: #1e293b;
}
.category-filter-pill.active {
  background: #8b5cf6;
  border-color: #8b5cf6;
  color: white;
}

/* Premium Card Layout */
.premium-product-card {
  background: white;
  border-radius: 20px;
  border: 1px solid rgba(0,0,0,0.04);
  padding: 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
  box-shadow: 0 4px 12px rgba(0,0,0,0.03);
  min-height: 120px;
  width: 100%;
  box-sizing: border-box;
}
[data-theme="light"] .premium-product-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.03);
}
[data-theme="dark"] .premium-product-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.05);
}
.premium-product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md), 0 0 15px rgba(139, 92, 246, 0.15);
  border-color: rgba(139, 92, 246, 0.3);
}

.premium-card-img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  flex-shrink: 0;
}
[data-theme="dark"] .premium-card-img {
  border-color: #0f172a;
}

.premium-card-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.premium-card-cat {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
}

.premium-card-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: normal;
  word-break: break-word;
  line-height: 1.25;
  margin-bottom: 2px;
}

.premium-card-price {
  font-size: 0.92rem;
  font-weight: 800;
  color: #8b5cf6;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Inline Circular Counter Controls */
.inline-counter-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.1);
  color: #8b5cf6;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.inline-counter-btn:hover {
  background: #8b5cf6;
  color: white;
}
.inline-counter-val {
  font-weight: 800;
  font-size: 0.95rem;
  min-width: 14px;
  text-align: center;
}

/* Premium Sidebar Checkouts */
.pos-order-type-tabs {
  display: flex;
  background: rgba(0,0,0,0.05);
  border-radius: 12px;
  padding: 4px;
}
[data-theme="dark"] .pos-order-type-tabs {
  background: rgba(255,255,255,0.05);
}

.order-type-pill {
  flex: 1;
  text-align: center;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 8px 0;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.order-type-pill.active {
  background: #0f172a;
  color: white;
}
[data-theme="light"] .order-type-pill.active {
  background: white;
  color: #0f172a;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

/* Premium Order Details Card Items */
.premium-cart-card {
  background: white;
  border-radius: 16px;
  padding: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
  border: 1px solid rgba(0,0,0,0.01);
}
[data-theme="dark"] .premium-cart-card {
  background: #1e293b;
  border-color: rgba(255,255,255,0.03);
}

.premium-cart-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.premium-cart-name {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text-main);
}

.premium-cart-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* ==========================================================================
   Receipt Layout & Printing Styles
   ========================================================================== */
.print-only {
  display: none;
}

/* Media Query for Print */
@media print {
  @page {
    margin: 0;
    size: 80mm auto;
  }
  
  html, body {
    background: #ffffff !important;
    color: #000000 !important;
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    margin: 0 !important;
    padding: 0 !important;
    position: static !important;
  }

  #app, .view-container, #pos-container, header, nav, footer, .modal-overlay, #receipt-preview-modal, .premium-device-wrapper, .modal {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  body * {
    visibility: hidden !important;
  }

  .print-only, .print-only * {
    visibility: visible !important;
    color: #000000 !important;
    background: #ffffff !important;
  }

  .print-only {
    display: block !important;
    position: relative !important;
    top: 0 !important;
    left: 0 !important;
    width: 80mm !important;
    max-width: 80mm !important;
    margin: 0 auto !important;
    padding: 2mm 4mm 10mm 4mm !important;
    color: #000000 !important;
    background: #ffffff !important;
    font-family: 'Courier New', Courier, monospace !important;
    font-size: 10pt !important;
    line-height: 1.35 !important;
    box-sizing: border-box !important;
  }

  .receipt-header {
    text-align: center;
    margin-bottom: 8px;
    color: #000000 !important;
  }
  
  .receipt-header h2 {
    font-size: 14pt;
    font-weight: bold;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    color: #000000 !important;
  }
  
  .receipt-divider {
    border-top: 1px dashed #000000 !important;
    margin: 8px 0;
  }
  
  .receipt-info-row {
    display: flex;
    justify-content: space-between;
    font-size: 10pt;
    margin-bottom: 2px;
  }
  
  .receipt-token-box {
    text-align: center;
    border: 2px solid #000;
    padding: 6px;
    margin: 8px 0;
  }
  
  .receipt-token-num {
    font-size: 20pt;
    font-weight: bold;
  }
  
  .receipt-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 6px;
  }
  
  .receipt-table th {
    border-bottom: 1px dashed #000;
    text-align: left;
    font-size: 10pt;
    padding-bottom: 4px;
  }
  
  .receipt-table td {
    padding: 4px 0;
    font-size: 10pt;
    vertical-align: top;
  }
  
  .receipt-table th.num-col, .receipt-table td.num-col {
    text-align: right;
  }
  
  .receipt-totals {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 2px;
  }
  
  .receipt-total-row {
    display: flex;
    justify-content: space-between;
    font-size: 10pt;
  }
  
  .receipt-total-row.grand-total {
    font-size: 13pt;
    font-weight: bold;
    border-top: 1px dashed #000;
    padding-top: 4px;
    margin-top: 2px;
  }
  
  .receipt-footer {
    text-align: center;
    margin-top: 15px;
    font-size: 9pt;
  }
}

/* Responsive Scaling for smaller desktop & tablets */
@media (max-width: 1024px) {
  .app-main {
    flex-direction: column;
    overflow-y: auto;
  }
  
  .cart-section {
    width: 100%;
    border-left: none;
    border-top: 1px solid var(--border-color);
    flex: none;
    height: auto;
  }
  
  .products-section {
    flex: none;
    height: 60vh;
  }
}

@media (max-width: 600px) {
  .app-header {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  
  .header-info {
    justify-content: space-between;
  }
  
  .time-widget {
    border-left: none;
    padding-left: 0;
    align-items: flex-start;
  }

  .form-group-row {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
}

/* Admin PIN Authentication Styles */
.pin-modal-content {
  max-width: 380px;
  text-align: center;
  align-self: center;
  height: auto;
}

.pin-instruction {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}

.pin-display-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.pin-display-dots .dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.15s ease;
}

.pin-display-dots .dot.filled {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.25);
  box-shadow: 0 0 10px rgba(249, 115, 22, 0.5);
}

.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 10px 0;
}

.pin-key {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 18px 0;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, background-color 0.1s ease;
}

.pin-key:active {
  transform: scale(0.92);
  background-color: rgba(255,255,255,0.04);
  border-color: rgba(255,255,255,0.12);
}

.pin-key.danger-text {
  color: var(--color-danger);
  font-size: 0.95rem;
}

.pin-key.danger-text:active {
  background-color: rgba(239, 68, 68, 0.1);
}

.pin-key.success-text {
  color: var(--color-success);
  font-size: 0.95rem;
}

.pin-key.success-text:active {
  background-color: rgba(16, 185, 129, 0.1);
}

/* Multi-Store View Routing Container */
.view-container {
  display: none;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
}

.view-container.active {
  display: flex;
  flex-direction: column;
}

#superadmin-container.view-container.active {
  display: block;
  overflow-y: auto;
}

/* POS container must be a flex column so premium-device-wrapper can fill it */
#pos-container.view-container.active {
  display: flex;
  flex-direction: column;
}

/* Store Login Screen Layout */
#login-container {
  background-color: var(--bg-app);
  align-items: center;
  justify-content: center;
  background-image: radial-gradient(circle at 80% 20%, rgba(249, 115, 22, 0.08), transparent 45%),
                    radial-gradient(circle at 10% 80%, rgba(14, 165, 233, 0.06), transparent 45%);
}

.login-card-wrapper {
  background-color: rgba(30, 41, 59, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 90%;
  max-width: 440px;
  box-shadow: var(--shadow-lg), 0 0 50px rgba(249, 115, 22, 0.05);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  animation: slideUp 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-logo {
  height: 64px;
  width: 64px;
  object-fit: contain;
  margin-bottom: 14px;
  border-radius: 50%;
  background: white;
  padding: 4px;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.login-pin-dots {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 18px 0;
}

.login-pin-dots .l-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background-color 0.15s ease;
}

.login-pin-dots .l-dot.filled {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--color-primary);
}

.compact-pad .l-pin-key {
  padding: 16px 0;
  font-size: 1.2rem;
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  cursor: pointer;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, background-color 0.1s ease;
}

.compact-pad .l-pin-key:active {
  transform: scale(0.92);
  background-color: rgba(255, 255, 255, 0.04);
}

/* Super Admin Gate login styles */
.sa-login-card {
  background-color: rgba(30, 41, 59, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 90%;
  max-width: 400px;
  margin: 12vh auto;
  box-shadow: var(--shadow-lg);
}

/* Super Admin Dashboard Workspace */
.sa-dashboard-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--bg-app);
}

.sa-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 32px;
  background-color: var(--bg-sidebar);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
}

.sa-header h2 {
  font-size: 1.35rem;
  font-weight: 800;
}

.sa-header h2 span {
  font-size: 0.75rem;
  color: var(--color-primary);
  text-transform: uppercase;
  font-weight: 800;
  margin-left: 8px;
  letter-spacing: 1px;
  border: 1px solid rgba(249, 115, 22, 0.25);
  padding: 3px 8px;
  border-radius: 4px;
  background-color: rgba(249, 115, 22, 0.06);
}

.sa-header-actions {
  display: flex;
  gap: 12px;
}

.sa-main {
  padding: 32px;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.sa-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.sa-stat-card {
  background-color: rgba(30, 41, 59, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 22px 26px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: var(--shadow-sm);
}

.sa-stat-card .sa-accent {
  color: var(--color-success) !important;
}

.sa-content-split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 24px;
}

.sa-card {
  background-color: rgba(30, 41, 59, 0.35);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}

.sa-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.sa-card-header h3 {
  font-size: 1.1rem;
  font-weight: 800;
}

.sa-table {
  width: 100%;
  border-collapse: collapse;
}

.sa-table th, .sa-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.85rem;
}

.sa-table th {
  background-color: var(--bg-input);
  font-weight: 700;
  color: var(--text-muted);
}

.sa-table tbody tr:last-child td {
  border-bottom: none;
}

.sa-table td strong {
  color: var(--text-main);
}

.sa-pin-key {
  background-color: var(--bg-input);
  border: 1px solid var(--border-color);
  color: var(--text-main);
  border-radius: var(--radius-md);
  padding: 18px 0;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.08s ease, background-color 0.1s ease;
}

.sa-pin-key:active {
  transform: scale(0.92);
  background-color: rgba(255, 255, 255, 0.04);
}

.sa-pin-key.danger-text {
  color: var(--color-danger);
  font-size: 0.95rem;
}

.sa-pin-key.success-text {
  color: var(--color-success);
  font-size: 0.95rem;
}

#subscription-badge {
  background-color: var(--color-success);
  color: var(--text-inverse);
}
#subscription-badge.trial {
  background-color: var(--color-warning);
  color: var(--text-inverse);
}
#subscription-badge.expired {
  background-color: var(--color-danger);
  color: var(--text-main);
}

.coupon-tag {
  background: rgba(249, 115, 22, 0.1);
  border: 1px dashed var(--color-primary);
  color: var(--color-primary);
  padding: 4px 8px;
  font-weight: 700;
  border-radius: 4px;
  font-family: monospace;
  letter-spacing: 0.5px;
}

.checkout-tab-btn.active {
  color: var(--color-primary) !important;
  border-bottom: 2px solid var(--color-primary) !important;
}
.checkout-tab-btn:hover {
  color: var(--text-main);
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE OVERHAUL (@media max-width: 900px & 500px)
   ========================================================================== */

@media (max-width: 900px) {
  /* 1. Nav Header Mobile Layout */
  .premium-nav-header {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 10px !important;
    padding: 12px 14px !important;
    border-radius: 16px !important;
  }

  .premium-nav-header > div:first-child {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }

  .premium-nav-list {
    display: flex !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    gap: 8px !important;
    padding: 4px 0 !important;
    width: 100% !important;
    -webkit-overflow-scrolling: touch;
  }

  .premium-nav-item {
    padding: 6px 14px !important;
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
  }

  .search-box {
    width: 100% !important;
    max-width: 100% !important;
    margin: 4px 0 !important;
  }

  /* 2. Kitchen Queue Mobile Horizontal Bar */
  .order-line-bar {
    padding: 10px 12px !important;
    border-radius: 14px !important;
  }

  .order-line-cards-scroll {
    display: flex !important;
    gap: 8px !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .order-line-ticket {
    min-width: 130px !important;
    padding: 6px 10px !important;
    flex-shrink: 0 !important;
  }

  /* 3. Products Grid Mobile 2-Column Touch Layout */
  .products-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    padding-bottom: 30px !important;
  }

  .premium-product-card {
    padding: 10px !important;
    min-height: 120px !important;
    border-radius: 14px !important;
  }

  .premium-card-name {
    font-size: 0.82rem !important;
    line-height: 1.2 !important;
  }

  .premium-card-price {
    font-size: 0.88rem !important;
  }

  /* 4. POS Cart Summary Mobile Panel */
  .pos-cart-panel {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    border-radius: 18px !important;
    padding: 14px !important;
    margin-top: 10px !important;
  }

  /* 5. Super Admin Mobile Responsiveness */
  .sa-kpi-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .sa-content-split {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
  }

  .table-scroll-container {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .sa-table th, .sa-table td {
    padding: 8px 10px !important;
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  /* 6. Modals & Dialogs Mobile Friendly Fit */
  .modal-content, .dialog-content {
    width: 95% !important;
    max-width: 95% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    padding: 18px 14px !important;
    border-radius: 20px !important;
    margin: 10px auto !important;
  }
}

@media (max-width: 480px) {
  .sa-kpi-grid {
    grid-template-columns: 1fr !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }

  .stat-val {
    font-size: 1.4rem !important;
  }
}

/* ==========================================================================
   ADVANCED ANIMATIONS & PORTRAIT DISPLAY LAYOUT
   ========================================================================== */

/* Keyframe Animations */
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(139, 92, 246, 0); }
  100% { box-shadow: 0 0 0 0 rgba(139, 92, 246, 0); }
}

@keyframes slideUpIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes floatLogo {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes popIn {
  0% { transform: scale(0.85); }
  50% { transform: scale(1.12); }
  100% { transform: scale(1); }
}

@keyframes borderSheen {
  0% { border-color: rgba(139, 92, 246, 0.2); }
  50% { border-color: rgba(249, 115, 22, 0.6); }
  100% { border-color: rgba(139, 92, 246, 0.2); }
}

/* Dynamic Animation Enhancements */
#pos-brand-logo {
  animation: floatLogo 4s ease-in-out infinite;
}

.premium-product-card {
  animation: slideUpIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) ease-out;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.premium-product-card:hover {
  transform: translateY(-5px) scale(1.02) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(139, 92, 246, 0.2) !important;
}

.category-filter-pill {
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.category-filter-pill.active {
  animation: popIn 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.35) !important;
}

.inline-counter-btn {
  transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s ease !important;
}
.inline-counter-btn:active {
  transform: scale(0.8) !important;
}

.ai-assistant-box {
  animation: borderSheen 3s infinite ease-in-out;
}

/* Sticky Portrait Cart Bar */
.portrait-cart-bar {
  display: none;
  position: fixed;
  bottom: 12px;
  left: 12px;
  right: 12px;
  background: var(--bg-sidebar);
  border: 1px solid var(--border-color);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 10px 16px;
  justify-content: space-between;
  align-items: center;
  z-index: 9999;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  animation: slideUpIn 0.3s ease-out;
}

/* Portrait Responsive Layout */
@media screen and (orientation: portrait), screen and (max-width: 850px) {
  .portrait-cart-bar {
    display: flex;
  }

  .premium-device-wrapper {
    margin: 0 !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 10px !important;
    height: 100vh !important;
  }

  .premium-pos-workspace {
    flex-direction: column !important;
    border-radius: 16px !important;
    overflow-y: auto !important;
    position: relative !important;
  }

  .pos-left-panel {
    flex: none !important;
    width: 100% !important;
    padding: 14px 12px 90px 12px !important;
    overflow-y: visible !important;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
    overflow-y: visible !important;
    padding-bottom: 20px !important;
  }

  .premium-product-card {
    min-height: 110px !important;
    padding: 10px !important;
    border-radius: 16px !important;
  }

  .pos-right-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    min-width: 100% !important;
    height: 85vh !important;
    border-radius: 28px 28px 0 0 !important;
    z-index: 99999 !important;
    box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.5) !important;
    transform: translateY(100%) !important;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border-top: 1px solid var(--border-color) !important;
  }

  .pos-right-panel.portrait-sheet-open {
    transform: translateY(0) !important;
  }
}

/* Forced Portrait Class (for Desktop Preview Toggle) */
.force-portrait-mode .portrait-cart-bar {
  display: flex !important;
}

.force-portrait-mode .premium-device-wrapper {
  margin: 0 auto !important;
  max-width: 480px !important;
  border-radius: 36px !important;
  height: 94vh !important;
  border: 4px solid var(--border-color) !important;
}

.force-portrait-mode .premium-pos-workspace {
  flex-direction: column !important;
  overflow-y: auto !important;
}

.force-portrait-mode .pos-left-panel {
  flex: none !important;
  width: 100% !important;
  padding: 14px 12px 90px 12px !important;
  overflow-y: visible !important;
}

.force-portrait-mode .products-grid {
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 10px !important;
}

.force-portrait-mode .pos-right-panel {
  position: fixed !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 100% !important;
  height: 85vh !important;
  border-radius: 28px 28px 0 0 !important;
  z-index: 99999 !important;
  box-shadow: 0 -15px 50px rgba(0, 0, 0, 0.5) !important;
  transform: translateY(100%) !important;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.force-portrait-mode .pos-right-panel.portrait-sheet-open {
  transform: translateY(0) !important;
}

/* ==========================================================================
   PUBLIC WEBSITE FRONTEND STYLES (#website-container)
   ========================================================================== */
#website-container {
  width: 100%;
  min-height: 100vh;
  background: var(--bg-dark);
  color: var(--text-main);
  overflow-y: auto !important;
  box-sizing: border-box;
}

[data-theme="light"] #website-container {
  background: #f8fafc;
  color: #0f172a;
}

.web-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-color);
  padding: 14px 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

[data-theme="light"] .web-nav {
  background: rgba(255, 255, 255, 0.9);
}

.web-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.web-brand-title {
  font-size: 1.4rem;
  font-weight: 800;
  background: linear-gradient(135deg, #f97316 0%, #a855f7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  line-height: 1;
}

.web-hero {
  padding: 80px 24px 60px 24px;
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

@media (max-width: 850px) {
  .web-hero {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 18px;
  }
}

.web-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
  border: 1px solid rgba(249, 115, 22, 0.3);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 18px;
}

.web-hero-title {
  font-size: 3.2rem;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 18px;
  letter-spacing: -0.02em;
}

@media (max-width: 600px) {
  .web-hero-title {
    font-size: 2.2rem;
  }
}

.web-hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 30px;
}

.web-hero-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}

@media (max-width: 850px) {
  .web-hero-actions {
    justify-content: center;
  }
}

.web-btn-primary {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  padding: 14px 28px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 1rem;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(249, 115, 22, 0.35);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.web-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(249, 115, 22, 0.45);
}

.web-btn-secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-main);
  padding: 14px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid var(--border-color);
  transition: all 0.25s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.web-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

.web-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 24px 60px 24px;
}

.web-feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 28px;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .web-feature-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.08);
}

.web-feature-card:hover {
  transform: translateY(-6px);
  border-color: rgba(249, 115, 22, 0.4);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15);
}

.web-feature-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(249,115,22,0.15), rgba(168,85,247,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 18px;
}

/* Petpooja-Style SaaS Extensions */
.petpooja-hero-visual {
  background: linear-gradient(135deg, rgba(249,115,22,0.12), rgba(168,85,247,0.12));
  border: 1px solid var(--border-color);
  border-radius: 32px;
  padding: 24px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  position: relative;
  overflow: hidden;
}

.petpooja-tab-btn {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-muted);
  border: 1px solid var(--border-color);
  padding: 10px 20px;
  border-radius: 9999px;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
}

.petpooja-tab-btn.active, .petpooja-tab-btn:hover {
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: white;
  border-color: #f97316;
  box-shadow: 0 4px 14px rgba(249, 115, 22, 0.35);
}

.petpooja-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: 20px;
  text-align: center;
}

.petpooja-pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 28px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
  position: relative;
}

[data-theme="light"] .petpooja-pricing-card {
  background: #ffffff;
}

.petpooja-pricing-card.featured {
  border-color: #f97316;
  box-shadow: 0 16px 40px rgba(249, 115, 22, 0.2);
}

/* ==========================================================================
   HYPER POS - LARAVEL ERP & POS CODECANYON THEME STYLES
   ========================================================================== */
.hyper-badge-glow {
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.15), rgba(249, 115, 22, 0.15));
  border: 1px solid rgba(168, 85, 247, 0.35);
  color: #c084fc;
  padding: 6px 18px;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 0 15px rgba(168, 85, 247, 0.2);
}

.hyper-hero-title {
  font-size: 3.4rem;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .hyper-hero-title {
    font-size: 2.2rem;
  }
}

.hyper-gradient-text {
  background: linear-gradient(135deg, #f97316 0%, #a855f7 50%, #3b82f6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hyper-card-neon {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 24px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

[data-theme="light"] .hyper-card-neon {
  background: #ffffff;
}

.hyper-card-neon::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, #f97316, #a855f7, #10b981);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hyper-card-neon:hover::before {
  opacity: 1;
}

.hyper-card-neon:hover {
  transform: translateY(-6px);
  border-color: rgba(168, 85, 247, 0.4);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25), 0 0 25px rgba(168, 85, 247, 0.15);
}

.hyper-module-badge {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 3px 10px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
}

.hyper-module-badge.pos { background: rgba(249, 115, 22, 0.15); color: #f97316; }
.hyper-module-badge.kds { background: rgba(139, 92, 246, 0.15); color: #a855f7; }
.hyper-module-badge.qr { background: rgba(16, 185, 129, 0.15); color: #10b981; }
.hyper-module-badge.erp { background: rgba(59, 130, 246, 0.15); color: #3b82f6; }

/* CodeCanyon Top Envato Preview Banner */
.codecanyon-top-bar {
  background: #090d16;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 10px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  color: #94a3b8;
  z-index: 1000;
  position: relative;
}

.envato-badge {
  background: #82b440;
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.5px;
}

.hyper-hero-section {
  position: relative;
  padding: 90px 24px 70px 24px;
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  z-index: 2;
}

@media (max-width: 900px) {
  .hyper-hero-section {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 50px 20px;
  }
}

.hyper-preview-mockup {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(139, 92, 246, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(139, 92, 246, 0.2);
  position: relative;
}

.hyper-kpi-chip {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 16px;
}

/* ==========================================================================
   ANIMATED AURORA MESH BACKGROUND & DYNAMIC UI EFFECTS
   ========================================================================== */
.website-animated-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
}

.aurora-blob {
  position: absolute;
  filter: blur(100px);
  border-radius: 50%;
  opacity: 0.38;
  animation: floatOrb 18s ease-in-out infinite alternate;
}

.aurora-blob-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, #f97316 0%, rgba(249, 115, 22, 0) 70%);
  top: -120px;
  left: -120px;
}

.aurora-blob-2 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #8b5cf6 0%, rgba(139, 92, 246, 0) 70%);
  top: 180px;
  right: -180px;
  animation-delay: -6s;
}

.aurora-blob-3 {
  width: 450px;
  height: 450px;
  background: radial-gradient(circle, #10b981 0%, rgba(16, 185, 129, 0) 70%);
  bottom: 80px;
  left: 25%;
  animation-delay: -12s;
}

@keyframes floatOrb {
  0% { transform: translate(0px, 0px) scale(1); }
  33% { transform: translate(60px, -70px) scale(1.12); }
  66% { transform: translate(-50px, 50px) scale(0.92); }
  100% { transform: translate(40px, 40px) scale(1.06); }
}

.hyper-gradient-text {
  background: linear-gradient(135deg, #f97316 0%, #a855f7 35%, #3b82f6 70%, #10b981 100%);
  background-size: 300% 300%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientShift 8s ease infinite;
}

@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.hero-float-anim {
  animation: heroFloat 6s ease-in-out infinite;
}

@keyframes heroFloat {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-12px) rotate(0.6deg); }
}

.shimmer-btn {
  position: relative;
  overflow: hidden;
}

.shimmer-btn::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  transform: rotate(30deg);
  animation: shimmerPass 4s infinite;
}

@keyframes shimmerPass {
  0% { transform: translateX(-100%) rotate(30deg); }
  25%, 100% { transform: translateX(100%) rotate(30deg); }
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  animation: pulseDot 2s infinite;
}

.pulse-dot.green {
  background: #10b981;
  box-shadow: 0 0 12px #10b981;
}

.pulse-dot.orange {
  background: #f97316;
  box-shadow: 0 0 12px #f97316;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}

/* Glassmorphic Neon Cards Upgrade */
.hyper-card-neon {
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-radius: 24px;
  padding: 28px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.hyper-card-neon:hover {
  transform: translateY(-8px) scale(1.015);
  border-color: rgba(249, 115, 22, 0.5);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 35px rgba(249, 115, 22, 0.25);
}



