#hubTrendOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.1);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

#hubTrendOverlay.active {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.hubtrend-overlay-content {
    position: relative;
    padding: 20px;
}

.hubtrend-circle-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin: 0 auto;
}

.hubtrend-red-circle {
    position: absolute;
    width: 100%;
    height: 100%;
    border-left: 10px solid #A00;
    border-top: 0px solid transparent;
    border-radius: 80%;
    animation: hubtrend-spin 1s linear infinite;
    will-change: transform;
}

.hubtrend-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 260px;
    height: 260px;
    transform: translate(-50%, -50%);
    background: url('/wp-content/themes/hub-trend-child/logo/hub-trend-logo.svg') center/contain no-repeat;
    z-index: 10;
    content-visibility: auto;
    /* حل لـ Firefox */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

@keyframes hubtrend-spin {
    0%   { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

body.hubtrend-overlay-active {
    overflow: hidden;
}

/* Fallback لـ backdrop-filter */
@supports not (backdrop-filter: blur(8px)) {
    #hubTrendOverlay {
        background: rgba(255, 255, 255, 0.25);
    }
}

/* Responsive */
@media (max-width: 400px) {
    .hubtrend-circle-container {
        width: 280px;
        height: 280px;
    }
    .hubtrend-logo {
        width: 230px;
        height: 230px;
    }
}

@media (max-width: 768px) {
    #hubTrendOverlay {
        /* تقليل blur على الموبايل للأداء */
        -webkit-backdrop-filter: blur(4px);
        backdrop-filter: blur(4px);
        /* تحسين الاستجابة للمس */
        touch-action: none;
    }
}