/* Welcome Popup Modal */
body.welcome-popup-active {
    overflow: hidden !important;
    position: relative !important;
}

.welcome-popup-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    max-width: 100% !important;
    max-height: 100% !important;
    background-color: rgba(0, 0, 0, 0.85) !important;
    z-index: 999999 !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

.welcome-popup-overlay.active {
    display: flex !important;
}

.welcome-popup-content {
    position: relative !important;
    max-width: 800px !important;
    width: 90% !important;
    max-height: 90vh !important;
    background: #000 !important;
    border-radius: 10px !important;
    overflow: visible !important;
    box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5) !important;
    animation: popupFadeIn 0.5s ease-in-out !important;
    padding: 20px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    margin: auto !important;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.welcome-popup-content img {
    display: block !important;
    max-width: 100% !important;
    max-height: 70vh !important;
    width: auto !important;
    height: auto !important;
    margin: 0 auto !important;
    border-radius: 5px !important;
}

.welcome-popup-close {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: none !important;
    color: #333 !important;
    font-size: 28px !important;
    font-weight: bold !important;
    width: 40px !important;
    height: 40px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.3s !important;
    z-index: 1000000 !important;
    line-height: 1 !important;
    padding: 0 !important;
}

.welcome-popup-close:hover {
    background: #fff !important;
    transform: rotate(90deg) !important;
}

.welcome-popup-button {
    display: block !important;
    margin: 20px auto 0 !important;
    padding: 15px 40px !important;
    background: #2541ce !important;
    color: #fff !important;
    border: none !important;
    border-radius: 5px !important;
    font-size: 18px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s !important;
    min-width: 200px !important;
    text-align: center !important;
    font-family: 'Kanit', sans-serif !important;
}

.welcome-popup-button:hover {
    background: #1a30a0 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(37, 65, 206, 0.3) !important;
    color: #fff !important;
    text-decoration: none !important;
}

@media (max-width: 768px) {
    .welcome-popup-content {
        max-width: 95% !important;
        width: 95% !important;
        padding: 15px !important;
    }

    .welcome-popup-content img {
        max-height: 60vh !important;
    }

    .welcome-popup-button {
        font-size: 16px !important;
        padding: 12px 30px !important;
        min-width: 180px !important;
    }

    .welcome-popup-close {
        width: 35px !important;
        height: 35px !important;
        font-size: 24px !important;
    }
}
