/* 
  DS Prod IO - Premium Dark Theme Design System 
  CSS Custom Properties & Normalize
*/

:root {
  /* Colors */
  --color-bg: #0a0b10;
  --color-bg-alt: #0f1117;
  --color-surface: #151720;
  --color-surface-hover: #1c1f2e;
  --color-surface-active: #232638;
  --color-border: #262938;
  --color-border-light: #1e2130;
  --color-primary: #3b82f6;
  --color-primary-hover: #2563eb;
  --color-primary-light: rgba(59, 130, 246, 0.1);
  --color-secondary: #8b5cf6;
  --color-accent: #22d3a7;
  --color-text: #f1f3f9;
  --color-text-secondary: #8b92a5;
  --color-text-muted: #5c6378;
  
  --color-success: #22c55e;
  --color-error: #ef4444;
  --color-warning: #f59e0b;
  
  --color-gradient: linear-gradient(135deg, #3b82f6, #8b5cf6);
  --color-gradient-hover: linear-gradient(135deg, #2563eb, #7c3aed);
  
  /* Typography */
  --font-family: 'Inter', system-ui, -apple-system, sans-serif;
  
  /* Spacing */
  --spacing-1: 0.25rem;
  --spacing-2: 0.5rem;
  --spacing-3: 0.75rem;
  --spacing-4: 1rem;
  --spacing-5: 1.25rem;
  --spacing-6: 1.5rem;
  --spacing-8: 2rem;
  --spacing-10: 2.5rem;
  --spacing-12: 3rem;
  --spacing-16: 4rem;
  --spacing-20: 5rem;
  --spacing-24: 6rem;
  
  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.3);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.6), 0 10px 10px -5px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 15px rgba(59, 130, 246, 0.5);
  
  /* 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: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   Normal / Light Mode Color System
   ============================================ */
[data-theme="light"],
html[data-bs-theme="light"],
body.theme-light {
  --color-bg: #f8fafc;
  --color-bg-alt: #f1f5f9;
  --color-surface: #ffffff;
  --color-surface-hover: #f1f5f9;
  --color-surface-active: #e2e8f0;
  --color-border: #e2e8f0;
  --color-border-light: #cbd5e1;
  --color-text: #0f172a;
  --color-text-secondary: #475569;
  --color-text-muted: #64748b;
  
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Reset & Normalize */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-normal);
}

ul, ol {
  list-style: none;
}

img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

button, input, textarea, select {
  font: inherit;
  color: inherit;
  background: transparent;
  border: none;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  color: var(--color-text);
  line-height: 1.2;
  margin-bottom: var(--spacing-4);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: clamp(3rem, 5.5vw, 4.5rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  line-height: clamp(2.5rem, 4.5vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

h3 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  line-height: clamp(2rem, 3.5vw, 2.25rem);
  font-weight: 600;
}

h4 {
  font-size: 1.25rem;
  line-height: 1.75rem;
  font-weight: 600;
}

p {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-4);
}

.text-small {
  font-size: 0.875rem;
}

.text-label {
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.gradient-text {
  background: var(--color-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-4);
}

.section {
  padding: var(--spacing-20) 0;
}

@media (min-width: 992px) {
  .section {
    padding: var(--spacing-24) 0;
  }
}

.hero {
  padding: 8rem 0 6rem;
  position: relative;
  overflow: hidden;
}

/* Grid System */
.grid {
  display: grid;
  gap: var(--spacing-6);
}

.grid-cols-2 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-3 { grid-template-columns: repeat(1, 1fr); }
.grid-cols-4 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Components */
/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 500;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-align: center;
  gap: var(--spacing-2);
}

.btn:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

.btn-primary {
  background: var(--color-gradient);
  color: #fff;
  box-shadow: 0 4px 14px 0 rgba(59, 130, 246, 0.39);
}

.btn-primary:hover {
  background: var(--color-gradient-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.23);
}

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

.btn-secondary:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-text);
  border: 1px solid var(--color-border);
}

