/* =========================
   FLOATING CONTACT
========================= */
.floating-contact {
    position: fixed;
    right: 24px;
    bottom: 30px;
    z-index: 99999;

    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;

    font-family: Arial, sans-serif;
}

/* ITEM */
.floating-contact .contact-item {
    position: relative;

    display: flex;
    align-items: center;
    justify-content: flex-end;

    height: 52px;
    width: 52px;

    border-radius: 999px;
    overflow: hidden;

    color: #fff;
    text-decoration: none;

    box-shadow:
            0 5px 15px rgba(0, 0, 0, 0.18),
            0 2px 5px rgba(0, 0, 0, 0.08);

    transition:
            width 0.35s ease,
            transform 0.25s ease,
            box-shadow 0.25s ease;
}

/* Hover bung chữ */
.floating-contact .contact-item:hover {
    width: 165px;
    transform: translateX(-3px);

    box-shadow:
            0 8px 22px rgba(0, 0, 0, 0.22),
            0 3px 8px rgba(0, 0, 0, 0.10);
}

/* Text */
.floating-contact .contact-text {
    position: absolute;
    right: 52px;

    padding-left: 18px;

    opacity: 0;
    transform: translateX(10px);

    white-space: nowrap;

    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.2px;

    transition:
            opacity 0.25s ease,
            transform 0.25s ease;
}

.floating-contact .contact-item:hover .contact-text {
    opacity: 1;
    transform: translateX(0);
}

/* ICON */
.floating-contact .contact-icon {
    flex: 0 0 52px;

    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 22px;
}

/* =========================
   BRAND COLORS
========================= */

.floating-contact .zalo {
    background: linear-gradient(135deg, #0088ff, #0068ff);
}

.floating-contact .facebook {
    background: linear-gradient(135deg, #2196f3, #1877f2);
}

.floating-contact .tiktok {
    background: linear-gradient(135deg, #252525, #000000);
}

.floating-contact .hotline {
    background: linear-gradient(135deg, #ff5252, #e53935);
}

.floating-contact .youtube {
    background: linear-gradient(135deg, #ff3333, #ff0000);
}

/* ZALO ICON */
.floating-contact .zalo img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

/* =========================
   HOTLINE PULSE EFFECT
========================= */

.floating-contact .hotline::before {
    content: "";

    position: absolute;
    right: 0;

    width: 52px;
    height: 52px;

    border-radius: 50%;

    background: rgba(229, 57, 53, 0.35);

    animation: hotline-pulse 1.8s infinite;
}

@keyframes hotline-pulse {
    0% {
        transform: scale(1);
        opacity: 0.7;
    }

    70% {
        transform: scale(1.45);
        opacity: 0;
    }

    100% {
        transform: scale(1.45);
        opacity: 0;
    }
}

/* đảm bảo icon nằm trên pulse */
.floating-contact .hotline .contact-icon {
    position: relative;
    z-index: 2;
}

/* =========================
   MOBILE
========================= */

@media (max-width: 768px) {

    .floating-contact {
        right: 12px;
        bottom: 20px;
        gap: 9px;
    }

    .floating-contact .contact-item {
        width: 46px;
        height: 46px;
    }

    .floating-contact .contact-icon {
        width: 46px;
        height: 46px;
        flex-basis: 46px;

        font-size: 19px;
    }

    /* Mobile không bung chữ */
    .floating-contact .contact-item:hover {
        width: 46px;
        transform: scale(1.08);
    }

    .floating-contact .contact-text {
        display: none;
    }

    .floating-contact .hotline::before {
        width: 46px;
        height: 46px;
    }

    .floating-contact .zalo img {
        width: 27px;
        height: 27px;
    }
}