.country-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 999999;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.country-popup-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.4s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.country-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 32px;
    cursor: pointer;
    color: #999;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.country-popup-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.country-popup-body {
    text-align: center;
}

.country-flag {
    margin-bottom: 20px;
}

.flag-image {
    width: 120px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.country-popup-title {
    font-size: 32px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.country-popup-text {
    font-size: 18px;
    color: #666;
    margin: 0 0 30px 0;
    line-height: 1.6;
}

.country-popup-text strong {
    color: #2563eb;
    font-weight: 600;
}

.country-popup-button {
    background: linear-gradient(135deg, #17926a 0%, #b4d77c 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}
 
.country-popup-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.country-popup-button:active {
    transform: translateY(0);
}

@media (max-width: 600px) {
    .country-popup-content {
        padding: 30px 20px;
    }
    
    .country-popup-title {
        font-size: 26px;
    }
    
    .country-popup-text {
        font-size: 16px;
    }
    
    .flag-image {
        width: 100px;
    }
}