/* Smartlist Referral Widget */
.referral-widget-container {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 16px;
}

.referral-widget {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 16px;
    background: linear-gradient(135deg, #6366f1 0%, #a855f7 100%);
    border-radius: 99px;
    color: white;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
    cursor: pointer;
    box-shadow: 0 4px 6px -1px rgba(124, 58, 237, 0.3), 0 2px 4px -1px rgba(124, 58, 237, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    user-select: none;
    text-decoration: none;
    white-space: nowrap;
}

.referral-widget:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(124, 58, 237, 0.4), 0 4px 6px -2px rgba(124, 58, 237, 0.2);
    background: linear-gradient(135deg, #5b21b6 0%, #7c3aed 100%);
}

.referral-widget:active {
    transform: translateY(0);
    box-shadow: 0 2px 4px -1px rgba(124, 58, 237, 0.3);
}

.widget-icon {
    font-size: 16px;
    animation: bounce 2s infinite;
}

.widget-text {
    position: relative;
    z-index: 2;
}

/* Shine Effect */
.referral-widget::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent,
            rgba(255, 255, 255, 0.4),
            transparent);
    transform: skewX(-20deg);
    animation: shine 6s infinite;
}

/* Animations */
@keyframes bounce {

    0%,
    20%,
    50%,
    80%,
    100% {
        transform: translateY(0);
    }

    40% {
        transform: translateY(-3px);
    }

    60% {
        transform: translateY(-1.5px);
    }
}

@keyframes shine {
    0% {
        left: -100%;
    }

    10% {
        left: 200%;
    }

    /* Fast pass */
    100% {
        left: 200%;
    }

    /* Wait */
}

/* LTD / Gold Status */
.referral-widget.gold-status {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    box-shadow: 0 4px 6px -1px rgba(217, 119, 6, 0.3);
}

.referral-widget.gold-status:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    box-shadow: 0 10px 15px -3px rgba(217, 119, 6, 0.4);
}

/* --- Share Menu (Billing Page) --- */
.share-dropdown {
    position: relative;
    display: inline-block;
}

.share-menu {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    /* Show above button */
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    width: 200px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
    border: 1px solid #e2e8f0;
}

.share-dropdown:hover .share-menu {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Triangle connector */
.share-menu::after {
    content: '';
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    width: 12px;
    height: 12px;
    background: white;
    transform: rotate(45deg);
    border-bottom: 1px solid #e2e8f0;
    border-right: 1px solid #e2e8f0;
}

.share-menu .share-item {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    padding: 8px 12px;
    border-radius: 6px;
    color: #475569;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    white-space: nowrap;
}

.share-menu .share-item:hover {
    background: #f1f5f9;
    color: #0f172a;
}

.share-menu .share-item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Platform Colors on Hover */
.share-menu .share-item.linkedin:hover {
    color: #0077b5;
    background: #e6f6ff;
}

.share-menu .share-item.twitter:hover {
    color: black;
    background: #f0f0f0;
}

/* X is black */
.share-menu .share-item.instagram:hover {
    color: #e1306c;
    background: #fff0f5;
}

.share-menu .share-item.facebook:hover {
    color: #1877f2;
    background: #e7f3ff;
}