body.page-profile .profile-referral-qr-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 16px;
  background:
    radial-gradient(circle at 88% 14%, rgba(94, 234, 212, 0.13), transparent 30%),
    rgba(8, 20, 39, 0.64);
}

body.page-profile .profile-referral-qr-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
}

body.page-profile .profile-referral-qr-preview {
  display: grid;
  place-items: center;
  width: min(100%, 320px);
  aspect-ratio: 1;
  padding: 16px;
  border: 1px solid rgba(125, 211, 252, 0.22);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.28);
}

body.page-profile .profile-referral-qr-preview svg {
  display: block;
  width: 100%;
  height: auto;
}

body.page-profile .profile-referral-qr-preview > span {
  color: #7f1d1d;
  font-weight: 900;
  text-align: center;
}

body.page-profile .profile-referral-qr-copy {
  display: grid;
  gap: 10px;
  min-width: 0;
}

body.page-profile .profile-referral-qr-copy h4 {
  margin: 0;
  color: #edf6ff;
}

body.page-profile .profile-referral-qr-copy p {
  margin: 0;
  color: #b6c5d8;
  font-weight: 800;
  line-height: 1.55;
}

body.page-profile .profile-referral-preview-label {
  display: inline-flex;
  width: max-content;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid rgba(94, 234, 212, 0.28);
  border-radius: 999px;
  color: #ccfbf1;
  background: rgba(20, 83, 45, 0.28);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

body.page-profile .profile-referral-banner-preview {
  display: grid;
  gap: 10px;
}

body.page-profile .profile-referral-banner-frame {
  display: grid;
  place-items: center;
  max-width: 100%;
  min-height: 188px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(125, 211, 252, 0.18);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 18%, rgba(94, 234, 212, 0.11), transparent 34%),
    rgba(3, 12, 25, 0.36);
}

body.page-profile .profile-referral-banner-frame.is-horizontal {
  min-height: 144px;
}

body.page-profile .profile-referral-banner-frame.is-responsive {
  min-height: 0;
}

body.page-profile .profile-referral-banner-frame.is-square {
  min-height: 360px;
}

body.page-profile .profile-referral-banner-frame.is-vertical {
  min-height: 448px;
}

body.page-profile .profile-referral-banner-visual {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  color: #f8fbff;
  font-family: "Segoe UI", Arial, sans-serif;
  background-repeat: no-repeat;
  background-size: cover;
  box-shadow: 0 18px 42px rgba(2, 8, 23, 0.28);
}

body.page-profile .profile-referral-banner-visual-horizontal {
  display: flex;
  max-width: 728px;
  min-height: 108px;
  aspect-ratio: 728 / 120;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 22px;
  border-radius: 18px;
  background-image:
    linear-gradient(90deg, rgba(2, 8, 23, 0.96), rgba(8, 20, 39, 0.86) 54%, rgba(15, 118, 110, 0.7)),
    url("../assets/previews/home-audit-one-page-640.webp");
  background-position: center;
}

body.page-profile .profile-referral-banner-visual-responsive {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border-radius: 20px;
  background-image:
    linear-gradient(90deg, rgba(2, 8, 23, 0.96), rgba(8, 20, 39, 0.86) 54%, rgba(15, 118, 110, 0.72)),
    url("../assets/previews/home-audit-one-page-640.webp");
  background-position: center;
}

body.page-profile .profile-referral-banner-visual-responsive .profile-referral-banner-top {
  flex: 0 0 auto;
}

body.page-profile .profile-referral-banner-visual-responsive .profile-referral-banner-copy {
  flex: 1 1 280px;
}

body.page-profile .profile-referral-banner-visual-responsive strong {
  font-size: 2rem;
  line-height: 1.08;
}

body.page-profile .profile-referral-banner-visual-responsive small {
  font-size: 1rem;
}

body.page-profile .profile-referral-banner-visual-responsive .profile-referral-banner-cta {
  flex: 1 1 170px;
}

body.page-profile .profile-referral-banner-visual-square {
  display: grid;
  width: min(100%, 320px);
  aspect-ratio: 1;
  align-content: space-between;
  gap: 14px;
  padding: 24px;
  border-radius: 22px;
  background-image:
    linear-gradient(135deg, rgba(2, 8, 23, 0.94), rgba(6, 16, 31, 0.78) 48%, rgba(15, 95, 134, 0.72)),
    url("../assets/previews/home-crawl-site-640.webp");
  background-position: center;
}

