#almas-back-to-top * {
    box-sizing: border-box !important;
    margin: 0;
    padding: 0;
    line-height: normal;
}

#almas-back-to-top {
    position: fixed;
    bottom: 20px;
    left: 20px;
    width: 42px;
    height: 42px;
    border-radius: var(--almas-radius-button, 14px);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #475569 !important;
    cursor: pointer;
    z-index: 990;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.5) translateZ(0);
    transition: transform 0.5s cubic-bezier(0.165, 0.84, 0.44, 1), opacity 0.4s ease, visibility 0.4s ease, color 0.2s ease, border-color 0.2s ease, bottom 0.4s ease;
    will-change: transform, opacity;
    contain: layout paint;
    background: rgba(255, 255, 255, 0.97) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: 1px solid rgba(255, 255, 255, 0.9) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
}

body.dark-mode #almas-back-to-top {
    background: rgba(20, 25, 35, 0.97) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3) !important;
    color: #e5e7eb !important;
}

#almas-back-to-top svg {
    position: relative;
    z-index: 1;
    width: 20px;
    height: 20px;
    stroke-width: 2.5px;
    transition: stroke 0.2s ease;
}

#almas-back-to-top.almas-show {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateZ(0);
}

@media (hover: hover){
#almas-back-to-top.almas-liquid-glass-element:hover {
    border-color: rgba(59, 130, 246, 0.5) !important;
    color: #3b82f6 !important;
    transform: translateY(-2px) scale(1) translateZ(0);
}
}

#almas-back-to-top:active {
    transform: scale(0.9) translateZ(0);
}

body.almas-toast-active #almas-back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: scale(0.5) translateZ(0) !important;
}

body[style*="overflow: hidden"] #almas-back-to-top {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    z-index: -1 !important;
    transform: translateY(60px) scale(0.95) translateZ(0) !important;
}

@media (min-width: 1025px) {
    #almas-back-to-top {
        left: 30px;
        bottom: 0;
        width: 46px;
        height: 46px;
        border-radius: var(--almas-radius-button, 16px) var(--almas-radius-button, 16px) 0 0;
        transform: translateY(46px) scale(0.5) translateZ(0);
    }
    #almas-back-to-top.almas-show {
        transform: translateY(0) scale(1) translateZ(0);
    }
    @media (hover: hover){
    #almas-back-to-top.almas-liquid-glass-element:hover {
        transform: translateY(0) scale(1) translateZ(0);
    }
    }
    #almas-back-to-top svg { width: 22px; height: 22px; }
}

@media (max-width: 1024px) {
    #almas-back-to-top { bottom: 90px; }
    #almas-back-to-top.almas-lift-up { bottom: 95px !important; }
}