/* ============================================
   HostTheme - Modern WHMCS Theme
   Premium hosting theme with dark mode support
   ============================================ */

/* === CSS Variables === */
:root {
  /* Colors */
  --color-primary: #135bec;
  --color-primary-hover: #2563eb;
  --color-primary-light: rgba(19, 91, 236, 0.1);
  --color-primary-shadow: rgba(59, 130, 246, 0.25);

  /* Background Colors - Light */
  --bg-light: #f6f6f8;
  --surface-light: #ffffff;

  /* Background Colors - Dark */
  --bg-dark: #101622;
  --surface-dark: #1a2130;

  /* Text Colors */
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;

  /* Dark mode text */
  --text-primary-dark: #ffffff;
  --text-secondary-dark: #cbd5e1;
  --text-muted-dark: #64748b;

  /* Borders */
  --border-light: #e2e8f0;
  --border-dark: #334155;

  /* Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

  /* Spacing */
  --spacing-unit: 0.25rem;

  /* Border Radius */
  --radius-sm: 0.25rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 150ms ease;
  --transition-normal: 200ms ease;
  --transition-slow: 300ms ease;

  /* Font */
  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === Base Reset === */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-family);
  font-weight: 400;
  line-height: 1.6;
  background-color: var(--bg-light);
  color: var(--text-primary);
  transition: background-color var(--transition-normal), color var(--transition-normal);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Dark Mode - Applied to body when html has .dark class */
html.dark body,
body.dark {
  background-color: var(--bg-dark);
  color: var(--text-primary-dark);
}

html:not(.dark) body {
  background-color: var(--bg-light);
  color: var(--text-primary);
}

/* === Typography === */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5em;
}

h1 {
  font-size: 2.5rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

h4 {
  font-size: 1.25rem;
}

h5 {
  font-size: 1.125rem;
}

h6 {
  font-size: 1rem;
}

p {
  margin-bottom: 1rem;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-primary-hover);
}

