:root {
  --eg-site-bg-base: #070611;
  --eg-site-bg-deep: #05050b;
  --eg-site-bg-text: #f5f2fb;
  --eg-site-bg-violet: rgba(139, 92, 246, 0.24);
  --eg-site-bg-violet-soft: rgba(124, 58, 237, 0.18);
  --eg-site-bg-lavender: rgba(201, 184, 255, 0.08);
}

html,
body {
  min-height: 100%;
  background: var(--eg-site-bg-base);
}

body {
  position: relative;
  overflow-x: hidden;
  color: var(--eg-site-bg-text);
  background: linear-gradient(180deg, #070611 0%, #090716 42%, #05050b 100%);
}

.eg-site-background {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
  background:
    radial-gradient(circle at 14% 10%, rgba(139, 92, 246, 0.16), transparent 34%),
    radial-gradient(circle at 88% 22%, rgba(91, 33, 182, 0.16), transparent 38%),
    radial-gradient(circle at 50% 100%, rgba(201, 184, 255, 0.08), transparent 38%),
    linear-gradient(180deg, #070611 0%, #090716 42%, #05050b 100%);
}

.eg-site-background::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% -12%, rgba(255, 255, 255, 0.035), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 24%, transparent 76%, rgba(0, 0, 0, 0.12));
  opacity: 0.72;
}

#eg-particles-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  opacity: 0.78;
}

.eg-bg-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(90px);
  opacity: 0.48;
  transform: translateZ(0);
  animation: egBgOrbFloat 24s ease-in-out infinite alternate;
}

.eg-bg-orb-1 {
  width: 520px;
  height: 520px;
  left: -160px;
  top: -120px;
  background: var(--eg-site-bg-violet);
}

.eg-bg-orb-2 {
  width: 620px;
  height: 620px;
  right: -220px;
  top: 22vh;
  background: var(--eg-site-bg-violet-soft);
  animation-duration: 30s;
}

.eg-bg-orb-3 {
  width: 560px;
  height: 560px;
  left: 24vw;
  bottom: -220px;
  background: var(--eg-site-bg-lavender);
  animation-duration: 34s;
}

.eg-site-background[data-density="soft"] #eg-particles-canvas {
  opacity: 0.42;
}

.eg-site-background[data-density="soft"] .eg-bg-orb {
  opacity: 0.3;
}

body > main,
body > footer,
body > header,
.site-header,
.eg-header,
.site-main,
.page-main,
.site-content,
.page-content {
  position: relative;
  z-index: 1;
}

.eg-header,
.site-header {
  z-index: 20;
}

body > main {
  isolation: isolate;
}

body > main > section.main,
body > main > section.girl,
body > main > section.cartmain,
body > main > section.checkoutmain,
body > main > section.main > .container,
body > main > section.girl > .container,
body > main > section.cartmain > .container,
body > main > section.checkoutmain > .container {
  background: transparent !important;
}

.eg-catalog-wrap,
.rvp-shell,
.eg-blog-page,
.eg-article-page,
.blog-page,
.article-page,
.eg-commerce-page,
.girl__body.single-product.product-profile,
.girl__body.single-product.product-profile .single-product.product-profile,
body.single-post,
.single-post {
  background: transparent !important;
}

.eg-catalog-wrap::before,
.rvp::before,
.rvp__noise,
.rvp__orb,
.eg-blog-page::before,
.eg-blog-page::after,
.eg-article-page::before,
.eg-article-page::after,
.blog-page::before,
.blog-page::after,
.eg-commerce-page::before,
.girl__body.single-product.product-profile .single-product.product-profile::before,
.girl__body.single-product.product-profile .single-product.product-profile::after {
  content: none !important;
  display: none !important;
}

@keyframes egBgOrbFloat {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }

  to {
    transform: translate3d(34px, -26px, 0) scale(1.05);
  }
}

@media (max-width: 1024px) {
  .eg-bg-orb-1 {
    width: 420px;
    height: 420px;
    left: -170px;
    top: -120px;
  }

  .eg-bg-orb-2 {
    width: 500px;
    height: 500px;
    right: -190px;
  }

  .eg-bg-orb-3 {
    width: 420px;
    height: 420px;
    left: 12vw;
    bottom: -160px;
  }
}

