/* --- استایل دکمه فراخوانی (لوکس و مدرن) --- */
.open-lux-iframe-button {
    display: inline-flex !important;
    align-items: center !important;
    padding: 15px 30px !important;
    /* گرادیانت تیره فاخر */
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%) !important; 
    color: #ecf0f1 !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 1.1rem !important;
    font-weight: bold !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    border: none !important;
}
.open-lux-iframe-button:hover {
    transform: translateY(-3px) !important;
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.4) !important;
    opacity: 0.95 !important;
    background: linear-gradient(135deg, #34495e 0%, #2c3e50 100%) !important;
}
.open-lux-iframe-button .button-icon {
    margin-left: 10px !important;
    font-size: 1.5rem !important;
}

/* --- استایل Modal تمام صفحه (ایزوله و ثابت) --- */
.lux-iframe-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    /* استفاده از vh/vw برای فوق ریسپانسیو بودن و پوشش کامل صفحه */
    width: 100vw !important; 
    height: 100vh !important;
    background-color: rgba(0, 0, 0, 0.95) !important; /* پس زمینه تیره نیمه‌شفاف برای حس لوکس */
    z-index: 99999 !important; /* بالاترین اولویت */
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s ease, visibility 0s linear 0.4s !important;
}

/* حالت فعال */
.lux-iframe-modal-overlay.active {
    opacity: 1 !important;
    visibility: visible !important;
    transition-delay: 0s !important;
}

.lux-iframe-content {
    width: 100% !important;
    height: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* iFrame اصلی (فوق ریسپانسیو) */
.lux-iframe-element {
    width: 100% !important; 
    height: 100% !important;
    border: none !important;
    background-color: #fff !important; 
    flex-grow: 1 !important; 
}

/* --- دکمه بستن مدرن (قرمز چشمک‌زن) --- */
.lux-close-button {
    position: absolute !important;
    top: 20px !important;
    right: 20px !important;
    
    /* تنظیم رنگ قرمز نمایان */
    background: #ff0000 !important; 
    color: #fff !important; 
    border: 2px solid #fff !important; 
    
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    font-size: 1.8rem !important;
    line-height: 1 !important;
    padding: 0 !important;
    text-align: center !important;
    cursor: pointer !important;
    z-index: 100000 !important;
    opacity: 0.9 !important;
    
    /* اعمال انیمیشن چشمک‌زن */
    animation: pulse-red 1.5s infinite alternate !important; 
    
    transition: all 0.2s ease !important;
}

.lux-close-button:hover {
    opacity: 1 !important;
    background: #cc0000 !important; /* قرمز تیره‌تر هنگام Hover */
    transform: scale(1.1) !important; /* بزرگ شدن هنگام hover */
    animation: none !important; /* توقف چشمک زدن هنگام hover */
}

/* --- تعریف انیمیشن چشمک‌زن --- */
@keyframes pulse-red {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 0, 0, 0.4);
    }
    100% {
        box-shadow: 0 0 0 10px rgba(255, 0, 0, 0); 
    }
}

/* (اختیاری) مخفی کردن متن عنوان، فقط برای دسترسی‌پذیری */
.screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    border: 0 !important;
}

/* --- ریسپانسیو بودن موبایل --- */
@media (max-width: 768px) {
    .open-lux-iframe-button {
        padding: 10px 20px !important;
        font-size: 1rem !important;
    }
    .lux-close-button {
        top: 10px !important;
        right: 10px !important;
        width: 30px !important;
        height: 30px !important;
        line-height: 28px !important;
        font-size: 1.5rem !important;
    }
}