.profile-menu-item--referral {
  color: #f4d06f;
  font-weight: 600;
}

.profile-menu-item--referral i,
.profile-menu-item--referral svg {
  color: #f4d06f;
}

.referral-code-modal__panel {
  width: min(100%, 460px);
  padding: 2rem 1.75rem 1.5rem;
  text-align: center;
  overflow: hidden;
}

.referral-code-modal__icon-wrap {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(244, 208, 111, 0.22) 0%, rgba(244, 208, 111, 0.06) 100%);
  border: 1px solid rgba(244, 208, 111, 0.35);
  color: #f4d06f;
  font-size: 1.55rem;
  box-shadow: 0 12px 32px rgba(244, 208, 111, 0.12);
}

.referral-code-modal__title {
  margin: 0 0 0.45rem;
  font-size: 1.55rem;
  color: #f7ead0;
}

.referral-code-modal__sub {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: rgba(247, 234, 208, 0.68);
}

.referral-code-modal__form {
  text-align: left;
}

.referral-code-modal__field span {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(247, 234, 208, 0.55);
}

.referral-code-modal__input {
  text-align: center;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-color: rgba(244, 208, 111, 0.35);
  background: rgba(0, 0, 0, 0.28);
  color: #f7ead0;
}

.referral-code-modal__input:focus {
  border-color: rgba(244, 208, 111, 0.65);
  box-shadow: 0 0 0 3px rgba(244, 208, 111, 0.14);
}

.referral-code-modal__error {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: #f87171;
}

.referral-code-modal__submit {
  width: 100%;
  margin-top: 1rem;
  justify-content: center;
  gap: 0.5rem;
}

.referral-code-modal__success-stage {
  animation: referralSuccessIn 0.45s ease;
}

@keyframes referralSuccessIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.referral-code-modal__success-ring {
  width: 76px;
  height: 76px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(52, 211, 153, 0.22) 0%, rgba(16, 185, 129, 0.08) 100%);
  border: 1px solid rgba(110, 231, 183, 0.45);
  color: #6ee7b7;
  font-size: 1.75rem;
  box-shadow: 0 14px 36px rgba(16, 185, 129, 0.18);
}

.referral-code-modal__success-eyebrow {
  margin: 0;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(110, 231, 183, 0.9);
}

.referral-code-modal__success-title {
  margin: 0.35rem 0 0.65rem;
  font-size: 2rem;
  color: #f7ead0;
  background: linear-gradient(90deg, #f4d06f 0%, #fff3c4 45%, #f4d06f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.referral-code-modal__success-copy {
  margin: 0 0 0.35rem;
  color: rgba(247, 234, 208, 0.78);
  font-size: 0.92rem;
}

.referral-code-modal__success-note {
  margin: 0 0 1.25rem;
  font-size: 0.82rem;
  color: rgba(247, 234, 208, 0.5);
}

.referral-code-modal__success-actions {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.referral-code-modal__success-actions .btn-luxe,
.referral-code-modal__success-actions .btn-soft {
  width: 100%;
  justify-content: center;
}
