/* Timed promo popup — Summer Sale */
#timedPopup.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  background-color: #07193ae6;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

#timedPopup.popup.show {
  display: block;
  opacity: 1;
}

body.timed-popup-open .scroll-top,
body.timed-popup-open .header {
  z-index: 1 !important;
}

.timed-popup.show {
  animation: timed-popup-backdrop-enter 0.4s ease-out forwards;
}

.timed-popup.show .popup-content {
  animation: timed-popup-content-enter 0.6s cubic-bezier(0.34, 1.1, 0.64, 1)
    0.05s both;
}

@keyframes timed-popup-backdrop-enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes timed-popup-content-enter {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(20px) scale(0.96);
    filter: blur(4px);
  }
  50% {
    opacity: 0.85;
    transform: translate(-50%, -50%) translateY(-4px) scale(1.02);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
    filter: blur(0);
  }
}

.timed-popup .popup-content {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(470px, 92vw);
  height: min(600px, 88vh);
  max-width: min(470px, 92vw);
  max-height: 88vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: none;
  border-radius: 0;
  background: #1149da url("../img/pop-up/bg-timed-popup.webp") center / cover
    no-repeat !important;
  color: #edf1f8;
  display: block;
  z-index: 1;
}

.timed-popup .close {
  position: absolute;
  right: 14px;
  top: 12px;
  z-index: 10;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(237, 241, 248, 0.16);
  color: #edf1f8;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  float: none;
}

.timed-popup .close:hover {
  background: rgba(237, 241, 248, 0.28);
  color: #fff;
}

/* Logo */
.timed-popup__logo {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 28px auto 0;
  filter: drop-shadow(0 2px 4px rgba(7, 25, 58, 0.35));
}

.timed-popup__logo-stars {
  display: block;
  width: 75px;
  height: auto;
}

.timed-popup__logo-dot {
  display: block;
  width: 8px;
  height: 8px;
  margin-top: 2px;
}

