﻿.tab-button {
  transition: all 0.3s ease;
}

.tab-button.active {
  background-color: #3660fd;
  color: white;
}

.tooltip {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: help;
}

.tooltip-icon {
  width: 16px;
  height: 16px;
  margin-left: 4px;
  border: 1px solid white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: bold;
}

.tooltip:hover .tooltip-text {
  visibility: visible;
  opacity: 1;
}

.tooltip-text {
  visibility: hidden;
  opacity: 0;
  width: 200px;
  background-color: #1a1a1a;
  color: white;
  text-align: center;
  border-radius: 6px;
  padding: 8px;
  position: absolute;
  z-index: 1;
  bottom: 125%;
  left: 50%;
  margin-left: -100px;
  transition: opacity 0.3s;
  font-size: 12px;
  line-height: 1.4;
}

.tooltip-text::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  margin-left: -5px;
  border-width: 5px;
  border-style: solid;
  border-color: #1a1a1a transparent transparent transparent;
}

[style*="transform-style: preserve-3d"] {
  transform-style: preserve-3d;
}

.backface-hidden {
  backface-visibility: hidden;
}

/* Active state styles for accordion */
.accordion-item.active .accordion-question {
  color: #3660fd;
}

.accordion-item.active .accordion-icon {
  transform: rotate(180deg);
}

.accordion-item.active .accordion-content {
  opacity: 1;
}

.bonus-step-card {
  perspective: 1000px;
  transform-style: preserve-3d;
  transition:
    transform 220ms ease-out 420ms,
    filter 220ms ease-out 420ms;
}

.bonus-step-card:hover {
  transform: translateY(-10px);
  filter: drop-shadow(0 18px 22px rgba(54, 96, 253, 0.22));
  transition-delay: 0ms;
  z-index: 10;
}

.bonus-step-card .bonus-step-default,
.bonus-step-card .bonus-step-hover {
  backface-visibility: hidden;
  transform-style: preserve-3d;
  pointer-events: none;
  transition: transform 420ms cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: 0ms;
}

.bonus-step-card:hover .bonus-step-default,
.bonus-step-card:hover .bonus-step-hover {
  transition-delay: 180ms;
}

.bonus-step-card .bonus-step-default {
  transform: none;
}

.bonus-step-card .bonus-step-hover {
  transform: rotateY(180deg);
}

.bonus-step-card:hover .bonus-step-default {
  transform: rotateY(-180deg);
}

.bonus-step-card:hover .bonus-step-hover {
  transform: rotateY(0deg);
}

.mobile-step-trigger {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.mobile-step-toggle {
  display: flex;
  width: 23px;
  height: 23px;
  align-items: center;
  justify-content: center;
  color: #3660fd;
  font-size: 28px;
  font-weight: 400;
  line-height: 1;
}

.mobile-step-item.is-open .mobile-step-toggle {
  border-radius: 9999px;
  background: #3660fd;
  color: #ffffff;
  font-size: 22px;
  font-weight: 700;
  position: relative;
}

.mobile-step-content {
  display: flex;
  justify-content: space-between;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition:
    max-height 320ms ease,
    opacity 220ms ease,
    margin-top 320ms ease;
}

.mobile-step-item.is-open .mobile-step-content {
  max-height: 160px;
  margin-top: 16px;
  opacity: 1;
  position: relative;
}

.mobile-step-text {
  position: relative;
  width: calc(100% - 112px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.65;
  color: #222222;
}

.campaign-summary p {
  min-width: 0;
  overflow-wrap: anywhere;
}

@media (min-width: 768px) {
  .campaign-summary p {
    white-space: nowrap;
  }
}

.shine-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.shine-button::after {
  content: "";
  position: absolute;
  inset: -45% auto -45% -85%;
  width: 48%;
  transform: skewX(-24deg);
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.18),
    rgba(255, 255, 255, 0.72),
    rgba(255, 255, 255, 0.18),
    transparent
  );
  filter: blur(1px);
  z-index: -1;
  animation: shine-sweep 1.68s ease-in-out infinite;
}

@keyframes shine-sweep {
  0% {
    left: -85%;
  }

  70.24%,
  100% {
    left: 135%;
  }
}

.activity-hero {
  position: relative;
  display: flex;
  min-height: 818px;
  overflow: hidden;
  align-items: center;
  justify-content: start;
}

.activity-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.activity-hero-bg-desktop {
  display: block;
  object-position: right;
}

