/* ====================================================================
   Authentic Apple Liquid Glassmorphism (VisionOS Frosted Material)
   High-Contrast Legibility & Frosted White Translucent Material for Durian Farm POS
   
   Engineered following Apple Human Interface Guidelines:
   - Rich Deep Emerald Gradient Wallpaper with Warm Amber Vignettes
   - Frosted White Translucent Glass Cards (rgba(255, 255, 255, 0.75) / 0.85 + blur(20px))
   - High Contrast Enforcement: Dark Slate Text (#090d16), Rich Emerald KHR (#047857) & Deep Golden-Amber USD (#b45309)
   - Strictly scoped under: body.glassy-apple-pos
   ==================================================================== */

:root {
  --glass-bg: rgba(22, 33, 52, 0.95);
  --glass-blur: blur(20px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Clear Glass Mode: Deep Dark Slate with Subtle Sheen */
html.glass-mode-clear,
body.glass-mode-clear {
  --glass-bg: rgba(22, 33, 52, 0.92);
  --glass-blur: blur(18px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 10px 28px rgba(0, 0, 0, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Frosted Glass Mode: Deep Dark Slate with Rich Blur */
html.glass-mode-frosted,
body.glass-mode-frosted {
  --glass-bg: rgba(22, 33, 52, 0.96);
  --glass-blur: blur(24px);
  --glass-border: 1px solid rgba(255, 255, 255, 0.08);
  --glass-shadow: 0 12px 32px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* 1. DEEP DARK SLATE BACKGROUND WITH AMBIENT EMERALD & BLUE MESH GLOWS */
body.glassy-apple-pos {
  background-color: #0b1320 !important;
  background-image: 
    radial-gradient(circle at 12% 15%, rgba(16, 185, 129, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 88% 85%, rgba(56, 189, 248, 0.12) 0%, transparent 50%),
    radial-gradient(circle at 50% 50%, rgba(15, 23, 42, 0.75) 0%, transparent 65%),
    linear-gradient(135deg, #0b1320 0%, #101926 50%, #0d1726 100%) !important;
  background-attachment: fixed !important;
  background-size: cover !important;
  color: #f1f5f9 !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Kantumruy Pro", "Inter", system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
}

body.glassy-apple-pos .pos-brand span,
body.glassy-apple-pos .pos-brand .pos-brand-title {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

body.glassy-apple-pos .pos-navbar {
  background: rgba(18, 26, 40, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.25) !important;
}

body.glassy-apple-pos .pos-product-card,
body.glassy-apple-pos .card,
body.glassy-apple-pos .pos-card,
body.glassy-apple-pos .product-item {
  background: rgba(22, 33, 52, 0.95) !important;
  backdrop-filter: blur(20px) saturate(180%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.22), 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .pos-product-card:hover,
body.glassy-apple-pos .card:hover,
body.glassy-apple-pos .pos-card:hover,
body.glassy-apple-pos .product-item:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.38), 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
}

body.glassy-apple-pos .pos-product-title,
body.glassy-apple-pos .pos-product-card .text-dark {
  color: #ffffff !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6) !important;
}

body.glassy-apple-pos .pos-product-price,
body.glassy-apple-pos .pos-price-khr {
  color: #34d399 !important;
  font-weight: 850 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.35) !important;
}

/* 2. LAYOUT CONTAINERS (Permit 3D Canvas & Ambient Wallpaper Refraction) */
body.glassy-apple-pos .pos-container {
  position: relative !important;
  z-index: 1 !important;
  background: transparent !important;
}

body.glassy-apple-pos .pos-main-layout,
body.glassy-apple-pos .pos-catalog-pane,
body.glassy-apple-pos .pos-catalog-grid,
body.glassy-apple-pos .pos-ticket-items {
  background: transparent !important;
}

/* 2.5 BRAND TITLE FIX (Zero Mobile Wrapping & Zero Duplicate Bug) */
body.glassy-apple-pos .pos-brand {
  white-space: nowrap !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  font-size: clamp(0.85rem, 2.5vw, 1.2rem) !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  min-width: 0 !important;
  flex-shrink: 1 !important;
}

body.glassy-apple-pos .pos-brand span,
body.glassy-apple-pos .pos-brand .pos-brand-title {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  display: block !important;
  min-width: 0 !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7) !important;
}

/* 3. TOP NAVBAR (Dark Slate Translucent Bar with Crisp White Text) */
body.glassy-apple-pos .pos-navbar {
  background: rgba(18, 26, 40, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
  box-shadow: 0 4px 20px 0 rgba(0, 0, 0, 0.35) !important;
}

body.glassy-apple-pos .pos-navbar .fw-bold,
body.glassy-apple-pos .pos-navbar h6 {
  color: #ffffff !important;
  font-weight: 750 !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5) !important;
}

body.glassy-apple-pos #posLiveTime {
  color: #34d399 !important;
  font-weight: 750 !important;
  text-shadow: 0 0 12px rgba(52, 211, 153, 0.35) !important;
}

body.glassy-apple-pos #posLiveDate {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

/* Apple Rounded Glass Capsule Buttons in Navbar */
body.glassy-apple-pos .pos-navbar .btn {
  border-radius: 9999px !important;
  background: rgba(22, 33, 52, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.glassy-apple-pos .pos-navbar .btn:hover {
  background: rgba(30, 45, 71, 0.98) !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  color: #ffffff !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.38), 0 6px 18px rgba(0, 0, 0, 0.4) !important;
  transform: translateY(-1px) !important;
}

body.glassy-apple-pos .pos-navbar .btn:active {
  transform: scale(0.96) !important;
}

body.glassy-apple-pos .pos-navbar .badge {
  border-radius: 9999px !important;
  background: #047857 !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
}

body.glassy-apple-pos .btn-back-portal {
  background: rgba(22, 33, 52, 0.9) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
  border-radius: 9999px !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

body.glassy-apple-pos .btn-back-portal:hover {
  background: rgba(30, 45, 71, 0.98) !important;
  color: #ffffff !important;
  border-color: rgba(56, 189, 248, 0.6) !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.38), 0 4px 14px rgba(0, 0, 0, 0.4) !important;
}

/* Glassy UI Active Toggle Switch */
body.glassy-apple-pos #btnToggleGlassyUi.active {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #34d399 !important;
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.35) !important;
  font-weight: 800 !important;
}

body.glassy-apple-pos #btnHeldOrders {
  color: #fbbf24 !important;
  border-color: rgba(245, 158, 11, 0.5) !important;
}

body.glassy-apple-pos #posCashierName {
  color: #34d399 !important;
  font-weight: 750 !important;
}

/* 4. CATALOG HEADER & SPOTLIGHT SEARCH */
body.glassy-apple-pos .pos-catalog-header {
  background: rgba(22, 33, 52, 0.98) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.22) !important;
}

body.glassy-apple-pos .pos-catalog-header .input-group {
  border-radius: 9999px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(56, 189, 248, 0.32) !important;
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.12), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
  overflow: hidden !important;
}

body.glassy-apple-pos .pos-catalog-header .input-group-text {
  background: transparent !important;
  border: none !important;
  color: #34d399 !important;
  font-size: 1.1rem !important;
}

body.glassy-apple-pos .pos-catalog-header .form-control {
  background: transparent !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 750 !important;
}

body.glassy-apple-pos .pos-catalog-header .form-control::placeholder {
  color: #94a3b8 !important;
}

/* Apple Segmented Pills */
body.glassy-apple-pos .pos-category-pill {
  border-radius: 9999px !important;
  background: rgba(22, 33, 52, 0.9) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #cbd5e1 !important;
  font-weight: 750 !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.glassy-apple-pos .pos-category-pill:hover {
  background: rgba(30, 41, 59, 0.95) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.25) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35) !important;
}

