/* Language Popup Styles */
#language-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: overlayFadeIn 0.3s ease-out;
}

/* Rest of your existing CSS remains the same */
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

#language-popup-overlay.popup-hidden {
    animation: overlayFadeOut 0.3s ease-out forwards;
}

@keyframes overlayFadeOut {
    from { opacity: 1; }
    to { opacity: 0; visibility: hidden; }
}

#language-popup {
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupFadeIn 0.3s ease-out;
    position: relative;
}

@keyframes popupFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.popup-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

#language-popup h2 {
    margin: 0 0 25px 0;
    color: #333;
    font-size: 1.4em;
    line-height: 1.4;
    font-weight: 600;
}

.button-container {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 25px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 150px;
    justify-content: center;
}

.lang-btn:hover {
    border-color: #007cba;
    background: #02166a;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.lang-btn:active {
    transform: translateY(0);
}

.lang-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.lang-btn.loading::after {
    content: '...';
    margin-left: 5px;
}

.lang-btn img {
    width: 24px;
    height: 16px;
    object-fit: cover;
    border-radius: 2px;
}

/* Responsive Design */
@media (max-width: 768px) {
    #language-popup {
        padding: 20px;
        margin: 20px;
    }
    
    #language-popup h2 {
        font-size: 1.2em;
    }
    
    .button-container {
        flex-direction: column;
        align-items: center;
    }
    
    .lang-btn {
        width: 100%;
        max-width: 200px;
    }
}

@media (max-width: 480px) {
    #language-popup {
        padding: 15px;
    }
    
    #language-popup h2 {
        font-size: 1.1em;
        margin-bottom: 20px;
    }
    
    .lang-btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}