.referral-section.referral-polished {
  border-color: #d6e3dc;
  box-shadow: 0 18px 42px rgba(20, 46, 35, .07);
}

.referral-polished .section-head {
  align-items: center;
  margin-bottom: 18px;
}

.referral-polished .section-head h2 {
  color: #10241c;
  font-size: 22px;
}

.referral-polished .section-head p {
  color: #6c7b73;
  font-size: 13px;
}

.referral-polished .secure-label {
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid #cde5d8;
  border-radius: 999px;
  background: #f1faf5;
  color: #23634a;
  font-size: 12px;
  font-weight: 750;
}

.referral-polished .secure-label svg {
  color: #0b855e;
}

.referral-reward-flow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #497063;
  font-size: 12px;
  font-weight: 750;
}

.referral-reward-flow span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: #edf7f1;
}

.referral-reward-flow i {
  width: 20px;
  height: 1px;
  background: #b7d9c7;
}

.referral-polished .referral-code-row {
  position: relative;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 10px;
  padding: 21px 20px 19px;
  border: 1px solid #087452;
  border-radius: 7px;
  background: #0a684d;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .13), 0 12px 25px rgba(7, 89, 64, .16);
}

.referral-polished .referral-code-row::after {
  content: '';
  position: absolute;
  right: -34px;
  bottom: -46px;
  width: 144px;
  height: 144px;
  border: 1px solid rgba(214, 255, 235, .2);
  border-radius: 50%;
  pointer-events: none;
}

.referral-polished .referral-code-main {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 4px;
}

.referral-polished .referral-code-main small {
  color: #bfe5d2;
  font-size: 11px;
  font-weight: 650;
}

.referral-polished .referral-code-main strong {
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: 1px;
  line-height: 1.1;
}

.referral-polished .referral-code-main::after {
  content: '\9080\8bf7\597d\53cb\5145\503c\ff0c\6536\76ca\81ea\52a8\8ba1\5165\8d26\6237';
  color: #d7f1e3;
  font-size: 11px;
  line-height: 1.5;
}

.referral-polished .referral-code-row button {
  position: relative;
  z-index: 1;
  min-height: 44px;
  white-space: nowrap;
}

.referral-polished .referral-code-row .secondary-button {
  border-color: rgba(255, 255, 255, .36);
  background: rgba(255, 255, 255, .12);
  color: #fff;
}

.referral-polished .referral-code-row .secondary-button:hover {
  background: rgba(255, 255, 255, .2);
}

.referral-polished .referral-code-row .primary-button {
  background: #f0c36b;
  color: #1c2a23;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(16, 39, 29, .22);
}

.referral-polished .referral-code-row .primary-button:hover {
  background: #ffd682;
}

.referral-polished .referral-link {
  min-height: 48px;
  margin-top: 11px;
  padding: 8px 8px 8px 14px;
  border-color: #dbe5df;
  border-radius: 6px;
  background: #fafcfb;
}

.referral-polished .referral-link span {
  color: #637a70;
  font-size: 12px;
}

.referral-polished .referral-link .icon-button {
  border-color: #d9e5de;
  color: #176c4f;
}

.referral-polished .referral-stats {
  overflow: hidden;
  margin-top: 18px;
  border-color: #dbe5df;
  border-radius: 7px;
  background: #fff;
}

.referral-polished .referral-stats > span {
  min-height: 96px;
  padding: 17px 20px;
  gap: 6px;
}

.referral-polished .referral-stats > span:first-child {
  box-shadow: inset 0 3px 0 #58bd90;
}

.referral-polished .referral-stats > span:nth-child(2) {
  box-shadow: inset 0 3px 0 #6ca7b2;
}

.referral-polished .referral-stats > span:nth-child(3) {
  box-shadow: inset 0 3px 0 #e0b057;
}

.referral-polished .referral-stats small {
  color: #718078;
  font-size: 11px;
}

.referral-polished .referral-stats strong {
  color: #15261f;
  font-size: 27px;
  line-height: 1;
}

.referral-polished .referral-stats em {
  color: #87958d;
  font-size: 11px;
  font-style: normal;
}

.referral-polished .withdraw-summary {
  margin-top: 18px;
  padding: 17px 19px;
  border-color: #c8e6d8;
  border-radius: 7px;
  background: #edf9f2;
}

.referral-polished .withdraw-summary small,
.referral-polished .withdraw-summary span {
  color: #507264;
}

.referral-polished .withdraw-summary strong {
  color: #087452;
  font-size: 28px;
  line-height: 1.1;
}

.referral-polished .withdraw-summary .primary-button {
  min-width: 134px;
  min-height: 44px;
  background: #087452;
  font-weight: 800;
  box-shadow: 0 6px 14px rgba(6, 98, 70, .18);
}

.referral-polished .withdraw-summary .primary-button:not(:disabled):hover {
  background: #075940;
}

.referral-polished .withdraw-summary .primary-button:disabled {
  background: #9abfaf;
  color: #f4fbf7;
  opacity: 1;
}

.referral-polished .referral-history {
  margin-top: 22px;
}

.referral-polished .detail-section-title {
  min-height: 45px;
}

@media (max-width: 640px) {
  .referral-polished .section-head {
    align-items: flex-start;
    gap: 8px;
  }

  .referral-polished .section-head h2 {
    font-size: 20px;
  }

  .referral-polished .secure-label {
    font-size: 11px;
  }

  .referral-reward-flow {
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .referral-reward-flow::-webkit-scrollbar {
    display: none;
  }

  .referral-reward-flow span {
    flex: 0 0 auto;
    font-size: 11px;
  }

  .referral-reward-flow i {
    flex: 0 0 13px;
    width: 13px;
  }

  .referral-polished .referral-code-row {
    gap: 9px;
    padding: 18px 15px 15px;
  }

  .referral-polished .referral-code-main strong {
    font-size: 27px;
  }

  .referral-polished .referral-code-row button {
    min-height: 46px;
  }

  .referral-polished .referral-link {
    min-height: 52px;
    padding-left: 11px;
  }

  .referral-polished .referral-link span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .referral-polished .referral-stats > span {
    min-height: 82px;
    padding: 13px 10px;
  }

  .referral-polished .referral-stats strong {
    font-size: 21px;
  }

  .referral-polished .withdraw-summary {
    gap: 14px;
    padding: 16px;
  }
}