.btn-outline:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: #fff;
  transform: translateY(-2px);
}

.btn-outline-light {
  background: transparent;
  color: #f1f3f9;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #ffffff;
  color: #ffffff;
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-secondary);
}

.btn-ghost:hover {
  color: var(--color-text);
  background: var(--color-surface);
}

.btn-danger {
  background: var(--color-error);
  color: #fff;
}

.btn-danger:hover {
  background: #dc2626;
  color: #fff;
}

.btn-light {
  background: #ffffff;
  color: #0a0b10;
  font-weight: 600;
}

.btn-light:hover {
  background: #e2e8f0;
  color: #000;
}

.btn-link {
  background: transparent;
  color: var(--color-primary);
  border: none;
  padding: 0;
  text-decoration: underline;
}

.btn-link:hover {
  color: var(--color-primary-hover);
}

.btn-sm {
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9rem 2rem;
  font-size: 1.1rem;
  font-weight: 600;
}

/* Cards */
.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--spacing-6);
  transition: all var(--transition-normal);
}

.card:hover {
  transform: translateY(-4px);
  border-color: var(--color-border-light);
  box-shadow: var(--shadow-lg);
}

.service-card, .feature-card, .step-card {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
}

.service-card .icon-wrapper {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: var(--spacing-2);
}

.product-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.product-card .img-wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  position: relative;
}

.product-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.product-card:hover img {
  transform: scale(1.05);
}

