/* =============================================
   PRICING PAGE BACKGROUND FIX
   Separates breadcrumb (solid black) from pricing section (grid texture)
   ============================================= */

/* =============================================
   PROBLEM IDENTIFIED:
   The body has a universal grid pattern that applies to the entire page.
   We need to:
   1. Remove grid from breadcrumb section (solid black)
   2. Keep grid on pricing section (textured dark gray)
   ============================================= */

/* Override body grid for pricing page in dark mode */
body.dark {
  /* Remove universal grid - we'll apply it selectively */
  background-image: none !important;
}

/* =============================================
   TOP SECTION: BREADCRUMB - SOLID DEEP BLACK
   ============================================= */

body.dark .breadcrumb-section {
  /* Solid deep black - NO grid pattern */
  background-color: #000000 !important;
  background-image: none !important;
  position: relative;
  z-index: 2;
}

/* Ensure no grid bleeds through */
body.dark .breadcrumb-section * {
  background-image: none !important;
}

/* =============================================
   BOTTOM SECTION: PRICING - TEXTURED DARK GRAY WITH GRID
   ============================================= */

body.dark .pricing-plan-section-modern {
  /* Lighter off-black/dark-gray background */
  background-color: #1a1d21 !important;

  /* Grid texture pattern */
  background-image:
    linear-gradient(rgba(242, 244, 247, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(242, 244, 247, 0.018) 1px, transparent 1px) !important;
  background-size: 50px 50px !important;
  background-position: center center !important;

  position: relative;
  z-index: 1;
}

/* =============================================
   SECTION DIVIDER (Orange Line Separator)
   ============================================= */

/* Ensure divider sits on top and creates clear separation */
body.dark .section-divider.style-sparkle {
  position: relative;
  z-index: 3;
  background-color: transparent !important;
}

/* Make the orange line more prominent as section separator */
body.dark .section-divider.style-sparkle::before {
  height: 2px !important;
  background: linear-gradient(
    90deg,
    rgba(255, 90, 0, 1) 0%,
    rgba(255, 90, 0, 0.8) 70%,
    transparent 100%
  ) !important;
  box-shadow: 0 0 15px rgba(255, 90, 0, 0.4) !important;
}

/* =============================================
   WRAPPER FIXES
   ============================================= */

/* Ensure smooth-wrapper doesn't have conflicting backgrounds */
body.dark #smooth-wrapper,
body.dark #smooth-content {
  background-color: transparent !important;
  background-image: none !important;
}

/* =============================================
   LIGHT MODE - Preserve existing behavior
   ============================================= */

body:not(.dark) .breadcrumb-section {
  background-color: #fafbfc !important;
  background-image: none !important;
}

body:not(.dark) .pricing-plan-section-modern {
  background-color: #ffffff !important;
  background-image: none !important;
}

/* =============================================
   MOBILE RESPONSIVE
   ============================================= */

@media (max-width: 991px) {
  body.dark .pricing-plan-section-modern {
    /* Slightly larger grid on mobile for better visibility */
    background-size: 40px 40px !important;
  }
}

@media (max-width: 767px) {
  body.dark .pricing-plan-section-modern {
    background-size: 30px 30px !important;
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */

@media print {
  body.dark .breadcrumb-section,
  body.dark .pricing-plan-section-modern {
    background-image: none !important;
  }
}
