.progress-container {
    width: 100%;
    height: 4px;
    background: transparent;
    position: fixed;
    z-index: 100;
}

.cusprogress-bar {
    box-shadow: 0 0 15px 5px rgb(69 104 142 / 54%);
    height: 100%;
    background: linear-gradient(to right, #45698b, #5c89bb);
    width: 0%;
    backdrop-filter: blur(3px);
    transition: width 1.01s ease-out;
    pointer-events: none;
}

#progress-percent {
    position: fixed;
    top: 5px;
    right: 10px;
    color: #f0f3f6;
    font-size: 12px;
    z-index: 9999;
    font-weight: 500;
    background: rgb(69 104 142 / 38%);
    padding: 2px 6px;
    border-radius: 10px;
    backdrop-filter: blur(1mm);
}

#back-to-top {
    position: fixed;
    bottom: 30px;
    right: 20px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #45688e;
    color: #e1e1e1;
    border: none;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgb(69 104 142);
    z-index: 9998;
    transition: all 0.8s ease;
    font-size: 20px;
    filter: opacity(0.7);
}

#back-to-top.visible {
    display: flex;
}

#back-to-top:hover {
    background: #567da7;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(33, 150, 243, 0.5);
    filter: none;
}

#back-to-top::after {
    content: "↑";
    font-size: 24px;
    font-weight: bold;
}

@media (max-width: 767px) {
    .progress-container {
        height: 3px;
    }

    #progress-percent {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 1px 4px;
    }

    #back-to-top {
        bottom: 30px;
        right: 15px;
        width: 40px;
        height: 40px;
    }

    #back-to-top::after {
        font-size: 20px;
    }
}

.theme-avatar {
    position: absolute;
    top: 8px;
    right: 65px;
    z-index: 10000;
}

.avatar-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(145deg, #f0f0f0, #d0d0d0);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.avatar-circle:hover {
    transform: scale(1.1);
}

.avatar-tooltip {
    position: absolute;
    top: 45px;
    right: 0;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
}

.theme-avatar:hover .avatar-tooltip {
    opacity: 1;
}

.theme-css_dark .avatar-circle {
    background: linear-gradient(145deg, #444, #222);
}

#avatar-emoji {
    font-size: 20px;
}

.avatar-tooltip {
    position: absolute;
    top: 45px;
    right: 0;
    background: rgb(69 104 142);
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 24px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    transition: 0.2s;
    pointer-events: none;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    max-width: 200px;
    text-align: center;
    font-weight: 500;
    max-width: 255px;
}

.theme-avatar:hover .avatar-tooltip {
    opacity: 1;
    transform: translateY(5px);
}

#avatar-emoji {
    font-size: 22px;
    line-height: 1;
}

.theme-css .avatar-circle {
    background: linear-gradient(145deg, #ffffff, #e8e8e8);
    border-color: rgba(255, 255, 255, 0.8);
}

.theme-css_dark .avatar-circle {
    background: linear-gradient(145deg, #4a4a4a, #2a2a2a);
    border-color: rgba(255, 255, 255, 0.2);
}

.theme-css_dark .avatar-tooltip {
    background: rgba(20, 20, 20, 0.95);
    color: #f0f0f0;
}

@media (max-width: 767px) {
    .theme-avatar {
        top: 10px;
        right: 15px;
    }

    .avatar-circle {
        width: 34px;
        height: 34px;
    }

    #avatar-emoji {
        font-size: 20px;
    }

    .avatar-tooltip {
        display: none;
    }
}

.reset-counter {
    position: absolute;
    top: 21px;
    right: 35px;
    width: 20px;
    height: 20px;
    background: #f5f5f5;
    color: #45688e;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10002;
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgb(0 0 0 / 55%);
    border: 0px solid white;
}

.theme-avatar:hover .reset-counter {
    opacity: 1;
    transform: scale(1);
}

.reset-counter:hover {
    background: #ffffff;
    transform: scale(1.1) !important;
    color: #F44336;
}

.reset-counter:active {
    transform: scale(0.9) !important;
}


@media (max-width: 767px) {
    .reset-counter {
        display: none;
    }
}