:root {
    --wa-green-start: #25D366;
    --wa-green-end: #128C7E;
    --wa-shadow: rgba(37, 211, 102, 0.4);
}

.magicapple-whatsapp-link {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 99999;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
}

.magicapple-icon-wrapper {
    background: linear-gradient(135deg, var(--wa-green-start), var(--wa-green-end));
    width: 65px;
    height: 65px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 10px 25px var(--wa-shadow);
    position: relative;
    cursor: pointer;
    animation: premium-pulse 2s infinite;
}

.magicapple-whatsapp-link:hover {
    transform: translateY(-10px) scale(1.1);
}

.magicapple-whatsapp-link:hover .magicapple-icon-wrapper {
    box-shadow: 0 15px 35px var(--wa-shadow);
}

/* Pulsing effect */
@keyframes premium-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Bounce entrance */
.magicapple-whatsapp-link {
    animation: premium-bounce-in 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) forwards;
}

@keyframes premium-bounce-in {
    from {
        opacity: 0;
        transform: scale(0.5) translateY(50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .magicapple-whatsapp-link {
        right: 20px;
        bottom: calc(20px + 8rem);
    }
    .magicapple-icon-wrapper {
        width: 55px;
        height: 55px;
    }
    .magicapple-icon-wrapper svg {
        width: 25px;
        height: 25px;
    }
}
