/* =========================================================
   MAINTENANCE POPUP
========================================================= */

.maintenance-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(2, 15, 23, 0.72);
    backdrop-filter: blur(7px);
    -webkit-backdrop-filter: blur(7px);
}


/* =========================================================
   POPUP CARD
========================================================= */

.maintenance-popup {
    position: relative;
    width: 100%;
    max-width: 455px;
    overflow: hidden;
    border: 1px solid rgba(7, 134, 92, 0.18);
    border-radius: 18px;
    background: #ffffff;
    text-align: center;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35), 0 8px 30px rgba(5, 108, 75, 0.14);
    animation: maintenancePopupShow 0.3s ease-out;
}


    /* =========================================================
   TOP ACCENT
========================================================= */

    .maintenance-popup::before {
        content: "";
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        height: 4px;
        background: linear-gradient( 90deg, #056c4b, #07865c, #16a875, #07865c, #056c4b );
    }


/* =========================================================
   HEADER
========================================================= */

.maintenance-popup-header {
    padding: 28px 32px 20px;
    background: linear-gradient( 145deg, #062b22, #07533d );
    color: #ffffff;
}


/* =========================================================
   ICON
========================================================= */

.maintenance-popup-icon {
    position: relative;
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.10);
    color: #ffd166;
    font-size: 26px;
    box-shadow: 0 0 0 7px rgba(255, 255, 255, 0.04), 0 8px 25px rgba(0, 0, 0, 0.18);
}

    .maintenance-popup-icon::after {
        content: "";
        position: absolute;
        inset: -7px;
        border: 1px solid rgba(22, 168, 117, 0.25);
        border-radius: 50%;
        animation: maintenancePulse 2s infinite;
    }


/* =========================================================
   TITLE
========================================================= */

.maintenance-popup-title {
    margin: 0;
    color: #ffffff;
    font-size: 21px;
    line-height: 1.3;
    font-weight: 700;
    letter-spacing: 0.2px;
}

.maintenance-popup-subtitle {
    margin-top: 5px;
    color: rgba(255, 255, 255, 0.70);
    font-size: 11px;
    letter-spacing: 1.3px;
    text-transform: uppercase;
}


/* =========================================================
   CONTENT
========================================================= */

.maintenance-popup-content {
    padding: 24px 32px 28px;
}

.maintenance-popup-message {
    margin: 0 auto 23px;
    max-width: 375px;
    color: #5f7069;
    font-size: 13px;
    line-height: 1.65;
}


/* =========================================================
   CLOSE BUTTON
========================================================= */

.maintenance-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;
    width: 32px;
    height: 32px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.78);
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .maintenance-close:hover {
        background: rgba(255, 255, 255, 0.18);
        color: #ffffff;
        transform: rotate(90deg);
    }


/* =========================================================
   OK BUTTON
========================================================= */

.maintenance-ok {
    width: 125px;
    height: 42px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient( 135deg, #07865c, #056c4b );
    color: #ffffff;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    cursor: pointer;
    box-shadow: 0 7px 18px rgba(5, 108, 75, 0.22);
    transition: all 0.2s ease;
}

    .maintenance-ok:hover {
        transform: translateY(-1px);
        background: linear-gradient( 135deg, #099968, #067a55 );
        box-shadow: 0 10px 24px rgba(5, 108, 75, 0.28);
    }

    .maintenance-ok:active {
        transform: translateY(0);
    }


/* =========================================================
   FOOTER NOTE
========================================================= */

.maintenance-popup-footer {
    margin-top: 16px;
    color: #9aa9a3;
    font-size: 10px;
    line-height: 1.4;
}


/* =========================================================
   ANIMATIONS
========================================================= */

@keyframes maintenancePopupShow {

    from {
        opacity: 0;
        transform: translateY(-18px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes maintenancePulse {

    0% {
        opacity: 0.7;
        transform: scale(0.95);
    }

    70% {
        opacity: 0;
        transform: scale(1.15);
    }

    100% {
        opacity: 0;
        transform: scale(1.15);
    }
}


/* =========================================================
   MOBILE
========================================================= */

@@media (max-width: 520px) {

    .maintenance-overlay {
        padding: 15px;
    }

    .maintenance-popup {
        max-width: 100%;
        border-radius: 15px;
    }

    .maintenance-popup-header {
        padding: 25px 22px 19px;
    }

    .maintenance-popup-content {
        padding: 21px 22px 24px;
    }

    .maintenance-popup-icon {
        width: 58px;
        height: 58px;
        font-size: 23px;
    }

    .maintenance-popup-title {
        font-size: 19px;
    }

    .maintenance-popup-message {
        font-size: 12px;
        line-height: 1.6;
    }

    .maintenance-ok {
        width: 115px;
        height: 40px;
    }
}