.product-card-content {
  padding: var(--spacing-6);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-card-footer {
  margin-top: auto;
  padding-top: var(--spacing-4);
  border-top: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.testimonial-card {
  position: relative;
}

.testimonial-card::before {
  content: '"';
  position: absolute;
  top: var(--spacing-4);
  right: var(--spacing-6);
  font-size: 4rem;
  color: var(--color-border);
  line-height: 1;
  font-family: serif;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1050;
  height: 72px;
  display: flex;
  align-items: center;
  padding: 0;
  background: rgba(10, 11, 16, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: all var(--transition-normal);
}

.navbar.scrolled {
  background: rgba(10, 11, 16, 0.96);
  border-bottom-color: var(--color-border);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.navbar-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-4);
  flex-wrap: nowrap;
  height: 100%;
}

.logo {
  display: inline-flex;
  align-items: center;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  white-space: nowrap;
  flex-shrink: 0;
  text-decoration: none;
  color: var(--color-text);
  transition: opacity var(--transition-fast);
}

.logo:hover {
  opacity: 0.9;
}

.nav-links {
  display: none;
  align-items: center;
  gap: clamp(0.6rem, 1.3vw, 1.6rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  white-space: nowrap;
  padding: 6px 12px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.nav-link:hover {
  color: var(--color-text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-link.active {
  color: var(--color-primary);
  font-weight: 600;
  background: var(--color-primary-light);
}

.nav-actions {
  display: none;
  align-items: center;
  gap: 0.75rem;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Minimalist Segmented Language Capsule */
.lang-switch-capsule {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9999px;
  padding: 2px;
  gap: 2px;
}

.lang-capsule-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 9999px;
  color: var(--color-text-secondary);
  text-decoration: none;
  transition: all var(--transition-fast);
  line-height: 1;
}

.lang-capsule-item:hover {
  color: var(--color-text);
}

.lang-capsule-item.active {
  background: var(--color-primary);
  color: #ffffff;
  box-shadow: 0 1px 6px rgba(59, 130, 246, 0.35);
}

/* Instant Theme Switch Button */
.theme-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fbbf24;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.theme-switch-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(251, 191, 36, 0.5);
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.25);
  transform: translateY(-1px);
}

.theme-icon-sun {
  display: inline-block;
  font-size: 1.05rem;
}

.theme-icon-moon {
  display: none;
  font-size: 1.05rem;
}

/* Clean Nav CTA */
.nav-cta-btn {
  border-radius: 9999px;
  padding: 0.48rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.35);
  transition: all var(--transition-fast);
}

.nav-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(59, 130, 246, 0.45);
}

/* Mobile Header Controls */
.mobile-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 992px) {
  .nav-links, .nav-actions {
    display: flex;
  }
  .mobile-header-actions {
    display: none;
  }
}

/* Mobile Drawer Controls Box */
.mobile-controls-box {
  margin: 18px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mobile-control-row {
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.mobile-control-title {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 8px;
}

.mobile-segmented {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mobile-segmented-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  user-select: none;
}

.mobile-segmented-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.mobile-segmented-btn.active {
  background: rgba(59, 130, 246, 0.2);
  border-color: #3b82f6;
  color: #60a5fa;
}

/* ========================================================
   COMPREHENSIVE LIGHT THEME RULES & OVERRIDES
   ======================================================== */
[data-theme="light"],
html.theme-light,
html[data-bs-theme="light"],
body.theme-light {
  --color-bg: #f8fafc !important;
  --color-bg-alt: #f1f5f9 !important;
  --color-surface: #ffffff !important;
  --color-surface-hover: #f1f5f9 !important;
  --color-surface-active: #e2e8f0 !important;
  --color-border: #e2e8f0 !important;
  --color-border-light: #cbd5e1 !important;
  --color-text: #0f172a !important;
  --color-text-secondary: #475569 !important;
  --color-text-muted: #64748b !important;
}

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

[data-theme="light"] .navbar,
html.theme-light .navbar {
  background: rgba(255, 255, 255, 0.92) !important;
  border-bottom: 1px solid #e2e8f0 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] .navbar.scrolled,
html.theme-light .navbar.scrolled {
  background: rgba(255, 255, 255, 0.98) !important;
  border-bottom-color: #cbd5e1 !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
}

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

[data-theme="light"] .nav-link,
html.theme-light .nav-link {
  color: #334155 !important;
}

[data-theme="light"] .nav-link:hover,
html.theme-light .nav-link:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  color: #0f172a !important;
}

[data-theme="light"] .nav-link.active,
html.theme-light .nav-link.active {
  color: #2563eb !important;
  background: rgba(37, 99, 235, 0.08) !important;
}

[data-theme="light"] .lang-switch-capsule,
html.theme-light .lang-switch-capsule {
  background: #f1f5f9 !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .lang-capsule-item,
html.theme-light .lang-capsule-item {
  color: #64748b !important;
}

[data-theme="light"] .lang-capsule-item:hover,
html.theme-light .lang-capsule-item:hover {
  color: #0f172a !important;
}

[data-theme="light"] .lang-capsule-item.active,
html.theme-light .lang-capsule-item.active {
  background: var(--color-primary) !important;
  color: #ffffff !important;
}

[data-theme="light"] .theme-switch-btn,
html.theme-light .theme-switch-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #6366f1 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06) !important;
}

[data-theme="light"] .theme-switch-btn:hover,
html.theme-light .theme-switch-btn:hover {
  background: #f8fafc !important;
  border-color: #6366f1 !important;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.2) !important;
}

[data-theme="light"] .card,
[data-theme="light"] .product-card-modern,
[data-theme="light"] .service-card,
[data-theme="light"] .feature-card,
[data-theme="light"] .step-card,
html.theme-light .card,
html.theme-light .product-card-modern,
html.theme-light .service-card,
html.theme-light .feature-card,
html.theme-light .step-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04) !important;
}

[data-theme="light"] h1, [data-theme="light"] h2, [data-theme="light"] h3,
[data-theme="light"] h4, [data-theme="light"] h5, [data-theme="light"] h6,
html.theme-light h1, html.theme-light h2, html.theme-light h3,
html.theme-light h4, html.theme-light h5, html.theme-light h6 {
  color: #0f172a !important;
}

[data-theme="light"] p,
html.theme-light p {
  color: #475569 !important;
}

[data-theme="light"] .hero-title,
html.theme-light .hero-title,
[data-theme="light"] .section-title,
html.theme-light .section-title,
[data-theme="light"] .product-title a,
html.theme-light .product-title a,
[data-theme="light"] .product-price,
html.theme-light .product-price,
[data-theme="light"] .faq-toggle-btn,
html.theme-light .faq-toggle-btn {
  color: #0f172a !important;
}

[data-theme="light"] [style*="color:#ffffff"],
[data-theme="light"] [style*="color: #ffffff"],
[data-theme="light"] [style*="color:#fff"],
[data-theme="light"] [style*="color: #fff"],
[data-theme="light"] [style*="color: rgb(255, 255, 255)"],
[data-theme="light"] [style*="color:rgb(255, 255, 255)"],
html.theme-light [style*="color:#ffffff"],
html.theme-light [style*="color: #ffffff"],
html.theme-light [style*="color:#fff"],
html.theme-light [style*="color: #fff"],
html.theme-light [style*="color: rgb(255, 255, 255)"],
html.theme-light [style*="color:rgb(255, 255, 255)"] {
  color: #0f172a !important;
}

[data-theme="light"] [style*="color:#f8fafc"],
[data-theme="light"] [style*="color: #f8fafc"],
[data-theme="light"] [style*="color:#f1f3f9"],
[data-theme="light"] [style*="color: #f1f3f9"],
html.theme-light [style*="color:#f8fafc"],
html.theme-light [style*="color: #f8fafc"],
html.theme-light [style*="color:#f1f3f9"],
html.theme-light [style*="color: #f1f3f9"] {
  color: #0f172a !important;
}

/* Light Mode Bootstrap Utility Overrides */
[data-theme="light"] .text-white,
html.theme-light .text-white,
body.theme-light .text-white,
[data-theme="light"] .display-4,
[data-theme="light"] .display-5,
html.theme-light .display-4,
html.theme-light .display-5 {
  color: #0f172a !important;
}

[data-theme="light"] .text-muted,
html.theme-light .text-muted,
body.theme-light .text-muted {
  color: #64748b !important;
}

[data-theme="light"] .bg-dark,
html.theme-light .bg-dark,
body.theme-light .bg-dark {
  background-color: #ffffff !important;
  color: #0f172a !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .border-secondary,
[data-theme="light"] .border-dark,
html.theme-light .border-secondary,
html.theme-light .border-dark {
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .form-control,
[data-theme="light"] .form-select,
html.theme-light .form-control,
html.theme-light .form-select {
  background-color: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-control:focus,
[data-theme="light"] .form-select:focus,
html.theme-light .form-control:focus,
html.theme-light .form-select:focus {
  background-color: #ffffff !important;
  border-color: var(--color-primary) !important;
  color: #0f172a !important;
}

[data-theme="light"] .form-control::placeholder,
html.theme-light .form-control::placeholder {
  color: #94a3b8 !important;
}

[data-theme="light"] .form-label,
html.theme-light .form-label,
[data-theme="light"] .form-check-label,
html.theme-light .form-check-label {
  color: #0f172a !important;
}

[data-theme="light"] .custom-card,
html.theme-light .custom-card {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .custom-card:hover,
html.theme-light .custom-card:hover {
  background: #f8fafc !important;
  border-color: var(--color-primary) !important;
}

[data-theme="light"] .custom-card.selected-card,
html.theme-light .custom-card.selected-card {
  background: rgba(59, 130, 246, 0.08) !important;
  border-color: #3b82f6 !important;
}

[data-theme="light"] .step-indicator,
html.theme-light .step-indicator {
  background: #f1f5f9 !important;
  border-color: #cbd5e1 !important;
  color: #64748b !important;
}

[data-theme="light"] .step-indicator.bg-primary,
html.theme-light .step-indicator.bg-primary {
  background: var(--color-primary) !important;
  border-color: var(--color-primary) !important;
  color: #ffffff !important;
}

[data-theme="light"] .review-container,
html.theme-light .review-container {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .review-container #reviewContent,
html.theme-light .review-container #reviewContent {
  color: #334155 !important;
}

[data-theme="light"] .alert-info,
html.theme-light .alert-info {
  background-color: rgba(59, 130, 246, 0.08) !important;
  border-color: rgba(59, 130, 246, 0.25) !important;
  color: #1e40af !important;
}

[data-theme="light"] .btn-secondary,
html.theme-light .btn-secondary {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-secondary:hover,
html.theme-light .btn-secondary:hover {
  background: #f8fafc !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

[data-theme="light"] .btn-outline,
html.theme-light .btn-outline {
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}

[data-theme="light"] .btn-outline:hover,
html.theme-light .btn-outline:hover {
  background: #f1f5f9 !important;
  border-color: var(--color-primary) !important;
  color: var(--color-primary) !important;
}

[data-theme="light"] .category-pill,
html.theme-light .category-pill {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .category-pill:hover,
html.theme-light .category-pill:hover {
  background: #f1f5f9 !important;
  border-color: var(--color-primary) !important;
  color: #0f172a !important;
}

[data-theme="light"] .mobile-menu,
html.theme-light .mobile-menu {
  background: #ffffff !important;
  color: #0f172a !important;
  border-left: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .mobile-menu-header,
html.theme-light .mobile-menu-header {
  background: #f8fafc !important;
  border-bottom-color: #e2e8f0 !important;
}

[data-theme="light"] .mobile-menu-title,
html.theme-light .mobile-menu-title {
  color: #0f172a !important;
}

[data-theme="light"] .mobile-menu-close,
html.theme-light .mobile-menu-close {
  color: #475569 !important;
}

[data-theme="light"] .mobile-nav-link,
html.theme-light .mobile-nav-link {
  color: #334155 !important;
  border-bottom-color: #f1f5f9 !important;
}

[data-theme="light"] .mobile-nav-link:hover,
html.theme-light .mobile-nav-link:hover {
  background: #f8fafc !important;
  color: var(--color-primary) !important;
}

[data-theme="light"] .mobile-control-row,
html.theme-light .mobile-control-row {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
}

[data-theme="light"] .mobile-control-title,
html.theme-light .mobile-control-title {
  color: #64748b !important;
}

[data-theme="light"] .mobile-segmented-btn,
html.theme-light .mobile-segmented-btn {
  background: #ffffff !important;
  border-color: #e2e8f0 !important;
  color: #475569 !important;
}

[data-theme="light"] .mobile-segmented-btn:hover,
html.theme-light .mobile-segmented-btn:hover {
  background: #f1f5f9 !important;
  color: #0f172a !important;
}

[data-theme="light"] .mobile-segmented-btn.active,
html.theme-light .mobile-segmented-btn.active {
  background: rgba(59, 130, 246, 0.15) !important;
  border-color: #3b82f6 !important;
  color: #2563eb !important;
}

[data-theme="light"] .mobile-menu-btn,
html.theme-light .mobile-menu-btn {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  color: #0f172a !important;
}


.mobile-menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.mobile-menu-btn:hover,
.mobile-menu-btn:focus-visible {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

@media (min-width: 992px) {
  .nav-links, .nav-actions {
    display: flex;
  }
  .mobile-menu-btn {
    display: none;
  }
  /* Instant hover support for desktop dropdown */
  .lang-dropdown:hover .lang-menu {
    display: block;
    margin-top: 4px !important;
  }
}

/* On medium desktop screens (992px to 1199px), streamline secondary button to keep navbar pristine */
@media (min-width: 992px) and (max-width: 1199px) {
  .nav-btn-secondary {
    display: none !important;
  }
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 360px;
  height: 100%;
  height: 100dvh;
  background: var(--color-surface);
  z-index: 10000;
  padding: 0;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  border-left: 1px solid var(--color-border);
  box-shadow: -12px 0 35px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.mobile-menu.open {
  right: 0;
}

.mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  flex-shrink: 0;
}

.mobile-menu-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text);
  letter-spacing: -0.01em;
}

.mobile-menu-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  color: var(--color-text);
  cursor: pointer;
  margin-bottom: 0;
  transition: all var(--transition-fast);
}

.mobile-menu-close:hover {
  border-color: var(--color-error);
  color: var(--color-error);
  background: rgba(239, 68, 68, 0.1);
}

.mobile-menu-body {
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 20px 20px calc(40px + env(safe-area-inset-bottom, 20px));
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.mobile-nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 0;
}

.mobile-nav-link {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  padding: 10px 14px;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.mobile-nav-link:hover, .mobile-nav-link.active {
  color: var(--color-primary);
  background: rgba(59, 130, 246, 0.12);
}

.mobile-menu-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 10px;
  padding-bottom: 30px;
}

.mobile-menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.open,
.mobile-menu.open ~ .mobile-menu-overlay {
  opacity: 1;
  pointer-events: auto;
}

/* Forms */
.form-group {
  margin-bottom: var(--spacing-4);
}

.form-label {
  display: block;
  margin-bottom: var(--spacing-2);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--color-text-secondary);
}

.form-input, .form-textarea, .form-select {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: var(--color-text);
  font-size: 1rem;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px var(--color-primary-light);
}

.form-select option {
  background: var(--color-surface);
  color: var(--color-text);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}

.form-error {
  color: var(--color-error);
  font-size: 0.75rem;
  margin-top: var(--spacing-1);
}

/* Accordion */
.accordion {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.accordion-item {
  border-bottom: 1px solid var(--color-border);
}

.accordion-item:last-child {
  border-bottom: none;
}

.accordion-header {
  width: 100%;
  text-align: left;
  padding: var(--spacing-4) var(--spacing-6);
  background: var(--color-surface);
  font-size: 1.125rem;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.accordion-content {
  padding: 0 var(--spacing-6);
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-normal), padding var(--transition-normal);
  background: var(--color-bg-alt);
}

.accordion-item.active .accordion-content {
  padding: var(--spacing-4) var(--spacing-6);
  max-height: 500px;
}

.accordion-icon {
  transition: transform var(--transition-normal);
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

/* Footer */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding-top: var(--spacing-16);
  margin-top: var(--spacing-20);
}

.footer-top {
  display: grid;
  gap: var(--spacing-10);
  grid-template-columns: 1fr;
  margin-bottom: var(--spacing-12);
}

@media (min-width: 768px) {
  .footer-top {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .footer-top {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col h4 {
  font-size: 1rem;
  margin-bottom: var(--spacing-6);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
}

.footer-link {
  color: var(--color-text-secondary);
  font-size: 0.875rem;
}

.footer-link:hover {
  color: var(--color-primary);
}

.footer-bottom {
  padding: var(--spacing-6) 0;
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-4);
  align-items: center;
  justify-content: space-between;
}

@media (min-width: 768px) {
  .footer-bottom {
    flex-direction: row;
  }
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-primary {
  background: var(--color-primary-light);
  color: var(--color-primary);
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--color-success);
}

/* Tags */
.tag {
  display: inline-flex;
  padding: 0.25rem 0.75rem;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  color: var(--color-text-secondary);
}

/* Price */
.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text);
}

.price-currency {
  font-size: 1rem;
  color: var(--color-text-secondary);
  font-weight: normal;
}

/* Toasts */
.toast-container {
  position: fixed;
  bottom: var(--spacing-6);
  right: var(--spacing-6);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
}

.toast {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-4);
  width: 300px;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: flex-start;
  gap: var(--spacing-3);
  transform: translateX(120%);
  transition: transform var(--transition-normal);
}

.toast.show {
  transform: translateX(0);
}

/* Animations */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.animate-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in-up { animation: fadeInUp 0.6s ease-out forwards; }
.fade-in-left { animation: fadeInLeft 0.6s ease-out forwards; }
.fade-in-right { animation: fadeInRight 0.6s ease-out forwards; }

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

@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Page Layout & Navbar Clearance */
.page-content {
  padding-top: 100px;
  min-height: calc(100vh - 350px);
}

@media (max-width: 768px) {
  .page-content {
    padding-top: 84px;
  }
}

/* Hero & Section Typography */
.hero-title {
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--color-text);
  margin-bottom: var(--spacing-4);
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  color: var(--color-text-secondary);
  max-width: 680px;
  margin: 0 auto var(--spacing-8);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-4);
  flex-wrap: wrap;
}

.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--color-text);
  margin-bottom: var(--spacing-3);
}

/* Category Pills & Modern Tabs */
.pills-scroll-wrapper {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding-bottom: 4px;
}

.pills-scroll-wrapper::-webkit-scrollbar {
  height: 4px;
}

.pills-scroll-wrapper::-webkit-scrollbar-thumb {
  background: var(--color-border);
  border-radius: 4px;
}

.category-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .category-pills {
    flex-wrap: nowrap;
    padding-bottom: 4px;
  }
}

.category-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 1.1rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
  text-decoration: none;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-secondary);
  transition: all var(--transition-fast);
}

