/**
 * إخفاء فوري للعناصر المنبثقة
 * يتم تحميل هذا الملف أولاً لضمان عدم ظهور العناصر المنبثقة
 */

/* إخفاء فوري وشامل لجميع العناصر المشبوهة */
.image-lightbox,
[class*="lightbox"],
[id*="lightbox"],
*[class*="popup"],
*[id*="popup"],
.image-error,
.error-toast {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    position: absolute !important;
    top: -9999px !important;
    left: -9999px !important;
    width: 0 !important;
    height: 0 !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}

/* إخفاء العناصر ذات الموضع الثابت في الأسفل */
*[style*="position: fixed"][style*="bottom"],
*[style*="position: absolute"][style*="bottom"],
*[style*="z-index: 999"],
*[style*="z-index: 9999"] {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
}

/* إخفاء أيقونات الإغلاق المنعزلة */
.fa-times:not(.btn *):not(.modal *):not(.alert *):not(.navbar *),
.fas.fa-times:not(.btn *):not(.modal *):not(.alert *):not(.navbar *),
.fa-close:not(.btn *):not(.modal *):not(.alert *):not(.navbar *),
i.fa-times:not(.btn i):not(.modal i):not(.alert i):not(.navbar i),
i.fas.fa-times:not(.btn i):not(.modal i):not(.alert i):not(.navbar i) {
    display: none !important;
    visibility: hidden !important;
}

/* إخفاء الصور المكسورة */
img[alt*="فشل"],
img[src=""],
img:not([src]) {
    display: none !important;
}

/* إخفاء العناصر الفارغة المشبوهة */
div:empty:not(.container):not(.row):not(.col):not([class*="bootstrap"]):not([id]) {
    display: none !important;
}

/* منع أي عنصر من الظهور في الزاوية السفلى */
*[style*="bottom: 0"],
*[style*="bottom:0"],
*[style*="right: 0"][style*="bottom"],
*[style*="right:0"][style*="bottom"] {
    display: none !important;
}