/* Loader styles for Ethereum centered logo with jump/beat animation */
#global-loader {
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--loader-bg, #fff);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s, opacity 0.3s;
}

body.dark-theme #global-loader {
    --loader-bg: #120121;
}

body.light-theme #global-loader {
    --loader-bg: #fff;
}

#global-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

.eth-loader-container {
    position: relative;
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eth-loader-img {
    width: 64px;
    height: 64px;
    object-fit: contain;
    animation: eth-jump-beat 1s infinite cubic-bezier(.68, -0.55, .27, 1.55);
}

.eth-loader-illustration {
    width: 88px;
    height: 88px;
    object-fit: contain;
    z-index: 2;
    animation: eth-float 2.2s ease-in-out infinite;
}

.eth-loader-shadow {
    position: absolute;
    left: 50%;
    top: 104px;
    width: 64px;
    height: 20px;
    background: rgba(80, 80, 160, 0.18);
    border-radius: 50%;
    transform: translateX(-50%);
    z-index: 1;
    filter: blur(2px);
    animation: eth-shadow-pulse 2.2s ease-in-out infinite;
}

@keyframes eth-jump-beat {

    0%,
    100% {
        transform: translateY(0) scale(1);
    }

    20% {
        transform: translateY(-10px) scale(1.08);
    }

    40% {
        transform: translateY(0) scale(0.98);
    }

    60% {
        transform: translateY(-6px) scale(1.04);
    }

    80% {
        transform: translateY(0) scale(1);
    }
}

@keyframes eth-float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-18px);
    }
}

@keyframes eth-shadow-pulse {

    0%,
    100% {
        opacity: 0.7;
        width: 64px;
    }

    50% {
        opacity: 0.35;
        width: 80px;
    }
}