body.page-profile .profile-referral-banner-visual-vertical {
  display: grid;
  width: min(100%, 300px);
  aspect-ratio: 300 / 480;
  align-content: space-between;
  gap: 14px;
  padding: 24px;
  border: 1px solid rgba(125, 211, 252, 0.35);
  border-radius: 24px;
  background-image:
    linear-gradient(180deg, rgba(2, 8, 23, 0.97), rgba(8, 20, 39, 0.83) 55%, rgba(14, 116, 144, 0.74)),
    url("../assets/previews/home-audit-one-page-640.webp");
  background-position: center;
}

body.page-profile .profile-referral-banner-top {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  max-width: 100%;
}

body.page-profile .profile-referral-banner-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: #06101f;
  box-shadow: 0 8px 24px rgba(2, 8, 23, 0.32);
}

body.page-profile .profile-referral-banner-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

body.page-profile .profile-referral-banner-copy {
  display: grid;
  min-width: 0;
  gap: 6px;
}

body.page-profile .profile-referral-banner-brand,
body.page-profile .profile-referral-banner-copy b {
  color: #7dd3fc;
  font-size: 0.82rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

body.page-profile .profile-referral-banner-visual-square .profile-referral-banner-brand {
  color: #9de2ff;
}

body.page-profile .profile-referral-banner-visual strong {
  display: block;
  min-width: 0;
  color: #ffffff;
  font-size: clamp(1.35rem, 2.1vw, 2.18rem);
  font-weight: 950;
  line-height: 1.05;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.75);
}

body.page-profile .profile-referral-banner-visual-horizontal strong {
  font-size: clamp(1.2rem, 1.65vw, 1.72rem);
}

body.page-profile .profile-referral-banner-visual small {
  display: block;
  min-width: 0;
  color: #dbeafe;
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.35;
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.55);
}

body.page-profile .profile-referral-banner-visual small b {
  color: #5eead4;
}

body.page-profile .profile-referral-banner-cta {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  color: #04111f;
  background: linear-gradient(135deg, #7dd3fc, #5eead4);
  font-weight: 950;
  line-height: 1.15;
  text-align: center;
  box-shadow: 0 10px 24px rgba(2, 8, 23, 0.26);
}

body.page-profile .profile-referral-banner-card.is-responsive {
  grid-column: 1 / -1;
}

@media (min-width: 761px) {
  body.page-profile .profile-referral-banner-card.is-horizontal {
    grid-column: 1 / -1;
  }

  body.page-profile .profile-referral-banner-card.is-horizontal .profile-referral-banner-preview {
    width: max-content;
    max-width: 100%;
  }

  body.page-profile .profile-referral-banner-frame.is-horizontal {
    width: max-content;
    max-width: 100%;
    min-height: 0;
    justify-items: start;
    overflow-x: auto;
    overflow-y: hidden;
  }

  body.page-profile .profile-referral-banner-frame.is-horizontal .profile-referral-banner-visual-horizontal {
    width: 728px;
    max-width: none;
    height: 120px;
    min-height: 120px;
    flex: 0 0 728px;
  }
}

@media (max-width: 760px) {
  body.page-profile .profile-referral-qr-card {
    padding: 14px;
  }

  body.page-profile .profile-referral-qr-layout {
    grid-template-columns: 1fr;
  }

  body.page-profile .profile-referral-qr-preview {
    justify-self: center;
    width: min(100%, 280px);
  }

  body.page-profile .profile-referral-banner-frame,
  body.page-profile .profile-referral-banner-frame.is-horizontal,
  body.page-profile .profile-referral-banner-frame.is-square,
  body.page-profile .profile-referral-banner-frame.is-vertical {
    min-height: 0;
  }

  body.page-profile .profile-referral-banner-visual-responsive {
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  body.page-profile .profile-referral-banner-visual-responsive .profile-referral-banner-copy {
    flex-basis: 100%;
  }

  body.page-profile .profile-referral-banner-visual-responsive strong {
    font-size: 1.55rem;
  }

  body.page-profile .profile-referral-banner-visual-horizontal {
    min-height: 148px;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }

  body.page-profile .profile-referral-banner-visual-square,
  body.page-profile .profile-referral-banner-visual-vertical {
    width: min(100%, 280px);
    padding: 18px;
  }

  body.page-profile .profile-referral-banner-visual strong {
    font-size: clamp(1.32rem, 8vw, 1.75rem);
  }

  body.page-profile .profile-referral-banner-visual small {
    font-size: 0.9rem;
  }

  body.page-profile .profile-referral-banner-cta {
    width: 100%;
  }
}