.activity-hero-bg-mobile {
  display: none;
}

.activity-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: fit-content;
  min-height: 620px;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 24px 20px 22px;
  padding-left: 8%;
  text-align: center;
}

.activity-hero-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
  color: #fff;
  font-weight: 900;
  line-height: 1;
}

.activity-hero-kicker {
  font-size: 33px;
  letter-spacing: 0;
}

.activity-hero-offer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  white-space: nowrap;
}

.activity-hero-side {
  color: #ffe394;
  font-size: 56px;
  line-height: 1;
}

.activity-hero-amount {
  background: linear-gradient(180deg, #fff3b8 0%, #f8d46d 48%, #b58c2b 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 138px;
  line-height: 0.8;
}

.activity-hero-subtitle {
  display: inline-block;
  margin-top: 24px;
  padding-bottom: 8px;
  border-bottom: 7px solid #f0c85d;
  font-size: 32px;
  line-height: 1;
}

.activity-hero-spacer {
  display: none;
}

.activity-countdown {
  margin-top: 55px;
  color: #fff;
}

.activity-countdown-label {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 900;
}

.activity-countdown-row {
  display: grid;
  grid-template-columns: 80px 1px 80px 1px 80px 1px 80px;
  align-items: center;
  justify-content: center;
  column-gap: 22px;
}

.activity-countdown-item {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
}

.activity-countdown-value {
  font-size: 40px;
  font-weight: 700;
  line-height: 0.95;
}

.activity-countdown-unit {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
}

.activity-countdown-divider {
  width: 1px;
  height: 48px;
  background: rgba(255, 255, 255, 0.95);
}

.activity-hero-button {
  display: inline-flex;
  width: min(100%, 456px);
  min-height: 64px;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
  border-radius: 8px;
  background: #3660fd;
  color: #fff;
  font-size: 30px;
  font-weight: 900;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 16px 28px rgba(54, 96, 253, 0.22);
  transition: opacity 180ms ease;
}

.activity-hero-button:hover {
  opacity: 0.95;
}

.activity-hero-period {
  color: #ffe394;
  font-weight: 900;
}

.activity-hero-period-desktop {
  margin: 22px 0 0;
  padding: 10px 16px;
  border: 1px solid #d8ad43;
  border-radius: 7px;
  font-size: 16px;
  line-height: 1.2;
}

.activity-hero-period-mobile {
  display: none;
}

.activity-hero-risk {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}

.activity-hero-risk a {
  color: #4f8cff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (max-width: 768px) {
  .activity-hero {
    min-height: 653px;
    align-items: flex-start;
  }

  .activity-hero-bg-desktop {
    display: none;
  }

  .activity-hero-bg-mobile {
    display: block;
    object-position: center top;
  }

  .activity-hero-content {
    width: 100%;
    min-height: 636px;
    padding: 44px 16px 42px;
  }

  .activity-hero-kicker {
    font-size: 14px;
  }

  .activity-hero-offer {
    gap: 5px;
    margin-top: 10px;
  }

  .activity-hero-side {
    font-size: 16px;
  }

  .activity-hero-amount {
    font-size: clamp(52px, 16.5vw, 64px);
    line-height: 0.9;
  }

  .activity-hero-subtitle {
    margin-top: 14px;
    padding-bottom: 4px;
    border-bottom-width: 3px;
    font-size: 16px;
  }

  .activity-hero-period-mobile {
    display: block;
    margin: 16px 0 0;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
  }

  .activity-hero-period-desktop {
    display: none;
  }

  .activity-hero-spacer {
    display: block;
    flex: 1 1 auto;
    min-height: 196px;
  }

  .activity-hero-button {
    order: 4;
    width: min(100%, 221px);
    min-height: 47px;
    margin-top: 0;
    border-radius: 5px;
    font-size: 15px;
  }

  .activity-countdown {
    order: 5;
    margin-top: 36px;
  }

  .activity-countdown-label {
    margin-bottom: 16px;
    font-size: 12px;
  }

  .activity-countdown-row {
    grid-template-columns: 48px 1px 48px 1px 48px 1px 48px;
    column-gap: 12px;
  }

  .activity-countdown-value {
    font-size: 28px;
  }

  .activity-countdown-unit {
    margin-top: 2px;
    font-size: 10px;
  }

  .activity-countdown-divider {
    height: 40px;
  }

  .activity-hero-risk {
    order: 6;
    margin-top: 22px;
    font-size: 9px;
  }
}
