/* =========================
   BACK TO TOP BUTTON
========================= */

.cd-top {
    pointer-events: none !important;
    position: fixed !important;
    right: 24px !important;
    bottom: 28px !important;
    width: 58px !important;
    height: 58px !important;
    border-radius: 50% !important;
    z-index: 999 !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg,#2563eb,#0ea5e9) !important;
    color: #fff !important;
    font-size: 20px !important;
    box-shadow: 0 12px 30px rgba(37,99,235,.28) !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(20px) scale(.9) !important;
    transition: all .4s cubic-bezier(.2,.8,.2,1) !important;
}

    /* ṿng sáng animation */

    .cd-top::before {
        content: "" !important;
        position: absolute !important;
        inset: -2px !important;
        border-radius: 50% !important;
        border: 2px solid rgba(255,255,255,.25) !important;
        animation: topButtonPulse 2s infinite !important;
    }

    /* icon */

    .cd-top i {
        position: relative !important;
        z-index: 2 !important;
        transition: transform .35s ease !important;
    }

    /* visible */

    .cd-top.cd-is-visible {
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: all !important;
        transform: translateY(-74px) scale(1) !important;
    }

    /* fade */

    .cd-top.cd-fade-out {
        opacity: .65 !important;
    }

    /* hover */

    .cd-top:hover {
        transform: translateY(-74px) scale(1.06) !important;
        box-shadow: 0 18px 40px rgba(37,99,235,.38) !important;
        background: linear-gradient(135deg,#1d4ed8,#0284c7) !important;
    }

        .cd-top:hover i {
            transform: translateY(-3px) !important;
        }

    /* active click */

    .cd-top:active {
        /* transform: scale(.95) !important; */
    }

/* animation pulse */

@keyframes topButtonPulse {

    0% {
        transform: scale(1) !important;
        opacity: 1 !important;
    }

    70% {
        transform: scale(1.35) !important;
        opacity: 0 !important;
    }

    100% {
        transform: scale(1.35) !important;
        opacity: 0 !important;
    }
}

/* mobile */

@media(max-width:767px) {

    .cd-top {
        width: 52px !important;
        height: 52px !important;
        right: 16px !important;
        bottom: 20px !important;
        font-size: 18px !important;
    }
}
