/* Referral Trust Banner
   Shown when a visitor lands via a referral link (cookie OR utm_medium=r).
   Reassures: "your free month is registered, sign up normally and it applies."

   Brand-system aligned: Rubik, brand gradient, pill dismiss button.
   Slim — does not push the hero down jarringly. Sticky at top, dismissable. */

.refbanner {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(135deg, #15287A 0%, #1E3FC9 25%, #2FB5B0 65%, #2ED9A3 100%);
  color: #fff;
  font-family: 'Rubik', system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.45;
  padding: 12px 56px 12px 20px;
  text-align: center;
  display: none;
  position: relative;
  -webkit-font-smoothing: antialiased;
}
.refbanner.show {
  display: block;
}
[dir="rtl"] .refbanner {
  padding: 12px 20px 12px 56px;
}

.refbanner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.refbanner .gift {
  font-size: 18px;
  line-height: 1;
}

.refbanner strong {
  font-weight: 700;
}

.refbanner-close {
  position: absolute;
  top: 50%;
  right: 16px;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  transition: background 0.15s;
}
.refbanner-close:hover {
  background: rgba(255, 255, 255, 0.25);
}
[dir="rtl"] .refbanner-close {
  right: auto;
  left: 16px;
}

@media (max-width: 560px) {
  .refbanner {
    font-size: 13px;
    padding: 10px 48px 10px 16px;
  }
  [dir="rtl"] .refbanner {
    padding: 10px 16px 10px 48px;
  }
  .refbanner-close {
    right: 10px;
    width: 26px;
    height: 26px;
  }
  [dir="rtl"] .refbanner-close {
    right: auto;
    left: 10px;
  }
}
