/* Zalo Floating Button */
.zalo-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 65px;
    height: 65px;
    background: linear-gradient(135deg, #0068FF 0%, #0180FF 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 24px rgba(0, 104, 255, 0.5),
                0 0 40px rgba(0, 104, 255, 0.3);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: zalo-pulse 2s infinite;
    border: 3px solid rgba(255, 255, 255, 0.3);
}

.zalo-float:hover {
    transform: scale(1.15);
    box-shadow: 0 8px 32px rgba(0, 104, 255, 0.7),
                0 0 60px rgba(0, 104, 255, 0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Icon với text "Z" hoặc comment icon */
.zalo-float i {
    font-size: 32px;
    color: white;
    font-weight: 700;
}

/* Nếu dùng ::before để tạo "Z" */
.zalo-float::before {
    content: 'Z';
    font-size: 36px;
    font-weight: 900;
    color: white;
    font-family: 'Inter', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.zalo-float .zalo-tooltip {
    position: absolute;
    right: 70px;
    background: var(--white);
    color: var(--dark-color);
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.zalo-float:hover .zalo-tooltip {
    opacity: 1;
    visibility: visible;
    right: 75px;
}

.zalo-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--white);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

@keyframes zalo-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(0, 104, 255, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(0, 104, 255, 0.7);
    }
    100% {
        box-shadow: 0 4px 20px rgba(0, 104, 255, 0.4);
    }
}

/* Phone Floating Button */
.phone-float {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #4FC3F7 0%, #29B6F6 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.4);
    cursor: pointer;
    z-index: 9999;
    transition: all 0.3s ease;
    animation: phone-ring 3s infinite;
}

.phone-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 30px rgba(79, 195, 247, 0.6);
}

.phone-float i {
    color: var(--white);
    font-size: 24px;
}

.phone-float .phone-tooltip {
    position: absolute;
    right: 65px;
    background: var(--white);
    color: var(--dark-color);
    padding: 10px 15px;
    border-radius: 8px;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    font-size: 14px;
    font-weight: 500;
}

.phone-float:hover .phone-tooltip {
    opacity: 1;
    visibility: visible;
    right: 70px;
}

.phone-tooltip::after {
    content: '';
    position: absolute;
    right: -8px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 8px solid var(--white);
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
}

@keyframes phone-ring {
    0%, 100% {
        transform: rotate(0deg);
    }
    10%, 30% {
        transform: rotate(-15deg);
    }
    20%, 40% {
        transform: rotate(15deg);
    }
    50% {
        transform: rotate(0deg);
    }
}

/* Responsive cho mobile */
@media (max-width: 640px) {
    .zalo-float,
    .phone-float {
        right: 20px;
    }
    
    .zalo-float {
        width: 55px;
        height: 55px;
        bottom: 20px;
    }
    
    .phone-float {
        width: 50px;
        height: 50px;
        bottom: 90px;
    }
    
    .zalo-float img {
        width: 30px;
        height: 30px;
    }
    
    .phone-float i {
        font-size: 20px;
    }
    
    .zalo-tooltip,
    .phone-tooltip {
        display: none;
    }
}