/* ==========================================================================
   WapiGo SaaS - Light & Dark Mode Universal Stylesheet
   Designed for clean, elegant, high-contrast, modern UI in both modes
   ========================================================================== */

/* Smooth transitions for theme switching */
body {
  transition: background-color 0.25s ease, color 0.25s ease;
}
nav, aside > div {
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

/* --------------------------------------------------------------------------
   Theme Toggle Button & Icon Animations
   -------------------------------------------------------------------------- */
.theme-toggle-btn {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle-btn:hover {
  transform: translateY(-1px);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

/* Dark mode icon visibility */
html.dark .theme-icon-moon {
  display: none !important;
}

html.dark .theme-icon-sun {
  display: flex !important;
  animation: sunIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Light mode icon visibility */
html:not(.dark) .theme-icon-sun,
html.light .theme-icon-sun {
  display: none !important;
}

html:not(.dark) .theme-icon-moon,
html.light .theme-icon-moon {
  display: flex !important;
  animation: moonIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes sunIn {
  0% { transform: rotate(-80deg) scale(0.6); opacity: 0; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

@keyframes moonIn {
  0% { transform: rotate(60deg) scale(0.6); opacity: 0; }
  100% { transform: rotate(0deg) scale(1); opacity: 1; }
}

/* ==========================================================================
   LIGHT MODE OVERRIDES (Applied on html.light and html:not(.dark))
   ========================================================================== */

html.light,
html:not(.dark) {
  color-scheme: light;
}

/* --------------------------------------------------------------------------
   1. GLOBAL PAGE BACKGROUND & BODY TEXT
   -------------------------------------------------------------------------- */
html.light body,
html:not(.dark) body {
  background-color: #f8fafc !important; /* slate-50 */
  color: #0f172a !important;            /* slate-900 */
}

/* --------------------------------------------------------------------------
   2. TOP NAVIGATION BAR
   -------------------------------------------------------------------------- */
html.light nav,
html:not(.dark) nav {
  background-color: rgba(255, 255, 255, 0.94) !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.04) !important;
}

html.light nav .text-white,
html:not(.dark) nav .text-white {
  color: #0f172a !important;
}

html.light nav .text-slate-200,
html:not(.dark) nav .text-slate-200,
html.light nav .text-slate-300,
html:not(.dark) nav .text-slate-300 {
  color: #334155 !important;
}

html.light nav .text-slate-400,
html:not(.dark) nav .text-slate-400 {
  color: #475569 !important;
}

html.light nav a.hover\:bg-slate-800\/60:hover,
html:not(.dark) nav a.hover\:bg-slate-800\/60:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light nav .bg-slate-800,
html:not(.dark) nav .bg-slate-800 {
  background-color: #e2e8f0 !important;
}

html.light nav .border-slate-800,
html:not(.dark) nav .border-slate-800 {
  border-color: #e2e8f0 !important;
}

/* Theme Toggle Button in Light Mode */
html.light .theme-toggle-btn,
html:not(.dark) .theme-toggle-btn {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #334155 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

html.light .theme-toggle-btn:hover,
html:not(.dark) .theme-toggle-btn:hover {
  background-color: #f1f5f9 !important;
  border-color: #94a3b8 !important;
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   3. PRIMARY CARDS, CONTAINERS & PANELS
   -------------------------------------------------------------------------- */
html.light .bg-slate-900,
html.light .bg-slate-900\/95,
html.light .bg-slate-900\/90,
html.light .bg-slate-900\/80,
html.light .bg-slate-900\/70,
html.light .bg-slate-900\/60,
html.light .bg-slate-900\/50,
html.light .bg-slate-900\/40,
html.light .bg-slate-900\/30,
html:not(.dark) .bg-slate-900,
html:not(.dark) .bg-slate-900\/95,
html:not(.dark) .bg-slate-900\/90,
html:not(.dark) .bg-slate-900\/80,
html:not(.dark) .bg-slate-900\/70,
html:not(.dark) .bg-slate-900\/60,
html:not(.dark) .bg-slate-900\/50,
html:not(.dark) .bg-slate-900\/40,
html:not(.dark) .bg-slate-900\/30 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05) !important;
}

/* --------------------------------------------------------------------------
   4. SECONDARY CONTAINERS, INNER BOXES & WELLS
   -------------------------------------------------------------------------- */
html.light .bg-slate-950,
html.light .bg-slate-950\/95,
html.light .bg-slate-950\/90,
html.light .bg-slate-950\/85,
html.light .bg-slate-950\/80,
html.light .bg-slate-950\/70,
html.light .bg-slate-950\/60,
html.light .bg-slate-950\/50,
html.light .bg-slate-950\/40,
html:not(.dark) .bg-slate-950,
html:not(.dark) .bg-slate-950\/95,
html:not(.dark) .bg-slate-950\/90,
html:not(.dark) .bg-slate-950\/85,
html:not(.dark) .bg-slate-950\/80,
html:not(.dark) .bg-slate-950\/70,
html:not(.dark) .bg-slate-950\/60,
html:not(.dark) .bg-slate-950\/50,
html:not(.dark) .bg-slate-950\/40 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

/* Exception: Modal Backdrops & Overlays (Retain dark focused overlay) */
html.light .fixed.inset-0.bg-slate-950\/80,
html.light .fixed.inset-0.bg-slate-950\/85,
html.light .fixed.inset-0.bg-black\/80,
html.light .fixed.inset-0.bg-black\/70,
html.light .fixed.inset-0[class*="bg-slate-950"],
html.light .fixed.inset-0[class*="bg-black"],
html:not(.dark) .fixed.inset-0.bg-slate-950\/80,
html:not(.dark) .fixed.inset-0.bg-slate-950\/85,
html:not(.dark) .fixed.inset-0.bg-black\/80,
html:not(.dark) .fixed.inset-0.bg-black\/70,
html:not(.dark) .fixed.inset-0[class*="bg-slate-950"],
html:not(.dark) .fixed.inset-0[class*="bg-black"] {
  background-color: rgba(15, 23, 42, 0.65) !important;
}

/* --------------------------------------------------------------------------
   4b. TINTED WELLS, CARDS & HERO CALLOUT CONTAINERS
   -------------------------------------------------------------------------- */
/* Emerald Wells & Boxes in Light Mode */
html.light .bg-emerald-950,
html.light .bg-emerald-950\/30,
html.light .bg-emerald-950\/40,
html.light .bg-emerald-950\/60,
html.light .bg-emerald-950\/70,
html:not(.dark) .bg-emerald-950,
html:not(.dark) .bg-emerald-950\/30,
html:not(.dark) .bg-emerald-950\/40,
html:not(.dark) .bg-emerald-950\/60,
html:not(.dark) .bg-emerald-950\/70 {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
}

html.light .bg-emerald-950 p,
html.light .bg-emerald-950\/30 p,
html.light .bg-emerald-950\/40 p,
html.light .bg-emerald-950\/60 p,
html.light .bg-emerald-950\/70 p,
html.light .bg-emerald-950 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html.light .bg-emerald-950\/30 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html.light .bg-emerald-950\/40 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html.light .bg-emerald-950\/60 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html.light .bg-emerald-950\/70 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html:not(.dark) .bg-emerald-950 p,
html:not(.dark) .bg-emerald-950\/30 p,
html:not(.dark) .bg-emerald-950\/40 p,
html:not(.dark) .bg-emerald-950\/60 p,
html:not(.dark) .bg-emerald-950\/70 p,
html:not(.dark) .bg-emerald-950 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html:not(.dark) .bg-emerald-950\/30 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html:not(.dark) .bg-emerald-950\/40 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html:not(.dark) .bg-emerald-950\/60 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html:not(.dark) .bg-emerald-950\/70 span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]) {
  color: #065f46 !important;
}

html.light .bg-emerald-950 strong,
html.light .bg-emerald-950\/30 strong,
html.light .bg-emerald-950\/40 strong,
html.light .bg-emerald-950\/60 strong,
html.light .bg-emerald-950\/70 strong,
html:not(.dark) .bg-emerald-950 strong,
html:not(.dark) .bg-emerald-950\/30 strong,
html:not(.dark) .bg-emerald-950\/40 strong,
html:not(.dark) .bg-emerald-950\/60 strong,
html:not(.dark) .bg-emerald-950\/70 strong {
  color: #064e3b !important;
}

/* Purple Wells & Boxes in Light Mode */
html.light .bg-purple-950,
html.light .bg-purple-950\/20,
html:not(.dark) .bg-purple-950,
html:not(.dark) .bg-purple-950\/20 {
  background-color: #faf5ff !important;
  border-color: #e9d5ff !important;
}

html.light .bg-purple-950 p,
html.light .bg-purple-950\/20 p,
html.light .bg-purple-950 span,
html.light .bg-purple-950\/20 span,
html.light .bg-purple-950 div,
html.light .bg-purple-950\/20 div,
html:not(.dark) .bg-purple-950 p,
html:not(.dark) .bg-purple-950\/20 p,
html:not(.dark) .bg-purple-950 span,
html:not(.dark) .bg-purple-950\/20 span,
html:not(.dark) .bg-purple-950 div,
html:not(.dark) .bg-purple-950\/20 div {
  color: #581c87 !important;
}

/* Complex Gradient Banners & Cards in Light Mode */
html.light [class*="from-emerald-950"],
html:not(.dark) [class*="from-emerald-950"] {
  background-image: linear-gradient(to right, #ecfdf5, #f0fdf4, #ffffff) !important;
  border-color: #a7f3d0 !important;
}

html.light [class*="from-emerald-950"] h1,
html.light [class*="from-emerald-950"] h2,
html.light [class*="from-emerald-950"] h3,
html.light [class*="from-emerald-950"] h4,
html:not(.dark) [class*="from-emerald-950"] h1,
html:not(.dark) [class*="from-emerald-950"] h2,
html:not(.dark) [class*="from-emerald-950"] h3,
html:not(.dark) [class*="from-emerald-950"] h4 {
  color: #064e3b !important;
}

html.light [class*="from-emerald-950"] p,
html.light [class*="from-emerald-950"] li,
html.light [class*="from-emerald-950"] span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]),
html:not(.dark) [class*="from-emerald-950"] p,
html:not(.dark) [class*="from-emerald-950"] li,
html:not(.dark) [class*="from-emerald-950"] span:not(.btn *):not([class*="bg-emerald-500"]):not([class*="bg-amber-500"]):not([class*="text-slate-950"]) {
  color: #065f46 !important;
}

html.light [class*="from-emerald-950"] strong,
html:not(.dark) [class*="from-emerald-950"] strong {
  color: #064e3b !important;
}

/* Amber / Warning Callouts */
html.light [class*="from-amber-950"],
html.light [class*="from-amber-500\/10"],
html:not(.dark) [class*="from-amber-950"],
html:not(.dark) [class*="from-amber-500\/10"] {
  background-image: linear-gradient(to right, #fffbeb, #ffffff, #fef3c7) !important;
  border-color: #f59e0b !important;
}

html.light [class*="from-amber-950"] h3,
html.light [class*="from-amber-500\/10"] div.font-bold,
html:not(.dark) [class*="from-amber-950"] h3,
html:not(.dark) [class*="from-amber-500\/10"] div.font-bold {
  color: #78350f !important;
}

html.light [class*="from-amber-950"] p,
html.light [class*="from-amber-500\/10"] p,
html:not(.dark) [class*="from-amber-950"] p,
html:not(.dark) [class*="from-amber-500\/10"] p {
  color: #92400e !important;
}

/* Landing & Promo Bottom Sections */
html.light section[class*="from-slate-950"][class*="to-emerald-950"],
html.light section[class*="from-slate-950"][class*="via-emerald-950"],
html:not(.dark) section[class*="from-slate-950"][class*="to-emerald-950"],
html:not(.dark) section[class*="from-slate-950"][class*="via-emerald-950"] {
  background-image: linear-gradient(to bottom, #f8fafc, #ecfdf5, #f8fafc) !important;
  border-color: #e2e8f0 !important;
}

html.light section[class*="from-slate-900"][class*="to-slate-950"],
html:not(.dark) section[class*="from-slate-900"][class*="to-slate-950"] {
  background-image: linear-gradient(to bottom, #ffffff, #f8fafc) !important;
  border-color: #e2e8f0 !important;
}

html.light [class*="from-slate-900"][class*="via-slate-850"],
html:not(.dark) [class*="from-slate-900"][class*="via-slate-850"] {
  background-image: linear-gradient(to right, #ffffff, #f8fafc, #ffffff) !important;
  border-color: #e2e8f0 !important;
}

/* --------------------------------------------------------------------------
   5. SIDEBAR NAVIGATION
   -------------------------------------------------------------------------- */
html.light aside > div,
html:not(.dark) aside > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05) !important;
}

html.light aside .text-slate-400,
html:not(.dark) aside .text-slate-400 {
  color: #475569 !important;
  font-weight: 700;
}

html.light aside a.text-slate-300,
html:not(.dark) aside a.text-slate-300 {
  color: #334155 !important;
}

html.light aside a.text-slate-300:hover,
html:not(.dark) aside a.text-slate-300:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

html.light aside a.bg-emerald-500\/10,
html:not(.dark) aside a.bg-emerald-500\/10 {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
  font-weight: 700 !important;
}

/* --------------------------------------------------------------------------
   6. BORDERS & DIVIDERS
   -------------------------------------------------------------------------- */
html.light .border-slate-800,
html.light .border-slate-800\/90,
html.light .border-slate-800\/80,
html.light .border-slate-800\/60,
html.light .border-slate-800\/40,
html.light .border-slate-700,
html.light .border-slate-700\/80,
html.light .border-slate-600,
html:not(.dark) .border-slate-800,
html:not(.dark) .border-slate-800\/90,
html:not(.dark) .border-slate-800\/80,
html:not(.dark) .border-slate-800\/60,
html:not(.dark) .border-slate-800\/40,
html:not(.dark) .border-slate-700,
html:not(.dark) .border-slate-700\/80,
html:not(.dark) .border-slate-600 {
  border-color: #e2e8f0 !important;
}

html.light .divide-slate-800\/80 > :not([hidden]) ~ :not([hidden]),
html.light .divide-slate-800\/60 > :not([hidden]) ~ :not([hidden]),
html.light [class*="divide-slate-800"] > :not([hidden]) ~ :not([hidden]),
html:not(.dark) .divide-slate-800\/80 > :not([hidden]) ~ :not([hidden]),
html:not(.dark) .divide-slate-800\/60 > :not([hidden]) ~ :not([hidden]),
html:not(.dark) [class*="divide-slate-800"] > :not([hidden]) ~ :not([hidden]) {
  border-color: #e2e8f0 !important;
}

/* --------------------------------------------------------------------------
   7. HEADINGS, TYPOGRAPHY & TEXT CONTRAST STANDARDIZATION
   -------------------------------------------------------------------------- */
html.light h1,
html.light h2,
html.light h3,
html.light h4,
html.light h5,
html.light h6,
html:not(.dark) h1,
html:not(.dark) h2,
html:not(.dark) h3,
html:not(.dark) h4,
html:not(.dark) h5,
html:not(.dark) h6 {
  color: #0f172a !important;
}

/* Rich jewel-tone gradient for clipped headline text in light mode (WCAG AA > 5:1) */
html.light .bg-clip-text,
html:not(.dark) .bg-clip-text {
  background-image: linear-gradient(135deg, #047857 0%, #0f766e 45%, #0369a1 100%) !important;
  -webkit-background-clip: text !important;
  color: transparent !important;
}

/* Maintain crisp white text & icons inside solid vivid badge, button & logo containers */
html.light [class*="bg-emerald-600"] .text-white,
html.light [class*="bg-emerald-700"] .text-white,
html.light [class*="from-emerald-600"] .text-white,
html.light [class*="bg-teal-600"] .text-white,
html.light [class*="bg-purple-600"] .text-white,
html.light [class*="from-purple-600"] .text-white,
html.light [class*="bg-indigo-600"] .text-white,
html.light [class*="bg-blue-600"] .text-white,
html.light [class*="bg-rose-600"] .text-white,
html.light [class*="bg-red-600"] .text-white,
html.light [class*="bg-emerald-600"] svg,
html.light [class*="bg-emerald-700"] svg,
html.light [class*="from-emerald-600"] svg,
html.light [class*="bg-teal-600"] svg,
html.light [class*="bg-purple-600"] svg,
html.light [class*="from-purple-600"] svg,
html.light [class*="bg-indigo-600"] svg,
html.light [class*="bg-blue-600"] svg,
html.light [class*="bg-rose-600"] svg,
html.light [class*="bg-red-600"] svg,
html:not(.dark) [class*="bg-emerald-600"] .text-white,
html:not(.dark) [class*="bg-emerald-700"] .text-white,
html:not(.dark) [class*="from-emerald-600"] .text-white,
html:not(.dark) [class*="bg-teal-600"] .text-white,
html:not(.dark) [class*="bg-purple-600"] .text-white,
html:not(.dark) [class*="from-purple-600"] .text-white,
html:not(.dark) [class*="bg-indigo-600"] .text-white,
html:not(.dark) [class*="bg-blue-600"] .text-white,
html:not(.dark) [class*="bg-rose-600"] .text-white,
html:not(.dark) [class*="bg-red-600"] .text-white,
html:not(.dark) [class*="bg-emerald-600"] svg,
html:not(.dark) [class*="bg-emerald-700"] svg,
html:not(.dark) [class*="from-emerald-600"] svg,
html:not(.dark) [class*="bg-teal-600"] svg,
html:not(.dark) [class*="bg-purple-600"] svg,
html:not(.dark) [class*="from-purple-600"] svg,
html:not(.dark) [class*="bg-indigo-600"] svg,
html:not(.dark) [class*="bg-blue-600"] svg,
html:not(.dark) [class*="bg-rose-600"] svg,
html:not(.dark) [class*="bg-red-600"] svg {
  color: #ffffff !important;
}

/* Standalone .text-white elements (titles, table headers, descriptions, cards, etc.) */
html.light .text-white:not([class*="bg-emerald"]):not([class*="bg-teal"]):not([class*="bg-cyan"]):not([class*="bg-blue"]):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-rose"]):not([class*="bg-red"]):not([class*="bg-amber"]):not([class*="from-"]):not(.btn-primary),
html:not(.dark) .text-white:not([class*="bg-emerald"]):not([class*="bg-teal"]):not([class*="bg-cyan"]):not([class*="bg-blue"]):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-rose"]):not([class*="bg-red"]):not([class*="bg-amber"]):not([class*="from-"]):not(.btn-primary) {
  color: #0f172a !important;
}

/* Ultra-dark text-slate-950 elements in light mode (badges, CTA buttons) */
html.light .text-slate-950,
html.light [class*="text-slate-950"],
html:not(.dark) .text-slate-950,
html:not(.dark) [class*="text-slate-950"] {
  color: #020617 !important;
}

html.light .text-slate-950 svg,
html.light [class*="text-slate-950"] svg,
html:not(.dark) .text-slate-950 svg,
html:not(.dark) [class*="text-slate-950"] svg {
  color: #020617 !important;
}

/* Precise slate text scales for high contrast */
html.light .text-slate-100,
html:not(.dark) .text-slate-100 {
  color: #0f172a !important; /* slate-900 */
}
html.light .text-slate-200,
html:not(.dark) .text-slate-200 {
  color: #1e293b !important; /* slate-800 */
}
html.light .text-slate-300,
html:not(.dark) .text-slate-300 {
  color: #334155 !important; /* slate-700 */
}
html.light .text-slate-400,
html:not(.dark) .text-slate-400 {
  color: #475569 !important; /* slate-600 */
}
html.light .text-slate-500,
html:not(.dark) .text-slate-500 {
  color: #64748b !important; /* slate-500 */
}
html.light .text-slate-600,
html:not(.dark) .text-slate-600 {
  color: #334155 !important;
}

/* CRITICAL: Prevent hover:text-white from turning text white on light backgrounds! */
html.light .hover\:text-white:hover:not([class*="bg-emerald"]):not([class*="bg-teal"]):not([class*="bg-cyan"]):not([class*="bg-blue"]):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-rose"]):not([class*="bg-red"]),
html.light a.hover\:text-white:hover:not([class*="bg-emerald"]):not([class*="bg-teal"]):not([class*="bg-cyan"]):not([class*="bg-blue"]):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-rose"]):not([class*="bg-red"]),
html.light button.hover\:text-white:hover:not([class*="bg-emerald"]):not([class*="bg-teal"]):not([class*="bg-cyan"]):not([class*="bg-blue"]):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-rose"]):not([class*="bg-red"]),
html:not(.dark) .hover\:text-white:hover:not([class*="bg-emerald"]):not([class*="bg-teal"]):not([class*="bg-cyan"]):not([class*="bg-blue"]):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-rose"]):not([class*="bg-red"]),
html:not(.dark) a.hover\:text-white:hover:not([class*="bg-emerald"]):not([class*="bg-teal"]):not([class*="bg-cyan"]):not([class*="bg-blue"]):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-rose"]):not([class*="bg-red"]),
html:not(.dark) button.hover\:text-white:hover:not([class*="bg-emerald"]):not([class*="bg-teal"]):not([class*="bg-cyan"]):not([class*="bg-blue"]):not([class*="bg-purple"]):not([class*="bg-indigo"]):not([class*="bg-rose"]):not([class*="bg-red"]) {
  color: #0f172a !important;
}

html.light .hover\:text-white:hover svg,
html:not(.dark) .hover\:text-white:hover svg {
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   8. FORM LABELS, HELPER TEXT, INPUTS, SELECTS & CONTROLS
   -------------------------------------------------------------------------- */
/* High contrast form labels */
html.light label,
html:not(.dark) label {
  color: #0f172a !important;
  font-weight: 600;
}

/* Keep inner badges or colored labels styled appropriately */
html.light label .text-red-400,
html:not(.dark) label .text-red-400 {
  color: #dc2626 !important;
}

/* Form helper text & descriptive notes */
html.light form p.text-slate-400,
html.light form p.text-slate-500,
html.light form span.text-slate-400,
html.light form span.text-slate-500,
html.light .help-text,
html.light .form-help,
html:not(.dark) form p.text-slate-400,
html:not(.dark) form p.text-slate-500,
html:not(.dark) form span.text-slate-400,
html:not(.dark) form span.text-slate-500,
html:not(.dark) .help-text,
html:not(.dark) .form-help {
  color: #475569 !important;
}

/* Inputs, Textareas, and Selects */
html.light input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
html.light textarea,
html.light select,
html:not(.dark) input:not([type="checkbox"]):not([type="radio"]):not([type="button"]):not([type="submit"]):not([type="reset"]):not([type="hidden"]),
html:not(.dark) textarea,
html:not(.dark) select {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

html.light input::placeholder,
html.light textarea::placeholder,
html:not(.dark) input::placeholder,
html:not(.dark) textarea::placeholder {
  color: #64748b !important;
}

html.light input:focus,
html.light textarea:focus,
html.light select:focus,
html:not(.dark) input:focus,
html:not(.dark) textarea:focus,
html:not(.dark) select:focus {
  background-color: #ffffff !important;
  border-color: #10b981 !important;
  outline: none !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

html.light select option,
html:not(.dark) select option {
  background-color: #ffffff !important;
  color: #0f172a !important;
}

/* File input buttons */
html.light input[type="file"]::file-selector-button,
html:not(.dark) input[type="file"]::file-selector-button {
  background-color: #f1f5f9 !important;
  color: #1e293b !important;
  border: 1px solid #cbd5e1 !important;
  padding: 0.35rem 0.75rem !important;
  border-radius: 0.5rem !important;
  font-weight: 600 !important;
  margin-right: 0.5rem !important;
  cursor: pointer;
}

html.light input[type="file"]::file-selector-button:hover,
html:not(.dark) input[type="file"]::file-selector-button:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Checkbox & Radio inputs */
html.light input[type="checkbox"],
html.light input[type="radio"],
html:not(.dark) input[type="checkbox"],
html:not(.dark) input[type="radio"] {
  background-color: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
}

html.light input[type="checkbox"]:checked,
html.light input[type="radio"]:checked,
html:not(.dark) input[type="checkbox"]:checked,
html:not(.dark) input[type="radio"]:checked {
  background-color: currentColor !important;
}

/* Interactive Card Option Selectors (e.g. Checkout modal / Settings) */
html.light label:has(input[type="radio"]:checked),
html.light label:has(input[type="checkbox"]:checked),
html:not(.dark) label:has(input[type="radio"]:checked),
html:not(.dark) label:has(input[type="checkbox"]:checked) {
  background-color: #f0fdf4 !important; /* soft emerald tint */
  border-color: #10b981 !important;
}

/* --------------------------------------------------------------------------
   9. BUTTONS: PRIMARY, SECONDARY, OUTLINE, GHOST & ACTIONS
   -------------------------------------------------------------------------- */

/* --- A. SOLID DARK PRIMARY BUTTONS (Retain white text over solid dark colors) --- */
html.light button.bg-emerald-600,
html.light button.bg-emerald-700,
html.light a.bg-emerald-600,
html.light a.bg-emerald-700,
html.light button.bg-teal-600,
html.light button.bg-teal-700,
html.light a.bg-teal-600,
html.light a.bg-teal-700,
html.light button.bg-cyan-600,
html.light button.bg-cyan-700,
html.light a.bg-cyan-600,
html.light a.bg-cyan-700,
html.light button.bg-blue-600,
html.light button.bg-blue-700,
html.light a.bg-blue-600,
html.light a.bg-blue-700,
html.light button.bg-purple-600,
html.light button.bg-purple-700,
html.light a.bg-purple-600,
html.light a.bg-purple-700,
html.light button.bg-indigo-600,
html.light button.bg-indigo-700,
html.light a.bg-indigo-600,
html.light a.bg-indigo-700,
html.light button.bg-rose-600,
html.light button.bg-rose-700,
html.light a.bg-rose-600,
html.light a.bg-rose-700,
html.light button.bg-red-600,
html.light button.bg-red-700,
html.light a.bg-red-600,
html.light a.bg-red-700,
html.light button[class*="from-purple-600"],
html.light a[class*="from-purple-600"],
html.light button[class*="from-indigo-600"],
html.light a[class*="from-indigo-600"],
html.light button[class*="from-emerald-600"][class*="to-teal-600"],
html.light a[class*="from-emerald-600"][class*="to-teal-600"],
html:not(.dark) button.bg-emerald-600,
html:not(.dark) button.bg-emerald-700,
html:not(.dark) a.bg-emerald-600,
html:not(.dark) a.bg-emerald-700,
html:not(.dark) button.bg-teal-600,
html:not(.dark) button.bg-teal-700,
html:not(.dark) a.bg-teal-600,
html:not(.dark) a.bg-teal-700,
html:not(.dark) button.bg-cyan-600,
html:not(.dark) button.bg-cyan-700,
html:not(.dark) a.bg-cyan-600,
html:not(.dark) a.bg-cyan-700,
html:not(.dark) button.bg-blue-600,
html:not(.dark) button.bg-blue-700,
html:not(.dark) a.bg-blue-600,
html:not(.dark) a.bg-blue-700,
html:not(.dark) button.bg-purple-600,
html:not(.dark) button.bg-purple-700,
html:not(.dark) a.bg-purple-600,
html:not(.dark) a.bg-purple-700,
html:not(.dark) button.bg-indigo-600,
html:not(.dark) button.bg-indigo-700,
html:not(.dark) a.bg-indigo-600,
html:not(.dark) a.bg-indigo-700,
html:not(.dark) button.bg-rose-600,
html:not(.dark) button.bg-rose-700,
html:not(.dark) a.bg-rose-600,
html:not(.dark) a.bg-rose-700,
html:not(.dark) button.bg-red-600,
html:not(.dark) button.bg-red-700,
html:not(.dark) a.bg-red-600,
html:not(.dark) a.bg-red-700,
html:not(.dark) button[class*="from-purple-600"],
html:not(.dark) a[class*="from-purple-600"],
html:not(.dark) button[class*="from-indigo-600"],
html:not(.dark) a[class*="from-indigo-600"],
html:not(.dark) button[class*="from-emerald-600"][class*="to-teal-600"],
html:not(.dark) a[class*="from-emerald-600"][class*="to-teal-600"] {
  color: #ffffff !important;
}

html.light button.bg-emerald-600 svg,
html.light button.bg-emerald-700 svg,
html.light a.bg-emerald-600 svg,
html.light a.bg-emerald-700 svg,
html.light button.bg-teal-600 svg,
html.light button.bg-teal-700 svg,
html.light a.bg-teal-600 svg,
html.light a.bg-teal-700 svg,
html.light button.bg-cyan-600 svg,
html.light a.bg-cyan-600 svg,
html.light button.bg-blue-600 svg,
html.light a.bg-blue-600 svg,
html.light button.bg-purple-600 svg,
html.light a.bg-purple-600 svg,
html.light button.bg-indigo-600 svg,
html.light a.bg-indigo-600 svg,
html.light button.bg-rose-600 svg,
html.light a.bg-rose-600 svg,
html.light button.bg-red-600 svg,
html.light a.bg-red-600 svg,
html.light button[class*="from-purple-600"] svg,
html.light a[class*="from-purple-600"] svg,
html.light button[class*="from-emerald-600"][class*="to-teal-600"] svg,
html.light a[class*="from-emerald-600"][class*="to-teal-600"] svg,
html:not(.dark) button.bg-emerald-600 svg,
html:not(.dark) button.bg-emerald-700 svg,
html:not(.dark) a.bg-emerald-600 svg,
html:not(.dark) a.bg-emerald-700 svg,
html:not(.dark) button.bg-teal-600 svg,
html:not(.dark) button.bg-teal-700 svg,
html:not(.dark) a.bg-teal-600 svg,
html:not(.dark) a.bg-teal-700 svg,
html:not(.dark) button.bg-cyan-600 svg,
html:not(.dark) a.bg-cyan-600 svg,
html:not(.dark) button.bg-blue-600 svg,
html:not(.dark) a.bg-blue-600 svg,
html:not(.dark) button.bg-purple-600 svg,
html:not(.dark) a.bg-purple-600 svg,
html:not(.dark) button.bg-indigo-600 svg,
html:not(.dark) a.bg-indigo-600 svg,
html:not(.dark) button.bg-rose-600 svg,
html:not(.dark) a.bg-rose-600 svg,
html:not(.dark) button.bg-red-600 svg,
html:not(.dark) a.bg-red-600 svg,
html:not(.dark) button[class*="from-purple-600"] svg,
html:not(.dark) a[class*="from-purple-600"] svg,
html:not(.dark) button[class*="from-emerald-600"][class*="to-teal-600"] svg,
html:not(.dark) a[class*="from-emerald-600"][class*="to-teal-600"] svg {
  color: #ffffff !important;
}

/* --- A2. BRIGHT GRADIENT & VIVID CTA BUTTONS (Must have dark slate text for AAA contrast) --- */
html.light button[class*="to-teal-400"],
html.light a[class*="to-teal-400"],
html.light button[class*="to-teal-300"],
html.light a[class*="to-teal-300"],
html.light button[class*="from-emerald-500"][class*="to-teal"],
html.light a[class*="from-emerald-500"][class*="to-teal"],
html.light button[class*="from-emerald-400"],
html.light a[class*="from-emerald-400"],
html.light button.text-slate-950,
html.light a.text-slate-950,
html.light button.text-slate-900,
html.light a.text-slate-900,
html.light button.bg-amber-500,
html.light a.bg-amber-500,
html.light button.bg-amber-400,
html.light a.bg-amber-400,
html:not(.dark) button[class*="to-teal-400"],
html:not(.dark) a[class*="to-teal-400"],
html:not(.dark) button[class*="to-teal-300"],
html:not(.dark) a[class*="to-teal-300"],
html:not(.dark) button[class*="from-emerald-500"][class*="to-teal"],
html:not(.dark) a[class*="from-emerald-500"][class*="to-teal"],
html:not(.dark) button[class*="from-emerald-400"],
html:not(.dark) a[class*="from-emerald-400"],
html:not(.dark) button.text-slate-950,
html:not(.dark) a.text-slate-950,
html:not(.dark) button.text-slate-900,
html:not(.dark) a.text-slate-900,
html:not(.dark) button.bg-amber-500,
html:not(.dark) a.bg-amber-500,
html:not(.dark) button.bg-amber-400,
html:not(.dark) a.bg-amber-400 {
  color: #020617 !important;
  font-weight: 700 !important;
}

html.light button[class*="to-teal-400"] svg,
html.light a[class*="to-teal-400"] svg,
html.light button[class*="to-teal-300"] svg,
html.light a[class*="to-teal-300"] svg,
html.light button[class*="from-emerald-500"][class*="to-teal"] svg,
html.light a[class*="from-emerald-500"][class*="to-teal"] svg,
html.light button.text-slate-950 svg,
html.light a.text-slate-950 svg,
html:not(.dark) button[class*="to-teal-400"] svg,
html:not(.dark) a[class*="to-teal-400"] svg,
html:not(.dark) button[class*="to-teal-300"] svg,
html:not(.dark) a[class*="to-teal-300"] svg,
html:not(.dark) button[class*="from-emerald-500"][class*="to-teal"] svg,
html:not(.dark) a[class*="from-emerald-500"][class*="to-teal"] svg,
html:not(.dark) button.text-slate-950 svg,
html:not(.dark) a.text-slate-950 svg {
  color: #020617 !important;
}

/* --- A3. ADMIN SUPPORT PIN KEYPAD & DOTS --- */
html.light .keypad-btn,
html:not(.dark) .keypad-btn {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

html.light .keypad-btn:hover,
html:not(.dark) .keypad-btn:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

html.light .keypad-btn.text-rose-400,
html:not(.dark) .keypad-btn.text-rose-400 {
  background-color: #fff1f2 !important;
  border-color: #fecdd3 !important;
  color: #be123c !important;
}

html.light .keypad-btn.text-amber-400,
html:not(.dark) .keypad-btn.text-amber-400 {
  background-color: #fffbeb !important;
  border-color: #fde68a !important;
  color: #b45309 !important;
}

html.light .pin-dot,
html:not(.dark) .pin-dot {
  background-color: #ffffff !important;
  border-color: #94a3b8 !important;
}

html.light .pin-dot.filled,
html:not(.dark) .pin-dot.filled {
  background-color: #7c3aed !important;
  border-color: #6d28d9 !important;
}

/* --- B. SECONDARY / OUTLINE / GHOST BUTTONS --- */
/* (Never white text on light background!) */
html.light .bg-slate-800,
html.light .bg-slate-800\/90,
html.light .bg-slate-800\/80,
html.light .bg-slate-800\/60,
html.light .bg-slate-800\/50,
html.light .bg-slate-700,
html.light .bg-slate-700\/60,
html.light button.bg-slate-900,
html.light a.bg-slate-900,
html.light .btn-secondary,
html:not(.dark) .bg-slate-800,
html:not(.dark) .bg-slate-800\/90,
html:not(.dark) .bg-slate-800\/80,
html:not(.dark) .bg-slate-800\/60,
html:not(.dark) .bg-slate-800\/50,
html:not(.dark) .bg-slate-700,
html:not(.dark) .bg-slate-700\/60,
html:not(.dark) button.bg-slate-900,
html:not(.dark) a.bg-slate-900,
html:not(.dark) .btn-secondary {
  background-color: #f1f5f9 !important; /* slate-100 */
  color: #1e293b !important;            /* slate-800 */
  border-color: #cbd5e1 !important;      /* slate-300 */
}

html.light .bg-slate-800 svg,
html.light .bg-slate-700 svg,
html.light button.bg-slate-900 svg,
html.light a.bg-slate-900 svg,
html:not(.dark) .bg-slate-800 svg,
html:not(.dark) .bg-slate-700 svg,
html:not(.dark) button.bg-slate-900 svg,
html:not(.dark) a.bg-slate-900 svg {
  color: #334155 !important;
}

html.light .bg-slate-800:hover,
html.light .bg-slate-800\/80:hover,
html.light .hover\:bg-slate-700:hover,
html.light .hover\:bg-slate-800:hover,
html.light .hover\:bg-slate-800\/60:hover,
html.light .hover\:bg-slate-800\/40:hover,
html.light .hover\:bg-slate-800\/30:hover,
html:not(.dark) .bg-slate-800:hover,
html:not(.dark) .bg-slate-800\/80:hover,
html:not(.dark) .hover\:bg-slate-700:hover,
html:not(.dark) .hover\:bg-slate-800:hover,
html:not(.dark) .hover\:bg-slate-800\/60:hover,
html:not(.dark) .hover\:bg-slate-800\/40:hover,
html:not(.dark) .hover\:bg-slate-800\/30:hover {
  background-color: #e2e8f0 !important; /* slate-200 */
  border-color: #94a3b8 !important;     /* slate-400 */
  color: #0f172a !important;            /* slate-900 */
}

html.light .bg-slate-800:hover svg,
html.light .hover\:bg-slate-700:hover svg,
html.light .hover\:bg-slate-800:hover svg,
html:not(.dark) .bg-slate-800:hover svg,
html:not(.dark) .hover\:bg-slate-700:hover svg,
html:not(.dark) .hover\:bg-slate-800:hover svg {
  color: #0f172a !important;
}

/* Icon-only and Ghost Buttons */
html.light button.p-1.text-slate-400,
html.light button.p-1\.5.text-slate-400,
html.light button.p-2.text-slate-400,
html.light a.p-1.text-slate-400,
html.light a.p-1\.5.text-slate-400,
html.light a.p-2.text-slate-400,
html:not(.dark) button.p-1.text-slate-400,
html:not(.dark) button.p-1\.5.text-slate-400,
html:not(.dark) button.p-2.text-slate-400,
html:not(.dark) a.p-1.text-slate-400,
html:not(.dark) a.p-1\.5.text-slate-400,
html:not(.dark) a.p-2.text-slate-400 {
  color: #475569 !important;
}

html.light button.p-1.text-slate-400:hover,
html.light button.p-1\.5.text-slate-400:hover,
html.light button.p-2.text-slate-400:hover,
html.light a.p-1.text-slate-400:hover,
html.light a.p-1\.5.text-slate-400:hover,
html.light a.p-2.text-slate-400:hover,
html:not(.dark) button.p-1.text-slate-400:hover,
html:not(.dark) button.p-1\.5.text-slate-400:hover,
html:not(.dark) button.p-2.text-slate-400:hover,
html:not(.dark) a.p-1.text-slate-400:hover,
html:not(.dark) a.p-1\.5.text-slate-400:hover,
html:not(.dark) a.p-2.text-slate-400:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   10. TINTED ACTION BUTTONS & STATUS BADGES (TABLES & CARDS)
   -------------------------------------------------------------------------- */
/* Emerald / Green Action Buttons & Badges */
html.light .bg-emerald-500\/10,
html.light .bg-emerald-500\/20,
html.light .bg-emerald-600\/15,
html.light .bg-emerald-600\/20,
html.light .bg-emerald-600\/30,
html:not(.dark) .bg-emerald-500\/10,
html:not(.dark) .bg-emerald-500\/20,
html:not(.dark) .bg-emerald-600\/15,
html:not(.dark) .bg-emerald-600\/20,
html:not(.dark) .bg-emerald-600\/30 {
  background-color: #ecfdf5 !important;
  color: #047857 !important;
  border-color: #a7f3d0 !important;
}
html.light .text-emerald-400,
html.light .text-emerald-300,
html.light .text-emerald-200,
html:not(.dark) .text-emerald-400,
html:not(.dark) .text-emerald-300,
html:not(.dark) .text-emerald-200 {
  color: #047857 !important;
}
html.light button.bg-emerald-500\/10:hover,
html.light button.bg-emerald-500\/20:hover,
html.light button.bg-emerald-600\/30:hover,
html:not(.dark) button.bg-emerald-500\/10:hover,
html:not(.dark) button.bg-emerald-500\/20:hover,
html:not(.dark) button.bg-emerald-600\/30:hover {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}
html.light .bg-emerald-500\/10 svg,
html.light .bg-emerald-500\/20 svg,
html.light .bg-emerald-600\/30 svg,
html:not(.dark) .bg-emerald-500\/10 svg,
html:not(.dark) .bg-emerald-500\/20 svg,
html:not(.dark) .bg-emerald-600\/30 svg {
  color: #047857 !important;
}

/* Teal Action Buttons & Badges */
html.light .bg-teal-500\/10,
html.light .bg-teal-500\/20,
html:not(.dark) .bg-teal-500\/10,
html:not(.dark) .bg-teal-500\/20 {
  background-color: #f0fdfa !important;
  color: #0f766e !important;
  border-color: #99f6e4 !important;
}
html.light .text-teal-400,
html.light .text-teal-300,
html.light .text-teal-200,
html:not(.dark) .text-teal-400,
html:not(.dark) .text-teal-300,
html:not(.dark) .text-teal-200 {
  color: #0f766e !important;
}
html.light button.bg-teal-500\/10:hover,
html.light button.bg-teal-500\/20:hover,
html:not(.dark) button.bg-teal-500\/10:hover,
html:not(.dark) button.bg-teal-500\/20:hover {
  background-color: #ccfbf1 !important;
  color: #115e59 !important;
}
html.light .bg-teal-500\/10 svg,
html.light .bg-teal-500\/20 svg,
html:not(.dark) .bg-teal-500\/10 svg,
html:not(.dark) .bg-teal-500\/20 svg {
  color: #0f766e !important;
}

/* Amber / Orange Action Buttons & Badges ("Proses", etc.) */
html.light .bg-amber-500\/10,
html.light .bg-amber-500\/20,
html.light .bg-amber-500\/15,
html.light .bg-amber-400\/15,
html.light .bg-amber-400\/20,
html:not(.dark) .bg-amber-500\/10,
html:not(.dark) .bg-amber-500\/20,
html:not(.dark) .bg-amber-500\/15,
html:not(.dark) .bg-amber-400\/15,
html:not(.dark) .bg-amber-400\/20 {
  background-color: #fffbeb !important;
  color: #b45309 !important;
  border-color: #fde68a !important;
}
html.light .text-amber-400,
html.light .text-amber-300,
html.light .text-amber-200,
html.light .text-yellow-400,
html.light .text-yellow-300,
html:not(.dark) .text-amber-400,
html:not(.dark) .text-amber-300,
html:not(.dark) .text-amber-200,
html:not(.dark) .text-yellow-400,
html:not(.dark) .text-yellow-300 {
  color: #b45309 !important;
}
html.light button.bg-amber-500\/10:hover,
html.light button.bg-amber-500\/20:hover,
html:not(.dark) button.bg-amber-500\/10:hover,
html:not(.dark) button.bg-amber-500\/20:hover {
  background-color: #fef3c7 !important;
  color: #92400e !important;
}
html.light .bg-amber-500\/10 svg,
html.light .bg-amber-500\/20 svg,
html:not(.dark) .bg-amber-500\/10 svg,
html:not(.dark) .bg-amber-500\/20 svg {
  color: #b45309 !important;
}

/* Blue Action Buttons & Badges ("Kirim", etc.) */
html.light .bg-blue-500\/10,
html.light .bg-blue-500\/20,
html:not(.dark) .bg-blue-500\/10,
html:not(.dark) .bg-blue-500\/20 {
  background-color: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}
html.light .text-blue-400,
html.light .text-blue-300,
html.light .text-blue-200,
html:not(.dark) .text-blue-400,
html:not(.dark) .text-blue-300,
html:not(.dark) .text-blue-200 {
  color: #1d4ed8 !important;
}
html.light button.bg-blue-500\/10:hover,
html.light button.bg-blue-500\/20:hover,
html:not(.dark) button.bg-blue-500\/10:hover,
html:not(.dark) button.bg-blue-500\/20:hover {
  background-color: #dbeafe !important;
  color: #1e40af !important;
}
html.light .bg-blue-500\/10 svg,
html.light .bg-blue-500\/20 svg,
html:not(.dark) .bg-blue-500\/10 svg,
html:not(.dark) .bg-blue-500\/20 svg {
  color: #1d4ed8 !important;
}

/* Sky Action Buttons & Badges */
html.light .bg-sky-500\/10,
html.light .bg-sky-500\/20,
html:not(.dark) .bg-sky-500\/10,
html:not(.dark) .bg-sky-500\/20 {
  background-color: #f0f9ff !important;
  color: #0369a1 !important;
  border-color: #bae6fd !important;
}
html.light .text-sky-400,
html.light .text-sky-300,
html.light .text-sky-200,
html:not(.dark) .text-sky-400,
html:not(.dark) .text-sky-300,
html:not(.dark) .text-sky-200 {
  color: #0369a1 !important;
}
html.light button.bg-sky-500\/10:hover,
html.light button.bg-sky-500\/20:hover,
html:not(.dark) button.bg-sky-500\/10:hover,
html:not(.dark) button.bg-sky-500\/20:hover {
  background-color: #e0f2fe !important;
  color: #075985 !important;
}
html.light .bg-sky-500\/10 svg,
html.light .bg-sky-500\/20 svg,
html:not(.dark) .bg-sky-500\/10 svg,
html:not(.dark) .bg-sky-500\/20 svg {
  color: #0369a1 !important;
}

/* Indigo Action Buttons & Badges */
html.light .bg-indigo-500\/10,
html.light .bg-indigo-500\/20,
html:not(.dark) .bg-indigo-500\/10,
html:not(.dark) .bg-indigo-500\/20 {
  background-color: #eef2ff !important;
  color: #4338ca !important;
  border-color: #c7d2fe !important;
}
html.light .text-indigo-400,
html.light .text-indigo-300,
html.light .text-indigo-200,
html:not(.dark) .text-indigo-400,
html:not(.dark) .text-indigo-300,
html:not(.dark) .text-indigo-200 {
  color: #4338ca !important;
}
html.light button.bg-indigo-500\/10:hover,
html.light button.bg-indigo-500\/20:hover,
html:not(.dark) button.bg-indigo-500\/10:hover,
html:not(.dark) button.bg-indigo-500\/20:hover {
  background-color: #e0e7ff !important;
  color: #3730a3 !important;
}
html.light .bg-indigo-500\/10 svg,
html.light .bg-indigo-500\/20 svg,
html:not(.dark) .bg-indigo-500\/10 svg,
html:not(.dark) .bg-indigo-500\/20 svg {
  color: #4338ca !important;
}

/* Purple Action Buttons & Badges */
html.light .bg-purple-500\/10,
html.light .bg-purple-500\/20,
html:not(.dark) .bg-purple-500\/10,
html:not(.dark) .bg-purple-500\/20 {
  background-color: #faf5ff !important;
  color: #6b21a8 !important;
  border-color: #e9d5ff !important;
}
html.light .text-purple-400,
html.light .text-purple-300,
html.light .text-purple-200,
html:not(.dark) .text-purple-400,
html:not(.dark) .text-purple-300,
html:not(.dark) .text-purple-200 {
  color: #6b21a8 !important;
}
html.light button.bg-purple-500\/10:hover,
html.light button.bg-purple-500\/20:hover,
html:not(.dark) button.bg-purple-500\/10:hover,
html:not(.dark) button.bg-purple-500\/20:hover {
  background-color: #f3e8ff !important;
  color: #581c87 !important;
}
html.light .bg-purple-500\/10 svg,
html.light .bg-purple-500\/20 svg,
html:not(.dark) .bg-purple-500\/10 svg,
html:not(.dark) .bg-purple-500\/20 svg {
  color: #6b21a8 !important;
}

/* Rose / Red Action Buttons & Badges ("Batalkan", etc.) */
html.light .bg-rose-500\/10,
html.light .bg-rose-500\/20,
html.light .bg-red-500\/10,
html.light .bg-red-500\/20,
html:not(.dark) .bg-rose-500\/10,
html:not(.dark) .bg-rose-500\/20,
html:not(.dark) .bg-red-500\/10,
html:not(.dark) .bg-red-500\/20 {
  background-color: #fff1f2 !important;
  color: #be123c !important;
  border-color: #fecdd3 !important;
}
html.light .text-rose-400,
html.light .text-rose-300,
html.light .text-rose-200,
html.light .text-red-400,
html.light .text-red-300,
html.light .text-red-200,
html:not(.dark) .text-rose-400,
html:not(.dark) .text-rose-300,
html:not(.dark) .text-rose-200,
html:not(.dark) .text-red-400,
html:not(.dark) .text-red-300,
html:not(.dark) .text-red-200 {
  color: #be123c !important;
}
html.light button.hover\:bg-rose-500\/10:hover,
html.light button.hover\:bg-rose-500\/20:hover,
html:not(.dark) button.hover\:bg-rose-500\/10:hover,
html:not(.dark) button.hover\:bg-rose-500\/20:hover {
  background-color: #ffe4e6 !important;
  color: #9f1239 !important;
}
html.light .bg-rose-500\/10 svg,
html.light .bg-rose-500\/20 svg,
html:not(.dark) .bg-rose-500\/10 svg,
html:not(.dark) .bg-rose-500\/20 svg {
  color: #be123c !important;
}

/* Cyan Action Buttons & Badges */
html.light .bg-cyan-500\/10,
html.light .bg-cyan-500\/20,
html:not(.dark) .bg-cyan-500\/10,
html:not(.dark) .bg-cyan-500\/20 {
  background-color: #ecfeff !important;
  color: #0e7490 !important;
  border-color: #a5f3fc !important;
}
html.light .text-cyan-400,
html.light .text-cyan-300,
html.light .text-cyan-200,
html:not(.dark) .text-cyan-400,
html:not(.dark) .text-cyan-300,
html:not(.dark) .text-cyan-200 {
  color: #0e7490 !important;
}
html.light button.bg-cyan-500\/10:hover,
html.light button.bg-cyan-500\/20:hover,
html:not(.dark) button.bg-cyan-500\/10:hover,
html:not(.dark) button.bg-cyan-500\/20:hover {
  background-color: #cffafe !important;
  color: #155e75 !important;
}
html.light .bg-cyan-500\/10 svg,
html.light .bg-cyan-500\/20 svg,
html:not(.dark) .bg-cyan-500\/10 svg,
html:not(.dark) .bg-cyan-500\/20 svg {
  color: #0e7490 !important;
}

/* --------------------------------------------------------------------------
   11. DATA TABLES
   -------------------------------------------------------------------------- */
html.light table thead,
html:not(.dark) table thead {
  background-color: #f1f5f9 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html.light table thead th,
html:not(.dark) table thead th {
  color: #334155 !important;
  font-weight: 700 !important;
}

html.light table tbody tr,
html:not(.dark) table tbody tr {
  border-bottom: 1px solid #f1f5f9 !important;
}

html.light table tbody tr:hover,
html.light tr.hover\:bg-slate-800\/40:hover,
html:not(.dark) table tbody tr:hover,
html:not(.dark) tr.hover\:bg-slate-800\/40:hover {
  background-color: #f8fafc !important;
}

html.light table tbody td,
html:not(.dark) table tbody td {
  color: #1e293b !important;
}

/* Ensure dynamic or static order cell values in tables are sharp */
html.light table tbody td.text-white,
html:not(.dark) table tbody td.text-white {
  color: #0f172a !important;
  font-weight: 700;
}

html.light table tbody td.text-slate-200,
html:not(.dark) table tbody td.text-slate-200 {
  color: #1e293b !important;
}

html.light table tbody td.text-slate-400,
html:not(.dark) table tbody td.text-slate-400 {
  color: #475569 !important;
}

/* Phone numbers / WhatsApp links in tables */
html.light table a.text-emerald-400,
html:not(.dark) table a.text-emerald-400 {
  color: #047857 !important;
  font-weight: 600;
}

/* --------------------------------------------------------------------------
   12. MODALS, POP-UPS, DIALOGS & CONFIRMATION
   -------------------------------------------------------------------------- */
/* Modal content dialog boxes */
html.light .fixed.inset-0 > div[class*="bg-slate-900"],
html.light #universalUpgradeModal > div,
html.light #checkout-modal > div,
html.light #orderDetailModal > div,
html.light #confirmActionModal > div,
html.light #receiptPreviewModal > div,
html.light #receiptSettingsModal > div,
html.light #newOrderModal > div,
html.light #dailyClosingModal > div,
html.light #addSessionModal > div,
html.light #newMenuModal > div,
html.light #newProductModal > div,
html.light #newFlowModal > div,
html.light #newTicketModal > div,
html.light #message_modal > div,
html:not(.dark) .fixed.inset-0 > div[class*="bg-slate-900"],
html:not(.dark) #universalUpgradeModal > div,
html:not(.dark) #checkout-modal > div,
html:not(.dark) #orderDetailModal > div,
html:not(.dark) #confirmActionModal > div,
html:not(.dark) #receiptPreviewModal > div,
html:not(.dark) #receiptSettingsModal > div,
html:not(.dark) #newOrderModal > div,
html:not(.dark) #dailyClosingModal > div,
html:not(.dark) #addSessionModal > div,
html:not(.dark) #newMenuModal > div,
html:not(.dark) #newProductModal > div,
html:not(.dark) #newFlowModal > div,
html:not(.dark) #newTicketModal > div,
html:not(.dark) #message_modal > div {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
  color: #0f172a !important;
}

/* Modal Titles & Subtitles */
html.light .fixed.inset-0 h2,
html.light .fixed.inset-0 h3,
html.light .fixed.inset-0 h4,
html:not(.dark) .fixed.inset-0 h2,
html:not(.dark) .fixed.inset-0 h3,
html:not(.dark) .fixed.inset-0 h4 {
  color: #0f172a !important;
}

html.light .fixed.inset-0 p.text-slate-400,
html.light .fixed.inset-0 div.text-slate-400,
html.light .fixed.inset-0 span.text-slate-400,
html:not(.dark) .fixed.inset-0 p.text-slate-400,
html:not(.dark) .fixed.inset-0 div.text-slate-400,
html:not(.dark) .fixed.inset-0 span.text-slate-400 {
  color: #475569 !important;
}

/* Modal Inner Wells / Boxes */
html.light .fixed.inset-0 .bg-slate-950,
html.light .fixed.inset-0 .bg-slate-950\/60,
html.light .fixed.inset-0 .bg-slate-950\/70,
html.light .fixed.inset-0 .bg-slate-950\/80,
html.light .fixed.inset-0 .bg-slate-900\/60,
html:not(.dark) .fixed.inset-0 .bg-slate-950,
html:not(.dark) .fixed.inset-0 .bg-slate-950\/60,
html:not(.dark) .fixed.inset-0 .bg-slate-950\/70,
html:not(.dark) .fixed.inset-0 .bg-slate-950\/80,
html:not(.dark) .fixed.inset-0 .bg-slate-900\/60 {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

/* Modal Items Table */
html.light .fixed.inset-0 table thead,
html:not(.dark) .fixed.inset-0 table thead {
  background-color: #f1f5f9 !important;
  border-bottom: 1px solid #cbd5e1 !important;
}

html.light .fixed.inset-0 table thead th,
html:not(.dark) .fixed.inset-0 table thead th {
  color: #334155 !important;
  font-weight: 700;
}

html.light .fixed.inset-0 table tbody td,
html:not(.dark) .fixed.inset-0 table tbody td {
  color: #1e293b !important;
}

html.light .fixed.inset-0 table tbody td.text-white,
html:not(.dark) .fixed.inset-0 table tbody td.text-white {
  color: #0f172a !important;
  font-weight: 700;
}

/* Modal Close Icon Buttons */
html.light .fixed.inset-0 button.text-slate-400,
html:not(.dark) .fixed.inset-0 button.text-slate-400 {
  color: #475569 !important;
}

html.light .fixed.inset-0 button.text-slate-400:hover,
html:not(.dark) .fixed.inset-0 button.text-slate-400:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Confirmation Dialogs */
html.light #confirmMessageText,
html:not(.dark) #confirmMessageText {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
}

/* --------------------------------------------------------------------------
   13. DROPDOWNS & TOOLTIPS
   -------------------------------------------------------------------------- */
/* Dropdown containers */
html.light .dropdown-menu,
html.light [class*="absolute"][class*="z-20"],
html.light [class*="absolute"][class*="z-30"],
html.light [class*="absolute"][class*="z-40"],
html.light [class*="absolute"][class*="z-50"],
html:not(.dark) .dropdown-menu,
html:not(.dark) [class*="absolute"][class*="z-20"],
html:not(.dark) [class*="absolute"][class*="z-30"],
html:not(.dark) [class*="absolute"][class*="z-40"],
html:not(.dark) [class*="absolute"][class*="z-50"] {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #1e293b !important;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.05) !important;
}

html.light .dropdown-item,
html:not(.dark) .dropdown-item {
  color: #1e293b !important;
}

html.light .dropdown-item:hover,
html:not(.dark) .dropdown-item:hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Tooltips */
html.light .tooltip,
html.light [data-tooltip],
html:not(.dark) .tooltip,
html:not(.dark) [data-tooltip] {
  background-color: #0f172a !important;
  color: #ffffff !important;
  border-color: #334155 !important;
}

/* --------------------------------------------------------------------------
   14. FILTER TABS & SEGMENTED SWITCHERS
   -------------------------------------------------------------------------- */
/* Inactive Tabs */
html.light .filter-tab:not(.bg-emerald-500\/10):not([class*="bg-emerald"]),
html.light .tab-btn:not(.border-emerald-500):not(.text-emerald-400),
html:not(.dark) .filter-tab:not(.bg-emerald-500\/10):not([class*="bg-emerald"]),
html:not(.dark) .tab-btn:not(.border-emerald-500):not(.text-emerald-400) {
  color: #475569 !important;
}

html.light .filter-tab:not(.bg-emerald-500\/10):not([class*="bg-emerald"]):hover,
html.light .tab-btn:not(.border-emerald-500):not(.text-emerald-400):hover,
html:not(.dark) .filter-tab:not(.bg-emerald-500\/10):not([class*="bg-emerald"]):hover,
html:not(.dark) .tab-btn:not(.border-emerald-500):not(.text-emerald-400):hover {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
}

/* Active Underline Tabs */
html.light .tab-btn.border-emerald-500,
html:not(.dark) .tab-btn.border-emerald-500 {
  border-color: #10b981 !important;
  color: #047857 !important;
  font-weight: 700 !important;
}

/* Segmented Control Containers (58mm/80mm, Struk Kasir/Dapur, etc.) */
html.light .inline-flex.rounded-lg.bg-slate-950,
html:not(.dark) .inline-flex.rounded-lg.bg-slate-950 {
  background-color: #e2e8f0 !important;
  border-color: #cbd5e1 !important;
}

html.light .inline-flex.rounded-lg.bg-slate-950 button.bg-slate-800,
html.light .inline-flex.rounded-lg.bg-slate-950 button.bg-slate-700,
html:not(.dark) .inline-flex.rounded-lg.bg-slate-950 button.bg-slate-800,
html:not(.dark) .inline-flex.rounded-lg.bg-slate-950 button.bg-slate-700 {
  background-color: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08) !important;
  font-weight: 700 !important;
}

html.light .inline-flex.rounded-lg.bg-slate-950 button.text-slate-400,
html:not(.dark) .inline-flex.rounded-lg.bg-slate-950 button.text-slate-400 {
  color: #475569 !important;
}

html.light .inline-flex.rounded-lg.bg-slate-950 button.text-slate-400:hover,
html:not(.dark) .inline-flex.rounded-lg.bg-slate-950 button.text-slate-400:hover {
  color: #0f172a !important;
}

/* Toggle Switch Tracks in Light Mode */
html.light .peer ~ div[class*="rounded-full"][class*="w-11"],
html:not(.dark) .peer ~ div[class*="rounded-full"][class*="w-11"] {
  background-color: #cbd5e1 !important;
}

html.light .peer:checked ~ div[class*="rounded-full"][class*="w-11"],
html:not(.dark) .peer:checked ~ div[class*="rounded-full"][class*="w-11"] {
  background-color: #10b981 !important;
}

/* --------------------------------------------------------------------------
   15. BILLING, SUBSCRIPTIONS & PRICING
   -------------------------------------------------------------------------- */
/* Current Plan Card */
html.light .bg-gradient-to-r.from-slate-900.via-slate-900,
html:not(.dark) .bg-gradient-to-r.from-slate-900.via-slate-900 {
  background-image: linear-gradient(to right, #ffffff, #f8fafc, #ecfdf5) !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

/* Pricing Grid Cards */
html.light #plans-grid .bg-slate-900\/60,
html.light section#pricing .bg-slate-900\/60,
html:not(.dark) #plans-grid .bg-slate-900\/60,
html:not(.dark) section#pricing .bg-slate-900\/60 {
  background-color: #ffffff !important;
  border-color: #e2e8f0 !important;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05) !important;
}

html.light #plans-grid h4,
html.light #plans-grid .text-2xl,
html.light section#pricing h3,
html.light section#pricing .text-2xl,
html.light section#pricing .text-3xl,
html:not(.dark) #plans-grid h4,
html:not(.dark) #plans-grid .text-2xl,
html:not(.dark) section#pricing h3,
html:not(.dark) section#pricing .text-2xl,
html:not(.dark) section#pricing .text-3xl {
  color: #0f172a !important;
}

html.light #plans-grid .text-slate-300,
html.light section#pricing .text-slate-300,
html:not(.dark) #plans-grid .text-slate-300,
html:not(.dark) section#pricing .text-slate-300 {
  color: #334155 !important;
}

/* Starter / Free CTA buttons on Pricing Cards */
html.light #plans-grid button.bg-slate-800,
html.light section#pricing a.bg-slate-800,
html:not(.dark) #plans-grid button.bg-slate-800,
html:not(.dark) section#pricing a.bg-slate-800 {
  background-color: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
  font-weight: 700 !important;
}

html.light #plans-grid button.bg-slate-800:hover,
html.light section#pricing a.bg-slate-800:hover,
html:not(.dark) #plans-grid button.bg-slate-800:hover,
html:not(.dark) section#pricing a.bg-slate-800:hover {
  background-color: #e2e8f0 !important;
  color: #0f172a !important;
}

/* Pending Invoice Warning Banner */
html.light .from-amber-950\/50,
html:not(.dark) .from-amber-950\/50 {
  background-image: linear-gradient(to right, #fffbeb, #ffffff, #fef3c7) !important;
  border-color: #f59e0b !important;
}
html.light .from-amber-950\/50 h3,
html:not(.dark) .from-amber-950\/50 h3 {
  color: #78350f !important;
}
html.light .from-amber-950\/50 p,
html:not(.dark) .from-amber-950\/50 p {
  color: #92400e !important;
}
html.light .from-amber-950\/50 button.bg-slate-800,
html:not(.dark) .from-amber-950\/50 button.bg-slate-800 {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
}

/* Payment Direct Page Elements */
html.light #text-va,
html:not(.dark) #text-va {
  color: #0f172a !important;
}

html.light #countdown-box,
html:not(.dark) #countdown-box {
  color: #b45309 !important;
}

/* --------------------------------------------------------------------------
   16. CODE BLOCKS & SNIPPETS
   -------------------------------------------------------------------------- */
html.light pre,
html:not(.dark) pre {
  background-color: #f8fafc !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

html.light code:not([class*="bg-"]),
html:not(.dark) code:not([class*="bg-"]) {
  background-color: #f1f5f9 !important;
  color: #0f172a !important;
  border-color: #cbd5e1 !important;
}

/* Code Snippet Tabs in Integrations */
html.light #btn-tab-curl.border-emerald-500,
html:not(.dark) #btn-tab-curl.border-emerald-500 {
  color: #047857 !important;
  font-weight: 700;
}

html.light button[onclick*="switchCodeTab"]:not(.border-emerald-500),
html:not(.dark) button[onclick*="switchCodeTab"]:not(.border-emerald-500) {
  color: #475569 !important;
}

html.light button[onclick*="switchCodeTab"]:not(.border-emerald-500):hover,
html:not(.dark) button[onclick*="switchCodeTab"]:not(.border-emerald-500):hover {
  color: #0f172a !important;
}

/* Copy Snippet Buttons */
html.light button[onclick*="copySnippet"],
html:not(.dark) button[onclick*="copySnippet"] {
  color: #475569 !important;
}

html.light button[onclick*="copySnippet"]:hover,
html:not(.dark) button[onclick*="copySnippet"]:hover {
  color: #0f172a !important;
}

/* --------------------------------------------------------------------------
   17. FOOTER
   -------------------------------------------------------------------------- */
html.light footer,
html:not(.dark) footer {
  background-color: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

html.light footer .text-white,
html:not(.dark) footer .text-white {
  color: #0f172a !important;
}

html.light footer .text-slate-300,
html:not(.dark) footer .text-slate-300 {
  color: #334155 !important;
}

html.light footer .text-slate-400,
html.light footer .text-slate-500,
html:not(.dark) footer .text-slate-400,
html:not(.dark) footer .text-slate-500 {
  color: #475569 !important;
}

html.light footer .border-slate-800\/40,
html:not(.dark) footer .border-slate-800\/40 {
  border-color: #cbd5e1 !important;
}

/* --------------------------------------------------------------------------
   18. LANDING PAGE SPECIAL ADJUSTMENTS
   -------------------------------------------------------------------------- */
html.light section#fitur,
html.light section#pricing,
html.light section#faq,
html:not(.dark) section#fitur,
html:not(.dark) section#pricing,
html:not(.dark) section#faq {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

html.light .gradient-border,
html:not(.dark) .gradient-border {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(59, 130, 246, 0.1)) !important;
}

/* --------------------------------------------------------------------------
   19. WHATSAPP WEB SIMULATOR (TUTORIAL PAGE)
   -------------------------------------------------------------------------- */
/* WhatsApp Chat Frame */
html.light .max-w-md.mx-auto.bg-slate-950\/90,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 {
  background-color: #efeae2 !important; /* Authentic WhatsApp light background */
  border-color: #d1d7db !important;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1) !important;
}

/* WhatsApp Simulator Header */
html.light .max-w-md.mx-auto.bg-slate-950\/90 > div.border-b,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 > div.border-b {
  border-color: #d1d7db !important;
}
html.light .max-w-md.mx-auto.bg-slate-950\/90 > div.border-b .text-white,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 > div.border-b .text-white {
  color: #111b21 !important;
}
html.light .max-w-md.mx-auto.bg-slate-950\/90 > div.border-b .text-emerald-400,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 > div.border-b .text-emerald-400 {
  color: #00a884 !important;
  font-weight: 600 !important;
}

/* Outgoing Customer Bubble */
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-emerald-700\/80,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-emerald-700\/80 {
  background-color: #d9fdd3 !important; /* Authentic WhatsApp outgoing message bubble */
  color: #111b21 !important;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13) !important;
}
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-emerald-700\/80 p,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-emerald-700\/80 p {
  color: #111b21 !important;
}
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-emerald-700\/80 .text-emerald-200,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-emerald-700\/80 .text-emerald-200 {
  color: #667781 !important;
}

/* Incoming Bot Bubble */
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 {
  background-color: #ffffff !important; /* Authentic WhatsApp incoming message bubble */
  color: #111b21 !important;
  border-color: #e9edef !important;
  box-shadow: 0 1px 0.5px rgba(11, 20, 26, 0.13) !important;
}
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 p,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 p {
  color: #111b21 !important;
}
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 .text-emerald-300,
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 .text-emerald-400,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 .text-emerald-300,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 .text-emerald-400 {
  color: #008069 !important;
  font-weight: 700 !important;
}
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 .text-sky-300,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 .text-sky-300 {
  color: #0284c7 !important;
}
html.light .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 .text-slate-400,
html:not(.dark) .max-w-md.mx-auto.bg-slate-950\/90 .bg-slate-800 .text-slate-400 {
  color: #667781 !important;
}

/* --------------------------------------------------------------------------
   20. THERMAL RECEIPT SLIPS & POS PAPERS
   -------------------------------------------------------------------------- */
/* Thermal receipt paper must strictly stay white paper (#ffffff) with black text (#000000) */
#modalSlipPaper,
#modalSlipPaper *,
#modalClosingSlipPaper,
#modalClosingSlipPaper * {
  color: #000000 !important;
}
#modalSlipPaper,
#modalClosingSlipPaper {
  background-color: #ffffff !important;
}

/* --------------------------------------------------------------------------
   21. DISABLED BUTTONS & FORM CONTROLS
   -------------------------------------------------------------------------- */
html.light button:disabled,
html.light button[disabled],
html.light a[disabled],
html:not(.dark) button:disabled,
html:not(.dark) button[disabled],
html:not(.dark) a[disabled] {
  background-color: #e2e8f0 !important;
  color: #94a3b8 !important;
  border-color: #cbd5e1 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
}
html.light button:disabled svg,
html.light button[disabled] svg,
html:not(.dark) button:disabled svg,
html:not(.dark) button[disabled] svg {
  color: #94a3b8 !important;
}

/* --------------------------------------------------------------------------
   22. ROSE / RED CALLOUTS, TOAST NOTIFICATIONS & LOCKOUT BANNERS
   -------------------------------------------------------------------------- */
html.light [class*="from-rose-950"],
html.light [class*="bg-rose-950"],
html.light .bg-rose-950\/90,
html.light #banner-lockout-24h,
html:not(.dark) [class*="from-rose-950"],
html:not(.dark) [class*="bg-rose-950"],
html:not(.dark) .bg-rose-950\/90,
html:not(.dark) #banner-lockout-24h {
  background-color: #fff1f2 !important;
  background-image: none !important;
  border-color: #fecdd3 !important;
  color: #9f1239 !important;
}

html.light [class*="from-rose-950"] p,
html.light [class*="bg-rose-950"] p,
html.light .bg-rose-950\/90 p,
html.light #banner-lockout-24h p,
html.light #banner-lockout-24h span,
html:not(.dark) [class*="from-rose-950"] p,
html:not(.dark) [class*="bg-rose-950"] p,
html:not(.dark) .bg-rose-950\/90 p,
html:not(.dark) #banner-lockout-24h p,
html:not(.dark) #banner-lockout-24h span {
  color: #be123c !important;
}

