/**
 * استایل پاپ‌آپ تشخیص VPN
 */

.ivd-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    backdrop-filter: blur(3px);
}

.ivd-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.ivd-popup-container {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 300px;
    width: 90%;
   padding: 5px 5px 10px 5px;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    animation: slideIn 0.4s ease forwards;
}

.ivd-popup-overlay.active .ivd-popup-container {
    transform: scale(1);
}

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

.ivd-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: transparent;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: #999;
    cursor: pointer;
    padding: 5px 10px;
    transition: color 0.2s ease, transform 0.2s ease;
    border-radius: 50%;
}

.ivd-popup-close:hover {
    color: #333;
    transform: rotate(90deg);
    background: #f5f5f5;
}

.ivd-popup-content {
    text-align: center;
    direction: rtl;
}

.ivd-popup-icon {
    margin-bottom: 20px;
    display: flex;
    justify-content: center;
}

.ivd-popup-icon svg {
    width: 60px;
    height: 60px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

.ivd-popup-message {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin: 0 0 25px;

}

.ivd-popup-button {
	background: #b30101 !important;
    color: #ffffff !important;
    border: none;
    padding: 12px 35px;
    font-size: 16px;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazir', 'Tahoma', sans-serif;
    font-weight: 600;
box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}

.ivd-popup-button:hover {
    background: linear-gradient(135deg, #45a049 0%, #3d8b40 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.ivd-popup-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* ریسپانسیو */
@media (max-width: 600px) {
    .ivd-popup-container {
        padding: 25px 20px;
        width: 95%;
    }
    
    .ivd-popup-message {
        font-size: 14px;
    }
    
    .ivd-popup-button {
        padding: 10px 30px;
        font-size: 14px;
    }
    
    .ivd-popup-icon svg {
        width: 50px;
        height: 50px;
    }
}

/* انیمیشن خروج */
.ivd-popup-overlay.closing {
    opacity: 0;
}

.ivd-popup-overlay.closing .ivd-popup-container {
    transform: scale(0.9);
}