/* Sistema de Afiliados Automático - VLK Store */

/* Badge de Indicação Ativa com Animação */
.referral-active-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.15) 0%, rgba(0, 255, 136, 0.15) 100%);
    border: 2px solid #00ff88;
    border-radius: 12px;
    color: #00ff88;
    font-weight: 700;
    font-size: 1.1rem;
    margin: 1rem 0;
    box-shadow: 0 0 25px rgba(0, 255, 136, 0.4), inset 0 0 15px rgba(0, 255, 136, 0.1);
    animation: referralPulse 2.5s ease-in-out infinite;
    position: relative;
    overflow: hidden;
}

.referral-active-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shimmer 3s infinite;
}

@keyframes referralPulse {
    0%, 100% {
        box-shadow: 0 0 25px rgba(0, 255, 136, 0.4), inset 0 0 15px rgba(0, 255, 136, 0.1);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 40px rgba(0, 255, 136, 0.6), inset 0 0 20px rgba(0, 255, 136, 0.2);
        transform: scale(1.02);
    }
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.referral-active-badge .check-icon {
    width: 24px;
    height: 24px;
    animation: checkBounce 1s ease-in-out infinite;
}

@keyframes checkBounce {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Campo de Referral Opcional (quando não há cookie) */
.referral-optional-field {
    opacity: 0.7;
    transition: all 0.3s ease;
}

.referral-optional-field:hover {
    opacity: 1;
}

.referral-optional-field input {
    border-style: dashed !important;
}

/* Tooltip de Informação */
.referral-info-tooltip {
    position: relative;
    display: inline-block;
    margin-left: 0.5rem;
    cursor: help;
}

.referral-info-tooltip .tooltip-text {
    visibility: hidden;
    width: 250px;
    background: #0a0a0a;
    color: #00f0ff;
    text-align: center;
    border-radius: 8px;
    padding: 0.75rem;
    position: absolute;
    z-index: 1;
    bottom: 125%;
    left: 50%;
    margin-left: -125px;
    opacity: 0;
    transition: opacity 0.3s;
    border: 1px solid #00f0ff;
    font-size: 0.85rem;
}

.referral-info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

/* Indicador de Cookie Ativo */
.cookie-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid #00f0ff;
    border-radius: 6px;
    color: #00f0ff;
    font-size: 0.85rem;
    margin-top: 0.5rem;
}

.cookie-indicator svg {
    width: 16px;
    height: 16px;
}

/* Animação de Entrada do Badge */
@keyframes slideInFromTop {
    0% {
        transform: translateY(-20px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.referral-badge {
    animation: slideInFromTop 0.5s ease-out;
}
