/* ==========================================
   HERO SLIDER (.rs-hero-slider)
   ========================================== */

/* headline */
.rs-hero-slider .advanced-slider__caption__inner__content__heading {
  color: #F7F6FB !important;
  font-size: clamp(30px, 5.5vw, 64px) !important;
  font-weight: 700 !important;
  line-height: 1.35 !important;
  letter-spacing: -0.01em;
}

/* subline */
.rs-hero-slider .advanced-slider__caption__inner__content__text {
  color: rgba(247, 246, 251, .85) !important;
  font-size: clamp(14px, 1.8vw, 18px) !important;
  font-weight: 400 !important;
  margin-top: 6px !important;
}

/* CTA row */
.rs-hero-slider .rs-cta-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  margin-top: 12px;
}

/* both pills: identical geometry */
.rs-hero-slider .advanced-slider__caption__inner__content__button,
.rs-hero-slider .rs-renew-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 48px !important;
  padding: 0 32px !important;
  border-radius: 999px !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  text-decoration: none !important;
  white-space: nowrap;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* primary CTA — gradient pill */
.rs-hero-slider .advanced-slider__caption__inner__content__button {
  background: linear-gradient(135deg, #4A22C4 0%, #7C4DFF 55%, #9D7BFF 100%) !important;
  color: #fff !important;
  border: none !important;
  transition: filter .25s ease, transform .25s ease !important;
}

/* remove theme hover overlay (it squares the pill) */
.rs-hero-slider .advanced-slider__caption__inner__content__button::before,
.rs-hero-slider .advanced-slider__caption__inner__content__button::after {
  content: none !important;
  display: none !important;
}

/* primary hover */
.rs-hero-slider .advanced-slider__caption__inner__content__button:hover,
.rs-hero-slider .advanced-slider__caption__inner__content__button:focus {
  background: linear-gradient(135deg, #4A22C4 0%, #7C4DFF 55%, #9D7BFF 100%) !important;
  color: #fff !important;
  border-radius: 999px !important;
  filter: brightness(1.12);
  transform: translateY(-1px);
}

/* secondary CTA — glass pill */
.rs-hero-slider .rs-renew-cta {
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .28);
  color: #fff;
  transition: border-color .25s ease;
}
.rs-hero-slider .rs-renew-cta:hover { border-color: #fff; color: #fff; }

/* pause/play */
.rs-hero-slider .rs-video-toggle {
  position: absolute;
  bottom: 18px;
  left: 18px;
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: rgba(255, 255, 255, .22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 14px;
  line-height: 1;
}

/* hero mobile */
@media (max-width: 640px) {
  .rs-hero-slider .advanced-slider__caption__inner__content__heading {
    font-size: 30px !important;
  }
  .rs-hero-slider .advanced-slider__caption__inner__content__button,
  .rs-hero-slider .rs-renew-cta {
    height: 42px !important;
    padding: 0 22px !important;
    font-size: 13.5px !important;
  }
  .rs-hero-slider .rs-video-toggle {
    bottom: 12px;
    left: 12px;
    width: 34px;
    height: 34px;
    font-size: 12px;
  }
}

/* ==========================================
   SQUARE-LINKS CARDS OVERLAP
   ========================================== */

/* open every clipping layer between section and cards */
section.s-block--square-links,
section.s-block--square-links * {
  overflow: visible !important;
}

/* the overlap itself */
section.s-block--square-links .s-slider-container {
  transform: translateY(64px);
  margin-top: -64px;
}

@media (max-width: 767px) {
  section.s-block--square-links .s-slider-container {
    transform: translateY(36px);
    margin-top: -36px;
  }
}

/* products section on top */
section.s-block--square-links {
  position: relative;
  z-index: 10;
  margin-bottom: 0 !important;
}

/* slider section underneath */
main section:has(.rs-slider),
main .s-block:has(.rs-slider) {
  position: relative;
  z-index: 1;
  margin-top: 0 !important;
}

/* ==========================================
   UNIFORM SECTION RHYTHM (desktop)
   ========================================== */
@media (min-width: 768px) {
  main section.s-block {
    margin-top: 40px !important;
    margin-bottom: 0 !important;
  }
  main section.s-block:first-child {
    margin-top: 0 !important;
  }
}

/* hero: no reserved space below the video */
main section.rs-hero-slider {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

/* collapse the empty custom-HTML block after the hero */
main section.s-block--bundle-html-content:not(:has(img, video, iframe, h2, h3, p, a, button)) {
  display: none !important;
  margin: 0 !important;
}

/* the hero's next visible section obeys the same 40px rhythm */
main section.advanced-slider {
  margin-bottom: 0 !important;
}

/* banners/album block: remove internal top/bottom space */
main section.banners-slider,
main section.s-block--fixed-banner {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* collapse an empty title area inside any block */
main .s-block .home-block-title:not(:has(h2)),
main .s-block .s-block__title:empty {
  display: none !important;
  margin: 0 !important;
}

/* ═══ اجعل غلاف الصفحة شفافاً حتى تظهر خلفية body ═══ */
#app .app-inner.bg-storeBG{
  background: transparent !important;
}

/* ═══ الخلفية — نفس تدرّج الفوتر ═══ */
body,
body.color-mode-dark,
body.dark,
html.dark body,
html.color-mode-dark body,
html[data-theme="dark"] body,
html[data-default="dark"] body{
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background: #02023d !important;
  background: linear-gradient(135deg, rgba(2, 2, 61, 1) 73%, rgba(25, 25, 94, 1) 91%, rgba(98, 56, 214, 1) 100%) !important;
}

/* ═══ الفوتر — تدرّجك مع تصحيح الصيغة ═══ */
footer.store-footer{
  background: #02023d !important;
  background: linear-gradient(135deg, rgba(2, 2, 61, 1) 73%, rgba(25, 25, 94, 1) 91%, rgba(98, 56, 214, 1) 100%) !important;
}

/* طبقات الفوتر الداخلية لا تغطي التدرّج */
footer.store-footer .store-footer__inner,
footer.store-footer .store-footer__contacts-row,
footer.store-footer .footer-bottom{
  background: transparent !important;
}

/* الموجة أعلى الفوتر بلون بداية التدرّج ═══ */
footer.store-footer .store-footer__curve{
  color: #02023D !important;
}