/* Referral pill - bottom-left floating chip.
   Matches the welcome pill footprint so users read them as the same family.
   Only shown when the visitor arrived via a ?ref= link. */

.rf-pill {
    position: fixed;
    left: 20px;
    bottom: 20px;
    z-index: 45;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px 12px 16px;
    background: linear-gradient(135deg, #151515 0%, #1a1f2e 100%);
    border: 1px solid rgba(75, 128, 194, 0.35);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 13.5px;
    letter-spacing: 0.005em;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(75, 128, 194, 0.15) inset;
    max-width: 340px;
    transform: translateY(120%);
    opacity: 0;
    transition: transform .45s cubic-bezier(.22, .61, .36, 1), opacity .3s ease;
}
.rf-pill.is-visible {
    transform: translateY(0);
    opacity: 1;
    animation: rf-pill-in .5s cubic-bezier(.34, 1.56, .64, 1) .6s backwards;
}

@keyframes rf-pill-in {
    from { transform: translateY(20px) scale(0.95); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.rf-pill-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(75, 128, 194, 0.18);
    color: #7ec3ff;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.rf-pill-icon svg { width: 18px; height: 18px; }

.rf-pill-body { flex: 1; min-width: 0; line-height: 1.35; }
.rf-pill-body b { color: #ffffff; font-weight: 700; }
.rf-pill-body .rf-accent { color: #7ec3ff; font-weight: 700; }

.rf-pill-close {
    position: absolute;
    top: -6px;
    right: -6px;
    width: 22px;
    height: 22px;
    background: #0d0d0d;
    border: 1px solid #2A2A2E;
    border-radius: 50%;
    color: #8A8A8D;
    cursor: pointer;
    display: grid;
    place-items: center;
    padding: 0;
    transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.rf-pill-close:hover {
    color: #eb4034;
    border-color: rgba(235, 64, 52, 0.5);
    background: #151515;
}
.rf-pill-close svg { width: 11px; height: 11px; }

@media (max-width: 520px) {
    .rf-pill { left: 12px; right: 180px; bottom: 12px; max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
    .rf-pill { transition: none; animation: none; }
}
