.referral-nav-trigger,
.referral-nav-trigger *,
.home-referral-spot,
.home-referral-spot *,
.referral-logo-mark,
.referral-logo-mark * {
  box-sizing: border-box;
}

.referral-nav-trigger {
  border: 1px solid rgba(25, 200, 161, .35);
  border-radius: 8px;
  background: #fff;
  color: #0f766e;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 10px 6px 7px;
  font: 800 13px/1.1 Arial, Helvetica, sans-serif;
  box-shadow: 0 8px 18px rgba(15, 118, 110, .12);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.referral-nav-trigger:hover,
.referral-nav-trigger:focus-visible {
  border-color: rgba(249, 115, 22, .55);
  box-shadow: 0 12px 24px rgba(15, 118, 110, .2);
  outline: 0;
  transform: translateY(-1px);
}

.referral-logo-mark {
  position: relative;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #132f2b;
  isolation: isolate;
}

.referral-logo-mark::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background:
    radial-gradient(circle at 30% 24%, #fff8d7 0 13%, transparent 14%),
    conic-gradient(from 150deg, #19c8a1, #0ea5e9, #f97316, #facc15, #19c8a1);
  box-shadow: 0 16px 32px rgba(15, 118, 110, .32), 0 0 0 5px rgba(255, 255, 255, .22) inset;
  z-index: -2;
}

.referral-logo-mark::after {
  content: "";
  position: absolute;
  inset: 8px;
  border-radius: inherit;
  background: linear-gradient(145deg, #fff 0%, #ecfeff 100%);
  z-index: -1;
}

.referral-logo-mark .fa-gift {
  color: #0f766e;
  font-size: 28px;
  line-height: 1;
}

.referral-logo-mark__share {
  position: absolute;
  right: 3px;
  bottom: 4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #f97316;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  box-shadow: 0 8px 16px rgba(249, 115, 22, .35), 0 0 0 3px #fff;
}

.referral-logo-mark--mini {
  width: 28px;
  height: 28px;
}

.referral-logo-mark--mini::after {
  inset: 4px;
}

.referral-logo-mark--mini .fa-gift {
  font-size: 13px;
}

.referral-logo-mark--mini .referral-logo-mark__share {
  right: -4px;
  bottom: -3px;
  width: 14px;
  height: 14px;
  font-size: 7px;
  box-shadow: 0 4px 8px rgba(249, 115, 22, .32), 0 0 0 2px #fff;
}

.home-referral-spot {
  width: min(640px, 100%);
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 8%, rgba(250, 204, 21, .3), transparent 28%),
    linear-gradient(135deg, rgba(15, 23, 42, .9) 0%, rgba(15, 118, 110, .92) 52%, rgba(249, 115, 22, .9) 100%);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 0 20px;
  padding: 14px 16px;
  text-align: left;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .26), 0 0 0 1px rgba(255, 255, 255, .1) inset;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.home-referral-spot:hover,
.home-referral-spot:focus-visible {
  filter: saturate(1.08);
  outline: 0;
  box-shadow: 0 24px 54px rgba(0, 0, 0, .32), 0 0 0 3px rgba(250, 204, 21, .24);
  transform: translateY(-2px);
}

.home-referral-spot__content {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.home-referral-spot__eyebrow {
  color: #fef3c7;
  font: 800 11px/1 Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-referral-spot strong {
  color: #fff;
  display: block;
  font: 900 22px/1.15 Arial, Helvetica, sans-serif;
}

.home-referral-spot small {
  color: rgba(255, 255, 255, .88);
  display: block;
  font: 600 13px/1.35 Arial, Helvetica, sans-serif;
}

.home-referral-spot__action {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 8px;
  background: #fff;
  color: #0f766e;
  padding: 10px 12px;
  font: 900 13px/1 Arial, Helvetica, sans-serif;
  box-shadow: 0 10px 20px rgba(15, 23, 42, .18);
}

.e2s-referral-launcher,
.e2s-referral-nudge,
.e2s-referral-panel,
.e2s-referral-panel * {
  box-sizing: border-box;
}

.e2s-referral-launcher {
  position: fixed;
  left: 18px;
  top: auto;
  bottom: 18px;
  z-index: 99990;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f766e 0%, #0ea5e9 100%);
  color: #fff;
  min-height: 58px;
  padding: 9px 18px 9px 10px;
  font: 700 14px/1.2 Arial, Helvetica, sans-serif;
  box-shadow: 0 14px 34px rgba(15, 118, 110, .32), 0 0 0 1px rgba(255, 255, 255, .22) inset;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: visible;
  transform: none;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}

.e2s-referral-launcher:hover,
.e2s-referral-launcher:focus-visible {
  box-shadow: 0 18px 42px rgba(14, 165, 233, .36), 0 0 0 1px rgba(255, 255, 255, .28) inset;
  filter: saturate(1.08);
  transform: translateY(-3px);
}

.e2s-referral-launcher-icon {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, #fff7cc 0 14%, transparent 15%),
    conic-gradient(from 150deg, #19c8a1, #0ea5e9, #f97316, #facc15, #19c8a1);
  color: #0f766e;
  box-shadow: 0 7px 16px rgba(15, 23, 42, .22), 0 0 0 3px rgba(255, 255, 255, .2);
}

.e2s-referral-launcher-icon svg {
  width: 25px;
  height: 25px;
  filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6));
}

.e2s-referral-launcher-text {
  display: grid;
  gap: 1px;
  text-align: left;
}

.e2s-referral-launcher-text b,
.e2s-referral-launcher-text small {
  display: block;
  white-space: nowrap;
}

.e2s-referral-launcher-text small {
  color: rgba(255, 255, 255, .84);
  font-size: 11px;
  font-weight: 600;
}

.e2s-referral-badge {
  position: absolute;
  right: -7px;
  top: -7px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 7px;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 5px 12px rgba(239, 68, 68, .32);
}

.e2s-referral-nudge {
  position: fixed;
  left: 18px;
  top: auto;
  bottom: 90px;
  z-index: 99989;
  width: min(330px, calc(100vw - 36px));
  padding: 14px 42px 14px 15px;
  border: 1px solid #b8eee4;
  border-radius: 8px;
  background: #ecfeff;
  color: #123536;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .22s ease, transform .22s ease;
}

.e2s-referral-nudge.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.e2s-referral-nudge strong,
.e2s-referral-nudge span {
  display: block;
}

.e2s-referral-nudge strong {
  font-size: 15px;
  margin-bottom: 5px;
}

.e2s-referral-nudge span {
  color: #35605f;
  font-size: 13px;
  line-height: 1.4;
}

.e2s-referral-nudge-action {
  border: 0;
  border-radius: 6px;
  background: #0f766e;
  color: #fff;
  cursor: pointer;
  font-weight: 800;
  margin-top: 10px;
  padding: 9px 11px;
}

.e2s-referral-nudge-close {
  position: absolute;
  right: 10px;
  top: 8px;
  border: 0;
  background: transparent;
  color: #315856;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.e2s-referral-panel {
  position: fixed;
  left: 18px;
  top: auto;
  bottom: 86px;
  width: min(380px, calc(100vw - 36px));
  max-height: min(640px, calc(100vh - 96px));
  overflow: auto;
  z-index: 99991;
  display: none;
  border: 1px solid #d9e6e3;
  border-radius: 8px;
  background: #fff;
  color: #17212b;
  font-family: Arial, Helvetica, sans-serif;
  box-shadow: 0 18px 48px rgba(15, 23, 42, .18);
  transform: none;
}

.e2s-referral-panel.is-open {
  display: block;
  animation: e2sReferralIn .2s ease both;
}

@keyframes e2sReferralIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.e2s-referral-hero {
  padding: 16px 16px 15px;
  background: linear-gradient(135deg, #0f766e 0%, #155e75 100%);
  color: #fff;
}

.e2s-referral-pill {
  display: inline-flex;
  border-radius: 999px;
  background: rgba(255, 255, 255, .16);
  color: #fef9c3;
  font-size: 11px;
  font-weight: 800;
  padding: 5px 8px;
  text-transform: uppercase;
}

.e2s-referral-hero h2 {
  color: #fff;
  font-size: 22px;
  line-height: 1.12;
  margin: 10px 0 7px;
}

.e2s-referral-hero p {
  color: rgba(255, 255, 255, .88);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.e2s-referral-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e7efed;
}

.e2s-referral-head strong {
  display: block;
  font-size: 16px;
}

.e2s-referral-close {
  border: 0;
  background: transparent;
  color: #334155;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.e2s-referral-body {
  padding: 14px 16px 16px;
}

.e2s-referral-how {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-bottom: 14px;
}

.e2s-referral-how span {
  border: 1px solid #d9e6e3;
  border-radius: 6px;
  background: #f8fafc;
  color: #0f766e;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
}

.e2s-referral-muted {
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 12px;
}

.e2s-referral-code {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.e2s-referral-code label {
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.e2s-referral-code input {
  width: 100%;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 10px;
  color: #0f172a;
  background: #f8fafc;
  font: 600 13px/1.3 Arial, Helvetica, sans-serif;
}

.e2s-referral-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.e2s-referral-actions button {
  border: 1px solid #0f766e;
  border-radius: 6px;
  background: #0f766e;
  color: #fff;
  padding: 9px 11px;
  font-weight: 700;
  cursor: pointer;
}

.e2s-referral-actions button.secondary {
  background: #fff;
  color: #0f766e;
}

.e2s-referral-actions button.whatsapp {
  border-color: #16a34a;
  background: #16a34a;
}

.e2s-referral-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}

.e2s-referral-stat {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 10px;
  background: #f8fafc;
}

.e2s-referral-stat b {
  display: block;
  color: #0f766e;
  font-size: 18px;
}

.e2s-referral-stat span {
  color: #64748b;
  display: block;
  font-size: 11px;
  margin-top: 3px;
}

.e2s-referral-list {
  display: grid;
  gap: 8px;
}

.e2s-referral-list h3 {
  color: #17212b;
  font-size: 14px;
  margin: 6px 0 2px;
}

.e2s-referral-item {
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  padding: 9px 10px;
  background: #fff;
  font-size: 13px;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px;
  align-items: center;
}

.e2s-referral-item strong {
  color: #0f766e;
  overflow-wrap: anywhere;
}

.e2s-referral-item span {
  color: #0f172a;
  font-weight: 800;
}

.e2s-referral-item em {
  border-radius: 999px;
  background: #ecfeff;
  color: #0f766e;
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  padding: 4px 7px;
  text-transform: capitalize;
}

@media (max-width: 520px) {
  .referral-nav-trigger {
    width: 100%;
    justify-content: flex-start;
    margin-top: 6px;
  }

  .home-referral-spot {
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
    padding: 13px;
  }

  .home-referral-spot .referral-logo-mark {
    width: 52px;
    height: 52px;
  }

  .home-referral-spot .referral-logo-mark .fa-gift {
    font-size: 22px;
  }

  .home-referral-spot__content {
    flex: 1 1 calc(100% - 70px);
  }

  .home-referral-spot strong {
    font-size: 18px;
  }

  .home-referral-spot__action {
    width: 100%;
    justify-content: center;
  }

  .e2s-referral-launcher {
    left: 0;
    top: auto;
    bottom: 12px;
    border-radius: 0 999px 999px 0;
    min-height: 52px;
    padding: 8px 15px 8px 9px;
    transform: none;
  }

  .e2s-referral-launcher:hover,
  .e2s-referral-launcher:focus-visible {
    transform: translateX(4px);
  }

  .e2s-referral-panel {
    left: 12px;
    top: auto;
    bottom: 58px;
    width: calc(100vw - 24px);
    transform: none;
  }

  .e2s-referral-panel.is-open {
    animation: e2sReferralMobileIn .2s ease both;
  }

  .e2s-referral-nudge {
    left: 12px;
    top: auto;
    bottom: 74px;
    width: calc(100vw - 24px);
    transform: translateY(12px);
  }

  .e2s-referral-nudge.is-visible {
    transform: translateY(0);
  }

  .e2s-referral-launcher-text small {
    display: none;
  }

  .e2s-referral-how {
    grid-template-columns: 1fr;
  }
}

@keyframes e2sReferralMobileIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
