/*========================================
KOYLINKS PAGE LOADER
=========================================*/

#page-loader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    opacity: 1;
    visibility: visible;
    transition:
        opacity .7s ease,
        visibility .7s ease;
}


/*========================================
LOADER CONTENT
=========================================*/

.loader-content {
    width: 90%;
    max-width: 360px;
    text-align: center;
    position: relative;
}


/*========================================
LOGO
=========================================*/

.loader-logo {
    width: 130px;
    height: 130px;
    margin: 0 auto 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.loader-logo img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}


/*========================================
ANIMATED RING
=========================================*/

.loader-ring {
    position: absolute;
    width: 155px;
    height: 155px;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.12);
    border-top-color: #fff;
    border-right-color: rgba(255,255,255,.5);
    animation: loaderSpin 1.2s linear infinite;
}


/* Inner glow ring */

.loader-ring::before {
    content: "";
    position: absolute;
    inset: 8px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,.08);
    animation: loaderSpinReverse 2s linear infinite;
}


/*========================================
LOADING TEXT
=========================================*/

.loader-text {
    margin-top: 15px;
    color: #fff;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.loader-dots {
    display: inline-block;
    min-width: 25px;
    text-align: left;
}

.loader-dots span {
    opacity: .2;
    animation: loaderDots 1.4s infinite;
}

.loader-dots span:nth-child(1) {
    animation-delay: 0s;
}

.loader-dots span:nth-child(2) {
    animation-delay: .2s;
}

.loader-dots span:nth-child(3) {
    animation-delay: .4s;
}


/*========================================
PROGRESS BAR
=========================================*/

.loader-progress {
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,.12);
    border-radius: 20px;
    overflow: hidden;
    margin: 25px auto 18px;
}

.loader-progress-bar {
    width: 0%;
    height: 100%;
    background: #fff;
    border-radius: 20px;
    animation: loaderProgress 2.5s ease-in-out forwards;
}


/*========================================
BRAND NAME
=========================================*/

.loader-brand {
    color: rgba(255,255,255,.55);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
}


/*========================================
LOADER ANIMATIONS
=========================================*/

@keyframes loaderSpin {

    from {
        transform: translateX(-50%) rotate(0deg);
    }

    to {
        transform: translateX(-50%) rotate(360deg);
    }

}


@keyframes loaderSpinReverse {

    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }

}


@keyframes loaderDots {

    0%,
    20% {
        opacity: .2;
    }

    50% {
        opacity: 1;
    }

    80%,
    100% {
        opacity: .2;
    }

}


@keyframes loaderProgress {

    0% {
        width: 0%;
    }

    40% {
        width: 45%;
    }

    70% {
        width: 75%;
    }

    100% {
        width: 100%;
    }

}


/*========================================
LOADER HIDDEN
=========================================*/

#page-loader.loader-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}


/*========================================
MOBILE
=========================================*/

@media (max-width: 576px) {

    .loader-logo {
        width: 105px;
        height: 105px;
        margin-bottom: 28px;
    }

    .loader-ring {
        width: 130px;
        height: 130px;
        top: -12px;
    }

    .loader-content {
        max-width: 300px;
    }

    .loader-text {
        font-size: 12px;
        letter-spacing: 2.5px;
    }

    .loader-brand {
        font-size: 9px;
        letter-spacing: 3px;
    }

}


/*====================================================
KoyLinks PWA INSTALL TAB
====================================================*/

.pwa-install-tab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 99999;
    transition: .35s ease;
}

.pwa-install-tab.hidden {
    display: none;
}

.pwa-install-tab button {
    border: 0;
    outline: 0;
    background: #000;
    color: #fff;
    padding: 14px 12px;
    border-radius: 0 14px 14px 0;
    box-shadow: 0 8px 30px rgba(0,0,0,.25);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    transition: .3s ease;
}

.pwa-install-tab button:hover {
    padding-left: 18px;
    padding-right: 18px;
}

.pwa-install-tab button i {
    font-size: 22px;
}


/*====================================================
INSTALL MODAL
====================================================*/

.pwa-install-modal {
    position: fixed;
    inset: 0;
    z-index: 100000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(0,0,0,.75);
    backdrop-filter: blur(8px);
}

.pwa-install-modal.hidden {
    display: none;
}

.pwa-install-modal-content {
    width: 100%;
    max-width: 430px;
    background: #fff;
    color: #111;
    border-radius: 22px;
    padding: 35px 30px;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,.35);
    animation: pwaModalIn .35s ease;
}

.pwa-install-close {
    position: absolute;
    right: 15px;
    top: 15px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 50%;
    background: #f1f1f1;
    color: #111;
    cursor: pointer;
}

.pwa-install-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
    background: #000;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 35px;
}

.pwa-install-modal-content h3 {
    margin-bottom: 15px;
    font-weight: 700;
}

.pwa-install-modal-content p {
    line-height: 1.7;
    margin-bottom: 25px;
}

.pwa-install-modal-button {
    border: 0;
    background: #000;
    color: #fff;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
}

@keyframes pwaModalIn {

    from {
        opacity: 0;
        transform: translateY(30px) scale(.95);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/*====================================================
MOBILE
====================================================*/

@media (max-width: 576px) {

    .pwa-install-tab button {
        padding: 12px 10px;
        border-radius: 0 12px 12px 0;
    }

    .pwa-install-tab button span {
        font-size: 11px;
    }

    .pwa-install-tab button i {
        font-size: 19px;
    }

    .pwa-install-modal-content {
        padding: 30px 22px;
    }

}