
/* =========================================
   MSK SOFTWARE HOUSE - PREMIUM POPUP
========================================= */

.msk-popup-overlay,
.msk-popup-overlay * {
    box-sizing: border-box;
}

.msk-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;

    background: rgba(3, 10, 24, 0.82);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0.45s ease;
}

.msk-popup-overlay.msk-popup-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

/* Main Popup */

.msk-popup {
    position: relative;
    width: 100%;
    max-width: 570px;
    max-height: calc(100dvh - 40px);
    overflow-y: auto;

    color: #ffffff;
    background: linear-gradient(
        145deg,
        #101c32,
        #07111f 65%,
        #102b27
    );

    border: 1px solid rgba(34, 197, 94, 0.48);
    border-radius: 25px;

    box-shadow:
        0 25px 90px rgba(0, 0, 0, 0.55),
        0 0 35px rgba(34, 197, 94, 0.13);

    transform: translateY(45px) scale(0.84);
    opacity: 0;

    transition:
        transform 0.65s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.45s ease;

    scrollbar-width: thin;
    scrollbar-color: #22c55e #101c32;
}

.msk-popup-overlay.msk-popup-visible .msk-popup {
    transform: translateY(0) scale(1);
    opacity: 1;
}

/* Animated Glow */

.msk-popup-glow {
    position: absolute;
    top: -100px;
    right: -100px;

    width: 250px;
    height: 250px;

    background: rgba(34, 197, 94, 0.2);
    border-radius: 50%;
    filter: blur(70px);

    pointer-events: none;
    animation: mskGlow 4s ease-in-out infinite alternate;
}

@keyframes mskGlow {
    from {
        transform: translate(-15px, 0) scale(0.9);
        opacity: 0.45;
    }

    to {
        transform: translate(15px, 20px) scale(1.2);
        opacity: 0.9;
    }
}

/* Close Button */

.msk-popup-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 5;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 42px;
    height: 42px;
    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;

    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);

    font-family: Arial, sans-serif;
    font-size: 30px;
    line-height: 1;

    cursor: pointer;
    transition:
        background 0.3s ease,
        color 0.3s ease,
        transform 0.3s ease;
}

.msk-popup-close:hover {
    color: #07111f;
    background: #4ade80;
    transform: rotate(90deg);
}

/* Popup Content */

.msk-popup-content {
    position: relative;
    z-index: 1;
    padding: 36px 32px 26px;
    text-align: center;
}

.msk-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;

    margin: 0 0 20px;
    padding: 9px 15px;

    color: #86efac;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: 50px;

    font-size: 11px;
    font-weight: 800;
    letter-spacing: 2px;
}

.msk-live-dot {
    width: 8px;
    height: 8px;
    flex-shrink: 0;

    background: #4ade80;
    border-radius: 50%;

    box-shadow: 0 0 12px #4ade80;
    animation: mskPulse 1.5s infinite;
}

@keyframes mskPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.45;
        transform: scale(1.35);
    }
}

.msk-popup-logo {
    margin-bottom: 18px;

    color: #4ade80;
    font-size: 31px;
    font-weight: 900;
    letter-spacing: 1px;
}

.msk-popup-logo span {
    display: block;
    margin-top: 4px;

    color: #cbd5e1;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
}

.msk-popup-content h2 {
    margin: 0 auto 14px;
    max-width: 440px;

    color: #ffffff;
    font-size: clamp(25px, 5vw, 37px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -0.7px;
}

.msk-popup-description {
    max-width: 420px;
    margin: 0 auto 23px;

    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.8;
}

/* Announcement Poster */

.msk-popup-poster-link {
    display: block;
    overflow: hidden;

    margin: 0 auto 23px;

    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;

    background: rgba(255, 255, 255, 0.04);
}

.msk-popup-poster {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: contain;

    transition: transform 0.5s ease;
}

.msk-popup-poster-link:hover .msk-popup-poster {
    transform: scale(1.035);
}

/* Call To Action */

.msk-popup-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;

    min-height: 50px;
    padding: 14px 27px;

    color: #052e16 !important;
    background: linear-gradient(135deg, #86efac, #22c55e);
    border: none;
    border-radius: 50px;

    font-size: 15px;
    font-weight: 800;
    text-decoration: none !important;

    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.25);

    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
}

.msk-popup-cta:hover {
    color: #052e16 !important;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(34, 197, 94, 0.4);
}

.msk-popup-cta span {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.msk-popup-cta:hover span {
    transform: translateX(5px);
}

.msk-popup-footer {
    margin: 24px 0 0;

    color: #94a3b8;
    font-size: 11px;
    line-height: 1.6;
}

/* Mobile Responsive */

@media (max-width: 480px) {
    .msk-popup-overlay {
        padding: 12px;
    }

    .msk-popup {
        max-height: calc(100dvh - 24px);
        border-radius: 20px;
    }

    .msk-popup-content {
        padding: 30px 18px 22px;
    }

    .msk-popup-close {
        top: 10px;
        right: 10px;
        width: 36px;
        height: 36px;
        font-size: 25px;
    }

    .msk-popup-badge {
        margin-top: 18px;
        margin-bottom: 15px;
        font-size: 10px;
        letter-spacing: 1.5px;
    }

    .msk-popup-logo {
        font-size: 26px;
    }

    .msk-popup-logo span {
        font-size: 9px;
        letter-spacing: 3px;
    }

    .msk-popup-description {
        font-size: 14px;
        line-height: 1.7;
    }

    .msk-popup-poster {
        max-height: 300px;
    }

    .msk-popup-cta {
        width: 100%;
    }
}

/* Accessibility: Reduce motion when requested */

@media (prefers-reduced-motion: reduce) {
    .msk-popup-overlay,
    .msk-popup,
    .msk-popup *,
    .msk-popup-glow {
        animation: none !important;
        transition-duration: 0.01ms !important;
    }
}