.timed-popup__logo-partners {
  color: #edf1f8;
  font-family: Poppins, sans-serif;
  font-size: 19px;
  font-weight: 700;
  font-style: italic;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

/* Headline */
.timed-popup__headline {
  position: relative;
  z-index: 2;
  width: min(378px, 88%);
  margin: 14px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.timed-popup__headline-main {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 96px;
  padding: 16px 20px 20px;
  border-radius: 85px;
  background: linear-gradient(90deg, #1149da 0%, #4873e3 100%);
  box-shadow: 0 4px 0 #0b36a6;
  transform: rotate(-1.36deg);
  text-align: center;
}

.timed-popup__headline-main span {
  display: block;
  color: #edf1f8;
  font-family: Poppins, sans-serif;
  font-size: clamp(28px, 7.8vw, 36px);
  font-weight: 800;
  font-style: italic;
  line-height: 0.9;
  text-transform: uppercase;
  text-shadow: 0 1.7px 4.4px rgba(7, 25, 58, 0.5);
}

.timed-popup__headline-main .is-red {
  color: #df1b1e;
  font-size: clamp(30px, 8.4vw, 40px);
}

.timed-popup__headline-sub {
  position: relative;
  z-index: 2;
  box-sizing: border-box;
  margin-top: -10px;
  margin-left: auto;
  margin-right: 4%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(231px, 72%);
  height: 32px;
  padding: 0 20px;
  border: 2.244px solid #9ad57eba;
  border-radius: 55.572px;
  background: linear-gradient(90deg, #a2fd04 0%, #cbff72 100%);
  transform: rotate(2.27deg);
  color: #1149da;
  font-family: Poppins, sans-serif;
  font-size: clamp(11px, 3.2vw, 15.6px);
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
  text-shadow: 0 0.13px 1px rgba(195, 255, 251, 0.25);
}

/* Offer block */
.timed-popup__offer {
  position: absolute;
  left: 50%;
  bottom: 168px;
  z-index: 3;
  width: min(212px, 58%);
  transform: translateX(-50%);
}

.timed-popup__earn {
  position: absolute;
  left: 8px;
  top: -12px;
  z-index: 2;
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 55px;
  height: 24px;
  padding: 0 10px;
  border: 2.244px solid #9ad57eba;
  border-radius: 55.572px;
  background: linear-gradient(90deg, #a2fd04 0%, #cbff72 100%);
  color: #1149da;
  font-family: Poppins, sans-serif;
  font-size: 11.9px;
  font-weight: 800;
  font-style: italic;
  text-transform: uppercase;
  line-height: 1;
  text-shadow: 0 0.1px 0.76px rgba(195, 255, 251, 0.25);
}

.timed-popup__promo-badge {
  position: absolute;
  right: -18px;
  top: -28px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 120px;
  min-height: 38px;
  padding: 4px 8px 6px;
  border-radius: 7px;
  background: #1149da;
  box-shadow: 0 1.9px 7.5px rgba(0, 0, 0, 0.25);
  text-align: center;
}

.timed-popup__promo-badge span {
  color: #edf1f8;
  font-family: Poppins, sans-serif;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.1px;
}

.timed-popup__promo-badge strong {
  color: #a2fd04;
  font-family: Poppins, sans-serif;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.16;
  text-transform: uppercase;
}

.timed-popup__offer-card {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 63px;
  padding: 8px 12px 8px 14px;
  border: 2.244px solid rgba(66, 91, 153, 0.35);
  border-radius: 17px;
  background: #edf1f8;
  box-shadow:
    0 2.244px 4.039px rgba(23, 52, 128, 0.25),
    0 4.354px 10.102px rgba(23, 52, 128, 0.13);
  overflow: visible;
}

.timed-popup__offer-amount {
  flex-shrink: 0;
  margin: 0;
  color: #1149da;
  font-family: Poppins, sans-serif;
  font-size: 35px;
  font-weight: 800;
  font-style: italic;
  line-height: 0.91;
  text-shadow: 0 0 19px rgba(255, 255, 255, 0.25);
  white-space: nowrap;
}

.timed-popup__offer-extra {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  min-width: 0;
  margin: 7px 0 0;
  font-family: Poppins, sans-serif;
  font-size: 14.8px;
  font-weight: 800;
  line-height: 0.91;
  text-transform: uppercase;
  text-shadow: 0 0 11px rgba(255, 255, 255, 0.25);
}

.timed-popup__offer-extra-top {
  color: #1149da;
  white-space: nowrap;
}

.timed-popup__offer-extra-bottom {
  color: #07193a;
  white-space: nowrap;
}

.timed-popup__kpi {
  margin: 2px 0 0;
  text-align: right;
  color: #1149da;
  font-family: Poppins, sans-serif;
  font-size: 5px;
  font-weight: 800;
  font-style: italic;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 0 0.3px rgba(195, 255, 251, 0.25);
}

/* Features */
.timed-popup__features {
  position: absolute;
  left: 50%;
  bottom: 103px;
  z-index: 3;
  width: min(420px, 92%);
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}

.timed-popup__feature {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 4px;
}

.timed-popup__feature:not(:last-child)::after {
  content: "";
  position: absolute;
  right: 0;
  top: 4px;
  bottom: 4px;
  width: 1px;
  background: rgba(237, 241, 248, 0.55);
}

.timed-popup__feature-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 30px;
  margin-bottom: 4px;
}

.timed-popup__feature-icon {
  display: block;
  width: auto;
  height: auto;
  max-height: 30px;
  filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.2));
}

.timed-popup__feature-icon--infinity {
  width: 37.94px;
  height: 19.25px;
}

.timed-popup__feature-icon--payouts {
  width: 30.227px;
  height: 29.146px;
}

.timed-popup__feature-icon--payments {
  width: 25.337px;
  height: 30.698px;
}

.timed-popup__feature-icon--referral {
  width: 47.573px;
  height: 33.78px;
}

.timed-popup__feature-icon--check {
  position: absolute;
  left: 42%;
  bottom: 2px;
  width: 8px;
  height: 6px;
}

.timed-popup__feature-title {
  margin: 0;
  color: #edf1f8;
  font-family: Poppins, sans-serif;
  font-size: 8.8px;
  font-weight: 800;
  line-height: 0.95;
  text-transform: uppercase;
  text-shadow: 0 0 17px rgba(255, 255, 255, 0.25);
}

.timed-popup__feature-text {
  margin: 2px 0 0;
  color: #edf1f8;
  font-family: Poppins, sans-serif;
  font-size: 6.1px;
  font-weight: 400;
  line-height: 1.1;
  text-shadow: 0 0 6px rgba(255, 255, 255, 0.25);
}

/* CTA */
.timed-popup__actions {
  position: absolute;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  z-index: 4;
}

.timed-popup__cta {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  width: 256px;
  max-width: calc(92vw - 32px);
  height: 58px;
  padding: 2px 26px 2px 9px;
  border: none;
  border-radius: 36px;
  background: #edf1f8;
  box-shadow:
    0 36px 29px rgba(8, 9, 82, 0.17),
    0 15px 12px rgba(8, 9, 82, 0.12),
    0 8px 6px rgba(8, 9, 82, 0.1),
    0 5px 2px rgba(8, 9, 82, 0.09),
    0 2px 1px rgba(8, 9, 82, 0.07);
  cursor: pointer;
  transition: filter 0.2s ease;
}

.timed-popup__cta:hover {
  filter: brightness(1.07);
}

.timed-popup__cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 41px;
  height: 41px;
}

.timed-popup__cta-icon img {
  width: 41px;
  height: 41px;
  display: block;
  transform: scaleX(-1);
}

.timed-popup__cta-text {
  flex: 1;
  color: #1149da;
  font-family: Poppins, sans-serif;
  font-size: 17.6px;
  font-weight: 600;
  line-height: 1;
  text-align: center;
}

@media screen and (max-width: 768px) {
  .timed-popup .popup-content {
    height: auto;
    min-height: 520px;
    aspect-ratio: 470 / 600;
  }

  .timed-popup__offer {
    bottom: 132px;
  }

  .timed-popup__features {
    bottom: 78px;
  }
}

@media screen and (max-width: 480px) {
  .timed-popup .popup-content {
    min-height: 480px;
  }

  .timed-popup__logo {
    margin-top: 20px;
  }

  .timed-popup__logo-stars {
    width: 80px;
  }

  .timed-popup__logo-partners {
    font-size: 16px;
  }

  .timed-popup__headline {
    margin-top: 10px;
  }

  .timed-popup__headline-main {
    min-height: 78px;
    padding: 12px 14px 16px;
  }

  .timed-popup__headline-main span {
    font-size: 26px;
  }

  .timed-popup__headline-main .is-red {
    font-size: 28px;
  }

  .timed-popup__headline-sub {
    font-size: 11px;
    height: 28px;
    padding: 0 14px;
  }

  .timed-popup__offer {
    bottom: 134px;
    width: min(200px, 66%);
  }

  .timed-popup__offer-amount {
    font-size: 28px;
  }

  .timed-popup__offer-extra {
    font-size: 12px;
  }

  .timed-popup__promo-badge {
    right: -12px;
    width: 108px;
  }

  .timed-popup__promo-badge strong {
    font-size: 13px;
  }

  .timed-popup__features {
    bottom: 80px;
    width: 94%;
  }

  .timed-popup__feature-icon-wrap {
    height: 26px;
  }

  .timed-popup__feature-icon--infinity {
    width: 28px;
    height: 16px;
  }

  .timed-popup__feature-icon--payouts {
    width: 22px;
    height: 21px;
  }

  .timed-popup__feature-icon--payments {
    width: 18px;
    height: 22px;
  }

  .timed-popup__feature-icon--referral {
    width: 28px;
    height: 20px;
  }

  .timed-popup__feature-title {
    font-size: 7.5px;
  }

  .timed-popup__feature-text {
    font-size: 5.5px;
  }

  .timed-popup__actions {
    bottom: 16px;
  }

  .timed-popup__cta {
    width: min(256px, calc(100vw - 40px));
    height: 52px;
  }

  .timed-popup__cta-icon,
  .timed-popup__cta-icon img {
    width: 36px;
    height: 36px;
  }

  .timed-popup__cta-text {
    font-size: 15px;
  }
}

@media screen and (max-width: 390px) {
  .timed-popup__headline-main span {
    font-size: 22px;
  }

  .timed-popup__headline-main .is-red {
    font-size: 24px;
  }

  .timed-popup__offer-amount {
    font-size: 24px;
  }

  .timed-popup__offer-extra {
    font-size: 11px;
  }
}
