@keyframes charge {
  0% { background-position: 100% 0; }
  100% { background-position: -100% 0; }
}

#loading-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.98);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-out;
   
}

#bg-video {
    position: fixed;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Pushes the video behind other content */
    transform: translateX(-50%) translateY(-50%); /* Centers the video */
    object-fit: cover; /* Ensures the video covers the screen without stretching */
    background-size: cover;
}

.loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 90%;
    max-width: 450px;
    text-align: center;
}

#loading-app-logo {
    width: 100%;
    height: auto;
    margin-bottom: 20px;
}

.loader-text {
    font-family: var(--font-header);
    font-weight: 700;
    font-size: clamp(2rem, 10vw, 3.5rem);
    color: var(--accent-color);
    text-shadow: 0 0 10px var(--glow-color);
    letter-spacing: 4px;
}

.progress-bar-container {
    width: 100%;
    height: 12px;
    background-color: #3a3a3a;
    border: 1px solid #555;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 5px;
    padding: 2px;
}

#progress-bar-fill {
    width: 0%;
    height: 100%;
    background-color: var(--accent-color);
    border-radius: 4px;
    transition: width 0.3s ease-out;
}

#loading-subtitle, .loading-stats {
    font-size: 0.8rem;
    font-family: var(--font-body);
    color: #aaa;
    letter-spacing: 2px;
    text-transform: uppercase;
    height: 1em; /* Reserve space to prevent layout shift */
}

.loading-stats {
    margin-top: 5px;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.powered-by-footer {
    position: absolute;
    width: 100%;
    bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: #8899aa;
    align-items: end;
    justify-content: flex-end;
    padding-right: 3em;
}

#loading-overlay .powered-by-footer img
{
    height: 60px;
}