.referral-hero {
  height: calc(585px + var(--header-height));
  width: 100%;
  padding-top: var(--header-height);
  box-sizing: border-box;
  background-color: var(--color-bg-light);
  background-image: radial-gradient(ellipse 70% 90% at 80% 110%, rgba(88, 205, 140, 0.5) 15%, rgba(244, 245, 245, 0.5) 100%);
  border-bottom: 1px solid #e8eaf2;
}

.referral-hero > .container-xxl > .row > .col-lg-6 > .hero-phone {
  top: 11%;
}

.hero-title {
  font-size: clamp(34px, 5.4vw, 62px);
  font-weight: 700;
  background: linear-gradient(165deg, var(--color-text-dark) 50%, var(--color-primary-light) 72%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.22;
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-shadow: 0 4px 14px rgba(24, 23, 23, 0.1);
}

.hero-sub {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  background: linear-gradient(90deg, #43b8bc 0%, #4cc4a3 30%, #57ce8d 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.6;
}

.hero-desc {
  font-size: clamp(15px, 1.8vw, 18px);
  font-weight: 400;
  line-height: 2;
  color: var(--color-text-dark);
}

.stat-value {
  font-size: clamp(32px, 3.2vw, 40px);
  font-weight: 500;
  line-height: 1.32;
  height: 52px;
}

.hero-stats {
  margin-top: 45px;
}

.hero-stats .stat-item:nth-child(3) > .stat-value {
  font-size: clamp(40px, 4.2vw, 52px) !important;
}

.stat-label {
  font-size: clamp(14px, 1.7vw, 17px);
  font-weight: 500;
  line-height: 1.6;
  color: #060b27;
}

.text-green {
  color: var(--color-primary-light);
}

.referral-steps {
  padding: 96px 0;
  background-color: var(--color-bg-light);
}

.referral-steps__title {
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 500;
  background: linear-gradient(120deg, var(--color-text-dark) 45%, var(--color-primary-light) 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.22;
  padding-bottom: 8px;
  margin-bottom: 16px;
  text-shadow: 0 4px 14px rgba(24, 23, 23, 0.1);
}

.referral-steps__subtitle {
  font-size: clamp(18px, 2.2vw, 22px);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text-dark);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  margin-bottom: 50px;
}

.referral-steps__step-bg {
  width: 100%;
  max-width: 340px;
  height: 270px;
  background-color: var(--color-bg-dark);
  border-radius: 25px;
  box-shadow:
    0px 0px 0px 3.9px rgba(9, 19, 21, 0.9),
    0px 5.2px 5.2px -2.6px rgba(9, 19, 21, 0.12),
    0px 10.4px 10.4px -5.2px rgba(9, 19, 21, 0.12),
    0px 15.6px 15.6px -7.8px rgba(9, 19, 21, 0.12),
    0px 20.8px 20.8px -10.4px rgba(9, 19, 21, 0.12),
    0px 41.6px 41.6px -10.4px rgba(9, 19, 21, 0.12),
    0px 83.2px 83.2px -41.6px rgba(9, 19, 21, 0.12);
  margin: 0 auto;
}
.referral-steps__step-bg .referral-steps__step-bg-img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  border-radius: 25px;
}

.referral-steps__step-number {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  top: 20px;
  left: 20px;
  height: 30px;
  width: 30px;
  border: 1px solid rgba(255, 255, 255, 0.6);
}

.referral-steps__step-icon {
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 105px;
  height: 105px;
}

.referral-steps__step {
  width: 100%;
  max-width: 350px;
}

.referral-steps__step-title {
  font-size: clamp(20px, 2.3vw, 24px);
  font-weight: 500;
  line-height: 1.34;
  color: var(--color-text-dark);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.referral-steps__step-desc {
  font-size: clamp(14px, 1.5vw, 15px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(30, 30, 30, 0.6);
}

.referral-steps__step-content {
  width: 100%;
  max-width: 90%;
}

.referral-steps__divider {
  width: 100%;
  height: 1.2px;
  border: 0;
  background: radial-gradient(circle, rgba(30, 30, 30, 1) 0%, rgba(30, 30, 30, 0.1) 99%);
  margin-top: 60px;
}

.referral-benefits {
  background-color: var(--color-bg-light);
  padding: 50px 0;
}

.referral-benefits__header {
  margin-bottom: 56px;
}

.referral-benefits__title {
  max-width: 720px;
  font-size: clamp(32px, 4.6vw, 50px);
  font-weight: 500;
  background: linear-gradient(150deg, var(--color-text-dark) 50%, var(--color-primary-light) 85%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: none;
  line-height: 1.22;
  text-shadow: 0 4px 14px rgba(24, 23, 23, 0.1);
}

.referral-benefits__card {
  padding: 22px 18px 20px;
  border: 1px solid #dfe3eb;
  border-radius: 20px;
  background-color: var(--color-bg-white);
}

.referral-benefits__icon {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border: 1px solid red;
}

.referral-benefits__card-title {
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  color: var(--color-text-dark);
}

.referral-benefits__card-desc {
  max-width: 90%;
  margin: 0 0 24px;
  font-size: clamp(14px, 1.6vw, 16px);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(30, 30, 30, 0.55);
}

.referral-benefits__link {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-primary-light);
  text-decoration: none;
}

.referral-benefits__link:hover {
  color: #43b975;
}

.referral-terms {
  background-color: var(--color-bg-light);
}

.referral-terms__panel {
  border: 1px solid #cfe8db;
  background: #edf7f1;
}

.referral-terms__column {
  padding: 38px 38px 34px;
}

.referral-terms__column--preview {
  border-left: 1px solid rgba(30, 30, 30, 0.08);
}

.referral-terms__title {
  margin: 0 0 28px;
  font-size: clamp(22px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.25;
  color: #101828;
}

.referral-terms__list {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.referral-terms__item {
  gap: 14px;
}

.referral-terms__bullet {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 700;
  color: var(--color-primary-light);
  background-color: rgba(88, 205, 140, 0.18);
}

.referral-terms__text {
  max-width: 420px;
  font-size: clamp(15px, 1.6vw, 16px);
  font-weight: 400;
  line-height: 1.65;
  color: rgba(30, 30, 30, 0.6);
}

.referral-terms__preview {
  position: relative;
  padding: 8px;
  background-color: rgba(255, 255, 255, 0.45);
}

.referral-terms__preview::before {
  content: '';
  position: absolute;
  inset: -9px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: calc(1rem + 9px);
  pointer-events: none;
}

.referral-terms__field-label {
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
  color: rgba(30, 30, 30, 0.78);
}

.referral-terms__input-group {
  min-height: 60px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 16px;
  background-color: #f4f4f4;
  overflow: visible;
  position: relative;
}

.referral-terms__dropdown-toggle {
  min-width: 140px;
  height: 100%;
  padding: 0 18px;
  border-right: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 0;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: #23262f;
  background-color: transparent;
}

.referral-terms__dropdown-toggle:hover,
.referral-terms__dropdown-toggle:focus,
.referral-terms__dropdown-toggle:active,
.referral-terms__dropdown-toggle.show {
  color: #23262f !important;
  background-color: rgba(30, 30, 30, 0.02) !important;
  border-right-color: rgba(30, 30, 30, 0.08) !important;
  box-shadow: none !important;
}

.referral-terms__dropdown-toggle::after {
  margin-left: 2px;
}

.referral-terms__dropdown-menu {
  min-width: 140px;
  padding: 6px;
  border: 1px solid rgba(30, 30, 30, 0.08);
  border-radius: 14px;
  z-index: 1080;
}

.referral-terms__dropdown-menu .dropdown-item {
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
}

.referral-terms__dropdown-menu .dropdown-item.disabled,
.referral-terms__dropdown-menu .dropdown-item:disabled {
  opacity: 0.45;
  pointer-events: none;
}

.referral-terms__flag {
  width: 24px;
  height: 16px;
  border-radius: 3px;
  object-fit: cover;
}

.referral-terms__amount-input {
  min-width: 0;
  border: 0;
  border-radius: 0;
  padding: 0 18px;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
  color: #1e1e1e;
  background-color: transparent;
}

.referral-terms__amount-input:focus {
  background-color: transparent;
  box-shadow: none;
}

.referral-terms__amount-input::-webkit-outer-spin-button,
.referral-terms__amount-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.referral-terms__amount-input[type='number'] {
  -moz-appearance: textfield;
}

.referral-terms__swap-wrap {
  margin: 14px 0;
}

.referral-terms__swap {
  width: 24px;
  height: 24px;
  font-size: 13px;
  color: #ffffff;
  background-color: #0ea5a4;
  cursor: pointer;
  transition:
    transform 0.42s ease,
    background-color 0.25s ease,
    box-shadow 0.25s ease;
}

.referral-terms__swap:hover,
.referral-terms__swap:focus {
  color: #ffffff;
  background-color: #0b8d8c;
  box-shadow: 0 8px 18px rgba(14, 165, 164, 0.28);
}

.referral-terms__swap:focus {
  outline: 0;
}

.referral-terms__swap.is-swapping {
  transform: rotate(180deg) translateY(-3px);
}

.referral-terms__input-group.is-swapping {
  animation: transferSwapPulse 0.42s ease;
}

@keyframes transferSwapPulse {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  50% {
    transform: translateY(-4px);
    opacity: 0.78;
  }

  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

.referral-terms__meta {
  margin: 14px 0 18px;
  padding: 16px 18px;
  background-color: #f4f4f4;
}

.referral-terms__meta > div + div {
  margin-top: 6px;
}

.referral-terms__meta-label,
.referral-terms__meta-value {
  font-size: 12px;
  font-weight: 400;
  line-height: 1.3;
}

.referral-terms__meta-label {
  color: #6a7282;
}

.referral-terms__meta-value {
  font-weight: 500;
  color: #1e1e1e;
}

.referral-terms__meta-value--accent {
  color: #059669;
}

.referral-terms__action {
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: #ffffff;
  background-image: linear-gradient(135deg, rgba(124, 195, 250, 0.5) 0%, rgba(169, 251, 131, 0.5) 48%, rgba(180, 250, 125, 0.5) 100%);
  background-color: var(--color-accent);
}

.referral-terms__action:hover {
  background-color: #00806b;
}

@media (max-width: 991.98px) {
  .referral-hero {
    height: auto;
    padding: calc(var(--header-height) + 40px) 0 0;
  }

  .referral-hero > .container-xxl,
  .referral-hero > .container-xxl > .row,
  .referral-hero > .container-xxl > .row > .col-lg-6 {
    height: auto;
  }

  .referral-hero > .container-xxl > .row {
    row-gap: 24px;
  }

  .referral-hero > .container-xxl > .row > .col-lg-6 {
    overflow: visible;
  }

  .referral-hero > .container-xxl > .row > .col-lg-6:first-child {
    display: block;
  }

  .referral-hero > .container-xxl > .row > .col-lg-6 > .hero-phone {
    top: 0;
    width: min(100%, 360px);
  }

  .hero-title {
    font-size: 44px;
  }

  .hero-sub {
    font-size: 20px;
  }

  .hero-desc {
    font-size: 16px;
    line-height: 1.7;
  }

  .hero-stats {
    margin-top: 32px;
  }

  .referral-terms__column {
    padding: 28px 24px;
  }

  .referral-terms__column--preview {
    border-left: 0;
    border-top: 1px solid rgba(30, 30, 30, 0.08);
  }
}

@media (max-width: 575.98px) {
  .referral-hero {
    padding: calc(var(--header-height) + 32px) 0 0;
  }

  .hero-title {
    font-size: 34px;
    line-height: 1.15;
  }

  .hero-sub {
    font-size: 18px;
  }

  .hero-desc {
    font-size: 15px;
    line-height: 1.6;
  }

  .hero-stats {
    gap: 20px !important;
  }

  .stat-item {
    min-width: 110px;
  }

  .stat-value {
    height: auto;
    justify-content: center;
    font-size: 34px;
  }

  .hero-stats .stat-item:nth-child(3) > .stat-value {
    font-size: 40px !important;
  }

  .stat-label {
    font-size: 14px;
  }

  .referral-hero > .container-xxl > .row > .col-lg-6 > .hero-phone {
    width: min(100%, 290px);
  }

  .referral-terms__title {
    font-size: 22px;
  }

  .referral-terms__text {
    font-size: 15px;
  }

  .referral-terms__amount {
    font-size: 24px;
  }
}

.referral-cta {
  position: relative;
  background-color: #141417;
  overflow: hidden;
}
.referral-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 50% 90% at 50% 0%, rgba(117, 203, 145, 0.7) 0%, rgba(180, 255, 204, 0) 100%);
  filter: blur(100px);
  pointer-events: none;
  z-index: 0;
}

.referral-cta__visual {
  width: min(100%, 720px);
}

.referral-cta__img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.referral-cta__badges {
  position: absolute;
  left: 50%;
  bottom: clamp(28px, 10vw, 105px);
  gap: clamp(8px, 1.6vw, 17px);
  width: max-content;
  max-width: calc(100% - 24px);
  transform: translateX(-50%);
  z-index: 2;
  pointer-events: none;
}

.referral-cta__badge {
  position: relative;
  padding: clamp(10px, 1.4vw, 14px) clamp(18px, 2.4vw, 25px) clamp(10px, 1.4vw, 14px) clamp(10px, 1.4vw, 14px);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8.5px 17px -13px rgba(143, 143, 163, 0.4);
  border: 0.85px solid #e5ecec;
  gap: clamp(10px, 1.6vw, 16px);
  pointer-events: auto;
}

.referral-cta__badge-icon {
  width: clamp(28px, 4vw, 34px);
  height: clamp(28px, 4vw, 34px);
  border-radius: 50%;
  background: rgba(73, 185, 136, 0.15);
  flex-shrink: 0;
}

.referral-cta__badge-text {
  color: #141417;
  font-size: clamp(13px, 1.6vw, 15px);
  font-weight: 500;
  line-height: 1.6;
  white-space: nowrap;
  letter-spacing: -1%;
}

.referral-cta__title {
  position: relative;
  font-size: clamp(32px, 4.8vw, 50px);
  font-weight: 500;
  line-height: 1.2;
  background: linear-gradient(180deg, var(--color-text-white) 60%, var(--color-primary-light) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0px 4px 14px rgba(24, 23, 23, 0.1);
  padding-bottom: 24px;
}

.referral-cta__desc {
  font-size: clamp(15px, 1.6vw, 16px);
  font-weight: 300;
  line-height: 1.5;
  letter-spacing: -1px;
  color: rgba(255, 255, 255, 0.8);
  opacity: 0.85;
  max-width: 520px;
  margin-bottom: 50px;
}

.referral-cta__btn {
  font-size: 17px;
  padding: 14px 18px;
  border-radius: 14px;
  font-weight: 500;
  letter-spacing: -1px;
  color: var(--color-text-white);
  background-image: linear-gradient(135deg, rgba(124, 195, 250, 0.5) 0%, rgba(169, 251, 131, 0.5) 48%, rgba(180, 250, 125, 0.5) 100%);
  background-color: var(--color-accent);
  outline: none;
  border: none;
}
.referral-cta__btn:hover {
  background-color: #00806b;
}

@media (max-width: 991.98px) {
  .referral-cta__visual {
    width: min(100%, 560px);
  }

  .referral-cta__badges {
    bottom: 72px;
    transform: translateX(-50%) scale(0.88);
    transform-origin: bottom center;
  }
}

@media (max-width: 575.98px) {
  .referral-cta__visual {
    width: min(100%, 420px);
  }

  .referral-cta__badges {
    bottom: 48px;
    gap: 8px;
    transform: translateX(-50%) scale(0.68);
    transform-origin: bottom center;
  }

  .referral-cta__badge-text {
    white-space: nowrap;
    line-height: 1.6;
  }
}