/* === Utility Classes === */
.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section {
  padding: 5rem 0;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.font-bold {
  font-weight: 700;
}

.font-black {
  font-weight: 900;
}

.font-medium {
  font-weight: 500;
}

/* Flex utilities */
.flex {
  display: flex;
}

.flex-col {
  flex-direction: column;
}

.flex-row {
  flex-direction: row;
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-center {
  justify-content: center;
}

.justify-between {
  justify-content: space-between;
}

.justify-start {
  justify-content: flex-start;
}

.justify-end {
  justify-content: flex-end;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-grow {
  flex-grow: 1;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.gap-1 {
  gap: 0.25rem;
}

.gap-2 {
  gap: 0.5rem;
}

.gap-3 {
  gap: 0.75rem;
}

.gap-4 {
  gap: 1rem;
}

.gap-6 {
  gap: 1.5rem;
}

.gap-8 {
  gap: 2rem;
}

.gap-10 {
  gap: 2.5rem;
}

.gap-12 {
  gap: 3rem;
}

/* Grid utilities */
.grid {
  display: grid;
}

.grid-cols-1 {
  grid-template-columns: repeat(1, 1fr);
}

.grid-cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Spacing */
.p-0 {
  padding: 0;
}

.p-2 {
  padding: 0.5rem;
}

.p-4 {
  padding: 1rem;
}

.p-6 {
  padding: 1.5rem;
}

.p-8 {
  padding: 2rem;
}

.px-2 {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}

.px-4 {
  padding-left: 1rem;
  padding-right: 1rem;
}

.px-6 {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.px-8 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.py-2 {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

.py-4 {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.py-6 {
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}

.py-8 {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.py-12 {
  padding-top: 3rem;
  padding-bottom: 3rem;
}

.py-16 {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

.py-20 {
  padding-top: 5rem;
  padding-bottom: 5rem;
}

.py-24 {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.m-0 {
  margin: 0;
}

.m-2 {
  margin: 0.5rem;
}

.m-4 {
  margin: 1rem;
}

.mt-2 {
  margin-top: 0.5rem;
}

.mt-4 {
  margin-top: 1rem;
}

.mt-6 {
  margin-top: 1.5rem;
}

.mt-8 {
  margin-top: 2rem;
}

.mb-2 {
  margin-bottom: 0.5rem;
}

.mb-4 {
  margin-bottom: 1rem;
}

.mb-6 {
  margin-bottom: 1.5rem;
}

.mb-8 {
  margin-bottom: 2rem;
}

.mb-12 {
  margin-bottom: 3rem;
}

.mb-16 {
  margin-bottom: 4rem;
}

.mx-auto {
  margin-left: auto;
  margin-right: auto;
}

/* Width/Height */
.w-full {
  width: 100%;
}

.h-full {
  height: 100%;
}

.min-h-screen {
  min-height: 100vh;
}

/* Visibility */
.hidden {
  display: none;
}

.block {
  display: block;
}

.inline-block {
  display: inline-block;
}

.inline-flex {
  display: inline-flex;
}

/* Position */
.relative {
  position: relative;
}

.absolute {
  position: absolute;
}

.fixed {
  position: fixed;
}

.sticky {
  position: sticky;
}

.top-0 {
  top: 0;
}

.left-0 {
  left: 0;
}

.right-0 {
  right: 0;
}

.bottom-0 {
  bottom: 0;
}

.z-10 {
  z-index: 10;
}

.z-20 {
  z-index: 20;
}

.z-50 {
  z-index: 50;
}

/* Overflow */
.overflow-hidden {
  overflow: hidden;
}

.overflow-x-hidden {
  overflow-x: hidden;
}

.overflow-y-auto {
  overflow-y: auto;
}

/* Border Radius */
.rounded {
  border-radius: var(--radius-sm);
}

.rounded-md {
  border-radius: var(--radius-md);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.rounded-xl {
  border-radius: var(--radius-xl);
}

.rounded-2xl {
  border-radius: var(--radius-2xl);
}

.rounded-full {
  border-radius: var(--radius-full);
}

/* Shadows */
.shadow-sm {
  box-shadow: var(--shadow-sm);
}

.shadow-md {
  box-shadow: var(--shadow-md);
}

.shadow-lg {
  box-shadow: var(--shadow-lg);
}

.shadow-xl {
  box-shadow: var(--shadow-xl);
}

/* Transitions */
.transition-all {
  transition: all var(--transition-normal);
}

.transition-colors {
  transition: color var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal);
}

.transition-transform {
  transition: transform var(--transition-normal);
}

/* Transform */
.transform {
  transform: translateZ(0);
}

.hover\:scale-105:hover {
  transform: scale(1.05);
}

.hover\:-translate-y-1:hover {
  transform: translateY(-0.25rem);
}

/* Cursor */
.cursor-pointer {
  cursor: pointer;
}

/* Text Colors */
.text-primary {
  color: var(--color-primary);
}

.text-white {
  color: #ffffff;
}

.text-slate-400 {
  color: #94a3b8;
}

.text-slate-500 {
  color: #64748b;
}

.text-slate-600 {
  color: #475569;
}

.text-slate-700 {
  color: #334155;
}

.text-slate-900 {
  color: #0f172a;
}

.text-green-500 {
  color: #22c55e;
}

.text-red-500 {
  color: #ef4444;
}

.text-yellow-500 {
  color: #eab308;
}

.text-purple-500 {
  color: #a855f7;
}

.text-purple-600 {
  color: #9333ea;
}

.text-orange-500 {
  color: #f97316;
}

.text-orange-600 {
  color: #ea580c;
}

.text-teal-500 {
  color: #14b8a6;
}

.text-blue-400 {
  color: #60a5fa;
}

/* Background Colors */
.bg-white {
  background-color: #ffffff;
}

.bg-primary {
  background-color: var(--color-primary);
}

.bg-primary-light {
  background-color: var(--color-primary-light);
}

.bg-surface-light {
  background-color: var(--surface-light);
}

.bg-surface-dark {
  background-color: var(--surface-dark);
}

.bg-background-dark {
  background-color: var(--bg-dark);
}

.bg-background-light {
  background-color: var(--bg-light);
}

.bg-gray-50 {
  background-color: #f9fafb;
}

.bg-blue-50 {
  background-color: rgba(59, 130, 246, 0.1);
}

.bg-purple-50 {
  background-color: rgba(168, 85, 247, 0.1);
}

.bg-green-50 {
  background-color: rgba(34, 197, 94, 0.1);
}

.bg-orange-50 {
  background-color: rgba(249, 115, 22, 0.1);
}

.bg-teal-50 {
  background-color: rgba(20, 184, 166, 0.1);
}

.bg-red-50 {
  background-color: rgba(239, 68, 68, 0.1);
}

/* Border */
.border {
  border-width: 1px;
  border-style: solid;
}

.border-2 {
  border-width: 2px;
  border-style: solid;
}

.border-t {
  border-top-width: 1px;
  border-top-style: solid;
}

.border-b {
  border-bottom-width: 1px;
  border-bottom-style: solid;
}

.border-gray-200 {
  border-color: #e5e7eb;
}

.border-gray-300 {
  border-color: #d1d5db;
}

.border-gray-700 {
  border-color: #374151;
}

.border-gray-800 {
  border-color: #1f2937;
}

.border-primary {
  border-color: var(--color-primary);
}

/* Opacity */
.opacity-20 {
  opacity: 0.2;
}

.opacity-25 {
  opacity: 0.25;
}

.opacity-30 {
  opacity: 0.3;
}

.opacity-50 {
  opacity: 0.5;
}

.opacity-75 {
  opacity: 0.75;
}

/* Text Size */
.text-xs {
  font-size: 0.75rem;
  line-height: 1rem;
}

.text-sm {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.text-base {
  font-size: 1rem;
  line-height: 1.5rem;
}

.text-lg {
  font-size: 1.125rem;
  line-height: 1.75rem;
}

.text-xl {
  font-size: 1.25rem;
  line-height: 1.75rem;
}

.text-2xl {
  font-size: 1.5rem;
  line-height: 2rem;
}

.text-3xl {
  font-size: 1.875rem;
  line-height: 2.25rem;
}

.text-4xl {
  font-size: 2.25rem;
  line-height: 2.5rem;
}

.text-5xl {
  font-size: 3rem;
  line-height: 1;
}

.text-6xl {
  font-size: 3.75rem;
  line-height: 1;
}

/* Leading */
.leading-tight {
  line-height: 1.25;
}

.leading-relaxed {
  line-height: 1.625;
}

/* Tracking */
.tracking-tight {
  letter-spacing: -0.025em;
}

.tracking-wide {
  letter-spacing: 0.025em;
}

/* Truncate */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* === Dark Mode Classes === */
.dark .text-slate-900 {
  color: #ffffff;
}

.dark .text-slate-700 {
  color: #cbd5e1;
}

.dark .text-slate-600 {
  color: #94a3b8;
}

.dark .bg-white {
  background-color: var(--surface-dark);
}

.dark .bg-gray-50 {
  background-color: var(--surface-dark);
}

.dark .bg-surface-light {
  background-color: var(--surface-dark);
}

.dark .border-gray-200 {
  border-color: #334155;
}

.dark .border-gray-300 {
  border-color: #475569;
}

/* Dark mode color variants */
.dark .bg-blue-50 {
  background-color: rgba(59, 130, 246, 0.2);
}

.dark .bg-purple-50 {
  background-color: rgba(168, 85, 247, 0.2);
}

.dark .bg-green-50 {
  background-color: rgba(34, 197, 94, 0.2);
}

.dark .bg-orange-50 {
  background-color: rgba(249, 115, 22, 0.2);
}

.dark .bg-teal-50 {
  background-color: rgba(20, 184, 166, 0.2);
}

.dark .bg-red-50 {
  background-color: rgba(239, 68, 68, 0.2);
}

/* === Responsive Utilities === */
@media (min-width: 640px) {
  .sm\:block {
    display: block;
  }

  .sm\:hidden {
    display: none;
  }

  .sm\:text-5xl {
    font-size: 3rem;
    line-height: 1;
  }
}

@media (min-width: 768px) {
  .md\:flex {
    display: flex;
  }

  .md\:hidden {
    display: none;
  }

  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .md\:grid-cols-4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .md\:flex-row {
    flex-direction: row;
  }

  .md\:text-4xl {
    font-size: 2.25rem;
    line-height: 2.5rem;
  }

  .md\:text-xl {
    font-size: 1.25rem;
    line-height: 1.75rem;
  }

  .md\:-translate-y-4 {
    transform: translateY(-1rem);
  }
}

@media (min-width: 1024px) {
  .lg\:flex {
    display: flex;
  }

  .lg\:hidden {
    display: none;
  }

  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .lg\:grid-cols-5 {
    grid-template-columns: repeat(5, 1fr);
  }

  .lg\:flex-row {
    flex-direction: row;
  }

  .lg\:w-1\/2 {
    width: 50%;
  }

  .lg\:col-span-2 {
    grid-column: span 2 / span 2;
  }

  .lg\:text-left {
    text-align: left;
  }

  .lg\:text-6xl {
    font-size: 3.75rem;
    line-height: 1;
  }

  .lg\:justify-start {
    justify-content: flex-start;
  }

  .lg\:mx-0 {
    margin-left: 0;
    margin-right: 0;
  }

  .lg\:gap-20 {
    gap: 5rem;
  }
}

@media (min-width: 1280px) {
  .xl\:flex-row {
    flex-direction: row;
  }

  .xl\:w-96 {
    width: 24rem;
  }
}

/* === Animations === */
@keyframes ping {

  75%,
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.5;
  }
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slide-up {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.animate-ping {
  animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-fade-in {
  animation: fade-in 0.5s ease forwards;
}

.animate-slide-up {
  animation: slide-up 0.6s ease forwards;
}

/* Glassmorphism */
.glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.dark .glass {
  background: rgba(255, 255, 255, 0.05);
}

.backdrop-blur-md {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Gradient Text */
.gradient-text {
  background: linear-gradient(to right, var(--color-primary), #60a5fa);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Gradient Background */
.gradient-bg {
  background: linear-gradient(to right, var(--color-primary), #2563eb);
}

/* Blur Effects */
.blur-xl {
  filter: blur(24px);
}

.blur-3xl {
  filter: blur(64px);
}

/* ============================================
   Store Page - Dark Theme Styling
   Matches cart page design for consistency
   ============================================ */

/* Store Container */
html.dark .store-order-container,
html.dark .store-product-container,
html.dark .main-content .panel,
html.dark .content-area .product-group {
  background: #1a2130 !important;
  border: 1px solid rgba(99, 148, 255, 0.12) !important;
  border-radius: 16px !important;
  color: #f0f6ff !important;
}

/* Product Cards */
html.dark .product,
html.dark .product-card,
html.dark .store-product,
html.dark .panel-product,
html.dark .store-product-container .product-group .panel {
  background: #1a2130 !important;
  border: 1px solid rgba(99, 148, 255, 0.12) !important;
  border-radius: 16px !important;
  color: #f0f6ff !important;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease !important;
}

html.dark .product:hover,
html.dark .product-card:hover,
html.dark .store-product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 40px rgba(59, 130, 246, 0.2) !important;
}

/* Product Titles */
html.dark .product h3,
html.dark .product h4,
html.dark .product-card h3,
html.dark .product-card h4,
html.dark .panel-product .panel-heading,
html.dark .store-product-container h2,
html.dark .store-product-container h3,
html.dark .store-product-container h4 {
  color: #f0f6ff !important;
  font-weight: 700 !important;
}

/* Product Descriptions */
html.dark .product p,
html.dark .product-card p,
html.dark .panel-product .panel-body,
html.dark .store-product-container p {
  color: #a8c0e8 !important;
}

/* Product Price */
html.dark .product .price,
html.dark .product-card .price,
html.dark .product-price,
html.dark .panel-product .price,
html.dark .store-order-container .payment-term {
  color: #22c55e !important;
  font-weight: 700 !important;
}

/* Panel Styling */
html.dark .panel,
html.dark .panel-default,
html.dark .panel-primary {
  background: #1a2130 !important;
  border: 1px solid rgba(99, 148, 255, 0.12) !important;
  border-radius: 16px !important;
}

html.dark .panel-heading {
  background: #141c2c !important;
  border-bottom: 1px solid rgba(99, 148, 255, 0.12) !important;
  color: #f0f6ff !important;
  border-radius: 16px 16px 0 0 !important;
  padding: 1rem 1.25rem !important;
}

html.dark .panel-body {
  background: transparent !important;
  color: #a8c0e8 !important;
  padding: 1.25rem !important;
}

html.dark .panel-footer {
  background: #141c2c !important;
  border-top: 1px solid rgba(99, 148, 255, 0.12) !important;
  border-radius: 0 0 16px 16px !important;
}

/* Buttons in Store */
html.dark .store-order-container .btn-primary,
html.dark .store-product-container .btn-primary,
html.dark .product .btn-primary,
html.dark .product-card .btn-primary,
html.dark .panel-product .btn-primary {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3) !important;
  transition: all 0.3s ease !important;
}

html.dark .store-order-container .btn-primary:hover,
html.dark .store-product-container .btn-primary:hover,
html.dark .product .btn-primary:hover,
html.dark .panel-product .btn-primary:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.4) !important;
}

html.dark .store-order-container .btn-default,
html.dark .store-product-container .btn-default,
html.dark .product .btn-default {
  background: rgba(59, 130, 246, 0.15) !important;
  border: 1px solid rgba(59, 130, 246, 0.3) !important;
  color: #3b82f6 !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  transition: all 0.3s ease !important;
}

html.dark .store-order-container .btn-default:hover,
html.dark .store-product-container .btn-default:hover,
html.dark .product .btn-default:hover {
  background: rgba(59, 130, 246, 0.25) !important;
  border-color: rgba(59, 130, 246, 0.5) !important;
}

/* Form Controls in Store */
html.dark .store-order-container .form-control,
html.dark .store-product-container .form-control,
html.dark .store-order-container select,
html.dark .store-product-container select {
  background: #141c2c !important;
  color: #f0f6ff !important;
  border: 1px solid rgba(99, 148, 255, 0.12) !important;
  border-radius: 8px !important;
  padding: 0.75rem 1rem !important;
}

html.dark .store-order-container .form-control:focus,
html.dark .store-product-container .form-control:focus {
  border-color: rgba(59, 130, 246, 0.5) !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
  outline: none !important;
}

/* Tabs in Store */
html.dark .store-domain-tabs,
html.dark .nav-tabs {
  background: #141c2c !important;
  border-bottom: 1px solid rgba(99, 148, 255, 0.12) !important;
}

html.dark .store-domain-tabs .nav-link,
html.dark .store-domain-tabs li a,
html.dark .nav-tabs .nav-link,
html.dark .nav-tabs li a {
  color: #6b8ab8 !important;
  background: transparent !important;
  border: none !important;
  padding: 0.75rem 1.25rem !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
}

html.dark .store-domain-tabs .nav-link.active,
html.dark .store-domain-tabs li.active a,
html.dark .nav-tabs .nav-link.active,
html.dark .nav-tabs li.active a {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #3b82f6 !important;
}

html.dark .store-domain-tab-content,
html.dark .tab-content {
  background: transparent !important;
  padding: 1.5rem !important;
}

html.dark .store-domain-tab-content .tab-pane,
html.dark .tab-content .tab-pane {
  background: transparent !important;
  color: #a8c0e8 !important;
}

/* Product Group Page Title */
html.dark .main-content h1,
html.dark .main-content h2,
html.dark .content-area h1,
html.dark .content-area h2 {
  color: #f0f6ff !important;
}

/* Store Promoted Product */
html.dark .store-promoted-product {
  background: linear-gradient(145deg, #1a2130 0%, #141c2c 100%) !important;
  border: 1px solid rgba(99, 148, 255, 0.15) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
  margin-top: 2rem !important;
}

html.dark .store-promoted-product h3,
html.dark .store-promoted-product h4 {
  color: #f0f6ff !important;
}

html.dark .store-promoted-product p {
  color: #a8c0e8 !important;
}

html.dark .store-promoted-product .features li {
  color: #a8c0e8 !important;
}

html.dark .store-promoted-product .features i {
  color: #22c55e !important;
}

/* Domain Validation */
html.dark .domain-validation {
  color: #6b8ab8 !important;
}

html.dark .domain-validation.ok {
  color: #22c55e !important;
}

/* Container Fixes */
html.dark .container {
  color: #f0f6ff !important;
}

/* Labels */
html.dark label,
html.dark .control-label {
  color: #a8c0e8 !important;
}

/* Links in Store */
html.dark .store-order-container a,
html.dark .store-product-container a {
  color: #3b82f6 !important;
}

html.dark .store-order-container a:hover,
html.dark .store-product-container a:hover {
  color: #60a5fa !important;
}

/* ============================================
   Product Listing Page - Dark Theme
   Targets WHMCS standard_cart product cards
   ============================================ */

/* Main Container */
html.dark #order-standard_cart,
html.dark #order-lph_modern,
html.dark .order-form-container {
  background: transparent !important;
  color: #f0f6ff !important;
}

/* Cart Body */
html.dark .cart-body {
  background: #1a2130 !important;
  border: 1px solid rgba(99, 148, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 2rem !important;
  color: #f0f6ff !important;
}

/* Header Lined */
html.dark .header-lined h1,
html.dark .header-lined h2 {
  color: #f0f6ff !important;
}

html.dark .header-lined p {
  color: #a8c0e8 !important;
}

/* Products Container */
html.dark .products {
  background: transparent !important;
}

/* Individual Product Card */
html.dark .product {
  background: #141c2c !important;
  border: 1px solid rgba(99, 148, 255, 0.12) !important;
  border-radius: 12px !important;
  color: #f0f6ff !important;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3) !important;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease !important;
  overflow: hidden !important;
}

html.dark .product:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 8px 24px rgba(59, 130, 246, 0.2) !important;
  border-color: rgba(59, 130, 246, 0.3) !important;
}

/* Product Header */
html.dark .product header {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #f0f6ff !important;
  padding: 1rem 1.25rem !important;
  border-bottom: 1px solid rgba(99, 148, 255, 0.1) !important;
  font-weight: 600 !important;
  font-size: 1.1rem !important;
}

html.dark .product header span {
  color: #f0f6ff !important;
}

/* Product Description */
html.dark .product .product-desc,
html.dark .product-desc {
  background: transparent !important;
  color: #a8c0e8 !important;
  padding: 1rem 1.25rem !important;
}

html.dark .product .product-desc p,
html.dark .product-desc p {
  color: #a8c0e8 !important;
}

html.dark .product .product-desc ul,
html.dark .product-desc ul {
  color: #a8c0e8 !important;
  list-style: none !important;
  padding: 0 !important;
  margin: 0.5rem 0 !important;
}

html.dark .product .product-desc li,
html.dark .product-desc li {
  color: #a8c0e8 !important;
  padding: 0.25rem 0 !important;
}

html.dark .product .product-desc .feature-value,
html.dark .product-desc .feature-value {
  color: #3b82f6 !important;
  font-weight: 600 !important;
  margin-right: 0.5rem !important;
}

/* Product Footer */
html.dark .product footer {
  background: #101622 !important;
  padding: 1rem 1.25rem !important;
  border-top: 1px solid rgba(99, 148, 255, 0.1) !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 1rem !important;
}

/* Product Pricing */
html.dark .product .product-pricing,
html.dark .product-pricing {
  color: #a8c0e8 !important;
  text-align: left !important;
}

html.dark .product .product-pricing .price,
html.dark .product-pricing .price,
html.dark .product .price {
  color: #22c55e !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
  display: block !important;
}

html.dark .product .product-pricing small {
  color: #6b8ab8 !important;
}

/* Order Now Button */
html.dark .product .btn-order-now,
html.dark .btn-order-now,
html.dark .product .btn-success,
html.dark .products .btn-success {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 8px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
  font-size: 0.875rem !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
  transition: all 0.3s ease !important;
  text-decoration: none !important;
}

html.dark .product .btn-order-now:hover,
html.dark .btn-order-now:hover,
html.dark .product .btn-success:hover,
html.dark .products .btn-success:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 16px rgba(16, 185, 129, 0.4) !important;
  color: white !important;
}

/* Cart Sidebar */
html.dark .cart-sidebar,
html.dark .sidebar {
  background: #1a2130 !important;
  border: 1px solid rgba(99, 148, 255, 0.12) !important;
  border-radius: 16px !important;
  padding: 1.5rem !important;
}

html.dark .cart-sidebar a,
html.dark .sidebar a {
  color: #a8c0e8 !important;
}

html.dark .cart-sidebar a:hover,
html.dark .sidebar a:hover {
  color: #3b82f6 !important;
}

html.dark .cart-sidebar .active a,
html.dark .sidebar .active a {
  color: #3b82f6 !important;
  font-weight: 600 !important;
}

/* Row Equal Height */
html.dark .row-eq-height {
  display: flex !important;
  flex-wrap: wrap !important;
}

html.dark .row-eq-height>div {
  display: flex !important;
  flex-direction: column !important;
}

html.dark .row-eq-height .product {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

html.dark .row-eq-height .product footer {
  margin-top: auto !important;
}

/* ============================================
   STORE PAGE DARK THEME OVERRIDES
   ============================================ */

/* Store Product Container */
html.dark .store-product-container,
html.dark .store-order-container {
  background: transparent !important;
  max-width: 900px !important;
  margin: 0 auto !important;
  padding: 2rem 1rem !important;
}

/* Product Cards in Store */
html.dark .store-product-container .product,
html.dark .store-order-container .product,
html.dark .store-product-container .panel,
html.dark .store-order-container .panel,
html.dark .store-product-container .card,
html.dark .store-order-container .card {
  background: #1a2332 !important;
  border: 1px solid rgba(100, 150, 255, 0.12) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3) !important;
}

/* Product Header */
html.dark .store-product-container .product header,
html.dark .store-order-container .product header,
html.dark .store-product-container .panel-heading,
html.dark .store-order-container .panel-heading {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, transparent 60%) !important;
  border-bottom: 1px solid rgba(100, 150, 255, 0.12) !important;
  padding: 1.25rem 1.5rem !important;
}

html.dark .store-product-container .product header span,
html.dark .store-product-container .panel-heading,
html.dark .store-order-container h2,
html.dark .store-order-container h3,
html.dark .store-order-container h4 {
  color: #f0f6ff !important;
}

/* Product Description */
html.dark .store-product-container .product-desc,
html.dark .store-order-container .product-desc,
html.dark .store-product-container p,
html.dark .store-order-container p {
  color: #94a3b8 !important;
}

/* Product Footer and Price */
html.dark .store-product-container .product footer,
html.dark .store-order-container .product footer {
  background: #0f1419 !important;
  border-top: 1px solid rgba(100, 150, 255, 0.12) !important;
  padding: 1.25rem 1.5rem !important;
}

html.dark .store-product-container .price,
html.dark .store-order-container .price,
html.dark .store-product-container .product-pricing .price,
html.dark .store-order-container .product-pricing .price {
  color: #22c55e !important;
  font-size: 1.5rem !important;
  font-weight: 700 !important;
}

/* Order Now Button */
html.dark .store-product-container .btn-order-now,
html.dark .store-order-container .btn-order-now,
html.dark .store-product-container .btn-success,
html.dark .store-order-container .btn-success {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%) !important;
  border: none !important;
  color: white !important;
  padding: 0.875rem 1.5rem !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px rgba(34, 197, 94, 0.35) !important;
  transition: all 0.2s ease !important;
}

html.dark .store-product-container .btn-order-now:hover,
html.dark .store-order-container .btn-order-now:hover,
html.dark .store-product-container .btn-success:hover,
html.dark .store-order-container .btn-success:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 6px 20px rgba(34, 197, 94, 0.45) !important;
}

/* Form Controls */
html.dark .store-product-container .form-control,
html.dark .store-order-container .form-control,
html.dark .store-product-container select,
html.dark .store-order-container select {
  background: #141c2c !important;
  border: 1px solid rgba(100, 150, 255, 0.12) !important;
  border-radius: 8px !important;
  color: #f0f6ff !important;
  padding: 0.75rem 1rem !important;
}

html.dark .store-product-container .form-control:focus,
html.dark .store-order-container .form-control:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}

/* Tab Navigation */
html.dark .store-product-container .nav-tabs,
html.dark .store-order-container .nav-tabs {
  border-bottom: 1px solid rgba(100, 150, 255, 0.12) !important;
}

html.dark .store-product-container .nav-tabs>li>a,
html.dark .store-order-container .nav-tabs>li>a {
  background: transparent !important;
  border: 1px solid rgba(100, 150, 255, 0.12) !important;
  border-radius: 8px !important;
  color: #94a3b8 !important;
  margin-right: 0.5rem !important;
  margin-bottom: -1px !important;
}

html.dark .store-product-container .nav-tabs>li>a:hover,
html.dark .store-order-container .nav-tabs>li>a:hover {
  background: rgba(59, 130, 246, 0.1) !important;
  color: #3b82f6 !important;
}

html.dark .store-product-container .nav-tabs>li.active>a,
html.dark .store-order-container .nav-tabs>li.active>a {
  background: #3b82f6 !important;
  border-color: #3b82f6 !important;
  color: white !important;
}

/* Tab Content */
html.dark .store-product-container .tab-content,
html.dark .store-order-container .tab-content {
  background: transparent !important;
  padding: 1.25rem !important;
}

/* Payment Term */
html.dark .store-order-container .payment-term {
  background: #141c2c !important;
  border: 1px solid rgba(100, 150, 255, 0.12) !important;
  border-radius: 12px !important;
  padding: 1.25rem !important;
  margin-bottom: 1.5rem !important;
}

html.dark .store-order-container .payment-term h4 {
  color: #f0f6ff !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  margin-bottom: 1rem !important;
}

/* Primary Buttons */
html.dark .store-product-container .btn-primary,
html.dark .store-order-container .btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
  border: none !important;
  color: white !important;
  border-radius: 10px !important;
  padding: 0.75rem 1.5rem !important;
  font-weight: 600 !important;
}

html.dark .store-product-container .btn-primary:hover,
html.dark .store-order-container .btn-primary:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35) !important;
}

/* Default Buttons */
html.dark .store-product-container .btn-default,
html.dark .store-order-container .btn-default {
  background: #1a2332 !important;
  border: 1px solid rgba(100, 150, 255, 0.12) !important;
  color: #94a3b8 !important;
  border-radius: 10px !important;
}

html.dark .store-product-container .btn-default:hover,
html.dark .store-order-container .btn-default:hover {
  background: #232f42 !important;
  color: #f0f6ff !important;
}

/* Alerts */
html.dark .store-product-container .alert,
html.dark .store-order-container .alert {
  border-radius: 10px !important;
  border: none !important;
}

html.dark .store-product-container .alert-info,
html.dark .store-order-container .alert-info {
  background: rgba(59, 130, 246, 0.15) !important;
  color: #60a5fa !important;
}

html.dark .store-product-container .alert-success,
html.dark .store-order-container .alert-success {
  background: rgba(34, 197, 94, 0.15) !important;
  color: #4ade80 !important;
}

/* Labels */
html.dark .store-product-container label,
html.dark .store-order-container label {
  color: #94a3b8 !important;
}