:root {
  --brand-growth-gradient: linear-gradient(115deg, #1759ed, #6b42eb);
}

.sticky-cta {
  --sticky-cta-text: var(--tp-heading-primary, #0c1338);
  --sticky-cta-accent: var(--tp-theme-primary, #1034a6);
  position: fixed !important;
  inset: auto 0 0;
  z-index: 1200;
  width: 100%;
  margin: 0 !important;
  padding: 12px 0 calc(12px + env(safe-area-inset-bottom, 0px));
  visibility: visible;
  opacity: 1;
  pointer-events: none;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 0.28s ease,
    transform 0.4s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s ease;
}

html {
  scroll-padding-bottom: var(--sticky-cta-offset, 0px);
}

.premium-footer {
  padding-bottom: var(--sticky-cta-offset, 0px);
  transition: padding-bottom 0.32s ease;
}

.sticky-cta > .container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1320px;
  perspective: 1200px;
}

.sticky-cta .counter-bg-4 {
  --cta-rotate-x: 0deg;
  --cta-rotate-y: 0deg;
  display: flex;
  width: min(100%, 980px);
  min-height: 84px;
  align-items: center;
  margin-inline: auto;
  padding: 12px clamp(18px, 3vw, 34px);
  border: 1px solid rgba(83, 50, 158, 0.12);
  border-radius: 22px;
  background: #fff;
  box-shadow:
    0 18px 46px rgba(42, 18, 96, 0.16),
    0 4px 14px rgba(42, 18, 96, 0.08);
  pointer-events: auto;
  transform: translate3d(0, 0, 0) rotateX(var(--cta-rotate-x)) rotateY(var(--cta-rotate-y));
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.3s ease;
  will-change: transform;
}

.sticky-cta .counter-bg-4:hover {
  box-shadow:
    0 22px 54px rgba(42, 18, 96, 0.2),
    0 6px 16px rgba(42, 18, 96, 0.1);
}

.sticky-cta .counter-wrapper {
  position: relative;
  z-index: 2;
  width: 100%;
  transform: translateZ(20px);
}

.sticky-cta__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 56px);
}

.sticky-cta .counter-item-4 {
  min-width: 0;
}

.sticky-cta__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  color: var(--sticky-cta-accent);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.sticky-cta__eyebrow i {
  width: 7px;
  height: 7px;
  border: 2px solid rgba(255, 255, 255, 0.94);
  border-radius: 50%;
  background: var(--sticky-cta-accent);
  box-shadow: 0 0 0 4px rgba(16, 52, 166, 0.12);
}

.sticky-cta .counter-item-4 h2 {
  margin: 0;
  color: var(--sticky-cta-text);
  font-size: clamp(25px, 2.4vw, 34px);
  font-weight: 750;
  line-height: 1.1;
  letter-spacing: -0.035em;
  text-shadow: none;
}

.sticky-cta .counter-item-4 h2 span {
  color: transparent;
  background: var(--brand-growth-gradient);
  background-clip: text;
  -webkit-background-clip: text;
}

.sticky-cta__button {
  position: relative;
  display: inline-flex;
  min-width: 202px;
  min-height: 56px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  padding: 13px 15px 13px 21px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #eafaff);
  box-shadow:
    0 12px 30px rgba(41, 22, 94, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  color: #5730ba;
  font-size: 16px;
  font-weight: 750;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.sticky-cta__button::before {
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 25%, rgba(118, 72, 220, 0.13) 48%, transparent 72%);
  content: "";
  transform: translateX(-120%);
  animation: sticky-cta-shine 4.8s ease-in-out infinite;
}

.sticky-cta__button-label,
.sticky-cta__button-icon {
  position: relative;
  z-index: 1;
}

.sticky-cta__button-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #6940d9;
  color: #fff;
  font-size: 17px;
  transition: transform 0.25s ease;
}

.sticky-cta__button:hover,
.sticky-cta__button:focus-visible {
  border-color: #fff;
  box-shadow:
    0 16px 38px rgba(41, 22, 94, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  color: #43229f;
  transform: translateY(-3px);
}

.sticky-cta__button:hover .sticky-cta__button-icon,
.sticky-cta__button:focus-visible .sticky-cta__button-icon {
  transform: translateX(4px);
}

.sticky-cta__button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.back-to-top-wrapper {
  z-index: 1210;
  transition: bottom 0.32s ease, right 0.32s ease;
}

.back-to-top-wrapper.back-to-top-btn-show {
  right: clamp(18px, 2.5vw, 36px);
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
}

@keyframes sticky-cta-shine {
  0%, 62% { transform: translateX(-120%); }
  82%, 100% { transform: translateX(120%); }
}

@media (max-width: 767px) {
  .sticky-cta {
    padding: 7px 0 calc(7px + env(safe-area-inset-bottom, 0px));
  }

  .sticky-cta > .container {
    max-width: none;
    padding-right: 10px;
    padding-left: 10px;
  }

  .sticky-cta .counter-bg-4 {
    min-height: 64px;
    padding: 9px 14px;
    border-radius: 17px;
  }

  .sticky-cta .counter-wrapper {
    gap: 10px;
  }

  .sticky-cta .counter-item-4 {
    min-width: 0;
  }

  .sticky-cta .counter-item-4 h2 {
    max-width: 18ch;
    font-size: clamp(15px, 4.15vw, 18px);
    line-height: 1.08;
    letter-spacing: -0.028em;
    text-wrap: balance;
  }

  .sticky-cta .counter-item-4 h2 span {
    display: block;
  }

  .sticky-cta__eyebrow {
    display: none;
  }

  .sticky-cta .banner-4-btn {
    flex: 0 0 auto;
  }

  .sticky-cta__button {
    min-width: 116px;
    min-height: 44px;
    gap: 6px;
    padding: 8px 9px 8px 12px;
    border-width: 1px;
    box-shadow:
      0 8px 20px rgba(41, 22, 94, 0.24),
      inset 0 1px 0 rgba(255, 255, 255, 0.7);
    font-size: 11.5px;
  }

  .sticky-cta__button-icon {
    width: 24px;
    height: 24px;
    font-size: 14px;
  }

  .back-to-top-wrapper.back-to-top-btn-show {
    right: 12px;
    bottom: calc(var(--sticky-cta-offset, 84px) + 10px);
    width: 44px;
    height: 44px;
  }

  .back-to-top-wrapper .back-to-top-btn {
    width: 44px;
    height: 44px;
    line-height: 44px;
  }
}

@media (max-width: 360px) {
  .sticky-cta > .container {
    padding-right: 7px;
    padding-left: 7px;
  }

  .sticky-cta .counter-bg-4 {
    min-height: 58px;
    padding: 8px 10px;
    border-radius: 14px;
  }

  .sticky-cta .counter-wrapper {
    gap: 7px;
  }

  .sticky-cta .counter-item-4 h2 {
    max-width: 16ch;
    font-size: 13.5px;
  }

  .sticky-cta__button {
    min-width: 103px;
    min-height: 44px;
    padding: 9px;
    font-size: 10.5px;
  }

  .sticky-cta__button-icon {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sticky-cta,
  .sticky-cta .counter-bg-4,
  .sticky-cta__button,
  .sticky-cta__button-icon {
    transition-duration: 0.01ms !important;
  }

  .premium-footer {
    transition-duration: 0.01ms !important;
  }

  .sticky-cta__button::before {
    animation: none !important;
  }
}