.category-pill:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.category-pill.active {
  background: var(--color-gradient);
  color: #ffffff;
  border-color: transparent;
  font-weight: 600;
  box-shadow: 0 2px 10px rgba(59, 130, 246, 0.35);
}

/* Modern Product Card System */
.products-grid-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .products-grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .products-grid-layout {
    grid-template-columns: repeat(3, 1fr);
  }
}

.product-card-modern {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.product-card-modern:hover {
  transform: translateY(-4px);
  border-color: rgba(59, 130, 246, 0.4);
  box-shadow: 0 12px 24px -6px rgba(0, 0, 0, 0.5);
}

.product-thumb-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f1117;
  overflow: hidden;
}

.product-thumb-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.product-card-modern:hover .product-thumb-wrapper img {
  transform: scale(1.04);
}

.product-thumb-svg {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #151720, #0a0b10);
  color: var(--color-primary);
  opacity: 0.6;
}

.product-cat-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.product-info-wrapper {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  line-height: 1.35;
}

.product-title a {
  color: var(--color-text);
  text-decoration: none;
  transition: color 0.2s;
}

.product-title a:hover {
  color: var(--color-primary);
}

.product-desc {
  color: var(--color-text-secondary);
  font-size: 0.88rem;
  line-height: 1.5;
  margin-bottom: 1.4rem;
  flex-grow: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-bottom-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-text);
}

