#RealTimeChart {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0c162d;
    background-image:
        radial-gradient(at 0% 0%, rgba(26, 58, 122, 0.4) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(15, 33, 71, 0.4) 0, transparent 50%),
        linear-gradient(135deg, #0c162d 0%, #050a18 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    z-index: 10000;
    display: none;
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    opacity: 0;
    transform: scale(1.05);
    overflow-y: auto;
}

#RealTimeChart.showw {
    opacity: 1;
    display: block;
    transform: scale(1);
}

.realtime-content {
    min-height: 100vh;
    padding: 60px 15px 40px;
    color: white;
}

#RealTimeChart .closez {
    position: fixed;
    right: 25px;
    top: 25px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--gold-gradient);
    color: #0c162d;
    font-size: 20px;
    border: none;
    box-shadow: 0 5px 15px rgba(214, 181, 95, 0.3);
    cursor: pointer;
    z-index: 10005;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s ease;
}

#RealTimeChart .closez:hover {
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 8px 25px rgba(214, 181, 95, 0.5);
}

/* Glass Card Refinement */
.glass-card {
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 12px !important;
}

.candidate-card {
    transition: all 0.3s ease;
    cursor: default;
}

.candidate-card:hover {
    background: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.15) !important;
    transform: translateY(-2px);
}

.candidate-card.leader-active {
    background: linear-gradient(145deg, rgba(214, 181, 95, 0.1), rgba(255, 255, 255, 0.02)) !important;
    border-color: rgba(214, 181, 95, 0.3) !important;
}

/* Scrollbar refinement */
#RealTimeChart::-webkit-scrollbar {
    width: 6px;
}

#RealTimeChart::-webkit-scrollbar-track {
    background: transparent;
}

#RealTimeChart::-webkit-scrollbar-thumb {
    background: rgba(214, 181, 95, 0.2);
    border-radius: 10px;
}

#RealTimeChart::-webkit-scrollbar-thumb:hover {
    background: rgba(214, 181, 95, 0.4);
}

/* Stats Counter Small */
.stat-box {
    padding: 1rem !important;
}

.stat-value {
    font-size: 1.8rem !important;
    font-weight: 800;
}

/* Shimmer Animation */
.stat-count.syncing::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0) rotate(0);
    }

    50% {
        transform: translateY(-3px) rotate(5deg);
    }
}