/* Barba.js — progress bar kiểu YouTube khi chuyển trang. Namespace .duo-barba-*, không đụng frontend.css. */
.duo-barba-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0;
    z-index: 999999;
    background: var(--primary-color, #e30613);
    opacity: 0;
    pointer-events: none;
    transition: width 0.25s ease, opacity 0.2s ease;
}
.duo-barba-progress.is-loading {
    width: 85%;
    opacity: 1;
    transition: width 4s cubic-bezier(0.1, 0.7, 0.2, 1), opacity 0.2s ease;
}
.duo-barba-progress.is-done {
    width: 100%;
    opacity: 1;
    transition: width 0.2s ease, opacity 0.3s ease 0.2s;
}
.duo-barba-progress.is-done.is-hidden {
    opacity: 0;
}

@media (prefers-reduced-motion: reduce) {
    .duo-barba-progress {
        display: none;
    }
}