@media (max-width: 767px) {
  #eg-particles-canvas {
    opacity: 0.6;
  }

  .eg-site-background[data-density="soft"] #eg-particles-canvas {
    opacity: 0.34;
  }

  .eg-bg-orb {
    filter: blur(72px);
  }

  .eg-bg-orb-1 {
    width: 300px;
    height: 300px;
    left: -120px;
    top: -80px;
  }

  .eg-bg-orb-2 {
    width: 320px;
    height: 320px;
    right: -120px;
    top: 18vh;
  }

  .eg-bg-orb-3 {
    width: 300px;
    height: 300px;
    left: 6vw;
    bottom: -120px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .eg-bg-orb {
    animation: none;
  }
}

/* Thank-you page hero polish: tighten the header gap, replace the
   right-side accent with a darker indigo/violet family, and move the
   hero glow onto larger, blurrier layers so it fades out instead of
   ending at a hard horizontal edge. */
body:has(.eg-ty.eg-commerce-page) .eg-site-background {
  background:
    radial-gradient(circle at 14% 10%, rgba(139, 92, 246, 0.16), transparent 34%),
    radial-gradient(circle at 86% 18%, rgba(76, 64, 160, 0.18), transparent 40%),
    radial-gradient(circle at 50% 100%, rgba(184, 168, 255, 0.06), transparent 38%),
    linear-gradient(180deg, #070611 0%, #090716 42%, #05050b 100%);
}

body:has(.eg-ty.eg-commerce-page) .eg-bg-orb-2 {
  right: -180px;
  top: 14vh;
  width: 680px;
  height: 680px;
  opacity: 0.36;
  filter: blur(118px);
  background:
    radial-gradient(circle,
      rgba(76, 64, 160, 0.24) 0%,
      rgba(124, 92, 255, 0.16) 48%,
      rgba(184, 168, 255, 0.06) 68%,
      transparent 82%);
}

body:has(.eg-ty.eg-commerce-page) .eg-bg-orb-3 {
  opacity: 0.22;
  background: rgba(124, 92, 255, 0.10);
}

.eg-ty.eg-commerce-page {
  padding-top: clamp(44px, 5vw, 54px) !important;
  padding-bottom: clamp(48px, 7vw, 90px) !important;
  overflow-x: clip;
  overflow-y: visible;
}

.eg-ty.eg-commerce-page::after {
  content: "";
  position: absolute;
  inset: -104px 0 auto;
  height: 470px;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 78% 62% at 54% 16%,
      rgba(124, 92, 255, 0.16),
      rgba(184, 168, 255, 0.08) 34%,
      rgba(45, 38, 96, 0.06) 52%,
      transparent 74%),
    radial-gradient(ellipse 46% 36% at 84% 18%,
      rgba(76, 64, 160, 0.14),
      rgba(124, 92, 255, 0.08) 44%,
      transparent 72%);
  filter: blur(18px);
  opacity: 0.92;
}

.eg-ty.eg-commerce-page .eg-commerce-shell {
  position: relative;
  z-index: 1;
}

.eg-ty.eg-commerce-page .eg-ty-hero {
  margin-top: 0;
  padding-bottom: clamp(26px, 3.5vw, 36px);
  overflow: visible;
  isolation: isolate;
}

.eg-ty.eg-commerce-page .eg-ty-hero::before {
  inset: auto;
  left: 50%;
  top: -58px;
  width: min(940px, 94vw);
  height: 350px;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 50% 42%,
      rgba(124, 92, 255, 0.20),
      rgba(184, 168, 255, 0.08) 36%,
      rgba(45, 38, 96, 0.04) 54%,
      transparent 74%);
  filter: blur(24px);
  opacity: 0.88;
}

.eg-ty.eg-commerce-page .eg-ty-hero::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -92px;
  width: min(760px, 74vw);
  height: 210px;
  transform: translateX(-50%);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at center,
      rgba(255, 255, 255, 0.03),
      rgba(184, 168, 255, 0.04) 38%,
      transparent 74%);
  filter: blur(26px);
  opacity: 0.68;
}

@media (max-width: 700px) {
  .eg-ty.eg-commerce-page {
    padding-top: clamp(32px, 8vw, 42px) !important;
  }

  body:has(.eg-ty.eg-commerce-page) .eg-bg-orb-2 {
    right: -220px;
    top: 18vh;
    width: 520px;
    height: 520px;
    opacity: 0.28;
  }

  .eg-ty.eg-commerce-page::after {
    inset: -72px 0 auto;
    height: 360px;
    filter: blur(15px);
  }

  .eg-ty.eg-commerce-page .eg-ty-hero::before {
    top: -42px;
    width: min(640px, 108vw);
    height: 290px;
    filter: blur(20px);
  }

  .eg-ty.eg-commerce-page .eg-ty-hero::after {
    top: -68px;
    width: min(520px, 94vw);
    height: 170px;
    filter: blur(22px);
  }
}
