
#jd-circuit-background {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.48;
}

/* Повертаємо стандартне позиціонування адмінбару WordPress */
#wpadminbar {
    position: fixed !important;
    top: 0;
    z-index: 99999 !important;
}

/* Анімація для користувачів, які вимкнули рух */
@media (prefers-reduced-motion: reduce) {
    #jd-circuit-background {
        display: none;
    }
}

/* Мобільні пристрої */
@media (max-width: 767px) {
    #jd-circuit-background {
        opacity: 0.3;
    }
}












#jd-energy-loader {
    position: fixed;
    inset: 0;
    z-index: 99990;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(3, 8, 5, 0.96);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 1;
    visibility: visible;
    transition: opacity 0.7s ease, visibility 0.7s ease;
}

#jd-energy-loader.jd-loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.jd-loader-content {
    width: 100%;
    max-width: 360px;
    padding: 35px 25px;
    display: flex;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

/* ENERGY CORE */

.jd-energy-core {
    width: 132px;
    height: 132px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 22px;
}

.jd-core-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(82, 199, 51, 0.4);
}

.jd-ring-outer {
    width: 130px;
    height: 130px;
    border-top-color: #52C733;
    border-bottom-color: rgba(82, 199, 51, 0.12);
    animation: jd-ring-spin 7s linear infinite;
}

.jd-ring-middle {
    width: 108px;
    height: 108px;
    border-width: 2px;
    border-left-color: #52C733;
    border-right-color: transparent;
    animation: jd-ring-spin-reverse 4s linear infinite;
}

.jd-ring-inner {
    width: 88px;
    height: 88px;
    border: 2px solid #52C733;
    box-shadow:
        0 0 12px rgba(82, 199, 51, 0.2),
        inset 0 0 12px rgba(82, 199, 51, 0.1);
    animation: jd-core-pulse 2s ease-in-out infinite;
}

.jd-core-icon {
    width: 48px;
    height: 48px;
    color: #9AFF70;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: jd-icon-pulse 2s ease-in-out infinite;
    filter: drop-shadow(0 0 8px rgba(82, 199, 51, 0.65));
}

.jd-core-icon svg {
    width: 38px;
    height: 38px;
}

/* TEXT */

.jd-loader-title {
    color: #fff;
    font-size: 21px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin-bottom: 17px;
}

.jd-loader-subtitle {
    color: #52C733;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 18px;
    text-shadow: 0 0 12px rgba(82, 199, 51, 0.25);
}

/* PROGRESS */

.jd-loader-progress {
    width: 100%;
    max-width: 245px;
    height: 5px;
    overflow: hidden;
    position: relative;
    border-radius: 10px;
    background: rgba(82, 199, 51, 0.15);
}

.jd-loader-progress-bar {
    width: 40%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(
        90deg,
        #285F24,
        #52C733,
        #A5FF7B
    );
    box-shadow: 0 0 12px rgba(82, 199, 51, 0.6);
    animation: jd-progress-flow 1.6s ease-in-out infinite;
}

.jd-loader-caption {
    margin-top: 15px;
    color: rgba(150, 180, 150, 0.55);
    font-size: 10px;
    letter-spacing: 2px;
}

/* ANIMATIONS */

@keyframes jd-ring-spin {
    to { transform: rotate(360deg); }
}

@keyframes jd-ring-spin-reverse {
    to { transform: rotate(-360deg); }
}

@keyframes jd-core-pulse {
    0%, 100% {
        box-shadow:
            0 0 10px rgba(82, 199, 51, 0.2),
            inset 0 0 8px rgba(82, 199, 51, 0.08);
    }
    50% {
        box-shadow:
            0 0 22px rgba(82, 199, 51, 0.45),
            inset 0 0 16px rgba(82, 199, 51, 0.2);
    }
}

@keyframes jd-icon-pulse {
    0%, 100% {
        transform: scale(0.92);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.08);
        opacity: 1;
    }
}

@keyframes jd-progress-flow {
    0% {
        transform: translateX(-110%);
    }
    100% {
        transform: translateX(270%);
    }
}

/* MOBILE */

@media (max-width: 480px) {
    .jd-loader-content {
        padding: 25px 20px;
    }

    .jd-energy-core {
        transform: scale(0.9);
        margin-bottom: 15px;
    }

    .jd-loader-title {
        font-size: 20px;
    }

    .jd-loader-subtitle {
        font-size: 14px;
    }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {
    .jd-core-ring,
    .jd-core-icon,
    .jd-loader-progress-bar {
        animation: none !important;
    }

    .jd-loader-progress-bar {
        width: 65%;
        transform: none;
    }
}