body.glassy-apple-pos .pos-category-pill.active {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  color: #ffffff !important;
  border: 1.5px solid #34d399 !important;
  box-shadow: 0 6px 20px rgba(4, 120, 87, 0.35) !important;
  text-shadow: none !important;
}

/* 5. V18 PRODUCT CARDS (Android-Optimized Flexible Column Layout - Zero Clipping) */
body.glassy-apple-pos .pos-product-card {
  position: relative;
  background: rgba(22, 33, 52, 0.95) !important;
  backdrop-filter: blur(20px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(190%) !important;
  border: 1px solid rgba(56, 189, 248, 0.35) !important;
  box-shadow: 0 0 22px rgba(56, 189, 248, 0.22), 0 10px 28px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  border-radius: 20px !important;
  color: #ffffff !important;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease !important;
  overflow: visible !important;
  padding: 12px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  height: auto !important;
  min-height: 260px !important;
  max-height: none !important;
  box-sizing: border-box !important;
}

body.glassy-apple-pos .pos-product-body {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
  width: 100% !important;
}

body.glassy-apple-pos .pos-product-card:hover {
  transform: translateY(-3px) !important;
  border-color: rgba(52, 211, 153, 0.65) !important;
  box-shadow: 0 0 30px rgba(52, 211, 153, 0.38), 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

body.glassy-apple-pos .pos-product-card:active {
  transform: scale(0.97) !important;
}

/* Specific Variety 3D Thumbnail Styling */
body.glassy-apple-pos .pos-product-img-wrap {
  position: relative;
  width: 100%;
  height: 125px;
  min-height: 110px;
  border-radius: 14px;
  overflow: hidden;
  background: #111a28 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  flex-shrink: 0;
  display: block;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

body.glassy-apple-pos .pos-product-img {
  width: 100% !important;
  height: 100% !important;
  min-height: 100px !important;
  object-fit: cover !important;
  object-position: center !important;
  display: block !important;
  transition: transform 0.3s ease;
}

body.glassy-apple-pos .pos-product-card:hover .pos-product-img {
  transform: scale(1.07);
}

body.glassy-apple-pos .pos-product-variety-badge {
  border-radius: 9999px !important;
  background: #047857 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.8) !important;
  padding: 4px 10px !important;
  font-weight: 750 !important;
  position: absolute;
  top: 6px;
  left: 6px;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  font-size: 0.75rem !important;
}

body.glassy-apple-pos .pos-product-title {
  color: #ffffff !important;
  font-weight: 750 !important;
  font-size: 1rem !important;
  line-height: 1.35 !important;
  position: relative;
  z-index: 1;
  text-shadow: none !important;
}

body.glassy-apple-pos .pos-product-price-row {
  display: flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  margin-top: auto !important;
  margin-bottom: 4px !important;
  padding-bottom: 4px !important;
  position: relative;
  z-index: 1;
  overflow: visible !important;
  flex-wrap: wrap !important;
}

body.glassy-apple-pos .pos-price-khr {
  color: #047857 !important;
  font-weight: 850 !important;
  font-size: 1.3rem !important;
  display: inline-block !important;
  position: relative;
  z-index: 1;
  text-shadow: none !important;
  line-height: 1.1 !important;
  visibility: visible !important;
}

body.glassy-apple-pos .pos-price-unit {
  font-size: 0.8rem !important;
  color: #475569 !important;
  font-weight: 600 !important;
  position: relative;
  z-index: 1;
}

body.glassy-apple-pos .pos-price-usd {
  color: #b45309 !important; /* Deep Golden-Amber Contrast */
  font-weight: 750 !important;
  font-size: 1rem !important;
  position: relative;
  z-index: 1;
  text-shadow: none !important;
}

body.glassy-apple-pos .pos-stock-badge {
  background: rgba(15, 23, 42, 0.85) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  font-weight: 750 !important;
}

/* 6. TICKET / CART PANE (Deep Dark Slate Design System) */
body.glassy-apple-pos .pos-ticket-pane {
  position: relative;
  background: rgba(22, 33, 52, 0.95) !important;
  backdrop-filter: blur(25px) !important;
  -webkit-backdrop-filter: blur(25px) !important;
  border-left: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .pos-ticket-header {
  background: rgba(18, 26, 40, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .pos-ticket-header .small.text-dark,
body.glassy-apple-pos .pos-ticket-header .fw-bold {
  color: #ffffff !important;
  font-weight: 750 !important;
  font-size: 1rem !important;
  text-shadow: none !important;
}

body.glassy-apple-pos #posCustomerName {
  color: #34d399 !important;
  font-weight: 750 !important;
  background: rgba(52, 211, 153, 0.15) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  border-radius: 8px !important;
  padding: 3px 10px !important;
}

body.glassy-apple-pos .header-btn-back-catalog {
  background: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
}

body.glassy-apple-pos .pos-ticket-item {
  border-radius: 18px !important;
  background: rgba(15, 23, 42, 0.75) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 6px 20px 0 rgba(0, 0, 0, 0.2) !important;
  margin-bottom: 10px !important;
  padding: 12px 14px !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .pos-item-title {
  color: #ffffff !important;
  font-weight: 750 !important;
  font-size: 1rem !important;
  text-shadow: none !important;
}

body.glassy-apple-pos .pos-ticket-item .badge {
  background: #047857 !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-weight: 750 !important;
}

body.glassy-apple-pos .pos-ticket-item .btn-outline-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
}

body.glassy-apple-pos .pos-ticket-item .btn-outline-secondary .text-muted {
  color: #fbbf24 !important;
  font-weight: 750 !important;
}

body.glassy-apple-pos .pos-qty-group {
  background: rgba(15, 23, 42, 0.85) !important;
  border-radius: 12px !important;
  padding: 2px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.glassy-apple-pos .pos-qty-btn {
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  font-size: 1.15rem !important;
  width: 34px !important;
  height: 34px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

body.glassy-apple-pos .pos-qty-btn:active {
  background: rgba(255, 255, 255, 0.2) !important;
}

body.glassy-apple-pos .pos-weight-badge {
  border-radius: 8px !important;
  background: rgba(52, 211, 153, 0.15) !important;
  border: 1px solid rgba(52, 211, 153, 0.35) !important;
  color: #34d399 !important;
  font-weight: 750 !important;
  font-size: 1rem !important;
  padding: 4px 10px !important;
  margin: 0 4px !important;
}

body.glassy-apple-pos .pos-ticket-item .text-end .fw-bold.text-success,
body.glassy-apple-pos .pos-ticket-item .text-end .fs-6 {
  color: #34d399 !important;
  font-weight: 850 !important;
  font-size: 1.25rem !important;
  text-shadow: none !important;
}

body.glassy-apple-pos .pos-ticket-item .text-end .text-muted {
  color: #fbbf24 !important; /* Golden-amber contrast */
  font-weight: 750 !important;
  font-size: 0.92rem !important;
  text-shadow: none !important;
}

body.glassy-apple-pos .pos-ticket-empty {
  background: rgba(22, 33, 52, 0.85) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border-radius: 20px !important;
  border: 2px dashed rgba(255, 255, 255, 0.15) !important;
  margin: 20px !important;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3) !important;
}

body.glassy-apple-pos .pos-ticket-empty h6 {
  color: #ffffff !important;
  font-weight: 750 !important;
  font-size: 1.15rem !important;
}

body.glassy-apple-pos .pos-ticket-empty p {
  color: #94a3b8 !important;
  font-weight: 600 !important;
}

body.glassy-apple-pos .pos-ticket-empty i {
  color: #34d399 !important;
  opacity: 0.95 !important;
}

body.glassy-apple-pos .pos-ticket-footer {
  background: rgba(18, 26, 40, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.3) !important;
  padding: 16px !important;
}

body.glassy-apple-pos .pos-ticket-footer .text-muted.fw-bold {
  color: #cbd5e1 !important;
  font-weight: 750 !important;
  font-size: 0.92rem !important;
}

body.glassy-apple-pos #posDiscountInput {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  font-size: 1rem !important;
}

body.glassy-apple-pos .pos-total-row {
  background: rgba(15, 23, 42, 0.8) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 2px solid #10b981 !important;
  border-radius: 18px !important;
  padding: 14px 16px !important;
  margin: 12px 0 !important;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3) !important;
}

body.glassy-apple-pos .pos-total-row .text-muted.fw-bold,
body.glassy-apple-pos .pos-total-row .text-muted.fw-semibold {
  color: #cbd5e1 !important;
  font-weight: 750 !important;
  font-size: 0.88rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

body.glassy-apple-pos .pos-grand-total-khr {
  color: #34d399 !important;
  font-weight: 850 !important;
  font-size: 2.3rem !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

body.glassy-apple-pos .pos-grand-total-usd {
  color: #fbbf24 !important; /* Golden-amber */
  font-weight: 850 !important;
  font-size: 1.55rem !important;
  line-height: 1.05 !important;
  text-shadow: none !important;
}

/* 7. CHECKOUT BUTTONS */
body.glassy-apple-pos .pos-btn-hold-order {
  background: rgba(251, 191, 36, 0.15) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
  border: 1.5px solid #fbbf24 !important;
  color: #fbbf24 !important;
  font-weight: 750 !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 16px rgba(245, 158, 11, 0.2) !important;
}

body.glassy-apple-pos .pos-btn-hold-order:not(:disabled):hover {
  background: #b45309 !important;
  color: #ffffff !important;
  border-color: #b45309 !important;
  box-shadow: 0 8px 24px rgba(180, 83, 9, 0.4) !important;
}

body.glassy-apple-pos .pos-btn-pay-khqr {
  border-radius: 18px !important;
  background: linear-gradient(135deg, rgba(225, 29, 72, 0.95) 0%, rgba(190, 18, 60, 0.95) 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(225, 29, 72, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.glassy-apple-pos .pos-btn-pay-khqr:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(225, 29, 72, 0.55) !important;
}

body.glassy-apple-pos .pos-btn-pay-cash {
  border-radius: 18px !important;
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  border: 1.5px solid rgba(255, 255, 255, 0.8) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
  box-shadow: 0 10px 28px rgba(4, 120, 87, 0.45) !important;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

body.glassy-apple-pos .pos-btn-pay-cash:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 34px rgba(4, 120, 87, 0.55) !important;
}

/* 8. MODALS & FORMS (Deep Dark Slate Design System) */
body.glassy-apple-pos .modal-content {
  border-radius: 20px !important;
  background: rgba(22, 33, 52, 0.98) !important;
  backdrop-filter: blur(28px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5) !important;
  color: #f1f5f9 !important;
  overflow: hidden;
}

body.glassy-apple-pos .modal-header {
  background: rgba(18, 26, 40, 0.98) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.glassy-apple-pos .modal-header .modal-title,
body.glassy-apple-pos .modal-header h5,
body.glassy-apple-pos .modal-header h6 {
  color: #ffffff !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body.glassy-apple-pos .modal-footer {
  background: rgba(18, 26, 40, 0.98) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.glassy-apple-pos .modal-body {
  background: rgba(22, 33, 52, 0.98) !important;
  color: #f1f5f9 !important;
}

body.glassy-apple-pos .modal label {
  color: #cbd5e1 !important;
  font-weight: 650 !important;
}

body.glassy-apple-pos .table {
  color: #f1f5f9 !important;
}

body.glassy-apple-pos .table th {
  color: #34d399 !important;
  font-weight: 750 !important;
  background: rgba(18, 26, 40, 0.9) !important;
  border-bottom: 2px solid rgba(52, 211, 153, 0.3) !important;
  text-shadow: none !important;
}

body.glassy-apple-pos .table td {
  color: #f1f5f9 !important;
  font-weight: 600 !important;
  background: rgba(22, 33, 52, 0.7) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  text-shadow: none !important;
}

body.glassy-apple-pos .modal-backdrop {
  background-color: rgba(11, 19, 32, 0.75) !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}

/* Numeric Keypad Buttons (Apple Calculator Glass - Dark Slate) */
body.glassy-apple-pos .pos-keypad-btn {
  border-radius: 16px !important;
  background: rgba(15, 23, 42, 0.85) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25) !important;
  color: #ffffff !important;
  font-weight: 800 !important;
}

body.glassy-apple-pos .pos-keypad-btn:active {
  background: rgba(30, 41, 59, 0.95) !important;
}

/* 9. FLOATING CART BAR (Mobile/Tablet View) */
body.glassy-apple-pos .pos-floating-cart-bar {
  background: rgba(18, 26, 40, 0.95) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  border: 1.5px solid #10b981 !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.4) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .pos-floating-cart-bar #floatCartItems {
  background: #047857 !important;
  color: #ffffff !important;
  font-weight: 750 !important;
}

body.glassy-apple-pos .pos-floating-cart-bar #floatCartTotal {
  color: #34d399 !important; /* Vibrant emerald */
  font-weight: 850 !important;
  font-size: 1.3rem !important;
  text-shadow: none !important;
}

/* 10. HELD ORDERS / CART SWITCHING (Deep Dark Slate: 0.95 Opacity) */
body.glassy-apple-pos #parkOrderModal .modal-content,
body.glassy-apple-pos #heldOrdersModal .modal-content {
  background: rgba(22, 33, 52, 0.98) !important;
  backdrop-filter: blur(28px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(28px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5) !important;
}

body.glassy-apple-pos .held-order-card {
  background: rgba(22, 33, 52, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 16px !important;
  box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.3) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .held-order-card .fw-bold {
  color: #ffffff !important;
  font-weight: 750 !important;
}

body.glassy-apple-pos .held-order-card .text-success {
  color: #34d399 !important;
  font-weight: 850 !important;
}

/* 11. Mobile Viewport Product Card & Thumbnail Image Responsive Display Fix */
@media (max-width: 768px) {
  body.glassy-apple-pos .pos-catalog-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)) !important;
    gap: 10px !important;
    padding: 10px !important;
  }

  body.glassy-apple-pos .pos-product-card {
    padding: 10px !important;
    border-radius: 14px !important;
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.glassy-apple-pos .pos-product-img-wrap {
    height: 110px !important;
    min-height: 100px !important;
    max-height: 125px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 10px !important;
    position: relative !important;
    display: block !important;
  }

  body.glassy-apple-pos .pos-product-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  body.glassy-apple-pos .pos-navbar {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
  }
  body.glassy-apple-pos .pos-navbar > div:first-child {
    width: 100% !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 4px !important;
  }
  body.glassy-apple-pos .pos-navbar > div:last-child {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  body.glassy-apple-pos .pos-navbar .pos-brand {
    overflow: visible !important;
    white-space: nowrap !important;
  }
  body.glassy-apple-pos .pos-navbar .farm-brand-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    overflow: visible !important;
  }
}

@media (max-width: 576px) {
  body.glassy-apple-pos .pos-catalog-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    padding: 8px !important;
  }

  body.glassy-apple-pos .pos-product-card {
    padding: 8px !important;
    border-radius: 12px !important;
    height: auto !important;
    min-height: 260px !important;
    max-height: none !important;
    overflow: visible !important;
  }

  body.glassy-apple-pos .pos-product-img-wrap {
    height: 110px !important;
    min-height: 100px !important;
    max-height: 120px !important;
    width: 100% !important;
    flex-shrink: 0 !important;
    overflow: hidden !important;
    border-radius: 8px !important;
    position: relative !important;
    display: block !important;
  }

  body.glassy-apple-pos .pos-product-img {
    width: 100% !important;
    height: 100% !important;
    min-height: 100px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
  }

  body.glassy-apple-pos .pos-navbar {
    flex-wrap: wrap !important;
    gap: 8px !important;
    padding-bottom: 8px !important;
  }
  body.glassy-apple-pos .pos-navbar > div:first-child {
    width: 100% !important;
    justify-content: flex-start !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding-bottom: 4px !important;
  }
  body.glassy-apple-pos .pos-navbar > div:last-child {
    width: 100% !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
  }
  body.glassy-apple-pos .pos-navbar .pos-brand {
    overflow: visible !important;
    white-space: nowrap !important;
  }
  body.glassy-apple-pos .pos-navbar .farm-brand-name {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
    overflow: visible !important;
  }
}

/* 13. MOBILE VIEW SWITCHER & HIGH-CONTRAST NAVIGATION PILLS */
body.glassy-apple-pos .pos-mobile-view-switcher {
  background: rgba(18, 26, 40, 0.95) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.glassy-apple-pos .pos-view-switch-btn {
  border-radius: 9999px !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #cbd5e1 !important;
  font-weight: 750 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

body.glassy-apple-pos .pos-view-switch-btn.active {
  background: linear-gradient(135deg, #047857 0%, #065f46 100%) !important;
  color: #ffffff !important;
  border-color: #34d399 !important;
  box-shadow: 0 4px 16px rgba(4, 120, 87, 0.45) !important;
}

/* 14. SOLE PRIMARY CURRENCY: RIEL (KHR) EXCLUSIVELY */
body.glassy-apple-pos .pos-price-usd,
body.glassy-apple-pos .sub-price-usd,
body.glassy-apple-pos #posGrandTotalUsd,
body.glassy-apple-pos #cashDueUsd,
body.glassy-apple-pos #cashChangeUsd,
body.glassy-apple-pos #parkModalTotalUsd,
body.glassy-apple-pos #posExchangeRateDisplay {
  display: none !important;
}

/* ====================================================================
   COMBINED CRITICAL UI/UX: POS SYSTEM DARK THEME OVERHAUL
   Strict zero-tolerance for harsh/blinding white containers, inputs & panels!
   ==================================================================== */
.pos-sidebar,
.pos-cart-container,
.cart-panel,
.checkout-panel,
.order-ticket-container,
.pos-ticket-pane,
aside.pos-ticket-pane,
body.glassy-apple-pos .pos-sidebar,
body.glassy-apple-pos .pos-cart-container,
body.glassy-apple-pos .cart-panel,
body.glassy-apple-pos .checkout-panel,
body.glassy-apple-pos .order-ticket-container,
body.glassy-apple-pos .pos-ticket-pane {
  background: rgba(22, 33, 52, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .pos-ticket-header {
  background: #0d1522 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .pos-ticket-footer {
  background: #0d1522 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .pos-total-row {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 2px solid #10b981 !important;
  border-radius: 16px !important;
  color: #ffffff !important;
}

body.glassy-apple-pos #posDiscountInput,
body.glassy-apple-pos .pos-ticket-footer .form-control,
body.glassy-apple-pos .pos-ticket-footer input {
  background: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
  border-radius: 10px !important;
}

body.glassy-apple-pos .pos-ticket-footer .input-group-text {
  background: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  font-weight: 750 !important;
}

/* Modals & Inputs inside POS */
body.glassy-apple-pos .modal-content,
.modal-content {
  background: #162134 !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
  border-radius: 20px !important;
}

body.glassy-apple-pos .modal-header,
.modal-header {
  background: #0d1522 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .modal-body,
.modal-body {
  background: #162134 !important;
  color: #f1f5f9 !important;
}

body.glassy-apple-pos .modal-footer,
.modal-footer {
  background: #0d1522 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.glassy-apple-pos .modal label,
body.glassy-apple-pos .modal .form-label,
.modal label,
.modal .form-label {
  color: #cbd5e1 !important;
  font-weight: 600 !important;
}

body.glassy-apple-pos .pos-container .form-control,
body.glassy-apple-pos .pos-container .form-select,
body.glassy-apple-pos .pos-container input:not([type="checkbox"]):not([type="radio"]),
body.glassy-apple-pos .pos-container select,
body.glassy-apple-pos .modal-content .form-control,
body.glassy-apple-pos .modal-content .form-select,
body.glassy-apple-pos .modal-content input:not([type="checkbox"]):not([type="radio"]),
body.glassy-apple-pos .modal-content select {
  background-color: rgba(15, 23, 42, 0.85) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
  color-scheme: dark !important;
}

body.glassy-apple-pos .pos-container .input-group-text,
body.glassy-apple-pos .modal-content .input-group-text {
  background-color: rgba(15, 23, 42, 0.95) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}

body.glassy-apple-pos .bg-light,
body.glassy-apple-pos .modal .bg-light,
body.glassy-apple-pos .modal-header.bg-light,
body.glassy-apple-pos .modal-footer.bg-light,
body.glassy-apple-pos .modal-body.bg-light {
  background-color: rgba(15, 23, 42, 0.75) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.glassy-apple-pos .text-dark:not(.badge.bg-warning):not(.btn-warning *):not(.btn-warning),
body.glassy-apple-pos .modal .text-dark:not(.badge.bg-warning):not(.btn-warning *):not(.btn-warning),
body.glassy-apple-pos .pos-ticket-pane .text-dark,
body.glassy-apple-pos .pos-navbar .text-dark,
body.glassy-apple-pos .pos-product-card .text-dark,
body.glassy-apple-pos h1.text-dark,
body.glassy-apple-pos h2.text-dark,
body.glassy-apple-pos h3.text-dark,
body.glassy-apple-pos h4.text-dark,
body.glassy-apple-pos h5.text-dark,
body.glassy-apple-pos h6.text-dark,
body.glassy-apple-pos label.text-dark,
body.glassy-apple-pos span.text-dark:not(.badge.bg-warning) {
  color: #ffffff !important;
}

body.glassy-apple-pos .text-muted:not(.badge),
body.glassy-apple-pos .modal .text-muted:not(.badge),
body.glassy-apple-pos .pos-ticket-pane .text-muted:not(.badge),
body.glassy-apple-pos .pos-navbar .text-muted:not(.badge) {
  color: #cbd5e1 !important;
}


/* ==========================================================================
   GLOBAL LIGHT MODE OVERRIDES FOR POS SYSTEM
   ========================================================================== */
body.light-mode.glassy-apple-pos,
body.light.glassy-apple-pos,
body.theme-light.glassy-apple-pos,
body.light-mode,
body.light,
body.theme-light {
  background-color: #f1f5f9 !important;
  background-image: none !important;
  color: #0f172a !important;
}

body.light-mode .card,
body.light-mode .box,
body.light-mode .panel,
body.light-mode .pos-card,
body.light-mode .pos-sidebar,
body.light-mode .pos-cart-container,
body.light-mode .cart-panel,
body.light-mode .checkout-panel,
body.light-mode .inventory-card,
body.light-mode .modal-content,
body.light-mode .pos-ticket-pane,
body.light-mode aside.pos-ticket-pane,
body.light-mode .pos-product-card,
body.light-mode .pos-catalog-header,
body.light-mode .pos-ticket-header,
body.light-mode .pos-ticket-footer,
body.light .card,
body.light .box,
body.light .panel,
body.light .pos-card,
body.light .pos-sidebar,
body.light .pos-cart-container,
body.light .cart-panel,
body.light .checkout-panel,
body.light .inventory-card,
body.light .modal-content,
body.light .pos-ticket-pane,
body.light .pos-product-card,
body.theme-light .card,
body.theme-light .box,
body.theme-light .panel,
body.theme-light .pos-card,
body.theme-light .pos-sidebar,
body.theme-light .pos-cart-container,
body.theme-light .cart-panel,
body.theme-light .checkout-panel,
body.theme-light .inventory-card,
body.theme-light .modal-content,
body.theme-light .pos-ticket-pane,
body.theme-light .pos-product-card,
[data-theme="light"] .card,
[data-theme="light"] .box,
[data-theme="light"] .panel,
[data-theme="light"] .pos-card,
[data-theme="light"] .pos-sidebar,
[data-theme="light"] .pos-cart-container,
[data-theme="light"] .cart-panel,
[data-theme="light"] .checkout-panel,
[data-theme="light"] .inventory-card,
[data-theme="light"] .modal-content,
[data-theme="light"] .pos-ticket-pane,
[data-theme="light"] .pos-product-card {
  background: #ffffff !important;
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

body.light-mode .text-white,
body.light-mode [class*="text-white"],
body.light-mode .text-slate-100,
body.light-mode .text-slate-200,
body.light-mode .text-white-50,
body.light .text-white,
body.light [class*="text-white"],
body.theme-light .text-white,
body.theme-light [class*="text-white"],
[data-theme="light"] .text-white,
[data-theme="light"] [class*="text-white"],
.light-mode .text-white,
.light-mode [class*="text-white"] {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.light-mode .pos-product-title,
body.light-mode .pos-item-title,
body.light-mode .pos-total-label,
body.theme-light .pos-product-title,
body.theme-light .pos-item-title,
body.theme-light .pos-total-label {
  color: #0f172a !important;
  font-weight: 700 !important;
  text-shadow: none !important;
}

body.light-mode .badge.bg-danger,
body.light-mode .badge.bg-success,
body.light-mode .badge.bg-primary,
body.light-mode .badge.bg-dark,
body.light .badge.bg-danger,
body.light .badge.bg-success,
body.light .badge.bg-primary,
body.light .badge.bg-dark,
body.theme-light .badge.bg-danger,
body.theme-light .badge.bg-success,
body.theme-light .badge.bg-primary,
body.theme-light .badge.bg-dark {
  color: #ffffff !important;
}

/* Light Mode POS Prices & Buttons */
body.light-mode .pos-price-khr,
body.light-mode .pos-grand-total-khr,
body.theme-light .pos-price-khr,
body.theme-light .pos-grand-total-khr,
[data-theme="light"] .pos-price-khr,
[data-theme="light"] .pos-grand-total-khr {
  color: #047857 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
  filter: none !important;
}

body.light-mode .pos-price-usd,
body.light-mode .pos-grand-total-usd,
body.theme-light .pos-price-usd,
body.theme-light .pos-grand-total-usd,
[data-theme="light"] .pos-price-usd,
[data-theme="light"] .pos-grand-total-usd {
  color: #b45309 !important;
  font-weight: 850 !important;
  text-shadow: none !important;
  filter: none !important;
}

body.light-mode .btn-pos-theme-toggle,
body.light-mode #btnPosThemeToggle,
body.light-mode #btnToggleGlassyUi,
body.light-mode .btn-back-portal,
body.theme-light .btn-pos-theme-toggle,
body.theme-light #btnPosThemeToggle,
body.theme-light #btnToggleGlassyUi,
body.theme-light .btn-back-portal,
[data-theme="light"] .btn-pos-theme-toggle,
[data-theme="light"] #btnPosThemeToggle,
[data-theme="light"] #btnToggleGlassyUi,
[data-theme="light"] .btn-back-portal {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .btn-pos-pay,
body.light-mode .btn-checkout,
body.theme-light .btn-pos-pay,
body.theme-light .btn-checkout,
[data-theme="light"] .btn-pos-pay,
[data-theme="light"] .btn-checkout {
  background: #059669 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.3) !important;
}

/* Master Light Mode Farm Brand in POS Header */
body.light-mode .pos-brand-title,
body.light-mode .farm-brand-name,
body.theme-light .pos-brand-title,
body.theme-light .farm-brand-name,
body.light .pos-brand-title,
body.light .farm-brand-name,
[data-theme="light"] .pos-brand-title,
[data-theme="light"] .farm-brand-name {
  color: #065f46 !important; /* Deep forest emerald */
  font-weight: 850 !important;
  text-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

/* Master Light Mode Durian Product Cards & Titles */
body.light-mode .pos-product-title,
body.theme-light .pos-product-title,
body.light .pos-product-title,
[data-theme="light"] .pos-product-title,
.light-mode .pos-product-title {
  color: #0f172a !important;
  font-weight: 800 !important;
  text-shadow: none !important;
}

body.light-mode .pos-product-card,
body.theme-light .pos-product-card,
body.light .pos-product-card,
[data-theme="light"] .pos-product-card {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 20px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03) !important;
}

body.light-mode .pos-product-variety-badge,
body.theme-light .pos-product-variety-badge,
[data-theme="light"] .pos-product-variety-badge {
  background: #dcfce7 !important;
  border: 1px solid #86efac !important;
  color: #059669 !important;
}

body.light-mode .pos-product-card .pos-price-khr,
body.theme-light .pos-product-card .pos-price-khr,
[data-theme="light"] .pos-product-card .pos-price-khr {
  color: #059669 !important;
  font-weight: 850 !important;
}

body.light-mode .pos-product-card .pos-price-unit,
body.theme-light .pos-product-card .pos-price-unit,
[data-theme="light"] .pos-product-card .pos-price-unit {
  color: #64748b !important;
  font-weight: 600 !important;
}

/* Master Light Mode Quantity Plus/Minus Buttons */
body.light-mode .pos-qty-btn,
body.light-mode.glassy-apple-pos .pos-qty-btn,
body.theme-light .pos-qty-btn,
body.theme-light.glassy-apple-pos .pos-qty-btn,
body.light .pos-qty-btn,
[data-theme="light"] .pos-qty-btn {
  background: #f1f5f9 !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 850 !important;
  font-size: 1.15rem !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .pos-qty-btn:hover,
body.theme-light .pos-qty-btn:hover,
[data-theme="light"] .pos-qty-btn:hover {
  background: #e2e8f0 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

body.light-mode .pos-weight-badge,
body.light-mode.glassy-apple-pos .pos-weight-badge,
body.theme-light .pos-weight-badge,
[data-theme="light"] .pos-weight-badge {
  background: #dcfce7 !important;
  border: 1px solid #86efac !important;
  color: #047857 !important;
}

/* Master Light Mode Category Pills */
body.light-mode .pos-category-pill,
body.theme-light .pos-category-pill,
body.light .pos-category-pill,
[data-theme="light"] .pos-category-pill {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #475569 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04) !important;
}

body.light-mode .pos-category-pill:hover,
body.theme-light .pos-category-pill:hover,
[data-theme="light"] .pos-category-pill:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #94a3b8 !important;
}

body.light-mode .pos-category-pill.active,
body.theme-light .pos-category-pill.active,
[data-theme="light"] .pos-category-pill.active {
  background: #059669 !important;
  border-color: #059669 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28) !important;
}

/* Master Light Mode Ticket Pane Typography */
body.light-mode .pos-ticket-heading,
body.light-mode .pos-empty-title,
body.light-mode .pos-discount-label,
body.light-mode .pos-total-label,
body.theme-light .pos-ticket-heading,
body.theme-light .pos-empty-title,
body.theme-light .pos-discount-label,
body.theme-light .pos-total-label,
[data-theme="light"] .pos-ticket-heading,
[data-theme="light"] .pos-empty-title,
[data-theme="light"] .pos-discount-label,
[data-theme="light"] .pos-total-label {
  color: #0f172a !important;
  text-shadow: none !important;
}

body.light-mode #posCustomerName,
body.theme-light #posCustomerName,
[data-theme="light"] #posCustomerName {
  color: #0f172a !important;
}

body.light-mode #posDiscountInput,
body.theme-light #posDiscountInput,
[data-theme="light"] #posDiscountInput {
  color: #0f172a !important;
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

body.light-mode .pos-ticket-item,
body.theme-light .pos-ticket-item,
[data-theme="light"] .pos-ticket-item {
  background: #f8fafc !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
}

body.light-mode .pos-cart-price-btn,
body.theme-light .pos-cart-price-btn,
[data-theme="light"] .pos-cart-price-btn {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
}

/* Daily Price Modal Controls */
.dp-top-bar {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff;
}
.dp-rate-badge {
  background: rgba(22, 33, 52, 0.9);
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff;
}
body.light-mode .dp-top-bar,
body.theme-light .dp-top-bar,
[data-theme="light"] .dp-top-bar {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}
body.light-mode .dp-rate-badge,
body.theme-light .dp-rate-badge,
[data-theme="light"] .dp-rate-badge {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