/* --------------------------------------------------------------------------
   23. COPY TEMPLATE & SNIPPET BUTTONS
   -------------------------------------------------------------------------- */
html.light #copy-template-btn,
html:not(.dark) #copy-template-btn {
  background-color: #ecfdf5 !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
}
html.light #copy-template-btn:hover,
html:not(.dark) #copy-template-btn:hover {
  background-color: #d1fae5 !important;
  color: #065f46 !important;
}
html.light #copy-template-btn svg,
html:not(.dark) #copy-template-btn svg {
  color: #047857 !important;
}

/* --------------------------------------------------------------------------
   24. CUSTOM PACKAGE BANNER & SOLUSI CUSTOM PAGE LIGHT THEME
   -------------------------------------------------------------------------- */
/* Custom Package Banner in Landing Page (#pricing) */
html.light .custom-package-banner,
html.light [class*="via-slate-900\/95"][class*="to-emerald-950"],
html:not(.dark) .custom-package-banner,
html:not(.dark) [class*="via-slate-900\/95"][class*="to-emerald-950"] {
  background-image: linear-gradient(135deg, #f0fdf4 0%, #ffffff 50%, #ecfdf5 100%) !important;
  background-color: #ffffff !important;
  border-color: #a7f3d0 !important;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.12), 0 4px 6px -2px rgba(0, 0, 0, 0.04) !important;
}

html.light .custom-package-banner h3,
html.light [class*="via-slate-900\/95"][class*="to-emerald-950"] h3,
html:not(.dark) .custom-package-banner h3,
html:not(.dark) [class*="via-slate-900\/95"][class*="to-emerald-950"] h3 {
  color: #0f172a !important;
}

html.light .custom-package-banner p,
html.light [class*="via-slate-900\/95"][class*="to-emerald-950"] p,
html:not(.dark) .custom-package-banner p,
html:not(.dark) [class*="via-slate-900\/95"][class*="to-emerald-950"] p {
  color: #334155 !important;
}

html.light .custom-package-banner span[class*="bg-slate-800"],
html.light .custom-package-banner span[class*="bg-white"],
html.light [class*="via-slate-900\/95"][class*="to-emerald-950"] span[class*="bg-slate-800"],
html:not(.dark) .custom-package-banner span[class*="bg-slate-800"],
html:not(.dark) .custom-package-banner span[class*="bg-white"],
html:not(.dark) [class*="via-slate-900\/95"][class*="to-emerald-950"] span[class*="bg-slate-800"] {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #1e293b !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.04) !important;
}

html.light .custom-package-banner a[href*="wa.me"],
html.light [class*="via-slate-900\/95"][class*="to-emerald-950"] a[href*="wa.me"],
html:not(.dark) .custom-package-banner a[href*="wa.me"],
html:not(.dark) [class*="via-slate-900\/95"][class*="to-emerald-950"] a[href*="wa.me"] {
  background-color: #ffffff !important;
  border-color: #a7f3d0 !important;
  color: #047857 !important;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05) !important;
}

html.light .custom-package-banner a[href*="wa.me"]:hover,
html:not(.dark) .custom-package-banner a[href*="wa.me"]:hover {
  background-color: #ecfdf5 !important;
  border-color: #6ee7b7 !important;
  color: #065f46 !important;
}

/* Custom Enterprise Card in /solusi-custom */
html.light .custom-enterprise-card,
html.light [class*="to-emerald-950\/20"],
html:not(.dark) .custom-enterprise-card,
html:not(.dark) [class*="to-emerald-950\/20"] {
  background-image: linear-gradient(to bottom, #f0fdf4, #ffffff) !important;
  background-color: #ffffff !important;
  border-color: #10b981 !important;
  box-shadow: 0 10px 25px -5px rgba(16, 185, 129, 0.15) !important;
}

html.light .custom-enterprise-card h3,
html:not(.dark) .custom-enterprise-card h3 {
  color: #0f172a !important;
}

html.light .custom-enterprise-card p.text-emerald-400,
html.light .custom-enterprise-card p.text-emerald-700,
html:not(.dark) .custom-enterprise-card p.text-emerald-400,
html:not(.dark) .custom-enterprise-card p.text-emerald-700 {
  color: #047857 !important;
  font-weight: 600 !important;
}

html.light .custom-enterprise-card span[class*="bg-emerald-500\/10"],
html.light .custom-enterprise-card span[class*="bg-emerald-100"],
html:not(.dark) .custom-enterprise-card span[class*="bg-emerald-500\/10"],
html:not(.dark) .custom-enterprise-card span[class*="bg-emerald-100"] {
  background-color: #d1fae5 !important;
  border-color: #a7f3d0 !important;
  color: #065f46 !important;
}

html.light .custom-enterprise-card ul li span,
html:not(.dark) .custom-enterprise-card ul li span {
  color: #1e293b !important;
}

html.light .custom-enterprise-card a[href*="wa.me"],
html:not(.dark) .custom-enterprise-card a[href*="wa.me"] {
  color: #047857 !important;
}

html.light .custom-enterprise-card a[href*="wa.me"]:hover,
html:not(.dark) .custom-enterprise-card a[href*="wa.me"]:hover {
  color: #065f46 !important;
}

/* Solusi Custom Sections in Light Mode */
html.light section#layanan,
html:not(.dark) section#layanan {
  background-color: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

