.fee-rebate-page {
  padding-bottom: 96px;
}

.fee-rebate-hero.bg-home {
  height: auto;
  padding: clamp(170px, 18vw, 240px) 0 0;
  overflow: hidden;
}

@media (min-width: 992px) {
  .fee-rebate-hero.bg-home {
    padding-top: clamp(140px, 14vw, 190px);
  }
}

.fee-rebate-gradient {
  opacity: 1;
}

.fee-rebate-pattern {
  position: absolute;
  inset: 0;
  background: url('/images/bg/fee-rebate-wallets.png') center 90px / max(1200px, 100%) auto repeat-y;
  opacity: 0.13;
  pointer-events: none;
}

.fee-rebate-hero > .container {
  position: relative;
  z-index: 1;
}

.fee-rebate-eyebrow {
  margin: 0 0 16px;
  color: #80f0cb;
  font-size: clamp(13px, 1.25vw, 16px);
  font-weight: 500;
  line-height: 1.6;
}

.fee-rebate-hero .fee-rebate-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 48px) !important;
  line-height: 1.4;
  letter-spacing: -0.025em;
}

.fee-rebate-subtitle {
  max-width: 700px;
  margin-top: 24px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 20px;
  line-height: 1.65;
}

.fee-rebate-rate {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin: 24px 0 0;
  color: #fff;
}

.fee-rebate-rate-label {
  font-size: clamp(24px, 2.8vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  white-space: nowrap;
}

.fee-rebate-rate-value {
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  white-space: nowrap;
  color: #80f0cb;
  font-size: clamp(112px, 14vw, 172px);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 0.95;
  text-shadow: 0 8px 32px rgba(47, 234, 181, 0.18);
}

.fee-rebate-rate-percent {
  display: inline-block;
  font-size: 0.58em;
  letter-spacing: -0.055em;
}

.fee-rebate-visual {
  position: relative;
  width: min(100%, 740px);
  aspect-ratio: 1024 / 1200;
  margin-top: 24px;
}

.fee-rebate-visual img {
  /* Map the trimmed image to its original canvas to preserve the hero layout. */
  position: absolute;
  left: 7.8125%;
  top: 2.36%;
  display: block;
  width: 77.63671875%;
  height: auto;
  animation: fee-rebate-float 4.5s ease-in-out infinite;
}

@keyframes fee-rebate-float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .fee-rebate-visual img {
    animation: none;
  }
}

.fee-rebate-hero .fee-rebate-shape {
  height: 180px;
}

.fee-rebate-cta {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 0;
}

.fee-rebate-exchanges {
  padding-top: 96px;
}

.fee-rebate-exchange-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
  gap: 40px 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fee-rebate-exchange-list li {
  display: flex;
  justify-content: center;
}

.fee-rebate-exchange-logo {
  display: block;
  width: min(100%, 154px);
  height: 32px;
  object-fit: contain;
  filter: grayscale(1) invert(1);
  opacity: 0.65;
}

:root:has(#theme-opt[href*="style-dark.min.css"]) .fee-rebate-exchange-logo {
  filter: grayscale(1);
}

@media (max-width: 767.98px) {
  .fee-rebate-page {
    padding-bottom: 48px;
  }

  .fee-rebate-hero.bg-home {
    padding-top: 148px;
  }

  .fee-rebate-pattern {
    background-size: 600px auto;
  }

  .fee-rebate-hero .fee-rebate-title {
    font-size: clamp(27px, 6.4vw, 36px) !important;
    line-height: 1.45;
  }

  .fee-rebate-subtitle {
    max-width: 360px;
    padding: 0 12px;
    margin-top: 20px;
    font-size: 16px;
  }

  .fee-rebate-rate {
    gap: 0;
    margin-top: 22px;
  }

  .fee-rebate-rate-value {
    font-size: clamp(100px, 25vw, 144px);
  }

  .fee-rebate-rate-label {
    font-size: 24px;
  }

  .fee-rebate-visual {
    max-width: 560px;
    margin-top: 20px;
  }

  .fee-rebate-hero .fee-rebate-shape {
    height: 90px;
  }

  .fee-rebate-exchanges {
    padding-top: 56px;
  }

  .fee-rebate-cta .btn {
    min-height: 44px;
    padding: 10px 20px;
    font-size: 14px;
    line-height: 1.5;
  }

  .fee-rebate-exchange-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 24px;
  }

  .fee-rebate-exchange-logo {
    height: 28px;
  }
}
