/* =========================================
   COINFLOW GLOBAL PAGE LOADER
========================================= */

.coinflow-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;

    background: #071525;

    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

/* Hide loader */

.coinflow-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

/* Loader content */

.coinflow-loader-content {
    width: min(90%, 300px);

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    animation: coinFlowLoaderEntrance 0.5s ease both;
}

/* =========================================
   ANIMATED COINFLOW MARK
========================================= */

.coinflow-loader-mark {
    width: 58px;
    height: 58px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    gap: 5px;
    padding: 12px;

    box-sizing: border-box;

    background: #0d2035;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 17px;

    box-shadow:
        0 12px 35px rgba(0, 0, 0, 0.2),
        0 0 35px rgba(47, 128, 237, 0.08);
}

.coinflow-loader-mark span {
    display: block;

    width: 6px;
    flex-shrink: 0;

    border-radius: 5px;

    background: #ffffff;

    transform-origin: bottom;

    animation: coinFlowBars 0.9s ease-in-out infinite;
}

.coinflow-loader-mark span:nth-child(1) {
    height: 15px;
    animation-delay: 0s;
}

.coinflow-loader-mark span:nth-child(2) {
    height: 23px;
    animation-delay: 0.15s;
}

.coinflow-loader-mark span:nth-child(3) {
    height: 31px;
    animation-delay: 0.3s;
}

/* =========================================
   BRAND
========================================= */

.coinflow-loader-brand {
    margin-top: 20px;

    color: #ffffff;

    font-size: 29px;
    font-weight: 800;
    letter-spacing: -1.2px;
    line-height: 1.2;
}

.coinflow-loader-brand span {
    color: #2f80ed;
}

/* =========================================
   SPINNER
========================================= */

.coinflow-loader-spinner {
    width: 30px;
    height: 30px;

    margin-top: 28px;

    border: 3px solid rgba(255, 255, 255, 0.12);
    border-top-color: #2f80ed;
    border-right-color: rgba(47, 128, 237, 0.5);

    border-radius: 50%;

    animation: coinFlowSpin 0.75s linear infinite;
}

/* =========================================
   LOADING MESSAGE
========================================= */

.coinflow-loader-content p {
    margin-top: 15px;

    color: #93a4b8;

    font-size: 12px;
    font-weight: 500;
    letter-spacing: 1.1px;
}

/* =========================================
   ANIMATIONS
========================================= */

@keyframes coinFlowSpin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes coinFlowBars {
    0%,
    100% {
        transform: scaleY(0.65);
        background: #ffffff;
    }

    50% {
        transform: scaleY(1);
        background: #2f80ed;
    }
}

@keyframes coinFlowLoaderEntrance {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .coinflow-loader-mark {
        width: 53px;
        height: 53px;
        border-radius: 15px;
    }

    .coinflow-loader-brand {
        margin-top: 18px;
        font-size: 26px;
    }

    .coinflow-loader-spinner {
        width: 27px;
        height: 27px;
        margin-top: 25px;
    }
}

/* =========================================
   REDUCED MOTION
========================================= */

@media (prefers-reduced-motion: reduce) {
    .coinflow-loader-content,
    .coinflow-loader-mark span,
    .coinflow-loader-spinner {
        animation: none !important;
    }

    .coinflow-loader {
        transition-duration: 0.01ms;
    }
}