/* Floating verification button — site-wide FAB */
.fab-xac-thuc {
    position: fixed;
    right: 24px;
    bottom: 24px;
    width: 84px;
    height: 84px;
    border-radius: 50%;
    background-color: #fff;
    box-shadow: 0 8px 24px rgba(227, 27, 35, 0.22), 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1040;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fab-xac-thuc:hover,
.fab-xac-thuc:focus {
    transform: scale(1.06);
    box-shadow: 0 10px 28px rgba(227, 27, 35, 0.32), 0 2px 6px rgba(0, 0, 0, 0.1);
    outline: none;
}

.fab-xt-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.fab-xt-icon svg {
    width: 48px;
    height: 40px;
    display: block;
}

.fab-xt-ring {
    position: absolute;
    inset: 0;
    border: 2px solid rgba(227, 27, 35, 0.55);
    border-radius: 50%;
    pointer-events: none;
    transform: scale(1);
    opacity: 0.8;
    animation: fab-xt-halo 1.8s ease-out infinite;
}

.fab-xt-ring-2 {
    animation-delay: 0.9s;
}

@keyframes fab-xt-halo {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }

    80% {
        opacity: 0;
    }

    100% {
        transform: scale(1.7);
        opacity: 0;
    }
}

/* Keep #backToTop from overlapping the FAB (it also sits bottom-right) */
#backToTop.backToTopIcon {
    bottom: 116px !important;
}

@media (prefers-reduced-motion: reduce) {
    .fab-xt-ring {
        animation: none;
        opacity: 0;
    }
}

@media (max-width: 767.98px) {
    .fab-xac-thuc {
        right: 16px;
        bottom: 16px;
        width: 64px;
        height: 64px;
    }

    .fab-xt-icon svg {
        width: 36px;
        height: 30px;
    }

    #backToTop.backToTopIcon {
        bottom: 88px !important;
    }
}

/* Custom hover tooltip for the FAB */
.fab-xt-tooltip {
    position: absolute;
    bottom: calc(100% + 14px);
    right: 0;
    left: auto;
    transform: translateY(6px);
    background-color: #ffffff;
    color: #E31313;
    font-family: inter-semibold, inter-medium, sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    padding: 10px 18px;
    border-radius: 999px;
    white-space: nowrap;
    box-shadow: 0 6px 18px rgba(227, 27, 35, 0.18), 0 2px 6px rgba(0, 0, 0, 0.08);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 1;
}

.fab-xt-tooltip::after {
    content: "";
    position: absolute;
    top: 100%;
    right: 34px;
    border: 8px solid transparent;
    border-top-color: #ffffff;
    filter: drop-shadow(0 2px 2px rgba(227, 27, 35, 0.08));
}

.fab-xac-thuc:hover .fab-xt-tooltip,
.fab-xac-thuc:focus .fab-xt-tooltip,
.fab-xac-thuc:focus-visible .fab-xt-tooltip {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 767.98px) {
    .fab-xt-tooltip {
        font-size: 12px;
        padding: 8px 14px;
    }

    .fab-xt-tooltip::after {
        right: 24px;
    }
}