/* Hero Top Badge Responsive & Theme Styles */
.hero-top-badge-container {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
  padding: 0 10px;
}

.hero-top-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal !important;
  word-break: normal;
  line-height: 1.45;
  font-size: clamp(0.74rem, 3.2vw, 0.88rem);
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 9999px;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
  max-width: 100%;
}

.hero-top-badge .badge-sparkle {
  color: var(--color-primary);
  margin-right: 6px;
  font-size: 0.9em;
}

[data-theme="light"] .hero-top-badge,
html.theme-light .hero-top-badge {
  background: rgba(37, 99, 235, 0.08) !important;
  color: #2563eb !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

/* Mobile Responsive Polish & Safeguards */
@media (max-width: 768px) {
  /* Prevent scroll animations from leaving elements invisible on mobile */
  .animate-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .hero-top-badge {
    font-size: 0.76rem;
    padding: 6px 12px;
    line-height: 1.35;
  }

  /* Show only 3 products on mobile on home page */
  .home-products-grid .desktop-only-card,
  .home-products-grid .product-card-modern:nth-child(n+4) {
    display: none !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .btn-lg {
    padding: 0.8rem 1.4rem;
    font-size: 1rem;
  }

  .section {
    padding: var(--spacing-12) 0;
  }

  .hero {
    padding: 6.5rem 0 3.5rem;
  }
}
