body {
    background: #000;
    margin: 0;
    padding: 0;
}

/* Main Page Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-left: 1px solid rgba(255, 255, 255, 0.03);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

    ::-webkit-scrollbar-thumb:hover {
        background: linear-gradient(180deg, #ff5555 0%, #dd0000 100%);
        box-shadow: 0 0 15px rgba(255, 68, 68, 0.5);
    }

/* Firefox Scrollbar */
* {
    scrollbar-width: thin;
    scrollbar-color: #ff4444 rgba(255, 255, 255, 0.05);
}

/* For specific containers if needed */
body::-webkit-scrollbar {
    width: 8px;
}

body::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #ff4444 0%, #cc0000 100%);
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(255, 68, 68, 0.3);
}

#blazor-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999 !important;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

    #blazor-loading.loaded {
        opacity: 0;
    }

/* Arrow on the left */
.arrow-up {
    position: absolute;
    left: 30px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-right: 20px solid transparent;
    border-bottom: 35px solid #ff4444;
    animation: arrow-bounce 1.5s ease-in-out infinite;
}

@keyframes arrow-bounce {
    0%, 100% {
        transform: translateY(-50%);
    }

    50% {
        transform: translateY(-70%);
    }
}

/* Red blob shape */
.loading-blob {
    position: absolute;
    right: 0;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 200px;
    height: 120px;
    background: transparent;
    border: 3px solid #ff4444;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    animation: blob-morph 3s ease-in-out infinite;
}

@keyframes blob-morph {
    0%, 100% {
        border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    }

    50% {
        border-radius: 60% 40% 60% 40% / 50% 70% 30% 50%;
    }
}

/* Circular progress */
.progress-ring {
    position: absolute;
    right: 65px;
    top: 50%;
    transform: translateY(-50%) rotate(-100deg);
}

    .progress-ring:before {
        z-index: 0;
        animation: pulse-border 1.5s ease-out infinite;
    }

    .progress-ring:after {
        content: "";
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%) translateY(-50%);
        display: block;
        width: 100%;
        height: 100%;
        border-radius: 50%;
        background-color: #ff3d24b3;
    }

.progress-ring-circle {
    stroke: #ff3d24b3;
    stroke-width: 4;
    fill: none;
    stroke-dasharray: 188.4;
    stroke-dashoffset: 188.4;
    animation: progress-fill 2s ease-in-out infinite;
}

/* Percentage text */
.progress-text {
    position: absolute;
    right: 78px;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 18px;
    font-weight: bold;
    animation: percentage-count 2s ease-in-out infinite;
}

    .progress-text::after {
        content: '100%';
    }

@keyframes progress-fill {
    0% {
        stroke-dashoffset: 188.4;
    }

    50% {
        stroke-dashoffset: 0;
    }

    100% {
        stroke-dashoffset: 188.4;
    }
}

@keyframes pulse-border {
    0% {
        transform: translate(-50%) translateY(-50%) translateZ(0) scale(1);
        opacity: 1
    }

    to {
        transform: translate(-50%) translateY(-50%) translateZ(0) scale(1.5);
        opacity: 0
    }
}

/* Elegant Blazor Loading Screen */
#blazor-loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 1;
    transition: opacity 0.5s ease-out;
}

    #blazor-loading.loaded {
        opacity: 0;
        pointer-events: none;
    }

.loading-container {
    text-align: center;
}

.loader-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

/* Rotating Rings Loader */
.loader-logo {
    position: relative;
    width: 120px;
    height: 120px;
}

.loader-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 3px solid transparent;
    border-radius: 50%;
    animation: rotate 2s linear infinite;
}

    .loader-ring:nth-child(1) {
        border-top-color: #ff4444;
        animation-duration: 1.5s;
    }

    .loader-ring:nth-child(2) {
        border-right-color: #ff6b6b;
        animation-duration: 2s;
        animation-direction: reverse;
    }

    .loader-ring:nth-child(3) {
        border-bottom-color: #ff8787;
        animation-duration: 2.5s;
    }

.loader-core {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #ff4444 0%, #ff6b6b 100%);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(255, 68, 68, 0.5);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }

    50% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.7;
    }
}

/* Loading Text */
.loader-text h3 {
    font-family: 'Oxanium', sans-serif;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
    margin: 0 0 10px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.loader-text p {
    font-family: 'Oxanium', sans-serif;
    font-size: 14px;
    color: #999;
    margin: 0 0 20px 0;
}

/* Progress Bar */
.loader-progress {
    width: 200px;
    height: 3px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
}

.loader-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #ff4444, #ff6b6b, #ff4444);
    background-size: 200% 100%;
    animation: progress-slide 1.5s ease-in-out infinite;
}

@keyframes progress-slide {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

@media screen and (max-width: 1199px) {
    .ak-nav .ak-nav_list a {
        padding: 15px 20px !important;
    }

    .ak-nav .ak-nav_list li:first-child {
        margin-top: 15px
    }
}