html, body {
      overscroll-behavior-x: none; /* Prevents horizontal overscroll leading to back/forward navigation */
      touch-action: none; /* Can also help with preventing default touch actions */
    }
.loading {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    height: 100vh;
    background: radial-gradient(circle, #f0f9ff, #cfe9f5, #b0d8ec);
}

.loader {
    position: relative;
    width: 80px;
    height: 80px;
    animation: rotate 2s linear infinite;
    perspective: 1000px;
}

.loader::before, .loader::after {
    content: '';
    position: absolute;
    border: 6px solid transparent;
    border-radius: 50%;
    animation: spin 1.5s cubic-bezier(0.25, 1, 0.5, 1) infinite;
}

.loader::before {
    width: 100%;
    height: 100%;
    border-left: 6px solid #0188C8;
    border-right: 6px solid #56c1ea;
    animation-delay: -0.5s;
    transform: rotateX(60deg);
}

.loader::after {
    width: 100%;
    height: 100%;
    border-top: 6px solid #56c1ea;
    border-bottom: 6px solid #0188C8;
    transform: rotateY(60deg);
}

.loader .core {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 30px;
    height: 30px;
    background: radial-gradient(circle, #0188C8, #56c1ea);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    animation: pulse 1.2s ease-in-out infinite;
    box-shadow: 0 0 10px #0188C8, 0 0 20px #56c1ea, 0 0 30px #0188C8;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@keyframes rotate {
    0% {
        transform: rotateZ(0deg);
    }
    100% {
        transform: rotateZ(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        box-shadow: 0 0 10px #0188C8, 0 0 20px #56c1ea, 0 0 30px #0188C8;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        box-shadow: 0 0 15px #56c1ea, 0 0 25px #0188C8, 0 0 35px #56c1ea;
    }
}
